article.prod {
    background: var(--sand);
    padding: 10px;
}
.tabs {
    background: var(--sand);
}
/* ============================================
   CATÁLOGO - ESTILOS RESPONSIVE (móvil + tablet)
   ============================================ */

/* Base: evitar desbordes horizontales */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Contenedor principal */
.wrap {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Ajuste del header en móvil */
@media (max-width: 768px) {
    .header {
        display: flex;
        flex-wrap: wrap;
        padding: 20px 16px 12px;
        gap: 12px;
        grid-template-columns: none;
    }
    .brand img {
        height: 40px;
    }
    .nav-main {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 16px;
        font-size: 13px;
        overflow-x: auto;
        padding-bottom: 8px;
    }
    .nav-main a {
        white-space: nowrap;
    }
    .nav-utils {
        gap: 8px;
    }
    .search-field {
        max-width: 180px;
        padding: 6px 12px;
        font-size: 12px;
    }
    .search-field .ph {
        display: none; /* oculta texto "Buscar título…" en móvil */
    }
    .nav-utils .bag {
        padding: 6px 14px;
    }
    span.screen-reader-text { display: none; }
}

/* Ajustes del contenido principal */
@media (max-width: 768px) {
    main.wrap {
        margin-top: 20px !important;
        padding: 0 16px;
    }
    .sec-head {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 24px;
    }
    .sec-head h2 {
        font-size: 32px;
    }
    .sec-head .sec-side {
        text-align: left;
        align-items: flex-start;
    }
}

/* TABS: scroll horizontal en móvil */
@media (max-width: 768px) {
    .tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        border-bottom: 1px solid rgba(38,28,26,.2);
        margin-bottom: 24px;
        padding-bottom: 0;
    }
    .tabs .tab,
    .tabs .filter {
        display: inline-flex;
        flex-shrink: 0;
        padding: 12px 18px;
        font-size: 11px;
    }
    .tabs .spacer {
        display: none;
    }
    .tabs .filter {
        border-left: none;
        border-right: 1px solid rgba(38,28,26,.18);
    }
    /* Selector de orden dentro de filter */
    .tabs .filter select {
        font-size: 11px;
    }
}

/* Grid de productos: 2 columnas en móvil */
@media (max-width: 768px) {
    .prod-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
    .prod {
        gap: 8px;
    }
    .prod .shot {
        aspect-ratio: 3/4;
    }
    .prod h4 {
        font-size: 16px;
        line-height: 1.2;
    }
    .prod .sub {
        font-size: 11px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .prod .price-row {
        flex-wrap: wrap;
        gap: 8px;
    }
    .prod .add {
        font-size: 10px;
        padding: 8px 12px;
        gap: 4px;
    }
    .prod .add .c {
        width: 20px;
        height: 20px;
        font-size: 12px;
    }
    .row1 {
        flex-wrap: wrap;
        gap: 6px;
    }
    .cat, .sku {
        font-size: 9px;
    }
}

/* Para pantallas muy pequeñas (≤ 400px) - una columna opcional */
@media (max-width: 480px) {
    .prod-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .prod .shot {
        aspect-ratio: 3/4;
        max-width: 280px;
        margin: 0 auto;
        width: 100%;
    }
}

/* Paginación en móvil */
@media (max-width: 768px) {
    .pagination {
        gap: 16px;
        margin: 30px 0;
    }
    .pagination a {
        padding: 8px 16px;
        background: rgba(213,204,199,.1);
        border-radius: 40px;
        font-size: 12px;
    }
}

/* Footer responsive (reutiliza estilos del mobile) */
@media (max-width: 768px) {
    .footer .wrap {
        padding: 0 16px;
    }
    .foot-top {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-bottom: 32px;
    }
    .foot-brand .sello {
        width: 70px;
        height: 70px;
    }
    .foot-brand h4 {
        font-size: 28px;
    }
    .newsletter {
        grid-column: auto;
    }
    .foot-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding-top: 20px;
    }
    .foot-bottom .legal {
        flex-wrap: wrap;
        justify-content: center;
    }
}
/* ========== FOOTER COLAPSABLE EN MÓVIL (acordeón) ========== */
@media (max-width: 768px) {
    .footer .foot-top {
        display: block;
    }
    .footer .foot-col {
        border-top: 1px solid var(--line);
        margin-top: 8px;
    }
    .footer .foot-col h5 {
        cursor: pointer;
        margin-bottom: 0;
        padding: 16px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: .24em;
        text-transform: uppercase;
        color: var(--clay);
    }
    .footer .foot-col h5::after {
        content: "+";
        font-family: var(--sans);
        font-size: 18px;
        color: var(--clay);
        font-weight: 300;
        transition: transform .2s ease;
    }
    .footer .foot-col.open h5::after {
        content: "–";
    }
    .footer .foot-col ul {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-out;
        padding: 0;
        margin: 0;
    }
    .footer .foot-col.open ul {
        max-height: 500px;
        padding-bottom: 16px;
    }
    .footer .foot-col .newsletter .field {
        margin-top: 10px;
    }
    /* Ajuste para la columna newsletter (no tiene h5, pero igual se puede tratar) */
    .footer .foot-col.newsletter {
        border-top: 1px solid var(--line);
        margin-top: 8px;
    }
    .footer .foot-col.newsletter h5 {
        cursor: pointer;
    }
}