/* Copia literal de producción (20-redesign-archive.css) — no editar a mano; ver src/features/category/scripts/extract-css.py */
/* =================================================================
   CCO REDESIGN — Archive / Shop / Category page retrofit
   Inherits CSS vars (--green, --gold, --cream, --ink) from redesign-home.css.
   Targets the existing .catalog-* markup without rebuilding it.
   ================================================================= */

/* ---------- Container + base typography ---------- */
.catalog-wrapper,
.catalog-wrapper * { font-family:'Jost', system-ui, sans-serif; }

.catalog-wrapper {
    max-width:1280px;
    margin:0 auto;
    padding:24px 32px 40px;
    color:var(--ink);
}

/* ---------- Brand / Category hero ---------- */
body .catalog-wrapper .catalog-header {
    display:grid;
    grid-template-columns:1.1fr 1fr;
    gap:48px;
    align-items:center;
    padding:24px 0 36px;
    border-bottom:1px solid var(--hairline);
    margin-bottom:28px;
    position:relative;
}
/* Full-width brand banner replaces the split layout */
body .catalog-wrapper .catalog-header.has-brand-banner {
    display:block;
    padding:0 0 22px;
    border-bottom:1px solid var(--hairline);
    margin-bottom:26px;
}
body .catalog-wrapper .catalog-header.has-brand-banner .catalog-header-right { display:none; }
body .catalog-wrapper .catalog-header.has-brand-banner .catalog-header-left { padding:0; max-width:880px; }
body .catalog-wrapper .catalog-header-left {
    padding-right:16px;
}
body .catalog-wrapper .catalog-header-title,
body .catalog-wrapper .catalog-header h1 {
    font-family:'Cormorant Garamond', Georgia, serif !important;
    font-weight:500;
    font-size:48px;
    line-height:1.1;
    letter-spacing:-0.005em;
    color:var(--ink);
    margin:0 0 14px;
}
body .catalog-wrapper .catalog-header-stars,
body .catalog-wrapper .catalog-header-meta {
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--gold-deep, #93721b);
    font-size:13px;
    font-weight:500;
}
body .catalog-wrapper .catalog-header-stars svg,
body .catalog-wrapper .catalog-header-stars i,
body .catalog-wrapper .catalog-header-stars [class*="star"] {
    color:var(--gold) !important;
}
body .catalog-wrapper .catalog-meta-item {
    color:var(--mute);
    font-size:13px;
    letter-spacing:0.04em;
}
body .catalog-wrapper .catalog-meta-item + .catalog-meta-item::before {
    content:"•";
    color:var(--gold);
    margin:0 10px;
}
body .catalog-wrapper .catalog-description-wrapper,
body .catalog-wrapper .catalog-description-short {
    font-size:14.5px;
    line-height:1.7;
    color:var(--ink-soft);
    margin:18px 0 12px;
}
body .catalog-wrapper .catalog-learn-more-scroll {
    font-family:'Cormorant Garamond', Georgia, serif;
    font-style:italic;
    color:var(--gold-deep, #93721b);
    font-size:14px;
    text-decoration:none;
    border-bottom:1px solid currentColor;
    padding-bottom:2px;
    cursor:pointer;
}
body .catalog-wrapper .catalog-header-right {
    position:relative;
}
body .catalog-wrapper .catalog-header-image {
    width:100%;
    height:auto;
    border-radius:8px;
    overflow:hidden;
    box-shadow:0 18px 50px -14px rgba(58,36,24,.18);
}
body .catalog-wrapper .catalog-header-image img {
    display:block;
    width:100%;
    height:auto;
    border-radius:8px;
}

/* ---------- Vintage tobacco engraving (fallback when no photo/video) ---------- */
/* min-width:0 stops a wide image from blowing out the 1fr grid column. */
body .catalog-wrapper .catalog-header-right { min-width:0; }
body .catalog-wrapper .catalog-header-right.has-etch {
    display:flex;
    align-items:center;
    justify-content:center;
}
body .catalog-wrapper .catalog-header-etch {
    width:100%;
    max-width:460px;
    border-radius:10px;
    overflow:hidden;
    border:1px solid var(--hairline);
    background:var(--cream-light);
    box-shadow:0 18px 50px -18px rgba(58,36,24,.22);
}
body .catalog-wrapper .catalog-header-etch img {
    display:block;
    width:100%;
    height:auto;
}

/* ---------- Faint hand-etched accent on every category header ---------- */
body .catalog-wrapper .catalog-header-left,
body .catalog-wrapper .catalog-header-right { position:relative; z-index:1; }

/* ---------- Full-width brand banner (per-category hero) ---------- */
body .catalog-wrapper .catalog-brand-banner {
    margin:6px 0 22px;
    border-radius:14px;
    overflow:hidden;
    border:1px solid var(--hairline);
    box-shadow:0 18px 50px -20px rgba(58,36,24,.22);
    line-height:0;
}
body .catalog-wrapper .catalog-brand-banner img {
    display:block;
    width:100%;
    aspect-ratio:3 / 1;   /* every banner is 1600x533 → identical height, like Partagás */
    height:auto;
    object-fit:cover;
}

/* ---------- Filter bar ---------- */
body .catalog-wrapper .catalog-filters {
    display:flex;
    align-items:center;
    gap:18px;
    padding:18px 0;
    border-bottom:1px solid var(--hairline);
    margin-bottom:24px;
}
body .catalog-wrapper .catalog-filter-label,
body .catalog-wrapper .catalog-sort-label {
    font-family:'Cormorant Garamond', Georgia, serif;
    font-weight:500;
    font-size:14px;
    color:var(--ink);
    letter-spacing:0.04em;
}
body .catalog-wrapper .catalog-filter-left {
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    align-items:center;
    flex:1;
}
body .catalog-wrapper .catalog-filter-btn,
body .catalog-wrapper .catalog-filter-toggle {
    background:#fff !important;
    border:1px solid var(--hairline) !important;
    color:var(--ink) !important;
    padding:10px 18px !important;
    font-family:'Jost', sans-serif !important;
    font-size:12px !important;
    font-weight:500 !important;
    letter-spacing:0.08em;
    text-transform:uppercase;
    border-radius:4px !important;
    cursor:pointer;
    transition:all .2s ease;
    display:inline-flex;
    align-items:center;
    gap:8px;
    min-height:38px;
}
body .catalog-wrapper .catalog-filter-btn:hover,
body .catalog-wrapper .catalog-filter-toggle:hover {
    border-color:var(--gold) !important;
    color:var(--gold-deep, #93721b) !important;
    box-shadow:0 2px 8px rgba(184,153,104,.12);
}
body .catalog-wrapper .catalog-filter-btn.active,
body .catalog-wrapper .catalog-filter-btn[aria-expanded="true"] {
    background:var(--ink) !important;
    color:#fff !important;
    border-color:var(--ink) !important;
}
body .catalog-wrapper .catalog-filter-dropdown {
    background:#fff !important;
    border:1px solid var(--hairline) !important;
    border-radius:8px !important;
    box-shadow:0 18px 50px -14px rgba(58,36,24,.18) !important;
    padding:14px !important;
}
body .catalog-wrapper .catalog-filter-dropdown-content label,
body .catalog-wrapper .catalog-filter-dropdown-content a {
    font-family:'Jost', sans-serif !important;
    font-size:13px !important;
    color:var(--ink) !important;
    padding:8px 10px !important;
    border-radius:4px;
}
body .catalog-wrapper .catalog-filter-dropdown-content label:hover,
body .catalog-wrapper .catalog-filter-dropdown-content a:hover {
    background:var(--ivory) !important;
    color:var(--gold-deep, #93721b) !important;
}

/* Sort dropdown */
body .catalog-wrapper .catalog-sort-wrapper {
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:10px;
}
body .catalog-wrapper .catalog-sort-wrapper select {
    font-family:'Jost', sans-serif;
    font-size:13px;
    color:var(--ink);
    padding:10px 30px 10px 14px;
    border:1px solid var(--hairline);
    background:#fff;
    border-radius:4px;
    min-height:38px;
    cursor:pointer;
}
.catalog-sort-wrapper select:hover { border-color:var(--gold); }

/* Active filter pills */
body .catalog-wrapper .catalog-active-filters {
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    align-items:center;
    margin:0 0 22px;
}
body .catalog-wrapper .active-filters-label {
    font-size:11px;
    text-transform:uppercase;
    letter-spacing:0.18em;
    color:var(--mute);
    font-weight:600;
    margin-right:6px;
}
body .catalog-wrapper .active-filter-tag {
    background:var(--cream);
    color:var(--ink);
    border:1px solid var(--gold);
    padding:6px 12px;
    border-radius:999px;
    font-size:12px;
    font-weight:500;
    display:inline-flex;
    align-items:center;
    gap:6px;
}
body .catalog-wrapper .active-filter-tag::after {
    content:"×";
    color:var(--gold-deep, #93721b);
    font-size:14px;
    font-weight:700;
    cursor:pointer;
}
body .catalog-wrapper .catalog-clear-all-filters {
    font-size:11px;
    letter-spacing:0.18em;
    text-transform:uppercase;
    color:var(--gold-deep, #93721b);
    font-weight:600;
    text-decoration:none;
    margin-left:8px;
    cursor:pointer;
    background:none;
    border:0;
}

/* ---------- Product list (horizontal rows — original layout, restyled) ---------- */
/* NOTE: We intentionally KEEP the horizontal row layout from archive-product.php.
   Only typography, colors, spacing get the redesign paint. */
body .catalog-wrapper .catalog-product-item {
    transition:all .2s ease;
}
body .catalog-wrapper .catalog-product-item:hover {
    box-shadow:0 8px 24px -10px rgba(58,36,24,.18);
    border-color:var(--gold) !important;
    transform:translateY(-1px);
}
body .catalog-wrapper .catalog-product-image,
body .catalog-wrapper .catalog-product-item .catalog-product-image a {
    background:#fff;
    aspect-ratio:1/1;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow:hidden;
    position:relative;
}
body .catalog-wrapper .catalog-product-image img {
    width:100%;
    height:100%;
    object-fit:contain;
    padding:14px;
    box-sizing:border-box;
    transition:transform .35s ease;
}
body .catalog-wrapper .catalog-product-item:hover .catalog-product-image img {
    transform:scale(1.04);
}
body .catalog-wrapper .catalog-product-info {
    padding:16px 16px 0;
    flex:1;
    display:flex;
    flex-direction:column;
}
body .catalog-wrapper .catalog-product-name,
body .catalog-wrapper .catalog-product-name a {
    font-family:'Cormorant Garamond', Georgia, serif !important;
    font-weight:500 !important;
    font-size:18px !important;
    line-height:1.3 !important;
    color:var(--ink) !important;
    margin:0 0 6px !important;
    text-decoration:none;
    letter-spacing:0;
    text-transform:none;
}
.catalog-product-name a:hover { color:var(--gold-deep, #93721b) !important; }
body .catalog-wrapper .catalog-product-meta {
    font-size:12px;
    color:var(--mute);
    line-height:1.5;
    margin:0 0 10px;
    text-transform:none;
    letter-spacing:0.02em;
}
body .catalog-wrapper .catalog-product-meta strong,
body .catalog-wrapper .catalog-product-meta b {
    color:var(--ink-soft);
    font-weight:500;
}
body .catalog-wrapper .catalog-product-reviews,
body .catalog-wrapper .catalog-reviews {
    display:flex;
    align-items:center;
    gap:6px;
    font-size:12px;
    color:var(--mute);
    margin:0 0 10px;
}
body .catalog-wrapper .catalog-product-reviews .star,
body .catalog-wrapper .catalog-product-reviews [class*="star"],
body .catalog-wrapper .catalog-reviews [class*="star"] {
    color:var(--gold) !important;
}
body .catalog-wrapper .catalog-product-price,
body .catalog-wrapper .catalog-price-current {
    font-family:'Jost', sans-serif !important;
    font-size:18px !important;
    font-weight:700 !important;
    color:var(--ink) !important;
    margin:8px 0 12px !important;
    letter-spacing:-0.005em;
}
body .catalog-wrapper .catalog-product-price del,
body .catalog-wrapper .catalog-product-price .woocommerce-Price-amount.del {
    color:var(--mute) !important;
    font-weight:400 !important;
    font-size:14px !important;
    margin-right:6px;
}
body .catalog-wrapper .catalog-product-price ins {
    text-decoration:none;
    color:var(--ink) !important;
    font-weight:700 !important;
}

/* Add to cart button */
body .catalog-wrapper .catalog-product-purchase,
body .catalog-wrapper .catalog-product-item .button {
    padding:0 16px 16px;
}
body .catalog-wrapper .catalog-add-to-cart,
a.button.catalog-add-to-cart,
body .catalog-wrapper .catalog-product-item .button.add_to_cart_button {
    display:flex !important;
    width:100% !important;
    align-items:center;
    justify-content:center;
    gap:8px;
    white-space:nowrap !important;
    background:var(--wine) !important;
    color:#fff !important;
    padding:13px 12px !important;
    font-family:'Jost', sans-serif !important;
    font-size:11px !important;
    letter-spacing:0.14em !important;
    text-transform:uppercase !important;
    font-weight:700 !important;
    border:0 !important;
    border-radius:6px !important;
    text-decoration:none !important;
    box-shadow:none !important;
    margin:0 !important;
    transition:background .15s, box-shadow .15s !important;
}
body .catalog-wrapper .catalog-add-to-cart:hover,
body .catalog-wrapper .catalog-product-item .button.add_to_cart_button:hover {
    background:var(--wine-dark) !important;
    color:#fff !important;
    box-shadow:0 8px 18px -6px rgba(107,31,31,.4) !important;
}
body .catalog-wrapper .catalog-add-to-cart.added::before,
.catalog-add-to-cart.loading::before { color:var(--cream-light) !important; }

/* Pagination */
body .catalog-wrapper .catalog-pagination,
body .catalog-wrapper .woocommerce-pagination {
    display:flex;
    justify-content:center;
    align-items:center;
    gap:8px;
    margin:40px 0 0;
    padding:0;
    list-style:none;
}
body .catalog-wrapper .catalog-pagination a,
body .catalog-wrapper .catalog-pagination span,
body .catalog-wrapper .woocommerce-pagination a,
body .catalog-wrapper .woocommerce-pagination .page-numbers {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:38px;
    height:38px;
    padding:0 12px;
    font-family:'Jost', sans-serif;
    font-size:13px;
    font-weight:500;
    color:var(--ink);
    background:#fff;
    border:1px solid var(--hairline);
    border-radius:4px;
    text-decoration:none;
    transition:all .2s ease;
}
body .catalog-wrapper .catalog-pagination a:hover,
body .catalog-wrapper .woocommerce-pagination a:hover {
    border-color:var(--gold);
    color:var(--gold-deep, #93721b);
}
body .catalog-wrapper .catalog-pagination .current,
body .catalog-wrapper .catalog-pagination span.current,
body .catalog-wrapper .woocommerce-pagination .current {
    background:var(--ink) !important;
    color:#fff !important;
    border-color:var(--ink) !important;
}

/* ---------- Brand story section (below products) ---------- */
body .catalog-wrapper .brand-story-section {
    background:var(--cream-light);
    padding:44px 32px 48px;
    margin:44px -32px -40px;
    border-top:1px solid var(--hairline);
}
body .catalog-wrapper .brand-story-content {
    max-width:880px;
    margin:0 auto;
    font-family:'Jost', sans-serif;
    font-size:15px;
    line-height:1.75;
    color:var(--ink-soft);
}
body .catalog-wrapper .brand-story-content h2,
body .catalog-wrapper .brand-story-content h3 {
    font-family:'Cormorant Garamond', Georgia, serif;
    font-weight:500;
    color:var(--ink);
    letter-spacing:-0.005em;
    margin:24px 0 14px;
}
.brand-story-content h2 { font-size:32px; }
.brand-story-content h3 { font-size:22px; }
.brand-story-content p { margin:0 0 16px; }
body .catalog-wrapper .brand-story-content a {
    color:var(--gold-deep, #93721b);
    text-decoration:underline;
    text-underline-offset:3px;
}

/* No products */
body .catalog-wrapper .catalog-no-products {
    text-align:center;
    padding:60px 24px;
    color:var(--mute);
    font-size:14px;
    font-style:italic;
}

/* Loading state */
body .catalog-wrapper .catalog-loading {
    color:var(--mute);
    font-size:13px;
    letter-spacing:0.06em;
}

/* WooCommerce result count */
body .catalog-wrapper .woocommerce-result-count {
    font-size:12px;
    color:var(--mute);
    letter-spacing:0.04em;
    margin:0;
}

/* =================================================================
   Responsive
   ================================================================= */

@media (max-width:1024px) {
    .catalog-header-title { font-size:38px; }
}

@media (max-width:768px) {
    .catalog-wrapper { padding:18px 16px 40px; }

    /* Hero stacks */
    body .catalog-wrapper .catalog-header {
        grid-template-columns:1fr;
        gap:24px;
        padding:16px 0 24px;
    }
    .catalog-header-left { order:2; padding-right:0; }
    .catalog-header-right { order:1; }
    .catalog-header-title { font-size:32px; }
    .catalog-description-wrapper { font-size:14px; }

    /* Filters */
    body .catalog-wrapper .catalog-filters {
        flex-direction:column;
        align-items:stretch;
        gap:12px;
    }
    .catalog-filter-left { gap:8px; }
    body .catalog-wrapper .catalog-filter-btn,
    body .catalog-wrapper .catalog-filter-toggle {
        font-size:11px !important;
        padding:9px 14px !important;
    }
    body .catalog-wrapper .catalog-sort-wrapper {
        margin-left:0;
        width:100%;
    }
    .catalog-sort-wrapper select { flex:1; }

    /* Product list — keep stacked rows on mobile (already the default) */
    body .catalog-wrapper .catalog-product-name,
    .catalog-product-name a { font-size:15px !important; line-height:1.25 !important; }
    .catalog-product-meta { font-size:11px; }
    body .catalog-wrapper .catalog-product-price,
    .catalog-price-current { font-size:16px !important; }
    body .catalog-wrapper .catalog-add-to-cart,
    body .catalog-wrapper .catalog-product-item .button.add_to_cart_button {
        padding:11px 8px !important;
        font-size:10.5px !important;
        letter-spacing:0.08em !important;
    }
    /* widen the button area in the card so "ADD TO CART" stays on one line */
    body .catalog-wrapper .catalog-product-purchase,
    body .catalog-wrapper .catalog-product-item .button { padding:0 10px 12px !important; }
    .catalog-product-info { padding:12px 12px 0; }

    /* Brand story */
    .brand-story-section { padding:36px 16px 40px; margin:36px -16px -40px; }
    .brand-story-content { font-size:14px; line-height:1.7; }
    .brand-story-content h2 { font-size:26px; }
}

@media (max-width:480px) {
    body .catalog-wrapper .catalog-product-name,
    .catalog-product-name a { font-size:14px !important; }
}

/* ===== Search results: hide category filters (they don't apply cross-search) ===== */
body.search .catalog-filters .catalog-filter-left,
body.search .catalog-filter-label { display:none !important; }
body.search .catalog-filters { justify-content:flex-end; }
body.search .catalog-sort-wrapper { margin-left:0; }
/* If the whole filter row would be empty, collapse its top border gap */
body.search .catalog-filters { border-top:none; padding-top:0; }


/* Copia literal de producción (21-archive-inline-a.css) — no editar a mano; ver src/features/category/scripts/extract-css.py */
/* Global Reset */
* {
    box-sizing: border-box;
}

/* ========== DESKTOP STYLES (BASE) ========== */

body .catalog-wrapper {
    background-color: #FFFFFF;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

/* ===== Slim cinematic brand banner =====
   Overrides redesign-archive.css (aspect-ratio:3/1 → 447px tall).
   Source art is 21:9; CSS crops to a short, responsive band via object-fit cover.
   Desktop 270px / tablet 210px / mobile 155px. */
body .catalog-wrapper .catalog-brand-banner picture { display: block; line-height: 0; }
/* Banner art is pre-extended (edge-stretched cream) to ~3.93:1 = the desktop band ratio,
   so object-fit:cover fills it edge-to-edge with NO crop of the product and NO colour seam. */
body .catalog-wrapper .catalog-brand-banner { background: #F0E9DC; }
body .catalog-wrapper .catalog-brand-banner img {
    aspect-ratio: auto !important;
    height: 340px !important;
    width: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}
@media (max-width: 1024px) {
    body .catalog-wrapper .catalog-brand-banner img { height: 280px !important; object-fit: cover !important; }
}
/* Mobile: dedicated 16:9 art ({slug}-mobile.jpg) shows in full at natural height. */
@media (max-width: 768px) {
    body .catalog-wrapper .catalog-brand-banner img { height: auto !important; object-fit: contain !important; }
}
/* Limited Edition: su arte es una franja de 3152x598 (5.27:1), más ancha que la
   banda de 340px. Con el alto fijo, object-fit:cover le recortaría los puros de
   los extremos, así que aquí manda la proporción de la imagen y el alto escala
   solo con el ancho, en todos los tamaños de pantalla. */
body.term-limited-edition-series .catalog-wrapper .catalog-brand-banner img {
    height: auto !important;
    aspect-ratio: 3152 / 598 !important;
    object-fit: contain !important;
}

/* Banners nuevos 4:1 (3-oct-2026: Cohiba + 23 marcas + 10 especiales). Se ven enteros y el alto
   escala con el ancho. Va DESPUÉS de la regla de Limited Edition para pisarla (su arte nuevo ya es 4:1). */
body.term-cohiba .catalog-wrapper .catalog-brand-banner img,
body.term-montecristo .catalog-wrapper .catalog-brand-banner img,
body.term-partagas .catalog-wrapper .catalog-brand-banner img,
body.term-romeo-y-julieta .catalog-wrapper .catalog-brand-banner img,
body.term-hoyo-de-monterrey .catalog-wrapper .catalog-brand-banner img,
body.term-h-upmann .catalog-wrapper .catalog-brand-banner img,
body.term-trinidad .catalog-wrapper .catalog-brand-banner img,
body.term-bolivar .catalog-wrapper .catalog-brand-banner img,
body.term-punch .catalog-wrapper .catalog-brand-banner img,
body.term-cuaba .catalog-wrapper .catalog-brand-banner img,
body.term-diplomaticos .catalog-wrapper .catalog-brand-banner img,
body.term-el-rey-del-mundo .catalog-wrapper .catalog-brand-banner img,
body.term-la-flor-de-cano .catalog-wrapper .catalog-brand-banner img,
body.term-la-gloria-cubana .catalog-wrapper .catalog-brand-banner img,
body.term-por-larranaga .catalog-wrapper .catalog-brand-banner img,
body.term-quai-dorsay .catalog-wrapper .catalog-brand-banner img,
body.term-quintero .catalog-wrapper .catalog-brand-banner img,
body.term-rafael-gonzalez .catalog-wrapper .catalog-brand-banner img,
body.term-rafael-gonzales .catalog-wrapper .catalog-brand-banner img,
body.term-ramon-allones .catalog-wrapper .catalog-brand-banner img,
body.term-saint-luis-rey .catalog-wrapper .catalog-brand-banner img,
body.term-sancho-panza .catalog-wrapper .catalog-brand-banner img,
body.term-san-cristobal-de-la-habana .catalog-wrapper .catalog-brand-banner img,
body.term-vegas-robaina .catalog-wrapper .catalog-brand-banner img,
body.term-vegueros .catalog-wrapper .catalog-brand-banner img,
body.term-limited-edition-series .catalog-wrapper .catalog-brand-banner img,
body.term-specials .catalog-wrapper .catalog-brand-banner img,
body.term-aluminium-tubes-boxes .catalog-wrapper .catalog-brand-banner img,
body.term-regionales-limited-editions .catalog-wrapper .catalog-brand-banner img,
body.term-casa-del-habano .catalog-wrapper .catalog-brand-banner img,
body.term-gran-reserva .catalog-wrapper .catalog-brand-banner img,
body.term-ceramic-jars .catalog-wrapper .catalog-brand-banner img,
body.term-sample-boxes .catalog-wrapper .catalog-brand-banner img,
body.term-anejados .catalog-wrapper .catalog-brand-banner img,
body.term-behike-collection .catalog-wrapper .catalog-brand-banner img {
    height: auto !important;
    aspect-ratio: 4 / 1 !important;
    object-fit: contain !important;
}
@media (max-width: 768px) {
    body.term-cohiba .catalog-wrapper .catalog-brand-banner img,
    body.term-montecristo .catalog-wrapper .catalog-brand-banner img,
    body.term-partagas .catalog-wrapper .catalog-brand-banner img,
    body.term-romeo-y-julieta .catalog-wrapper .catalog-brand-banner img,
    body.term-hoyo-de-monterrey .catalog-wrapper .catalog-brand-banner img,
    body.term-h-upmann .catalog-wrapper .catalog-brand-banner img,
    body.term-trinidad .catalog-wrapper .catalog-brand-banner img,
    body.term-bolivar .catalog-wrapper .catalog-brand-banner img,
    body.term-punch .catalog-wrapper .catalog-brand-banner img,
    body.term-cuaba .catalog-wrapper .catalog-brand-banner img,
    body.term-diplomaticos .catalog-wrapper .catalog-brand-banner img,
    body.term-el-rey-del-mundo .catalog-wrapper .catalog-brand-banner img,
    body.term-la-flor-de-cano .catalog-wrapper .catalog-brand-banner img,
    body.term-la-gloria-cubana .catalog-wrapper .catalog-brand-banner img,
    body.term-por-larranaga .catalog-wrapper .catalog-brand-banner img,
    body.term-quai-dorsay .catalog-wrapper .catalog-brand-banner img,
    body.term-quintero .catalog-wrapper .catalog-brand-banner img,
    body.term-rafael-gonzalez .catalog-wrapper .catalog-brand-banner img,
    body.term-rafael-gonzales .catalog-wrapper .catalog-brand-banner img,
    body.term-ramon-allones .catalog-wrapper .catalog-brand-banner img,
    body.term-saint-luis-rey .catalog-wrapper .catalog-brand-banner img,
    body.term-sancho-panza .catalog-wrapper .catalog-brand-banner img,
    body.term-san-cristobal-de-la-habana .catalog-wrapper .catalog-brand-banner img,
    body.term-vegas-robaina .catalog-wrapper .catalog-brand-banner img,
    body.term-vegueros .catalog-wrapper .catalog-brand-banner img,
    body.term-limited-edition-series .catalog-wrapper .catalog-brand-banner img,
    body.term-specials .catalog-wrapper .catalog-brand-banner img,
    body.term-aluminium-tubes-boxes .catalog-wrapper .catalog-brand-banner img,
    body.term-regionales-limited-editions .catalog-wrapper .catalog-brand-banner img,
    body.term-casa-del-habano .catalog-wrapper .catalog-brand-banner img,
    body.term-gran-reserva .catalog-wrapper .catalog-brand-banner img,
    body.term-ceramic-jars .catalog-wrapper .catalog-brand-banner img,
    body.term-sample-boxes .catalog-wrapper .catalog-brand-banner img,
    body.term-anejados .catalog-wrapper .catalog-brand-banner img,
    body.term-behike-collection .catalog-wrapper .catalog-brand-banner img { aspect-ratio: 4 / 1 !important; }
}

/* Header */
body .catalog-wrapper .catalog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 40px 20px;
    border-bottom: 1px solid #E5E5E5;
    gap: 40px;
}

body .catalog-wrapper .catalog-header-left {
    flex: 1;
    max-width: 600px;
}

body .catalog-wrapper .catalog-brand-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 2px solid #E5E5E5;
    object-fit: contain;
    padding: 10px;
    background: white;
    margin-bottom: 15px;
    display: block !important; /* Always visible on desktop and mobile */
}

/* Header Right - Video/Image Section */
body .catalog-wrapper .catalog-header-right {
    display: none; /* Hidden by default, shown when has content */
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

/* Show header-right when it has video or image */
body .catalog-wrapper .catalog-header-right.has-media {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

/* Video styling with object-fit cover - Banner style 16:9 */
body .catalog-wrapper .catalog-header-video {
    width: 500px;
    height: 280px;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* Video link wrapper - clickable to product */
body .catalog-wrapper .catalog-header-video-link {
    display: block;
    cursor: pointer;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

body .catalog-wrapper .catalog-header-video-link:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}

body .catalog-wrapper .catalog-header-video-link:hover .catalog-header-video {
    box-shadow: none;
}

body .catalog-wrapper .catalog-title {
    font-size: 42px;
    color: #2C2C2C;
    margin: 0 0 12px 0;
    font-weight: 300;
    background: none !important;
    padding: 0 !important;
}

body .catalog-wrapper .catalog-header-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

body .catalog-wrapper .catalog-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

/* Header Stars */
body .catalog-wrapper .catalog-header-stars {
    display: inline-flex;
    gap: 2px;
    color: #FFB800;
    font-size: 18px;
    line-height: 1;
}

/* Product Stars - WooCommerce */
body .catalog-wrapper .star-rating {
    position: relative;
    height: 1em;
    line-height: 1;
    font-size: 1em;
    width: 5.4em;
    font-family: sans-serif;
    font-weight: 400;
}

body .catalog-wrapper .star-rating::before {
    content: "★★★★★";
    color: #E5E5E5;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    letter-spacing: 0.1em;
}

body .catalog-wrapper .star-rating span {
    overflow: hidden;
    float: left;
    top: 0;
    left: 0;
    position: absolute;
    padding-top: 1.5em;
}

body .catalog-wrapper .star-rating span::before {
    content: "★★★★★";
    top: 0;
    position: absolute;
    left: 0;
    color: #FFB800;
    letter-spacing: 0.1em;
}

body .catalog-wrapper .catalog-meta-item {
    color: #666;
    font-size: 14px;
}

body .catalog-wrapper .catalog-meta-item::before {
    content: "•";
    margin-right: 12px;
    color: #CCC;
}

body .catalog-wrapper .catalog-description-wrapper {
    margin-top: 15px;
}

body .catalog-wrapper .catalog-description-short {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

body .catalog-wrapper .catalog-description-full {
    font-size: 15px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 12px;
}

/* HTML formatting inside expanded description */
body .catalog-wrapper .catalog-description-full h2 {
    font-size: 22px;
    font-weight: 600;
    color: #16273E;
    margin: 25px 0 12px 0;
}

body .catalog-wrapper .catalog-description-full h3 {
    font-size: 18px;
    font-weight: 600;
    color: #16273E;
    margin: 20px 0 10px 0;
}

body .catalog-wrapper .catalog-description-full p {
    margin-bottom: 12px;
}

body .catalog-wrapper .catalog-description-full ul,
body .catalog-wrapper .catalog-description-full ol {
    margin: 10px 0 15px 18px;
}

body .catalog-wrapper .catalog-description-full li {
    margin-bottom: 5px;
}

body .catalog-wrapper .catalog-description-full a {
    color: #16273E;
    text-decoration: underline;
}

body .catalog-wrapper .catalog-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 12px;
}

body .catalog-wrapper .catalog-learn-more {
    color: #16273E;
    text-decoration: underline;
    font-size: 15px;
    cursor: pointer;
    transition: color 0.3s ease;
}

body .catalog-wrapper .catalog-learn-more:hover {
    color: #000;
}

/* Brand Story Section - SEO content after products */
body .catalog-wrapper .brand-story-section {
    margin-top: 60px;
    padding: 50px 0;
    border-top: 1px solid #E5E5E5;
}

body .catalog-wrapper .brand-story-content {
    max-width: 900px;
    margin: 0 auto;
    font-size: 16px;
    line-height: 1.8;
    color: #333;
}

body .catalog-wrapper .brand-story-content h2 {
    font-size: 28px;
    font-weight: 600;
    color: #16273E;
    margin: 40px 0 20px 0;
    line-height: 1.3;
}

body .catalog-wrapper .brand-story-content h2:first-child {
    margin-top: 0;
}

body .catalog-wrapper .brand-story-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: #16273E;
    margin: 30px 0 15px 0;
    line-height: 1.4;
}

body .catalog-wrapper .brand-story-content p {
    margin-bottom: 18px;
    color: #444;
}

body .catalog-wrapper .brand-story-content ul,
body .catalog-wrapper .brand-story-content ol {
    margin: 15px 0 25px 20px;
    color: #444;
}

body .catalog-wrapper .brand-story-content li {
    margin-bottom: 8px;
    line-height: 1.7;
}

/* Table wrapper for horizontal scroll on mobile */
body .catalog-wrapper .brand-story-content {
    overflow-x: visible;
}

body .catalog-wrapper .brand-story-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 15px;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body .catalog-wrapper .brand-story-content th {
    background: #16273E;
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
}

body .catalog-wrapper .brand-story-content td {
    padding: 12px 15px;
    border-bottom: 1px solid #E5E5E5;
}

body .catalog-wrapper .brand-story-content tr:nth-child(even) td {
    background: #F9F9F9;
}

body .catalog-wrapper .brand-story-content a {
    color: #16273E;
    text-decoration: underline;
}

body .catalog-wrapper .brand-story-content a:hover {
    color: #000;
}

body .catalog-wrapper .brand-story-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
}

body .catalog-wrapper .catalog-header-right {
    flex-shrink: 0;
}

body .catalog-wrapper .catalog-header-image {
    width: 480px;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

/* Categories */
body .catalog-wrapper .catalog-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

body .catalog-wrapper .catalog-category-item {
    display: inline-block;
    padding: 8px 16px;
    background: #F5F5F5;
    color: #16273E;
    text-decoration: none;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

body .catalog-wrapper .catalog-category-item:hover {
    background: #16273E;
    color: white;
    border-color: #16273E;
}

/* Filters */
body .catalog-wrapper .catalog-filters {
    padding: 30px 20px;
    border-bottom: 1px solid #E5E5E5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

body .catalog-wrapper .catalog-filter-left {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

body .catalog-wrapper .catalog-filter-label {
    font-size: 18px;
    color: #2C2C2C;
    font-weight: 400;
}

body .catalog-wrapper .catalog-filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Hide mobile dropdown on desktop */
body .catalog-wrapper .mobile-filter-dropdown {
    display: none;
}

body .catalog-wrapper .catalog-filter-btn {
    padding: 10px 24px;
    border: 1.5px solid #CCC;
    border-radius: 25px;
    background: white;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

body .catalog-wrapper .catalog-filter-btn:hover {
    border-color: #16273E;
    color: #16273E;
}

body .catalog-wrapper .catalog-sort-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

body .catalog-wrapper .catalog-sort-label {
    font-size: 16px;
    color: #666;
}

/* Products - DESKTOP HORIZONTAL LIST */
body .catalog-wrapper .catalog-products {
    padding: 20px;
    display: block;
}

body .catalog-wrapper .catalog-products .catalog-product-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid #E5E5E5;
    gap: 26px;
    background: white;
    transition: background 0.3s;
}

body .catalog-wrapper .catalog-products .catalog-product-item:hover {
    background: #FAFAFA;
}

body .catalog-wrapper .catalog-products .catalog-product-image {
    flex-shrink: 0;
    width: 210px;
    height: 210px;
}

body .catalog-wrapper .catalog-products .catalog-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

body .catalog-wrapper .catalog-products .catalog-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
    /* redesign-archive.css pads the img 14px; at this size that wastes the box */
    padding: 4px;
}

body .catalog-wrapper .catalog-products .catalog-product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: center;
    padding: 0;
}

body .catalog-wrapper .catalog-products .catalog-product-reviews {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

body .catalog-wrapper .catalog-products .catalog-product-reviews .star-rating {
    font-size: 16px;
}

body .catalog-wrapper .catalog-products .catalog-product-name {
    font-size: 18px;
    color: #2C2C2C;
    font-weight: 400;
    margin: 0;
    line-height: 1.3;
}

body .catalog-wrapper .catalog-products .catalog-product-name a {
    color: #2C2C2C;
    text-decoration: none;
    transition: color 0.3s;
}

body .catalog-wrapper .catalog-products .catalog-product-name a:hover {
    color: #16273E;
}

body .catalog-wrapper .catalog-products .catalog-product-meta {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #999;
}

body .catalog-wrapper .catalog-products .catalog-product-meta span strong {
    color: #666;
    font-weight: 400;
}

body .catalog-wrapper .catalog-products .catalog-product-purchase {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 10px;
    min-width: 190px;
    padding: 0;
}

body .catalog-wrapper .catalog-products .catalog-product-price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    margin: 0 !important;
}

body .catalog-wrapper .catalog-products .catalog-price-current {
    font-size: 24px;
    font-weight: 400;
    color: #2C2C2C;
}

body .catalog-wrapper .catalog-products .catalog-price-original {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
    margin-right: 5px;
}

body .catalog-wrapper .catalog-products .catalog-price-discount {
    font-size: 14px;
    color: #E74C3C;
    font-weight: 600;
    margin-left: 5px;
}

body .catalog-wrapper .catalog-products .catalog-add-to-cart {
    padding: 11px 34px;
    background: #9ACD32;
    color: white;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

body .catalog-wrapper .catalog-products .catalog-add-to-cart:hover {
    background: #8BC624;
    transform: translateY(-1px);
}

body .catalog-wrapper .catalog-products .catalog-add-to-cart::before {
    content: "";
    display: none;
}

/* ========================================
   VIEW TOGGLE  (List  vs  Catalog/text mode)
   Segmented control on a soft track; height matches the Sort By select.
   ======================================== */
body .catalog-wrapper .catalog-view-label {
    font-size: 16px;
    color: #666;
    white-space: nowrap;
}

body .catalog-wrapper .catalog-view-toggle {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    background: #F3EFE8;
    border: 1px solid #E4DBCD;
    border-radius: 9px;
    box-sizing: border-box;
    vertical-align: middle;
}

body .catalog-wrapper .catalog-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 32px;
    padding: 0 15px;
    margin: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6B6257;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
    -webkit-appearance: none;
    appearance: none;
}

body .catalog-wrapper .catalog-view-btn:hover {
    color: #16273E;
}

body .catalog-wrapper .catalog-view-btn.active {
    background: #16273E;
    color: #fff;
    box-shadow: 0 1px 3px rgba(59,36,21,0.28);
}

body .catalog-wrapper .catalog-view-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    display: block;
}

/* --- Catalog (text) mode: dense single-line rows, no images --- */
body .catalog-wrapper .catalog-products.view-catalog .catalog-product-item {
    padding: 11px 22px;
    gap: 20px;
    align-items: center;
}

body .catalog-wrapper .catalog-products.view-catalog .catalog-product-image,
body .catalog-wrapper .catalog-products.view-catalog .catalog-product-reviews {
    display: none;
}

body .catalog-wrapper .catalog-products.view-catalog .catalog-product-info {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 4px 18px;
}

body .catalog-wrapper .catalog-products.view-catalog .catalog-product-name {
    font-size: 16px;
}

body .catalog-wrapper .catalog-products.view-catalog .catalog-product-meta {
    font-size: 12px;
}

body .catalog-wrapper .catalog-products.view-catalog .catalog-product-purchase {
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    min-width: auto;
}

body .catalog-wrapper .catalog-products.view-catalog .catalog-product-price {
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
}

body .catalog-wrapper .catalog-products.view-catalog .catalog-price-current {
    font-size: 18px;
}

body .catalog-wrapper .catalog-products.view-catalog .catalog-add-to-cart {
    padding: 8px 22px;
    font-size: 13px;
}

/* Catalog mode: keep the name on the left with the spec meta inline right after
   it (don't let the name grow, or the meta wraps to a centered second line). */
body .catalog-wrapper .catalog-products.view-catalog .catalog-product-name {
    flex: 0 1 auto;
    width: auto;
    margin-bottom: 0;
}

body .catalog-wrapper .catalog-products.view-catalog .catalog-product-meta {
    flex: 0 1 auto;
    margin: 0;
}

/* ===================================================================
   MODO GRID — la misma ficha que la portada (.cco-card)
   Se consigue con CSS sobre el markup de fila que ya existe, para que los
   resultados de los filtros AJAX hereden el estilo sin tocar el JS. Usa los
   tokens --cco-* de redesign-home.css, que ya se carga en los archivos.
   =================================================================== */

/* El corazon, el boton rapido, la vitola y las barras de fuerza solo existen
   para el modo Grid: en Catalog y Only Text estorban. */
body .catalog-wrapper .catalog-product-item .cco-heart,
body .catalog-wrapper .catalog-product-item .cco-qadd,
body .catalog-wrapper .catalog-product-item .cco-vit,
body .catalog-wrapper .catalog-product-item .cco-strength,
body .catalog-wrapper .catalog-product-item .cco-rv,
body .catalog-wrapper .catalog-product-item .cco-price { display: none; }

@media (min-width: 769px) {
/* auto-fit (no auto-fill) para que con pocos productos NO queden columnas
   vacias, y un maximo de 300px para que 2 o 3 fichas no se estiren. */
body .catalog-wrapper .catalog-products.view-grid {
    display: grid;
    /* auto-fit + 1fr: con MENOS productos que columnas, las pistas sobrantes se
       colapsan y las fichas reparten todo el ancho. */
    grid-template-columns: repeat(auto-fit, minmax(244px, 1fr));
    /*
     * Las lineas de la rejilla NO se dibujan ya con el fondo del contenedor.
     * Antes eran un fondo beige asomando por un gap de 1px, y ese mismo fondo
     * se veia tambien donde NO habia ficha: con 8 productos en 5 columnas, la
     * ultima fila dejaba dos huecos beige del tamano de una ficha. auto-fit no
     * lo arregla, porque el numero de columnas lo fija el ancho disponible, no
     * cuantos productos quedan en la ultima fila.
     * Ahora la linea la pone cada ficha con outline (no ocupa espacio en el
     * layout, asi que las de dos fichas contiguas se solapan y siguen midiendo
     * 1px) y el contenedor es transparente: donde no hay ficha se ve el fondo
     * de la pagina y el hueco desaparece.
     */
    gap: 0;
    padding: 0;
    background: transparent;
    border: 0;
}

body .catalog-wrapper .catalog-products.view-grid .catalog-pagination {
    grid-column: 1 / -1;
    background: var(--cco-surface, #fff);
}

body .catalog-wrapper .catalog-products.view-grid .catalog-product-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0 0 20px;
    border-bottom: none;
    background: var(--cco-surface, #fff);
    /* La cuadricula la dibuja cada ficha, no el fondo del contenedor (ver la
       nota de .view-grid). outline y no border porque no ocupa espacio: las
       lineas de dos fichas contiguas se solapan y se ven como una sola. */
    outline: 1px solid var(--cco-border, #ECE2CF);
    outline-offset: -0.5px;
    isolation: isolate;
    transition: box-shadow .25s ease, transform .25s ease;
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-item:hover {
    box-shadow: 0 22px 44px -26px rgba(40,30,20,.5);
    z-index: 2;
    transform: translateY(-2px);
}

/* Foto */
body .catalog-wrapper .catalog-products.view-grid .catalog-product-image {
    position: relative;
    width: 100%;
    max-width: none;
    height: auto;           /* la lista fija 210px y anulaba el aspect-ratio */
    flex: 0 0 auto;
    aspect-ratio: 1/1;
    background: radial-gradient(120% 120% at 50% 18%, #fff, var(--cco-bg, #FAF6EE) 92%);
    display: grid;
    place-items: center;
    overflow: hidden;
    margin: 0;
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-image a { display: block; width: 100%; height: 100%; }
body .catalog-wrapper .catalog-products.view-grid .catalog-product-image img {
    width: 100%; height: 100%; object-fit: contain;
    padding: 26px 26px 18px; transition: transform .5s ease; mix-blend-mode: multiply;
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-item:hover .catalog-product-image img { transform: scale(1.045); }

/* Wishlist y anadir rapido, como en la portada */
body .catalog-wrapper .catalog-products.view-grid .cco-heart {
    display: grid; position: absolute; top: 11px; right: 11px; z-index: 3;
    width: 34px; height: 34px; border-radius: 50%; place-items: center; padding: 0;
    border: 1px solid var(--cco-border, #ECE2CF);
    background: color-mix(in oklch, var(--cco-surface, #fff) 80%, transparent);
    backdrop-filter: blur(4px); transition: .2s; cursor: pointer; box-shadow: none;
}
body .catalog-wrapper .catalog-products.view-grid .cco-heart svg { width: 16px; height: 16px; stroke: var(--cco-muted, #8A8172); fill: none; stroke-width: 1.5; transition: .2s; }
body .catalog-wrapper .catalog-products.view-grid .cco-heart:hover { border-color: var(--cco-accent, #9B2C2C); transform: none; }
body .catalog-wrapper .catalog-products.view-grid .cco-heart.is-wished { border-color: var(--cco-accent, #9B2C2C); }
body .catalog-wrapper .catalog-products.view-grid .cco-heart.is-wished svg { fill: var(--cco-accent, #9B2C2C); stroke: var(--cco-accent, #9B2C2C); }

body .catalog-wrapper .catalog-products.view-grid .cco-qadd {
    display: block; position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 3;
    border: 0; background: var(--cco-accent, #9B2C2C); color: #fff;
    font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; padding: 11px;
    border-radius: 2px; font-weight: 500; opacity: 0; transform: translateY(8px);
    transition: .25s; cursor: pointer; font-family: var(--cco-font-b, "Jost", sans-serif);
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-image:hover .cco-qadd,
body .catalog-wrapper .catalog-products.view-grid .catalog-product-item:hover .cco-qadd { opacity: 1; transform: none; }

/* Cuerpo de la ficha: vitola, nombre, fuerza y valoracion, en ese orden */
body .catalog-wrapper .catalog-products.view-grid .catalog-product-info {
    display: flex; flex-direction: column; gap: 9px; flex: 1;
    padding: 18px 18px 0; text-align: left; align-items: flex-start; min-width: 0;
}
body .catalog-wrapper .catalog-products.view-grid .cco-vit {
    display: block; order: 1;
    font-family: var(--cco-font-b, "Jost", sans-serif); font-size: 10.5px;
    letter-spacing: .13em; text-transform: uppercase; color: var(--cco-muted, #8A8172);
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-name {
    order: 2; margin: 0; text-align: left;
    font-family: var(--cco-font-d, "Cormorant Garamond", Georgia, serif);
    font-weight: 500; font-size: 20px; line-height: 1.18; letter-spacing: .005em;
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-name a { color: var(--cco-fg, #221D18); text-decoration: none; }
body .catalog-wrapper .catalog-products.view-grid .cco-strength { display: flex; order: 3; align-items: center; gap: 8px; margin-top: 2px; }
body .catalog-wrapper .catalog-products.view-grid .cco-bars { display: flex; gap: 3px; }
body .catalog-wrapper .catalog-products.view-grid .cco-bars i { width: 16px; height: 4px; border-radius: 1px; background: var(--cco-border, #ECE2CF); display: block; }
body .catalog-wrapper .catalog-products.view-grid .cco-bars i.f { background: var(--cco-green, #16273E); }
body .catalog-wrapper .catalog-products.view-grid .cco-strength span {
    font-family: var(--cco-font-b, "Jost", sans-serif); font-size: 10.5px;
    letter-spacing: .08em; text-transform: uppercase; color: var(--cco-muted, #8A8172);
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-reviews { order: 4; display: flex; align-items: center; gap: 7px; margin: 0; }
/* Las estrellas vacias salian del mismo dorado que las llenas, asi que todas
   parecian completas. En la portada el fondo es gris y solo se dora la parte
   proporcional a la nota. */
body .catalog-wrapper .catalog-products.view-grid .catalog-product-reviews .star-rating,
body .catalog-wrapper .catalog-products.view-grid .catalog-product-reviews .star-rating::before {
    color: var(--cco-border, #ECE2CF);
    font-size: 13px;
    letter-spacing: 1.5px;
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-reviews .star-rating span,
body .catalog-wrapper .catalog-products.view-grid .catalog-product-reviews .star-rating span::before {
    color: var(--cco-gold, #B89968);
}

body .catalog-wrapper .catalog-products.view-grid .catalog-product-reviews .cco-rv {
    display: inline; font-family: var(--cco-font-b, "Jost", sans-serif); font-size: 11.5px; color: var(--cco-muted, #8A8172);
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-reviews .catalog-rv { display: none; }
/* La marca y las medidas ya van en la vitola de arriba */
body .catalog-wrapper .catalog-products.view-grid .catalog-product-meta { display: none; }

/* Precio abajo del todo, como el pie de la ficha de portada */
body .catalog-wrapper .catalog-products.view-grid .catalog-product-purchase {
    width: 100%; max-width: none; flex: 0 0 auto;
    padding: 11px 18px 0; margin-top: auto; text-align: left; align-items: flex-start;
}
body .catalog-wrapper .catalog-products.view-grid .catalog-product-price {
    display: flex; flex-wrap: wrap; align-items: baseline; justify-content: flex-start;
    text-align: left; gap: 6px; margin: 0;
}
/* En Grid manda el precio con el formato de la tienda, como en la portada */
body .catalog-wrapper .catalog-products.view-grid .catalog-price-current,
body .catalog-wrapper .catalog-products.view-grid .catalog-price-original,
body .catalog-wrapper .catalog-products.view-grid .catalog-price-discount { display: none; }
body .catalog-wrapper .catalog-products.view-grid .cco-price {
    display: inline-block;
    font-family: var(--cco-font-b, "Jost", sans-serif); font-weight: 600; font-size: 19px;
    line-height: 1; color: var(--cco-green, #16273E); font-variant-numeric: tabular-nums;
}
body .catalog-wrapper .catalog-products.view-grid .cco-price * {
    font-family: inherit !important; color: inherit !important; font-size: inherit;
}
body .catalog-wrapper .catalog-products.view-grid .cco-price del { opacity: .5; font-weight: 400; margin-right: 6px; }
body .catalog-wrapper .catalog-products.view-grid .cco-price ins { text-decoration: none; }
/* En la portada no hay boton fijo: se anade con el boton flotante de la foto */
body .catalog-wrapper .catalog-products.view-grid .catalog-product-purchase .catalog-add-to-cart,
body .catalog-wrapper .catalog-products.view-grid .catalog-add-to-cart { display: none !important; }
}

/* Movil: 2 columnas y la ficha compacta, sin boton flotante (no hay hover) */
@media (max-width: 768px) {
body .catalog-wrapper .catalog-products.view-grid .cco-vit,
body .catalog-wrapper .catalog-products.view-grid .cco-strength { display: none; }
}

/* Filter bar: below ~1280px the filter pills + sort/view controls no longer fit
   on one line, so stack them. This keeps the pills in a horizontal row instead
   of collapsing into a tall narrow column. */
@media (min-width: 769px) and (max-width: 1280px) {
    body .catalog-wrapper .catalog-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    body .catalog-wrapper .catalog-filter-left,
    body .catalog-wrapper .catalog-sort-wrapper {
        width: 100%;
    }
    body .catalog-wrapper .catalog-sort-wrapper {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Mobile: show the toggle full-width on its own row; catalog mode becomes a
   single-column compact text list (default list mode keeps the 2-col grid). */
@media (max-width: 768px) {
    body .catalog-wrapper .catalog-sort-wrapper {
        flex-wrap: wrap;
        row-gap: 12px;
    }
    body .catalog-wrapper .catalog-view-label { display: none; }
    body .catalog-wrapper .catalog-view-toggle {
        display: inline-flex !important;
        order: -1;
        width: 100%;
    }
    body .catalog-wrapper .catalog-view-btn {
        flex: 1;
        height: 38px;
    }

    /* Catalog mode on mobile: 1-column text rows (no image) */
    body .catalog-wrapper .catalog-products.view-catalog {
        display: block !important;
        padding: 0 !important;
    }
    body .catalog-wrapper .catalog-products.view-catalog .catalog-product-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        border: none !important;
        border-bottom: 1px solid #E5E5E5 !important;
        border-radius: 0 !important;
        padding: 12px 14px !important;
        gap: 12px !important;
    }
    body .catalog-wrapper .catalog-products.view-catalog .catalog-product-image,
    body .catalog-wrapper .catalog-products.view-catalog .catalog-product-reviews {
        display: none !important;
    }
    body .catalog-wrapper .catalog-products.view-catalog .catalog-product-info {
        flex: 1 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 3px !important;
    }
    body .catalog-wrapper .catalog-products.view-catalog .catalog-product-name {
        height: auto !important;
        font-size: 14px !important;
        -webkit-line-clamp: unset !important;
    }
    body .catalog-wrapper .catalog-products.view-catalog .catalog-product-meta {
        display: flex !important;
        flex-wrap: wrap !important;
        font-size: 11px !important;
    }
    body .catalog-wrapper .catalog-products.view-catalog .catalog-product-purchase {
        flex-direction: column !important;
        align-items: flex-end !important;
        justify-content: center !important;
        min-width: auto !important;
        gap: 6px !important;
        margin: 0 !important;
    }
    body .catalog-wrapper .catalog-products.view-catalog .catalog-add-to-cart {
        width: auto !important;
        height: auto !important;
        padding: 7px 14px !important;
        font-size: 11px !important;
        border-radius: 4px !important;
    }

}

/* ========================================
   Pagination - minimal / editorial (no background bar)
   ======================================== */
body .catalog-wrapper .catalog-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: auto;
    margin: 24px 0 4px;
    padding: 26px 15px 10px;
    background: none;
    border: none;
    text-align: center;
}

body .catalog-wrapper .catalog-pagination .woocommerce-pagination,
body .catalog-wrapper .catalog-pagination .woocommerce-pagination > *,
body .catalog-wrapper .catalog-pagination nav {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

body .catalog-wrapper .catalog-pagination ul.page-numbers {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 0;
    margin: 0;
    list-style: none;
    background: none !important;
    border: none !important;
    border-radius: 0 !important;
}

body .catalog-wrapper .catalog-pagination ul.page-numbers li {
    display: inline-flex !important;
}

/* Number / arrow items (both ul/li and flat AJAX structures) */
body .catalog-wrapper .catalog-pagination .page-numbers li a,
body .catalog-wrapper .catalog-pagination .page-numbers li span,
body .catalog-wrapper .catalog-pagination > a.page-numbers,
body .catalog-wrapper .catalog-pagination > span.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 9px;
    background: transparent;
    color: #5B5249;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease;
    font-size: 15px;
    font-weight: 500;
}

/* Hover on clickable numbers -> gold text */
body .catalog-wrapper .catalog-pagination .page-numbers li a:hover,
body .catalog-wrapper .catalog-pagination > a.page-numbers:hover {
    background: transparent;
    color: #a8821f;
}

/* Active page -> filled brown circle */
body .catalog-wrapper .catalog-pagination .page-numbers li span.current,
body .catalog-wrapper .catalog-pagination > span.page-numbers.current {
    background: #16273E;
    color: #fff;
}

/* Prev / next arrows */
body .catalog-wrapper .catalog-pagination .page-numbers li a.prev,
body .catalog-wrapper .catalog-pagination .page-numbers li a.next,
body .catalog-wrapper .catalog-pagination > a.prev,
body .catalog-wrapper .catalog-pagination > a.next {
    font-size: 19px;
    color: #9A8F80;
}

body .catalog-wrapper .catalog-pagination .page-numbers li a.prev:hover,
body .catalog-wrapper .catalog-pagination .page-numbers li a.next:hover,
body .catalog-wrapper .catalog-pagination > a.prev:hover,
body .catalog-wrapper .catalog-pagination > a.next:hover {
    color: #a8821f;
}

/* ========== MOBILE STYLES (OVERRIDE) ========== */
@media (max-width: 768px) {
    /* Force container width constraints */
    body .catalog-wrapper {
        max-width: 100vw !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    body #catalog-products-container {
        max-width: 100% !important;
        overflow-x: hidden !important;
        box-sizing: border-box !important;
    }

    body .catalog-wrapper .catalog-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 25px 15px;
        gap: 20px;
    }

    body .catalog-wrapper .catalog-header-left {
        width: 100%;
        max-width: none;
    }

    body .catalog-wrapper .catalog-brand-logo {
        display: block !important; /* Show logo on mobile too */
        width: 60px;
        height: 60px;
    }

    body .catalog-wrapper .catalog-title {
        font-size: 28px;
    }

    body .catalog-wrapper .catalog-header-meta {
        font-size: 13px;
        gap: 10px;
        margin-bottom: 12px;
    }

    body .catalog-wrapper .catalog-meta-item {
        font-size: 13px;
    }

    body .catalog-wrapper .catalog-meta-item::before {
        margin-right: 8px;
    }

    body .catalog-wrapper .catalog-description-wrapper {
        margin-top: 12px;
    }

    body .catalog-wrapper .catalog-description-short,
    body .catalog-wrapper .catalog-description-full {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    body .catalog-wrapper .catalog-description {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 10px;
    }

    body .catalog-wrapper .catalog-learn-more {
        font-size: 14px;
    }

    body .catalog-wrapper .catalog-header-right {
        width: 100%;
        margin-top: 15px;
    }

    body .catalog-wrapper .catalog-header-right.has-media {
        display: block !important;
    }

    body .catalog-wrapper .catalog-header-image {
        width: 100%;
        max-width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        object-fit: cover;
        border-radius: 10px;
        margin: 0 auto;
        display: block;
    }

    /* Mobile video styling - full width banner */
    body .catalog-wrapper .catalog-header-video {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        object-fit: cover;
        object-position: center;
        border-radius: 8px;
        margin: 0 auto;
        display: block;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    body .catalog-wrapper .catalog-categories {
        gap: 8px;
        margin-top: 15px;
    }

    body .catalog-wrapper .catalog-category-item {
        padding: 6px 12px;
        font-size: 12px;
    }

    body .catalog-wrapper .catalog-filters {
        padding: 15px;
        flex-direction: column;
        align-items: stretch;
    }

    body .catalog-wrapper .catalog-filter-left {
        width: 100%;
        margin-bottom: 15px;
        flex-wrap: nowrap;
    }

    /* Hide desktop filter label on mobile */
    body .catalog-wrapper .catalog-filter-label {
        display: none !important;
    }

    /* Show FILTER BY toggle button on mobile */
    body .catalog-wrapper .mobile-filter-dropdown {
        display: block !important;
        width: 100%;
    }

    /* Hide the old menu items - we use filter-buttons instead */
    body .catalog-wrapper .mobile-filter-menu {
        display: none !important;
    }

    /* Style the FILTER BY toggle button */
    body .catalog-wrapper .catalog-filter-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
        padding: 12px 20px;
        background: #16273E;
        color: white;
        border: none;
        border-radius: 25px;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    body .catalog-wrapper .catalog-filter-toggle:active {
        background: #2a1a0f;
    }

    body .catalog-wrapper .catalog-filter-toggle[aria-expanded="true"] {
        border-radius: 25px;
        background: #2a1a0f;
    }

    body .catalog-wrapper .catalog-filter-toggle .filter-toggle-icon {
        transition: transform 0.3s ease;
    }

    body .catalog-wrapper .catalog-filter-toggle[aria-expanded="true"] .filter-toggle-icon {
        transform: rotate(180deg);
    }

    /* Hide filter count on toggle */
    body .catalog-wrapper .filter-toggle-count {
        display: none;
    }

    /* Hide filter buttons by default on mobile */
    body .catalog-wrapper .catalog-filter-buttons {
        display: none !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        margin-top: 12px;
    }

    /* Show filter buttons when expanded */
    body .catalog-wrapper .catalog-filter-buttons.expanded {
        display: grid !important;
        animation: filterButtonsSlideDown 0.3s ease;
    }

    @keyframes filterButtonsSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    body .catalog-wrapper .catalog-filter-btn {
        padding: 10px 12px;
        font-size: 13px;
        text-align: center;
        justify-content: center;
    }

    body .catalog-wrapper .mobile-filter-menu-item:last-child {
        border-bottom: none;
        border-radius: 0 0 6px 6px;
    }

    body .catalog-wrapper .mobile-filter-menu-item:active {
        background: #f5f5f5;
    }

    body .catalog-wrapper .menu-item-arrow {
        color: #999;
        font-size: 18px;
    }

    body .catalog-wrapper .catalog-sort-wrapper {
        width: 100%;
        justify-content: space-between;
    }

    body .catalog-wrapper .catalog-sort-label {
        font-size: 15px;
    }

    /* Mobile Grid - FORCED 2 COLUMNS */
    body .catalog-wrapper .catalog-products {
        padding: 12px !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    body .catalog-wrapper .catalog-products .catalog-product-item {
        flex-direction: column !important;
        padding: 10px !important;
        border: 1px solid #E5E5E5 !important;
        border-radius: 8px !important;
        gap: 8px !important;
        overflow: hidden !important;
        min-width: 0 !important;
        max-width: 100% !important;
        align-items: stretch !important;
        box-sizing: border-box !important;
    }

    body .catalog-wrapper .catalog-products .catalog-product-item:hover {
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }

    body .catalog-wrapper .catalog-products .catalog-product-image {
        width: 100%;
        height: 140px;
    }

    body .catalog-wrapper .catalog-products .catalog-product-image img {
        background: #fff;
        border-radius: 6px;
        padding: 8px;
    }

    body .catalog-wrapper .catalog-products .catalog-product-info {
        gap: 6px;
    }

    body .catalog-wrapper .catalog-products .catalog-product-reviews {
        font-size: 10px;
        height: 18px;
        gap: 4px;
    }

    body .catalog-wrapper .catalog-products .catalog-product-reviews .star-rating {
        font-size: 11px;
    }

    body .catalog-wrapper .catalog-products .catalog-product-name {
        font-size: 12px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        height: 47px;
    }

    body .catalog-wrapper .catalog-products .catalog-product-meta {
        display: none;
    }

    body .catalog-wrapper .catalog-products .catalog-product-purchase {
        align-items: stretch;
        gap: 8px;
        min-width: 0;
        margin-top: auto;
    }

    body .catalog-wrapper .catalog-products .catalog-product-price {
        align-items: center;
        text-align: center;
        min-height: 38px;
        justify-content: center;
    }

    body .catalog-wrapper .catalog-products .catalog-price-current {
        font-size: 16px;
        font-weight: 700;
    }

    body .catalog-wrapper .catalog-products .catalog-price-original {
        font-size: 10px;
        margin-right: 3px;
    }

    body .catalog-wrapper .catalog-products .catalog-price-discount {
        font-size: 10px;
        margin-left: 3px;
    }

    body .catalog-wrapper .catalog-products .catalog-add-to-cart {
        width: 100%;
        height: 36px;
        padding: 0;
        font-size: 11px;
        justify-content: center;
        border-radius: 25px;
    }

    body .catalog-wrapper .catalog-products .catalog-add-to-cart::before {
        display: none;
    }

    body .catalog-wrapper .catalog-pagination {
        position: static !important;
        left: auto !important;
        right: auto !important;
        margin: 18px 0 4px !important;
        width: auto !important;
        max-width: 100% !important;
        padding: 18px 10px 6px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 6px !important;
        background: none !important;
        border: none !important;
        grid-column: 1 / -1 !important;
    }

    body .catalog-wrapper .catalog-pagination ul.page-numbers,
    body .catalog-wrapper .catalog-pagination nav,
    body .catalog-wrapper .catalog-pagination .woocommerce-pagination {
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
    }

    /* Both ul/li structure AND flat structure */
    body .catalog-wrapper .catalog-pagination .page-numbers li a,
    body .catalog-wrapper .catalog-pagination .page-numbers li span,
    body .catalog-wrapper .catalog-pagination > a.page-numbers,
    body .catalog-wrapper .catalog-pagination > span.page-numbers {
        min-width: 42px !important;
        height: 42px !important;
        min-height: 42px !important;
        padding: 0 10px !important;
        font-size: 15px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        color: #5B5249 !important;
        text-decoration: none !important;
        border-radius: 999px !important;
        border: none !important;
        font-weight: 500 !important;
    }

    body .catalog-wrapper .catalog-pagination .page-numbers li span.current,
    body .catalog-wrapper .catalog-pagination > span.page-numbers.current {
        background: #16273E !important;
        color: white !important;
    }

    body .catalog-wrapper .catalog-pagination > a.prev,
    body .catalog-wrapper .catalog-pagination > a.next,
    body .catalog-wrapper .catalog-pagination .page-numbers li a.prev,
    body .catalog-wrapper .catalog-pagination .page-numbers li a.next {
        font-size: 19px !important;
        color: #9A8F80 !important;
    }

    /* Brand Story Mobile Optimization */
    body .catalog-wrapper .brand-story-section {
        margin-top: 40px;
        padding: 30px 15px;
    }

    body .catalog-wrapper .brand-story-content {
        font-size: 14px;
        line-height: 1.6;
    }

    body .catalog-wrapper .brand-story-content h2 {
        font-size: 22px;
        margin: 30px 0 15px 0;
    }

    body .catalog-wrapper .brand-story-content h3 {
        font-size: 18px;
        margin: 20px 0 10px 0;
    }

    body .catalog-wrapper .brand-story-content p {
        margin-bottom: 14px;
    }

    body .catalog-wrapper .brand-story-content ul,
    body .catalog-wrapper .brand-story-content ol {
        margin: 10px 0 20px 15px;
    }

    body .catalog-wrapper .brand-story-content li {
        margin-bottom: 6px;
        font-size: 13px;
    }

    /* Table responsive on mobile - 4 columns fit perfectly */
    body .catalog-wrapper .brand-story-content table {
        font-size: 13px;
        margin: 15px 0;
        width: 100%;
        min-width: auto;
    }

    body .catalog-wrapper .brand-story-content th,
    body .catalog-wrapper .brand-story-content td {
        padding: 10px 8px;
        font-size: 12px;
    }

    body .catalog-wrapper .brand-story-content th {
        font-size: 10px;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        padding: 12px 8px;
    }

    body .catalog-wrapper .brand-story-content img {
        margin: 15px 0;
        border-radius: 6px;
    }
}

/* Medium Desktop */
@media (min-width: 769px) and (max-width: 1024px) {
    body .catalog-wrapper .catalog-products .catalog-product-image {
        width: 170px;
        height: 170px;
    }

    body .catalog-wrapper .catalog-products .catalog-product-name {
        font-size: 17px;
    }

    body .catalog-wrapper .catalog-products .catalog-price-current {
        font-size: 22px;
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    body .catalog-wrapper .catalog-header-left {
        max-width: 700px;
    }

    body .catalog-wrapper .catalog-header-image {
        width: 560px;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

/* ========================================
   MOBILE FILTER TOGGLE (Collapsible)
   ======================================== */

/* Hidden on desktop */
.catalog-filter-toggle {
    display: none !important;
}

@media (max-width: 768px) {
    /* Show toggle button on mobile */
    .catalog-filter-toggle {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: #fff;
        border: 1px solid #5C4033;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        color: #5C4033;
        cursor: pointer;
        transition: all 0.2s ease;
        margin-bottom: 10px;
    }

    .catalog-filter-toggle:active {
        background: #f5f5f5;
    }

    .filter-toggle-icon {
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .catalog-filter-toggle[aria-expanded="true"] .filter-toggle-icon {
        transform: rotate(180deg);
    }

    .filter-toggle-count {
        display: none;
        background: #C9A050;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 10px;
        margin-left: auto;
        margin-right: 8px;
    }

    .filter-toggle-count.active {
        display: inline-block;
    }

    /* Hide old label on mobile */
    .catalog-filter-label {
        display: none !important;
    }

    /* Hide filter buttons by default on mobile */
    .catalog-filter-buttons {
        display: none !important;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        margin-top: 0;
    }

    /* Show filter buttons when expanded */
    .catalog-filter-buttons.expanded {
        display: grid !important;
        animation: filterSlideDown 0.3s ease;
    }

    @keyframes filterSlideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ===== Brand logo slider (/cuban-cigars/ only) ===== */
body .catalog-wrapper .catalog-header.cco-has-slider .catalog-header-left { max-width: 100%; }
.cco-brand-slider { display: flex; align-items: center; gap: 14px; margin: 22px 0 8px; max-width: 100%; }
.cco-bs-arrow {
    flex: 0 0 38px; width: 38px; height: 38px; border-radius: 50%;
    border: 1px solid #d8cfc0; background: #fff; color: #16273E;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; padding: 0; transition: background .2s, color .2s;
}
.cco-bs-arrow:hover { background: #16273E; color: #fff; }
.cco-bs-arrow svg { width: 18px; height: 18px; }
.cco-bs-track {
    display: flex; gap: 22px; overflow-x: auto; flex: 1; min-width: 0;
    scroll-behavior: smooth; scroll-snap-type: x mandatory; padding: 4px 2px;
    scrollbar-width: none; -ms-overflow-style: none;
}
.cco-bs-track::-webkit-scrollbar { display: none; }
.cco-bs-card {
    flex: 0 0 auto; width: 92px; display: flex; flex-direction: column;
    align-items: center; gap: 8px; text-decoration: none; scroll-snap-align: start;
}
.cco-bs-circle {
    width: 72px; height: 72px; border-radius: 50%; overflow: hidden;
    border: 2px solid #c9a961; background: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: transform .2s, box-shadow .2s;
}
.cco-bs-card:hover .cco-bs-circle { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(22,39,62,.18); }
.cco-bs-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cco-bs-initial { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 30px; color: #16273E; background: #f6f1e7; }
.cco-bs-name { font-size: 11.5px; line-height: 1.25; color: #16273E; text-align: center; letter-spacing: .02em; }
.cco-bs-card:hover .cco-bs-name { color: #7a1f2b; }
@media (max-width: 768px) {
    .cco-bs-arrow { display: none; }
    .cco-brand-slider { gap: 0; margin: 16px 0 4px; }
    .cco-bs-card { width: 76px; }
    .cco-bs-circle { width: 58px; height: 58px; }
    .cco-bs-name { font-size: 10.5px; }
}

/* Brand entry in the filter bar */
.cco-brand-filter .filter-options a.filter-option { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.cco-brand-filter .filter-options a.filter-option:hover { background: #f6f1e7; }
.cco-brand-filter .cco-brand-count { font-style: normal; color: #8a8a8a; font-size: 12px; }

/* Copia literal de producción (22-archive-inline-b.css) — no editar a mano; ver src/features/category/scripts/extract-css.py */
/* Filter Dropdowns */
.catalog-filter-dropdown {
    position: relative;
    display: inline-block;
}

/* FIX: redesign-archive.css wrongly applies a card border/shadow/padding to the
   filter WRAPPER (.catalog-filter-dropdown), turning every filter button into a big
   box. That card styling belongs to the popup (.catalog-filter-dropdown-content).
   Higher specificity + !important neutralizes it without editing the cached CSS file. */
body .catalog-wrapper .catalog-filter-left .catalog-filter-dropdown {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
}

/* Desktop: Show full labels, hide short labels */
.filter-label-full {
    display: inline;
}

.filter-label-short {
    display: none;
}

.catalog-filter-dropdown-content {
    display: none !important;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    min-width: 300px;
    max-width: 350px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    z-index: 9999;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid #E5E5E5;
}

.catalog-filter-dropdown.active .catalog-filter-dropdown-content {
    display: block !important;
    animation: slideDown 0.2s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Filter Header with Close Button */
.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    border-bottom: 1px solid #E5E5E5;
    background: linear-gradient(to bottom, #FAFAFA, #F5F5F5);
    border-radius: 6px 6px 0 0;
}

.filter-title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #2C2C2C;
    letter-spacing: 0.3px;
}

.filter-close-btn {
    background: transparent;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    transition: all 0.2s ease;
}

.filter-close-btn:hover {
    background: rgba(0,0,0,0.08);
    color: #333;
    transform: scale(1.05);
}

/* Prevent body scroll when dropdown is open */
body.filter-dropdown-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

/* Mobile Filter Toggle Button - Hidden on desktop */
.catalog-filter-toggle {
    display: none;
}

/* Mobile Styles */
@media (max-width: 768px) {
    /* Mobile Filter Toggle Button */
    .catalog-filter-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        padding: 12px 16px;
        background: #fff;
        border: 1px solid #5C4033;
        border-radius: 6px;
        font-size: 14px;
        font-weight: 600;
        color: #5C4033;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .catalog-filter-toggle:active {
        background: #f5f5f5;
    }

    .filter-toggle-icon {
        transition: transform 0.3s ease;
        font-size: 12px;
    }

    .catalog-filter-toggle[aria-expanded="true"] .filter-toggle-icon {
        transform: rotate(180deg);
    }

    .filter-toggle-count {
        display: none;
        background: #C9A050;
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 2px 8px;
        border-radius: 10px;
        margin-left: 8px;
    }

    .filter-toggle-count.active {
        display: inline-block;
    }

    /* Hide the old label on mobile */
    body .catalog-wrapper .catalog-filter-label {
        display: none !important;
    }

    /* Compact filter buttons layout */
    body .catalog-wrapper .catalog-filter-left {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    /* GRID LAYOUT 2x2 - Hidden by default on mobile */
    body .catalog-wrapper .catalog-filter-buttons {
        display: none;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        margin-top: 10px;
        animation: slideDown 0.3s ease;
    }

    /* Show filter buttons when expanded */
    body .catalog-wrapper .catalog-filter-buttons.expanded {
        display: grid;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .catalog-filter-dropdown {
        width: 100%;
    }

    /* Compact button design */
    body .catalog-wrapper .catalog-filter-btn {
        width: 100%;
        padding: 10px 12px;
        font-size: 12px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        border-width: 1px;
    }

    /* Mobile: Show short labels, hide full labels */
    .filter-label-full {
        display: none !important;
    }

    .filter-label-short {
        display: inline !important;
    }

    .filter-count {
        font-size: 10px;
        padding: 1px 4px;
    }

    /* Hide "Clear All Filters" text on mobile, show only when active */
    .catalog-clear-all-filters {
        font-size: 11px;
        padding: 8px 12px;
        margin-left: 0;
        margin-top: 8px;
        width: 100%;
    }

    /* Ensure dropdowns are hidden until clicked */
    .catalog-filter-dropdown-content {
        display: none !important;
        position: fixed;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%);
        width: 85vw;
        max-width: 380px;
        max-height: 75vh;
        overflow: hidden;
        z-index: 99999;
        box-shadow: 0 8px 24px rgba(0,0,0,0.3);
        border-radius: 8px;
    }

    /* Only show when active */
    .catalog-filter-dropdown.active .catalog-filter-dropdown-content {
        display: block !important;
        animation: slideUp 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .catalog-filter-dropdown.active::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 99998;
        animation: fadeIn 0.2s ease;
        backdrop-filter: blur(2px);
    }

    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }

    @keyframes slideUp {
        from {
            opacity: 0;
            transform: translate(-50%, -45%);
        }
        to {
            opacity: 1;
            transform: translate(-50%, -50%);
        }
    }

    /* Mobile-specific filter header */
    .filter-header {
        padding: 12px 14px;
        border-radius: 8px 8px 0 0;
    }

    .filter-title {
        font-size: 15px;
        font-weight: 600;
    }

    .filter-close-btn {
        width: 28px;
        height: 28px;
        font-size: 24px;
    }

    /* Mobile filter search */
    .filter-search {
        padding: 10px 12px;
    }

    .filter-search-input {
        font-size: 16px;
        padding: 10px 12px;
        border-radius: 6px;
    }

    /* Mobile filter options */
    .filter-options {
        max-height: 45vh;
        padding: 4px 0;
    }

    .filter-option {
        padding: 10px 14px;
        min-height: 44px;
    }

    .filter-option input[type="checkbox"] {
        margin-right: 10px;
        width: 18px;
        height: 18px;
    }

    .filter-option label {
        font-size: 14px;
    }

    /* Mobile filter actions */
    .filter-actions {
        padding: 10px 12px;
        gap: 8px;
    }

    .filter-apply,
    .filter-clear {
        padding: 11px 16px;
        font-size: 14px;
        min-height: 44px;
        border-radius: 6px;
    }
}

.filter-search {
    padding: 12px 14px;
    border-bottom: 1px solid #E5E5E5;
    background: white;
}

.filter-search-input {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #DDD;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
}

.filter-search-input:focus {
    border-color: #16273E;
    box-shadow: 0 0 0 3px rgba(59, 36, 21, 0.1);
}

.filter-options {
    max-height: 280px;
    overflow-y: auto;
    padding: 6px 0;
    background: white;
}

.filter-options::-webkit-scrollbar {
    width: 8px;
}

.filter-options::-webkit-scrollbar-track {
    background: #F5F5F5;
}

.filter-options::-webkit-scrollbar-thumb {
    background: #CCC;
    border-radius: 4px;
}

.filter-options::-webkit-scrollbar-thumb:hover {
    background: #AAA;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.filter-option:hover {
    background: #F8F8F8;
}

.filter-option input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.filter-option label {
    cursor: pointer;
    font-size: 14px;
    color: #333;
    user-select: none;
}

.filter-option span {
    font-size: 14px;
    color: #2C2C2C;
}

.filter-actions {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border-top: 1px solid #E5E5E5;
    background: #FAFAFA;
}

.filter-apply,
.filter-clear {
    flex: 1;
    padding: 10px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-apply {
    background: #16273E;
    color: white;
}

.filter-apply:hover {
    background: #2C1810;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 36, 21, 0.3);
}

.filter-apply:active {
    transform: translateY(0);
}

.filter-clear {
    background: white;
    color: #666;
    border: 1px solid #DDD;
}

.filter-clear:hover {
    background: #F5F5F5;
    border-color: #CCC;
}

.filter-count {
    display: inline-block;
    background: #16273E;
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    margin-left: 4px;
}

.catalog-clear-all-filters {
    padding: 10px 20px;
    background: #E74C3C;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-left: 15px;
    transition: all 0.3s;
}

.catalog-clear-all-filters:hover {
    background: #C0392B;
}

.catalog-active-filters {
    padding: 15px 20px;
    background: #F9F9F9;
    border-bottom: 1px solid #E5E5E5;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.active-filters-label {
    font-weight: 600;
    color: #2C2C2C;
    font-size: 14px;
}

.active-filters-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.active-filter-tag {
    background: #16273E;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.active-filter-tag .remove {
    cursor: pointer;
    font-weight: bold;
}

.catalog-no-products {
    text-align: center;
    padding: 40px 20px;
    font-size: 18px;
    color: #666;
}

.catalog-loading {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666;
}

/* Copia literal de producción (23-archive-mobile-filter.css) — no editar a mano; ver src/features/category/scripts/extract-css.py */
@media (max-width: 768px) {

            /* FILTER BY toggle button */
            .catalog-filter-toggle {
                display: flex !important;
                align-items: center;
                justify-content: center;
                gap: 8px;
                width: 100%;
                padding: 12px 20px;
                background: #16273E;
                border: none;
                border-radius: 25px;
                font-size: 14px;
                font-weight: 600;
                color: white;
                cursor: pointer;
                transition: all 0.3s ease;
            }
            .catalog-filter-toggle:active {
                background: #2a1a0f;
            }
            .catalog-filter-toggle[aria-expanded="true"] {
                background: #2a1a0f;
            }
            .catalog-filter-toggle[aria-expanded="true"] .filter-toggle-icon {
                transform: rotate(180deg);
            }
            .filter-toggle-icon {
                transition: transform 0.3s ease;
                font-size: 12px;
            }
            .filter-toggle-count {
                display: none;
            }
            .catalog-filter-label {
                display: none !important;
            }
            /* Hide old mobile menu - we use filter buttons instead */
            .mobile-filter-menu {
                display: none !important;
            }
            .mobile-filter-dropdown {
                display: block;
                width: 100%;
            }
            /* Filter buttons - hidden by default */
            .catalog-filter-buttons {
                display: none !important;
                grid-template-columns: 1fr 1fr;
                gap: 8px;
                width: 100%;
                margin-top: 12px;
            }
            /* Show filter buttons when expanded */
            .catalog-filter-buttons.expanded {
                display: grid !important;
                animation: filterBtnsSlide 0.3s ease;
            }
            @keyframes filterBtnsSlide {
                from { opacity: 0; transform: translateY(-10px); }
                to { opacity: 1; transform: translateY(0); }
            }
        
}

