/* =========================
        PRODUCTOS GRID
========================= */

.productos-section{
    width:95%;
    max-width:1300px;
    margin:40px auto;
}

.productos-top{
    display:flex;
    justify-content:space-between;
    align-items:center;

    margin-bottom:20px;
}

.productos-top h2{
    font-size:28px;
    font-weight:800;
}

.productos-top p{
    color:#777;
}

/* GRID */

.productos{
    display:grid !important;
    grid-template-columns:repeat(auto-fill, minmax(260px, 1fr));
    gap:20px;
    align-items:stretch;
}

/* =========================
        CARD
========================= */

.producto{
    background:white;
    border-radius:18px;

    overflow:hidden;
    cursor:pointer;

    box-shadow:0 8px 20px rgba(0,0,0,.08);

    transition:.3s;

    position:relative;
}

.producto:hover{
    transform:translateY(-8px);
    box-shadow:0 20px 40px rgba(0,0,0,.15);
}

/* =========================
        IMAGEN
========================= */

.producto-img{
    width:100%;
    height:200px;
    overflow:hidden;
    position:relative;
}

.img-producto{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}

.producto:hover .img-producto{
    transform:scale(1.08);
}

/* =========================
        BADGES
========================= */

.producto-badges{
    position:absolute;
    top:10px;
    left:10px;
}

.badge{
    padding:5px 10px;
    border-radius:50px;

    font-size:11px;
    font-weight:bold;

    color:white;
}

.disponible{
    background:#00c853;
}

.agotado{
    background:#d90000;
}

/* =========================
        CARRITO FLOAT
========================= */

.btn-cart-float{
    position:absolute;
    top:10px;
    right:10px;

    width:40px;
    height:40px;

    border-radius:50%;
    border:none;

    background:white;

    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;

    box-shadow:0 6px 15px rgba(0,0,0,.15);

    transition:.25s;
}

.btn-cart-float:hover{
    background:#d90000;
    color:white;
    transform:scale(1.1);
}

/* =========================
        INFO
========================= */

.producto-info{
    padding:14px;
}

.categoria-card{
    font-size:11px;
    color:#d90000;
    font-weight:bold;
    text-transform:uppercase;
}

.producto-info h3{
    font-size:16px;
    margin-top:6px;

    min-height:38px;
}

/* PRECIO */

.precio{
    font-size:22px;
    font-weight:800;

    color:#d90000;
    margin-top:8px;
}

/* EXTRA INFO */

.extra-info{
    display:flex;
    justify-content:space-between;

    font-size:12px;
    color:#777;

    margin-top:10px;
}

/* BOTÓN */

.btn-comprar{
    width:100%;
    margin-top:12px;

    border:none;
    background:#d90000;

    color:white;
    padding:10px;

    border-radius:12px;

    cursor:pointer;
    font-weight:bold;

    transition:.25s;
}

.btn-comprar:hover{
    background:#ff1a1a;
    transform:translateY(-2px);
}

/* =========================
        ANIMACIÓN ENTRADA
========================= */

.producto{
    animation:fadeIn .4s ease;
}

@keyframes fadeIn{
    from{
        opacity:0;
        transform:translateY(15px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* =========================
        RESPONSIVE
========================= */

@media(max-width:600px){

.productos-top{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
}

}


/* ================= FILTROS AVANZADOS ================= */

.filtros-avanzados{

    background:white;

    padding:18px;

    border-radius:16px;

    display:flex;

    gap:15px;

    align-items:center;

    margin-bottom:20px;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}


.filtros-avanzados select,
.filtros-avanzados input{

    padding:12px 15px;

    border-radius:10px;

    border:1px solid #ddd;

    font-size:14px;

    outline:none;

    background:white;

}


.filtros-avanzados select:focus,
.filtros-avanzados input:focus{

    border-color:#d60000;

}


@media(max-width:700px){

    .filtros-avanzados{

        flex-direction:column;

        align-items:stretch;

    }

}





/* ================= ORDENAR PRODUCTOS ================= */


.productos-filtros{

    background:white;

    padding:15px 18px;

    border-radius:16px;

    display:flex;

    align-items:center;

    gap:12px;

    box-shadow:0 5px 20px rgba(0,0,0,.08);

}


.productos-filtros label{

    font-weight:bold;

    color:#333;

}


.productos-filtros select{

    padding:12px 18px;

    border-radius:10px;

    border:1px solid #ddd;

    background:white;

    cursor:pointer;

    font-size:14px;

    outline:none;

}


.productos-filtros select:focus{

    border-color:#d60000;

}


@media(max-width:700px){

    .productos-filtros{

        width:100%;

        flex-direction:column;

        align-items:stretch;

    }

}