/* =========================
   CATALOGO
========================= */

.catalogo{
    padding:0px 0px;
    background:#fafafa;
    min-height:100vh;
}

.catalogo-header{
    text-align:center;
    margin-bottom:40px;
    padding: 100px 0px;
    background: url(../img/catalogo-fondo.jpg);
}

.catalogo-tag{
    display:inline-block;
    background:#dff5e7;
    color:#2f7d57;
    padding:10px 18px;
    border-radius:50px;
    font-size:14px;
    font-weight:600;
    margin-bottom:20px;
}

.catalogo-header h1{
    font-size:52px;
    line-height:1.1;
    color:#fff;
    text-shadow: 2px 2px 2px #000;
    max-width:750px;
    margin:auto;
}

/* =========================
   CATEGORIAS
========================= */

.categorias-scroll{
    display:flex;
    gap:14px;
    padding: 20px 2%;
    overflow:auto;
    padding-bottom:10px;
    margin-bottom:50px;
}

#contenedorProductos{
    padding: 20px 2%;
}

.categorias-scroll::-webkit-scrollbar{
    height:6px;
}

.categorias-scroll::-webkit-scrollbar-thumb{
    background:#ddd;
    border-radius:20px;
}

.btn-categoria{
    border:none;
    background:white;
    padding:14px 24px;
    border-radius:50px;
    cursor:pointer;
    font-size:15px;
    font-weight:600;
    white-space:nowrap;
    transition:0.3s;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
}

.btn-categoria:hover{
    transform:translateY(-2px);
}

.btn-categoria.activo{
    background:#5d8f69;
    color:white;
}

/* =========================
   PRODUCTOS
========================= */

.loading-productos{
    background:white;
    padding:50px;
    border-radius:24px;
    text-align:center;
    font-size:18px;
    color:#666;
    box-shadow:0 8px 20px rgba(0,0,0,0.05);
}

/* =========================
   RESPONSIVE
========================= */

@media(max-width:768px){

    .catalogo{
        padding:70px 5%;
    }

    .catalogo-header h1{
        font-size:36px;
    }

}




/* =========================
   GRID PRODUCTOS
========================= */

.grid-productos{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:25px;
}

/* =========================
   CARD PRODUCTO
========================= */

.card-producto{
    background:white;
    border-radius:24px;
    overflow:hidden;
    text-decoration:none;
    transition:0.3s;
    box-shadow:0 8px 20px rgba(0,0,0,0.05);
    display:flex;
    flex-direction:column;
}

.card-producto:hover{
    transform:translateY(-5px);
    box-shadow:0 15px 35px rgba(0,0,0,0.08);
}

.card-producto-imagen{
    position:relative;
    width:100%;
    aspect-ratio:1/1;
    overflow:hidden;
    background:#f5f5f5;
}

.card-producto-imagen img{
    width:100%;
    height:100%;
    object-fit:cover;
    transition:0.4s;
}

.card-producto:hover img{
    transform:scale(1.05);
}

/* =========================
   BADGES
========================= */

.badge{
    position:absolute;
    top:14px;
    left:14px;
    padding:8px 14px;
    border-radius:50px;
    font-size:12px;
    font-weight:700;
    color:white;
}

.badge.nuevo{
    background:#5d8f69;
}

.badge.destacado{
    top:52px;
    background:#ffb703;
    color:#222;
}

/* =========================
   INFO
========================= */

.card-producto-info{
    padding:22px;
    display:flex;
    flex-direction:column;
    flex:1;
}

.card-producto-info h3{
    font-size:20px;
    color:#222;
    margin-bottom:10px;
    line-height:1.2;
}

.card-producto-info p{
    color:#666;
    font-size:14px;
    line-height:1.6;
    margin-bottom:20px;
}

/* =========================
   FOOTER
========================= */

.producto-footer{
    margin-top:auto;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:12px;
}
.producto-precios{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}
.precio-anterior{
    text-decoration:line-through;
    color:#999;
    font-size:14px;
}

.precio-oferta{
    font-size:24px;
    font-weight:700;
    color:#5d8f69;
    line-height:1;
}

.precio-normal{
    font-size:24px;
    font-weight:700;
    color:#222;
    line-height:1;
}
.btn-ver-producto{
    background:#f3f3f3;
    padding:10px 16px;
    border-radius:14px;
    font-size:14px;
    font-weight:600;
    color:#222;
    transition:0.3s;
}

.card-producto:hover .btn-ver-producto{
    background:#5d8f69;
    color:white;
}
.precio-desde{
    background:#eef6f0;
    color:#5d8f69;
    padding:4px 8px;
    border-radius:999px;
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:1px;
}

/* =========================
   SIN PRODUCTOS
========================= */

.sin-productos{
    grid-column:1/-1;
    background:white;
    padding:70px 30px;
    border-radius:24px;
    text-align:center;
    box-shadow:0 8px 20px rgba(0,0,0,0.05);
}

.sin-productos h3{
    font-size:28px;
    color:#222;
    margin-bottom:10px;
}

.sin-productos p{
    color:#666;
}
















/* =========================
   RESPONSIVE
========================= */

@media(max-width:1200px){

    .grid-productos{
        grid-template-columns:repeat(3,1fr);
    }

}

@media(max-width:900px){

    .grid-productos{
        grid-template-columns:repeat(2,1fr);
    }

}

@media(max-width:600px){

    .grid-productos{
        grid-template-columns:1fr;
    }

}