body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #d82525;
}

/* HEADER */
.brands-header {
    background: #ff7a00;
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.logo-img {
    height: 45px;
}

/* BUSCADOR */
.search-box {
    background: white;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    max-width: 500px;
    width: 100%;
}

.search-box input {
    border: none;
    outline: none;
    padding: 10px 15px;
    flex: 1;
}

.search-box button {
    background: #970610;
    border: none;
    color: white;
    padding: 0 20px;
}

/* ICONOS */
.header-icons {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-btn {
    color: white;
    position: relative;
    font-size: 22px;
    text-decoration: none;
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -10px;
    background: red;
    color: white;
    font-size: 12px;
    border-radius: 50%;
    padding: 2px 6px;
}

/* MENU */
.brands-menu {
    display: flex;
    justify-content: center;
    background: white;
    flex-wrap: wrap;
}

.brands-menu a {
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}

.brands-menu a:hover {
    background: #ff7a00;
    color: white;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 25px;
    color: white;
    display: none;
}

/* ===== SLIDER CORREGIDO FINAL ===== */

.brands-slider{
    width:100%;
    max-height:400px;
    height:auto;                 /* ✅ Se ajusta a la imagen */
    position:relative;
    overflow:hidden;
    margin-top:10px;
    border-radius:14px;

    /* ✅ RUTA CORRECTA DE FONDO */
    background: url('../img/navidad.png') center center / cover no-repeat;

    box-shadow: 0 4px 25px rgba(0,0,0,0.25);
}

.brands-slides{
    display:flex;
    transition: transform 5s ease-in-out;
}

.brands-slides img{
    width:100%;
    height:auto;              /* ✅ Ya no se recorta en PC */
    max-height:400px;
    object-fit: contain;      /* ✅ Muestra imagen completa */
    background: transparent;
    flex-shrink:0;
}

/* Flechas */
.brands-prev,
.brands-next{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    background:rgba(255,255,255,0.9);
    color:#ff6a00;
    border:none;
    width:44px;
    height:44px;
    border-radius:50%;
    font-size:20px;
    cursor:pointer;
    z-index:10;
}

/* ✅ MÓVIL */
@media (max-width:768px){
    .brands-slides img{
        max-height:220px;
    }
}


/* LOGIN MODAL */
#login-modal {
    display: none;
    position: fixed;
    background: rgba(0,0,0,.7);
    inset: 0;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.login-content {
    background: white;
    padding: 25px;
    width: 90%;
    max-width: 350px;
    text-align: center;
    border-radius: 15px;
}

.login-content input {
    width: 100%;
    margin-bottom: 10px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.login-content button {
    width: 100%;
    background: #ff7a00;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .search-box {
        display: none;
    }

    .brands-menu {
        display: none;
        flex-direction: column;
    }

    .brands-menu.show {
        display: flex;
    }

    .brands-slides img {
        height: 220px;
    }
}

.banner-row{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
    gap: 10px;
    margin:15px;
}

.banner{
    background:#ff7a00;
    color:white;
    font-weight:bold;
    text-align:center;
    padding:20px;
    border-radius:20px;
    animation: float 2s infinite alternate;
}

.banner.big{
    background: #ff005a;
    font-size: 18px;
}

@keyframes float{
    from{transform: translateY(0px)}
    to{transform: translateY(-6px)}
}
@media (max-width: 768px) {

    .menu-toggle {
        display: block;
    }

    /* MOSTRAR BUSCADOR EN CELULAR */
    .search-box {
        display: flex !important;
        width: 100%;
        margin: 10px auto;
    }

    .search-box input {
        width: 100%;
        font-size: 14px;
    }

    .brands-menu {
        display: none;
        flex-direction: column;
        background:#fff;
        position: absolute;
        width: 100%;
        left: 0;
        top: 100%;
        z-index: 99;
    }

    .brands-menu.show {
        display: flex;
    }

    .brands-slides img {
        height: 220px;
    }
}
.login-btn {
    color: white;
    font-size: 22px;
    margin-left: 10px;
    text-decoration: none;
    transition: 0.2s ease;
}

.login-btn:hover {
    transform: scale(1.1);
}







