/* ===========================================================================
   THE SLOW DRAW — GLOBAL SHOP & ARCHIVE STYLES
   Revision 2026-19-09
   =========================================================================== */
:root { --sd-shop-styles-build: "2026-08-20-zino-img-fix-2"; }

/* ---------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES
   Declared on :root so archive, brand, shop, and category pages inherit them.
   On the homepage, front-page.php redeclares the same values under .sd-home
   (higher specificity) — no visual difference, just redundancy for safety.
   --------------------------------------------------------------------------- */
:root {
    --sdh-bg:             #ffffff;
    --sdh-bg-cream-50:    #F8F8F8;
    --sdh-bg-cream-100:   #F0F0F0;
    --sdh-bg-cream-150:   #E8E8E8;
    --sdh-bg-white:       #FFFFFF;

    --sdh-ink-900:        #111827;
    --sdh-ink-800:        #111827;
    --sdh-ink-700:        #374151;
    --sdh-ink-500:        #4B5563;
    --sdh-ink-400:        #6B7280;
    --sdh-ink-300:        #9CA3AF;

    --sdh-brass:          #c9a45a;
    --sdh-brass-deep:     #7a4f1c;
    --sdh-brass-bg-10:    rgba(201, 164, 90, 0.10);
    --sdh-brass-bg-18:    rgba(201, 164, 90, 0.18);
    --sdh-brass-border-28:rgba(201, 164, 90, 0.28);

    --sdh-border-100:     #E8EAED;
    --sdh-border-150:     #D8DDE3;

    --sdh-radius-pill:    999px;
    --sdh-radius-card:    clamp(20px, 2vw, 26px);
    --sdh-radius-shell:   clamp(1.7rem, 2.6vw, 2.7rem);

    --sdh-shadow-rest:    0 4px 20px rgba(17, 24, 39, 0.04);
    --sdh-shadow-hover:   0 20px 45px rgba(17, 24, 39, 0.08);

    --sdh-ease:           cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------------------------
   FILTERS
   --------------------------------------------------------------------------- */
.filter-content { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; }
.filter-content.open { max-height: 500px; transition: max-height 0.5s ease-in; }
.filter-btn::after { content: '+'; float: right; transition: transform 0.3s; }
.filter-btn.active::after { content: '-'; transform: rotate(180deg); }
#sidebar-filter.active { transform: translateX(0); }
#filter-overlay.active { display: block; opacity: 1; }

@media (max-width: 1024px) {
    #sidebar-filter {
        position: fixed;
        top: 0;
        left: 0;
        height: 100% !important;
        width: min(85%, 380px);
        background: white;
        z-index: 50;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        /* Trimmed from 2rem — that plus the inner card's own p-6 (24px) ate
           112px of the 380px drawer before any text started, which is why
           brand names were cropping. Reclaiming space here instead of just
           relying on wrap. */
        padding: 1.25rem;
        /* Top padding is bigger than the other 3 sides on purpose — "FILTERS"
           was rendering clipped against the physical top edge on a real Android
           device. env(safe-area-inset-top) only covers hardware notches (iPhone
           Dynamic Island) and is 0 on Android, so it didn't help there — some
           mobile browsers' address bar can still overlap a fixed top:0 panel
           right when it opens, before any scroll has happened. There's no CSS
           way to detect that overlap, so this is a fixed, generous buffer
           instead of a precise one. Bottom keeps the same notch/home-indicator
           handling as before. */
        padding-top: calc(2.5rem + env(safe-area-inset-top));
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    /* Neutralize "sticky top-24" (Tailwind's position:sticky; top:6rem/96px) —
       those are plain, non-responsive utility classes on the inner card, meant
       for the DESKTOP persistent sidebar (clearing the fixed site header while
       the long page scrolls). They're active at every width, so inside this
       self-contained mobile/tablet drawer they were pinning the whole card
       ~96px down from the drawer's own top — pushing "FILTERS" and everything
       below it mostly or fully out of view on shorter screens. There's no
       fixed header to clear in here, so it's just static positioning instead. */
    #sidebar-filter .sticky.top-24 {
        position: static;
        top: 0;
    }
    /* Inner filter card (".bg-white...p-6") — same space-reclaiming trim as
       the aside padding above. Targeted via the stable, unbracketed parent
       chain instead of the arbitrary-value classes on the card itself. */
    #sidebar-filter .sticky.top-24 > div {
        padding: 1rem;
    }
    /* Extra cushion specifically above "FILTERS" — on top of the drawer's own
       top padding and the sticky-neutralization fix above, this heading row
       still kept showing partially clipped against the very top edge in
       testing. Rather than keep enlarging the outer padding (which pushes
       every side, not just the top), this targets just the heading row with
       its own margin so there's a guaranteed gap before any content starts. */
    .sd-filters-heading-row {
        margin-top: 1.25rem;
    }
    #filter-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        display: none;
        z-index: 45;
    }
    /* Belt-and-suspenders alongside the JS position:fixed body lock in
       toggleMobileFilter() — see archive-product.php / taxonomy-product_cat.php /
       taxonomy-product_brand.php. iOS Safari lets background content scroll behind
       a fixed-position drawer unless the body itself is pinned. */
    body.drawer-open {
        overflow: hidden;
    }
    /* "Close filters" X button — was 32x32px (Tailwind w-8 h-8), under Apple's
       44x44px minimum tap target. w-11/h-11 don't exist in the precompiled
       Tailwind build, so sized here instead (same load-order override pattern
       as the sidebar width above). */
    button[aria-label="Close filters"] {
        width: 44px;
        height: 44px;
    }
    /* Brand names were truncating to "Davidoff Co…" / "VegaFina C…" in the
       narrower off-canvas drawer — wrap to 2 lines instead of ellipsis-cropping
       (same pattern already used for ACF dimension strings, see MOBILE · meta
       fields below). Desktop sidebar is wide enough (30% split) that names
       fit on one line there, so this is scoped to mobile/tablet only.
       Selector is "#sidebar-filter .sd-shop-brand-name" (not the bare class)
       so its specificity (1,1,0) beats the unconditional base rule at line
       ~290 regardless of source order — !important added on top of that as
       a second guarantee, since this exact property kept visually failing to
       take effect across multiple test rounds despite verified-correct CSS. */
    #sidebar-filter .sd-shop-brand-name {
        overflow: visible !important;
        text-overflow: clip !important;
        white-space: normal !important;
        word-break: break-word !important;
        line-height: 1.25;
    }
}

/* ---------------------------------------------------------------------------
   TABLET-WIDTH DRAWER — iPad-class devices get a much wider drawer than phones
   Tablets (768–1024px) were falling into the same 380px-max phone drawer as a
   360px iPhone — proportionally that's a narrow sliver on a 768–1024px-wide
   screen. This tier overrides just the width for that range — min(65%, 520px)
   instead of min(85%, 380px) — so the drawer reads as a deliberate, modern
   panel rather than a leftover phone width, while still leaving some dimmed
   backdrop visible at the edge (tap-to-close affordance).
   --------------------------------------------------------------------------- */
@media (min-width: 768px) and (max-width: 1024px) {
    #sidebar-filter {
        width: min(65%, 520px);
    }
}

/* ---------------------------------------------------------------------------
   DESKTOP SIDEBAR — independent scroll region
   The filter card is "position: sticky" so it stays pinned while the page
   scrolls, but with a long "Shop by Brands" list it can grow taller than the
   viewport. Capping its height and giving it its own scrollbar means hovering
   the mouse over the sidebar and scrolling moves the filter list, not the
   whole page. Scoped to desktop only — mobile already gets its own full-height
   overflow-y:auto on #sidebar-filter itself (off-canvas panel, see above).

   max-height/overflow-y live on the INNER card (".sticky.top-24 > div"), not
   on ".sticky.top-24" itself (2026-09-03 fix) — putting overflow:auto on the
   same element that has position:sticky is a known CSS conflict: a stickily
   positioned box computes its "stuck" offset relative to its own nearest
   scrolling ancestor, and an element can't be its own scrolling ancestor, so
   browsers effectively drop the sticky behavior for that box. The visible
   symptom here was a scrollbar that never actually scrolled — the box was
   still capped at max-height with overflow:auto, but sticky positioning had
   silently stopped working on it, so it wasn't stuck to the right position
   for the scroll to reveal anything past the fold. Splitting the two
   properties onto separate nested elements is the standard fix: the outer
   ".sticky.top-24" keeps position:sticky + top (nothing else), and the inner
   card is what actually scrolls. */
@media (min-width: 1025px) {
    /* Sidebar / content split — 29% / 71% — deliberately plain CSS, not a
       Tailwind utility class. This theme's Tailwind file
       (assets/css/style-tailwind.css) is a precompiled/purged static build,
       not a live JIT compiler — arbitrary-value classes like lg:w-[29%] only
       work if they already existed in that file when it was last built,
       otherwise they're silently dead weight. Setting the width here instead
       guarantees it always applies, since this stylesheet is a real file we
       control and it loads after the Tailwind file in wp_head (see
       functions.php enqueue order), so it reliably wins regardless of the
       compiled build's state.
       flex: 0 0 29% locks the sidebar to exactly 29% (no grow, no shrink);
       <main class="flex-1 ..."> (flex: 1 1 0%) then absorbs the remaining
       71% automatically — the two always add up to 100% since there's no
       gap/margin between them in the container. */
    #sidebar-filter {
        width: 29%;
        max-width: 29%;
        flex: 0 0 29%;
    }
    #sidebar-filter .sticky.top-24 > div {
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: var(--sdh-border-150) transparent;
    }
    #sidebar-filter .sticky.top-24 > div::-webkit-scrollbar {
        width: 6px;
    }
    #sidebar-filter .sticky.top-24 > div::-webkit-scrollbar-track {
        background: transparent;
    }
    #sidebar-filter .sticky.top-24 > div::-webkit-scrollbar-thumb {
        background: var(--sdh-border-150);
        border-radius: 999px;
    }
    #sidebar-filter .sticky.top-24 > div::-webkit-scrollbar-thumb:hover {
        background: var(--sdh-ink-300);
    }
}

/* ---------------------------------------------------------------------------
   SHOP BY BRANDS — modernized brand filter list (logo thumbnail + name + count)
   Used on archive-product.php, taxonomy-product_cat.php, taxonomy-product_brand.php
   Taller than a plain text list, so #brand-opt.open needs a higher max-height
   than the shared .filter-content.open default (500px) to avoid clipping.
   --------------------------------------------------------------------------- */
#brand-opt.open { max-height: 3000px; }

.sd-shop-brand-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.5rem;
}

.sd-shop-brand-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.5rem 0.6rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--sdh-ink-700);
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.2s var(--sdh-ease), border-color 0.2s var(--sdh-ease), transform 0.2s var(--sdh-ease);
}

.sd-shop-brand-item:hover {
    background: var(--sdh-brass-bg-10);
    border-color: var(--sdh-brass-border-28);
    transform: translateX(2px);
}

.sd-shop-brand-item.is-active {
    background: var(--sdh-brass-bg-18);
    border-color: var(--sdh-brass-border-28);
}

.sd-shop-brand-item.is-active .sd-shop-brand-name {
    color: var(--sdh-brass-deep);
    font-weight: 600;
}

.sd-shop-brand-logo {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--sdh-bg-cream-50);
    border: 1px solid var(--sdh-border-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sd-shop-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
}

.sd-shop-brand-logo__fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--sdh-brass-deep);
    background: var(--sdh-brass-bg-10);
    text-transform: uppercase;
}

.sd-shop-brand-name {
    flex: 1 1 auto;
    font-size: 0.92rem;
    line-height: 1.3;
    color: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sd-shop-brand-count {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: var(--sdh-ink-400);
    background: var(--sdh-bg-cream-100);
    border-radius: var(--sdh-radius-pill);
    padding: 0.1rem 0.5rem;
    min-width: 1.6em;
    text-align: center;
}

/* ---------------------------------------------------------------------------
   SHOP BY BRANDS — grouped sections (World Cigar Collection / Habanos Collection)
   A group is a clickable heading (links to the parent brand's own archive)
   followed by an indented list of its child-brand rows (.sd-shop-brand-item).
   --------------------------------------------------------------------------- */
.sd-shop-brand-group {
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px dashed var(--sdh-border-100);
}

.sd-shop-brand-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sd-shop-brand-group__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100% !important;
    box-sizing: border-box;
    padding: 0.65rem 1rem;
    border-radius: var(--sdh-radius-pill) !important;
    text-decoration: none;
    color: var(--sdh-ink-700) !important;
    background: var(--sdh-bg-cream-50) !important;
    border: 1px solid var(--sdh-border-100) !important;
    box-shadow: none !important;
    transition: border-color 0.2s var(--sdh-ease), transform 0.2s var(--sdh-ease), box-shadow 0.2s var(--sdh-ease);
    /* Reset native <button> chrome — the World Cigars / Habanos headings
       render as real <button> elements (for the collapsible ones) so
       toggleFilter() can manage focus/aria state, but without this reset
       they inherit the browser's default button font, centered text, and
       native focus ring — which on macOS/Windows renders in the system's
       accent color (can be pink/magenta depending on the user's OS theme,
       not anything we set). Swapped for a deliberate brass focus style below
       instead of just deleting focus indication outright. !important added
       on every color/shape property here and on every state below since
       this exact component kept showing a native pink regardless of the
       unprefixed version — this removes any remaining doubt about a
       higher-specificity or later rule winning instead. */
    font: inherit;
    text-align: left;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
    /* Kills the mobile "tap flash" overlay some browsers show on touch —
       another spot a system accent color (incl. pink) could otherwise leak
       through, on top of the focus-ring/active-state fixes below. */
    -webkit-tap-highlight-color: transparent;
}

/* Every interaction state gets an explicit, on-brand value below — hover,
   active (pressed) and focus-visible — so there's no state left for the
   browser to fall back to its own native default for, which is what was
   showing the system accent color (pink, on this machine) instead of our
   palette. */
.sd-shop-brand-group__heading:hover {
    background: var(--sdh-bg-cream-50) !important;
    border-color: var(--sdh-border-150) !important;
    transform: translateY(-1px);
}

.sd-shop-brand-group__heading:active {
    background: var(--sdh-brass-bg-18) !important;
    border-color: var(--sdh-brass-border-28) !important;
    transform: translateY(0);
}

.sd-shop-brand-group__heading:focus-visible {
    background: var(--sdh-bg-cream-50) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px var(--sdh-bg-white), 0 0 0 4px var(--sdh-brass) !important;
}

.sd-shop-brand-group__heading.is-active {
    background: var(--sdh-brass-bg-18);
    border-color: var(--sdh-brass-border-28);
}

.sd-shop-brand-group__heading.is-active .sd-shop-brand-group__title {
    color: var(--sdh-brass-deep);
}

.sd-shop-brand-group__title {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--sdh-ink-700);
}

.sd-shop-brand-group__count {
    flex: 0 0 auto;
    font-size: 0.78rem;
    color: var(--sdh-ink-400);
    background: white;
    border-radius: var(--sdh-radius-pill);
    padding: 0.1rem 0.5rem;
    min-width: 1.6em;
    text-align: center;
}

/* World Cigars / Habanos Cigars headings — collapsible +/- toggle (button
   version only; the plain-link fallback with no children never gets this
   wrapper). Count badge + icon are grouped in their own flex span so
   the heading's own space-between doesn't push them apart from each other. */
.sd-shop-brand-group__end {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.sd-shop-brand-group__toggle-icon {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    color: var(--sdh-ink-400);
    transition: transform 0.25s var(--sdh-ease), color 0.2s var(--sdh-ease);
}

.sd-shop-brand-group__toggle-icon svg {
    width: 12px;
    height: 12px;
    display: block;
}

/* Chevron points down at rest, rotates to point up when expanded — same
   stroke-based arrow already used for "Cigar Accessories" etc, just rotated,
   so the whole sidebar shares one consistent icon language. */
.sd-shop-brand-group__heading.active .sd-shop-brand-group__toggle-icon {
    transform: rotate(180deg);
    color: var(--sdh-brass-deep);
}

.sd-shop-brand-group__children {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.4rem 0 0.2rem 0.9rem;
    border-left: 2px solid var(--sdh-border-100);
    margin-left: 0.6rem;
}

/* Reusing the shared .filter-content collapse mechanism (max-height:0 by
   default, toggled to .open via toggleFilter()) — but its default 500px
   .open cap is too small for a full brand list, same reasoning as
   #brand-opt.open below. */
.sd-shop-brand-group__children.open {
    max-height: 3000px;
}

.sd-shop-brand-group__children .sd-shop-brand-item {
    padding: 0.4rem 0.5rem;
}

/* ---------------------------------------------------------------------------
   SHOP HEADER CARD
   --------------------------------------------------------------------------- */
.shop-header-card {
    position: relative;
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    background: #fff;
    border-radius: clamp(16px, 2vw, 24px);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
    overflow: hidden;
    border: 1px solid #f0f0f0;
}

.shop-header-card h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    font-weight: 900;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    line-height: 1.1;
}

.shop-header-card p {
    color: #666;
    max-width: 600px;
    position: relative;
    z-index: 2;
    font-size: clamp(13px, 1.2vw, 14px);
    line-height: 1.6;
    margin-top: clamp(0.5rem, 1vw, 0.75rem);
}

/* Background watermark — brand name as soft overlay behind header text */
.bg-watermark {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Poppins', sans-serif;
    font-size: clamp(6rem, 15vw, 15rem);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: uppercase;
    color: #9b6b28;
    opacity: 0.05;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

@media (max-width: 768px) { .bg-watermark { display: none; } }

/* Loading spinner state */
.archive-card-btn--cart.loading,
.archive-card-actions button.archive-card-btn--cart.loading,
.archive-card-actions a.archive-card-btn--cart.loading,
.ajax_add_to_cart.loading,
.js-sd-drawer-add-to-cart.loading {
    color: transparent !important;
    text-shadow: none !important;
    border-color: #111827 !important;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.08) !important;
    pointer-events: none;
}

.archive-card-btn--cart.loading::before,
.archive-card-actions button.archive-card-btn--cart.loading::before,
.archive-card-actions a.archive-card-btn--cart.loading::before,
.ajax_add_to_cart.loading::before,
.js-sd-drawer-add-to-cart.loading::before {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 34px; height: 34px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(17, 24, 39, 0.07) 0%, rgba(17, 24, 39, 0.03) 58%, rgba(17, 24, 39, 0) 72%);
    animation: archiveLoaderPulse 1.4s ease-in-out infinite;
    z-index: 1;
}

.archive-card-btn--cart.loading::after,
.archive-card-actions button.archive-card-btn--cart.loading::after,
.archive-card-actions a.archive-card-btn--cart.loading::after,
.ajax_add_to_cart.loading::after,
.js-sd-drawer-add-to-cart.loading::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: 18px; height: 18px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    border: 2px solid rgba(17, 24, 39, 0.14);
    border-top-color: #111827;
    border-right-color: #111827;
    animation: archiveCartSpin 0.72s linear infinite;
    z-index: 2;
}

@keyframes archiveCartSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes archiveLoaderPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(0.92); opacity: 0.75; }
    50%       { transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

/* ---------------------------------------------------------------------------
   EMPTY STATE
   --------------------------------------------------------------------------- */
.shop-empty-state {
    margin: clamp(2rem, 4vw, 4rem) 0;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(180deg, #ffffff 0%, #fcfcfc 100%);
    border: 1px solid #eef0f3;
    border-radius: clamp(20px, 2vw, 28px);
    box-shadow: 0 6px 24px rgba(17, 24, 39, 0.04);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(0.65rem, 1.2vw, 1rem);
    animation: shopEmptyFadeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shop-empty-state__visual { width: clamp(88px, 11vw, 124px); height: clamp(88px, 11vw, 124px); margin-bottom: clamp(0.4rem, 0.8vw, 0.75rem); display: flex; align-items: center; justify-content: center; }
.shop-empty-state__icon { width: 100%; height: 100%; filter: drop-shadow(0 4px 14px rgba(155, 107, 40, 0.10)); }

.shop-empty-state__eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(155, 107, 40, 0.08);
    border: 1px solid rgba(155, 107, 40, 0.22);
    color: #9b6b28;
    font-size: clamp(9px, 0.75vw, 10.5px);
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1;
}

.shop-empty-state__title { margin: 0; font-size: clamp(1.25rem, 2.5vw, 1.85rem); font-weight: 800; color: #111827; letter-spacing: -0.015em; line-height: 1.2; max-width: 32ch; }
.shop-empty-state__description { margin: 0; max-width: 480px; font-size: clamp(0.875rem, 1.1vw, 1rem); line-height: 1.65; color: #6b7280; }

.shop-empty-state__actions { margin-top: clamp(0.9rem, 1.4vw, 1.4rem); display: flex; flex-wrap: wrap; gap: clamp(0.5rem, 1vw, 0.85rem); justify-content: center; }

.shop-empty-state__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: clamp(0.65rem, 1vw, 0.875rem) clamp(1.35rem, 2vw, 1.85rem);
    font-size: clamp(0.7rem, 0.85vw, 0.8rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 999px;
    border: 1.5px solid transparent;
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1), background 0.24s ease, color 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
    cursor: pointer;
}

.shop-empty-state__btn--primary { background: #111111; color: #ffffff; box-shadow: 0 8px 20px rgba(17, 24, 39, 0.14); }
.shop-empty-state__btn--primary:hover { background: #9b6b28; color: #ffffff; transform: translateY(-2px); box-shadow: 0 14px 28px rgba(155, 107, 40, 0.24); }
.shop-empty-state__btn--secondary { background: #ffffff; color: #111111; border-color: #d1d5db; }
.shop-empty-state__btn--secondary:hover { border-color: #111111; transform: translateY(-2px); }

@keyframes shopEmptyFadeIn { 0% { opacity: 0; transform: translateY(10px) scale(0.98); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

@media (prefers-reduced-motion: reduce) {
    .shop-empty-state { animation: none; }
    .shop-empty-state__btn:hover { transform: none; }
}

@media (max-width: 480px) {
    .shop-empty-state__title { font-size: 1.25rem; }
    .shop-empty-state__description { font-size: 0.875rem; }
    .shop-empty-state__actions { flex-direction: column; width: 100%; max-width: 280px; }
    .shop-empty-state__btn { width: 100%; }
}

/* ---------------------------------------------------------------------------
   PAGINATION
   --------------------------------------------------------------------------- */
.modern-pagination { margin-top: clamp(2rem, 4vw, 4rem); }

.modern-pagination ul { display: flex; justify-content: center; align-items: center; gap: clamp(6px, 0.8vw, 10px); list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }

.modern-pagination li a,
.modern-pagination li span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(36px, 3vw, 42px);
    height: clamp(36px, 3vw, 42px);
    border-radius: 9999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #000;
    font-weight: 700;
    transition: all 0.3s ease;
}

.modern-pagination li a:hover,
.modern-pagination li span.current { background: #000; color: #fff; border-color: #000; }

/* ---------------------------------------------------------------------------
   CATEGORY HERO
   --------------------------------------------------------------------------- */
.sd-category-hero {
    position: relative;
    background: radial-gradient(circle at top right, rgba(155, 107, 40, 0.05), transparent 30%), #fff;
    overflow: hidden;
}

.sd-category-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
   /* gap: clamp(24px, 4vw, 60px);*/
   gap: 12px;
    align-items: center;
}

.sd-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid rgba(155, 107, 40, 0.30); color: #9b6b28; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1rem; }
.sd-hero-title { font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; line-height: 0.95; text-transform: uppercase; margin-bottom: 1rem; word-spacing: 10px; }
.sd-hero-title span { color: #9b6b28; }
.sd-hero-copy { font-size: clamp(13px, 1.1vw, 15px); line-height: 1.8; color: #575757; max-width: 600px; }
.sd-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.5rem; }
.sd-hero-meta span { background: #fcfbf9; border: 1px solid #ece7df; border-radius: 999px; padding: 8px 14px; font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }

.sd-hero-visual { position: relative; background: #fff; border: 1px solid rgba(0,0,0,0.05); border-radius: 24px; padding: 20px; box-shadow: 0 10px 40px rgba(0,0,0,0.03); display: flex; align-items: center; justify-content: center; z-index: 2; }
/* 2026-09-14 — removed the flat `min-height: 300px` floor. The box has no
 * aspect-ratio of its own; it was just wrapping the image (object-fit:
 * contain, height:auto) plus 20px padding, so for any logo shorter/narrower
 * than a 260px-tall render, the fixed 300px floor left dead white space
 * above/below it (confirmed live: Romeo Y Julieta rendered its ~201px-tall
 * logo inside a 300px box on mobile). Letting the box hug its own content
 * (image + padding) removes that gap everywhere .sd-hero-visual is used
 * (taxonomy-product_cat.php, taxonomy-product_brand.php, accessories.php) —
 * mobile/tablet/desktop/laptop alike. */
.sd-hero-visual img { max-width:100%; height: auto; object-fit: contain; }
/* 2026-09-14 — desktop/laptop only: the image previously scaled to the box's
 * full available width (max-width:100%), which for a roughly square/portrait
 * logo made the rendered image (and, with min-height removed above, the box
 * that hugs it) taller than intended on wide screens. Capping the image's own
 * width forces a smaller, tighter box while the logo still reads as
 * prominent within it — narrower box, same visual weight. Laptop (1025–
 * 1279px, Tailwind's `lg` tier) gets a larger percentage than desktop
 * (1280px+, `xl` tier) because the grid column itself is narrower there, so
 * a bigger share of a smaller box is needed to keep the logo reading at a
 * similar size. Mobile/tablet keep the original 100% — only the box-height
 * fix above applies there, per instruction ("logo is fixed" on mobile). */
/* 2026-09-14 — desktop/laptop: shrink the box itself AND enlarge the logo
 * within it, at the same time, for every brand/category logo regardless of
 * its own aspect ratio (audited all 42 term logos on file: ratios range
 * from ~1.04:1, near-square — Montecristo/Trinidad — to ~5.46:1, a wide
 * banner — Habanos). A plain `max-width: N%` on the image (the previous
 * approach) ties the box's height to whatever the image's own aspect ratio
 * produces at that width — great for wide logos, but a square logo at a
 * bigger max-width makes an equally taller, bigger box, working against
 * "make the section smaller." Giving `.sd-hero-visual` itself a fixed,
 * smaller footprint (capped width + a fixed aspect-ratio) and letting the
 * image fill that exact frame via `object-fit: contain` solves both at
 * once: the box's size is now fixed and small regardless of which logo is
 * inside it, and `object-fit: contain` guarantees the logo scales up to
 * fill as much of that frame as its own shape allows — bigger than before
 * — without ever cropping or stretching, for any of the 42 aspect ratios on
 * file. Laptop's frame is a little smaller than desktop's, matching its
 * narrower grid column. */
@media (min-width: 1280px) {
    .sd-hero-visual { max-width: 300px; aspect-ratio: 4 / 3; margin: 0 auto; }
    .sd-hero-visual img { width: 100%; height: 100%; max-width: 100% !important; object-fit: contain; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
    .sd-hero-visual { max-width: 260px; aspect-ratio: 4 / 3; margin: 0 auto; }
    .sd-hero-visual img { width: 100%; height: 100%; max-width: 100% !important; object-fit: contain; }
}
@media (max-width: 767px) {
    .sd-hero-visual img { width: 100%; height: 100%; max-width: 100px !important; object-fit: contain; }
}

/* 2026-09-14 — mobile-only padding reduction for the Category/Brand/
 * Accessories hero card's own inner wrapper (`<div class="p-6 md:p-10
 * lg:p-12">` in taxonomy-product_cat.php / taxonomy-product_brand.php /
 * accessories.php). `.p-6`/`.md:p-10`/`.lg:p-12` are shared Tailwind
 * utilities used all over the site (e.g. the sidebar filter card), so
 * editing their global definitions in the compiled Tailwind build file
 * would change padding everywhere those classes appear — not just this
 * hero box. Targeting the exact 3-class combination, scoped under
 * `.sd-category-hero` and capped to below the `md` breakpoint, hits only
 * this one wrapper and only on mobile; verified live beforehand that the
 * current mobile value is 24px (1.5rem, standard `.p-6`), not the 0.5rem
 * initially thought to be live — confirmed desktop's `lg:p-12` (3rem) is
 * unaffected and correct as-is, untouched here. */
@media (max-width: 767px) {
    .sd-category-hero > .p-6.md\:p-10.lg\:p-12 {
        padding: 0.5rem;
    }
}

.sd-watermark { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 100%; font-size: clamp(3rem, 12vw, 12rem); font-weight: 900; line-height: 0.7; opacity: 0.03; pointer-events: none; user-select: none; white-space: nowrap; text-align: center; z-index: 0; letter-spacing: -0.05em; text-transform: uppercase; }

@media (max-width: 1024px) {
    .sd-category-grid { grid-template-columns: 1fr; text-align: center; }
    .sd-hero-copy, .sd-hero-meta { margin-left: auto; margin-right: auto; justify-content: center; }
    .sd-watermark { font-size: clamp(3rem, 20vw, 8rem); top: 50%; }
}

/* Tablet only — desktop grid keeps the visual column narrow on its own;
   mobile's full-width column is narrow enough that no cap is needed. */
@media (max-width: 1024px) and (min-width: 768px) {
    .sd-hero-visual { max-width: 280px; margin: 0 auto; }
}
@media (max-width: 767px) {
    .sd-hero-meta {
        flex-wrap: nowrap;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .sd-hero-meta span {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 4px 7px;
        font-size: 6.5px;
    }
}

/* ---------------------------------------------------------------------------
   ARCHIVE META GRID — watch-dial style
   --------------------------------------------------------------------------- */
.sd-arch-meta {
    display: grid;
    gap: 0;
    margin-top: auto;
    padding-block: clamp(9px, 1.3vw, 13px);
    border-top:    1px solid rgba(176, 141, 87, 0.28);
    border-bottom: 1px solid rgba(176, 141, 87, 0.28);
    width: 100%;
    align-self: stretch;
}

.sd-arch-meta--2col { grid-template-columns: repeat(2, 1fr); }
.sd-arch-meta--solo { grid-template-columns: 1fr; }

.sd-arch-meta__item {
    padding: clamp(3px, 0.5vw, 5px) clamp(6px, 1vw, 10px);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(3px, 0.4vw, 4px);
    min-height: 0;
}

.sd-arch-meta__item + .sd-arch-meta__item { border-left: 1px solid rgba(176, 141, 87, 0.28); }
.sd-arch-meta__item strong { font-size: clamp(11px, 0.9vw, 13px); color: #111827; font-weight: 700; letter-spacing: -0.01em; line-height: 1.2; font-variant-numeric: tabular-nums; }
.sd-arch-meta__item span  { font-size: clamp(7.5px, 0.62vw, 9px); color: #9b6b28; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.1; }

@media (max-width: 767px) {
    .sd-arch-meta { padding-block: clamp(7px, 1.8vw, 9px); }
    .sd-arch-meta__item { padding: 1px clamp(3px, 1vw, 5px); }
    .sd-arch-meta__item strong { font-size: 9px; white-space: normal; }
    .sd-arch-meta__item span  { font-size: 7.5px; }
}


/* ── UNIFIED CARD · .sdh-card (homepage + archive) ── */
/* ============================================================
 * HOMEPAGE INLINE CARD · .sdh-card · premium modern UI
 *
 * Completely isolated from .archive-product-card (shop archive).
 * IMAGE (priority 60%) · INFO (auto-grow, never crops) · viewport-aware.
 * Brass accents, navy ink, cream backgrounds.
 * ============================================================ */
.sdh-card {
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	/* Card height scales with viewport so image fills ~65% across all breakpoints.
	 * ×1.05 then ×1.10 more (2026-09-10, test) — original was clamp(400px, 34vw, 480px). */
	min-height: clamp(462px, 39.6vw, 554.4px);
	border-radius: clamp(16px, 1.4vw, 22px);
	border: 1px solid var(--sdh-border-100);
	background: #ffffff;                                /* white · was cream gradient, now matches product photo bg */
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 2px 6px rgba(17, 24, 39, 0.04),
		0 8px 20px rgba(17, 24, 39, 0.05);
	/* Allow content to determine size — no clipping if info exceeds 35% */
	overflow: hidden;
	cursor: pointer;
	text-decoration: none !important;
	color: inherit;
	font-family: inherit;
	isolation: isolate;
	position: relative;
	/* Touch: eliminates 300ms tap delay on Android Chrome / Samsung / Firefox Android.
	 * Also removes the ghost blue highlight flash on Android. */
	touch-action: manipulation;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
	            border-color 0.3s var(--sdh-ease),
	            box-shadow 0.3s var(--sdh-ease);
}
/* 2026-09-11 — cigar cards only, +15% card height so the zoomed cigar photo
 * (see .sdh-card--cigar .sdh-card__img, scale(1.35)) has enough room. Was
 * clamp(462px, 39.6vw, 554.4px) — same as the shared base above. */
.sdh-card--cigar {
	min-height: clamp(531.3px, 45.54vw, 637.56px);
}
.sdh-card::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--sdh-brass) 0%, var(--sdh-brass-deep) 50%, var(--sdh-brass) 100%);
	opacity: 0;
	transition: opacity 0.35s var(--sdh-ease);
	z-index: 4;
}
/* ── Real pointer (mouse/trackpad): card lifts + border + shadow on hover ── */
@media (hover: hover) and (pointer: fine) {
	.sdh-card:hover {
		transform: translateY(-6px);
		border-color: var(--sdh-brass);
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 0.85) inset,
			0 4px 14px rgba(201, 164, 90, 0.10),
			0 24px 48px rgba(201, 164, 90, 0.18);
	}
	.sdh-card:hover::before { opacity: 1; }
	.sdh-card:active {
		transform: translateY(-3px) scale(0.998);
	}
}

/* ── Touch / iOS: card must NOT move when Buy Now overlay is revealed ──────────
 * iOS simulates :hover on tap, so without this guard translateY(-6px) fires
 * the instant the user touches the image — the card jumps up, the Buy Now
 * pill shifts with it, and the user's tap lands on empty space.
 * Fix: no Y movement on touch. Visual feedback via .is-img-tapped instead. ── */
@media (hover: none) and (pointer: coarse) {
	.sdh-card:hover {
		transform: none; /* block iOS :hover simulation entirely */
	}
	.sdh-card:active {
		transform: scale(0.98); /* scale-only press feedback — no Y displacement */
	}
	/* Border + shadow + brass bar appear when image is tapped (replaces :hover cues) */
	.sdh-card.is-img-tapped {
		border-color: var(--sdh-brass);
		box-shadow:
			0 1px 0 rgba(255, 255, 255, 0.85) inset,
			0 4px 14px rgba(201, 164, 90, 0.10),
			0 24px 48px rgba(201, 164, 90, 0.18);
	}
	.sdh-card.is-img-tapped::before { opacity: 1; }
}
/* 2026-09-12 — iOS ONLY, homepage rail cards only: a document-level empty
 * touchstart listener (homepage-hero.js, added for an unrelated vault-
 * button press effect) has the side effect of making iOS fire :active on
 * elements inside ANY scrollable container — including these cards inside
 * .sd-rail__track's horizontal scroller. That meant swiping the rail
 * left-to-right visibly shrank whichever card the finger started on, for
 * the duration of the drag, since iOS doesn't crisply cancel :active once
 * a scroll is confirmed. Reported live on iPhone. `-webkit-touch-callout`
 * is supported only by WebKit on iOS (not Android, not desktop), so this
 * scopes the fix to iOS specifically, same technique as the scroll-flicker
 * fix above. Shop/category grid cards (not inside a horizontal scroller,
 * so this quirk doesn't apply there) keep the normal tap feedback. */
@supports (-webkit-touch-callout: none) {
	@media (hover: none) and (pointer: coarse) {
		/* 2026-09-12 — widened from rail-only to every product card: reported
		 * still shrinking on tap anywhere, not just during a rail drag.
		 * Removes the .sdh-card:active scale(0.98) press-feedback entirely
		 * on iOS, everywhere (shop grid included), while leaving Android's
		 * press feedback untouched. */
		.sdh-card:active {
			transform: none;
		}
	}
}
.sdh-card:focus-visible {
	outline: 2px solid var(--sdh-brass);
	outline-offset: 3px;
}

/* ============================================================
 * MEDIA · 65% target · flex-grows to fill remaining card height
 * after the info block takes its natural size. min-height prevents
 * collapse when card content is taller than expected.
 * White background matches product photo whites exactly — no visible seam.
 * ============================================================ */
.sdh-card__media {
	/* 2026-09-14 — was flex: 1 1 0% + height: auto (flex-grow absorbing whatever
	 * leftover space the grid's row-stretch left over). Two row-mate cards with
	 * even slightly different .sdh-card__info content height (e.g. a title
	 * wrapping 1 vs 2 lines within its reserved box, or a missing meta row like
	 * "PRICE PER BOX") produced two *different* media-box heights in the very
	 * same row (confirmed live: 243.75px vs 256.3px), which shows up as the
	 * border-top line + brand pill above .sdh-card__info sitting at a different
	 * height card to card. Fixed height instead of flex-grow — same clamp value
	 * that was already the min-height floor — makes every card's photo box the
	 * same height in every row, full stop. Does NOT touch .sdh-card__img's own
	 * zoom sizing (width/height: 128.25%) or any breakpoint-specific min-height
	 * override below/elsewhere — those still apply on top of this via normal
	 * CSS min-height-wins-when-larger behavior, unchanged. */
	flex: 0 0 auto;
	/* ×1.05 then ×1.10 more (2026-09-10, test) — original was clamp(220px, 21vw, 290px) */
	min-height: clamp(254.1px, 24.2vw, 334.95px);              /* never collapse below this */
	height: clamp(254.1px, 24.2vw, 334.95px);             /* 2026-09-14 — now a real fixed height, was auto */
	position: relative;
	overflow: hidden;
	background: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(10px, 1.6vw, 20px) */
	padding: clamp(11.55px, 1.87vw, 23.1px);
}
/* 2026-09-12 — iOS Safari scroll-flicker fix, iOS ONLY. This box clips
 * (overflow: hidden) a child (.sdh-card__img) that transitions its own
 * `transform` (scale) — without its own compositing layer, WebKit can
 * repaint/flicker this box during fast/momentum scroll (reported live on
 * iPhone 15). `-webkit-touch-callout` is supported only by WebKit on iOS
 * (not macOS Safari, not any other OS/browser), so @supports on it is the
 * standard way to scope a fix to iOS devices specifically without touching
 * Android/desktop rendering at all. Promoting THIS container (not
 * .sdh-card__img, which already owns `transform` for the zoom effect and
 * would fight with a value set here) gives the child's transform its own
 * layer to composite in. */
@supports (-webkit-touch-callout: none) {
	.sdh-card__media {
		-webkit-transform: translateZ(0);
		transform: translateZ(0);
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
	}
}

/* ============================================================
 * PRODUCT IMAGE · fills the fixed container with object-fit: contain
 *
 * width: 100%; height: 100% makes the img element fill the fixed-height
 * container. object-fit: contain scales the actual photo to fit within
 * that space proportionally — no cropping, always centred.
 *
 * Variant sizing is controlled via container padding so the apparent
 * product size feels balanced across cigars, accessories, and lighters.
 *
 * !important on width/height (2026-08-20): on shop/brand/category pages
 * WooCommerce adds a `.woocommerce-page` class to <body>, and its own
 * woocommerce-layout.css ships `.woocommerce img, .woocommerce-page img
 * { height: auto; max-width: 100% }` — one class + one type selector,
 * specificity (0,1,1), which beats this rule's single-class (0,1,0) on the
 * `height` property regardless of file load order. Confirmed live on
 * /brand/cigar-accessories/zino/?ptype=lighter: before this fix, computed
 * height was resolving to `auto` (the image's own aspect ratio) instead of
 * 100% of .sdh-card__media, which is why Zino lighters rendered undersized
 * there while the true homepage (no .woocommerce-page class, so no
 * competing rule) was unaffected. !important is the minimal, targeted fix —
 * raising the selector's specificity instead would also work but risks
 * fighting the per-variant rules below (.sdh-card--zippo .sdh-card__img
 * etc.) that intentionally override this same rule at a higher specificity;
 * !important + those rules' own !important-free higher specificity keeps
 * that override chain intact. */
.sdh-card__img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain;
	object-position: center center;
	display: block;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	image-rendering: auto;
	image-rendering: high-quality;
}

/* Cigars — tight padding so the photo fills naturally.
 * ×1.05 then +10% again (2026-09-10, round 2) — was clamp(8px, 1.2vw, 14px) */
.sdh-card--cigar .sdh-card__media {
	/* 2026-09-11 — media-box height, cigar cards only, so the zoomed photo
	 * (scale(1.35)) has more room. Three passes over the shared base
	 * (clamp(254.1px, 24.2vw, 334.95px)): +15%, then +10% on top, then +30%
	 * on top of that. */
	min-height: clamp(417.86745px, 39.7969vw, 550.824275px);
	padding: clamp(9.24px, 1.386vw, 16.17px);
}

/* 2026-09-11 — cigar product photos only get an extra zoom (accessories are
 * left at their default scale). .sdh-card__media already has overflow:hidden,
 * so the enlarged image crops cleanly to the box instead of spilling out.
 * -5% (same day, later pass): was scale(1.35), ×0.95 = 1.2825.
 * Desktop/tablet only as of 2026-09-12 — see the touch override below. */
/* 2026-09-12 — switched from `transform: scale(1.2825)` to an equivalent
 * width/height enlargement. The transform approach kept losing its zoom on
 * WebKit/iOS specifically — confirmed on both Safari AND Chrome-for-iOS
 * (same WebKit engine under the hood on iOS, so this is a WebKit rendering
 * behavior, not a Safari-app quirk), on a plain tap as well as mid-scroll,
 * with no CSS rule found anywhere overriding it. That points to WebKit
 * itself momentarily re-rendering a transformed, clipped element at its
 * natural (untransformed) size during an :active-triggered repaint — a
 * real engine behavior, not something a competing CSS rule can explain or
 * a stronger CSS rule can out-cascade. Sizing the image element itself
 * larger (128.25% = same 1.2825 enlargement, in the base rule's own
 * width/height terms) achieves the identical visual crop via the parent's
 * overflow:hidden, without ever touching `transform` — so there's nothing
 * left for this WebKit repaint behavior to act on. */
.sdh-card--cigar .sdh-card__img {
	width: 128.25% !important;
	height: 128.25% !important;
	/* 2026-09-12 — the real reason width alone wasn't reaching 128.25%
	 * (confirmed live): WooCommerce's own woocommerce-layout.css ships
	 * `.woocommerce img, .woocommerce-page img { max-width: 100% }` (see
	 * the !important note above this rule for the exact same trap hitting
	 * a different property) — max-width always wins over width regardless
	 * of what width itself is set to, so the image was silently capped at
	 * the container's own size. height has no competing max-height, so it
	 * alone reached 128.25%, which is what made the photo look
	 * smaller/asymmetric than before. flex-shrink:0 is kept as a genuine,
	 * separate safeguard against the flex algorithm compressing the width
	 * back down once max-width no longer caps it. */
	max-width: 128.25% !important;
	flex-shrink: 0;
}

@media only screen and (min-width: 1280px) {
.sdh-card--cigar .sdh-card__img {
max-width: 110% !important;
}
}
/* 2026-09-20 — Product-page-only cigar photo pullback. Several cigar cards
 * in the product page's own upsell/cross-sell rails (Cigars To Explore, You
 * May Also Like, Complete Your Ritual, Recently Viewed — all rendered via
 * the same sdh_render_product_card()) read as too large on desktop at the
 * shared 128.25% zoom. Scoped narrowly so nothing else moves:
 *   - `body.single-product` — product page only. Shop/category/brand
 *     archive grids and the homepage use this exact same base rule and are
 *     deliberately left untouched.
 *   - `min-width: 1025px` — desktop and larger only, distinct from this
 *     file's own tablet range (768–1024px, see below) and mobile
 *     (≤767px) — both stay at 128.25%.
 * First pass was -5% (121.8375%) — confirmed live 2026-09-20 still reading
 * too large, bumped same day to the second step: -10%
 * (128.25% × 0.90 = 115.425%).
 * Same width/height/max-width-together + !important technique as the base
 * rule above, for the identical WooCommerce max-width:100% trap and WebKit
 * transform-repaint reason documented there — do not switch to `transform`. */
@media (min-width: 1025px) {
	body.single-product .sdh-card--cigar .sdh-card__img {
		width: 115.425% !important;
		height: 115.425% !important;
		max-width: 115.425% !important;
	}
}

/* Larger cigar photo — Shop, Category, and Brand archive pages only
 * (2026-09-14). Scoped to .sdh-card--badge-compact (same
 * is_shop()/is_product_category()/is_tax('product_brand') flag as the
 * icon-only button and compact badge above) combined with .sdh-card--cigar,
 * so ONLY cigar cards on these 3 pages get the bump — accessories/Boveda/
 * Zippo cards, homepage, product page, and search are untouched. Does NOT
 * modify the base .sdh-card--cigar .sdh-card__img rule above (the protected
 * zoom-technique fix from 2026-09-12) — this is a separate, higher-
 * specificity, purely additive override: two classes on the card
 * (.sdh-card--cigar.sdh-card--badge-compact) beats the base rule's one
 * class, so it wins even though both use !important. Bumped from 128.25%
 * to 145% (~13% larger) using the exact same width/height/max-width
 * technique as the base rule, for the same WebKit-safety reason documented
 * there — never touches `transform`. */
.sdh-card--cigar.sdh-card--badge-compact .sdh-card__img {
	width: 145% !important;
	height: 145% !important;
	max-width: 145% !important;
	flex-shrink: 0;
}

/* Accessories — moderate inset so mid-sized objects don't overwhelm.
 * ×1.05 then +10% again (2026-09-10, round 2) — was clamp(14px, 2vw, 22px) */
.sdh-card--accessory:not(.sdh-card--zippo) .sdh-card__media {
	padding: clamp(16.17px, 2.31vw, 25.41px);
}

/* Zippo image stage — fixed height + consistent padding so every lighter
 * renders at exactly the same size regardless of aspect ratio (portrait /
 * landscape / thin). object-fit: contain handles the rest.
 * ×1.05 then +10% again (2026-09-10, round 2) — was clamp(240px, 22vw, 295px) / clamp(20px, 2.5vw, 36px) */
.sdh-card--zippo .sdh-card__media {
	flex: 0 0 clamp(277.2px, 25.41vw, 340.725px);
	height: clamp(277.2px, 25.41vw, 340.725px);
	padding: clamp(23.1px, 2.86vw, 41.58px);
	background: #ffffff;
}
.sdh-card--zippo .sdh-card__img {
	max-width: 88%;
	max-height: 88%;
}

/* Zippo meta: always 1 cell (ORIGIN) — explicit 1-col so no empty-column artefacts */
.sdh-card--zippo .sdh-card__meta {
	grid-template-columns: 1fr;
}

/* Uniform lighter cards: make non-Zippo accessory media match the Zippo
 * fixed box (Zino → Zippo) — ported from homepage-hero.css (2026-08-20).
 * Without this, Zino lighters use the generic flexible accessory media box
 * (.sdh-card--accessory:not(.sdh-card--zippo) above, `padding` only, height
 * grows via flex to match whatever the row needs) while Zippo uses this
 * fixed clamp() box — on a mixed-brand grid the two behave differently
 * (confirmed live: Zino stretched full-height in a tall row and filled it
 * edge-to-edge with almost no margin, while Zippo's box stayed at its own
 * fixed height and looked comparatively small). Giving both the identical
 * fixed height + 88% image cap makes every lighter — Zino or Zippo — render
 * at the same size with the same intentional breathing room, matching the
 * homepage's already-solved treatment. Higher specificity than the plain
 * `.sdh-card--accessory:not(.sdh-card--zippo)` rule above (two classes vs
 * one) so it wins without needing !important. */
/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(240px, 22vw, 295px) / clamp(20px, 2.5vw, 36px) */
.sdh-card.sdh-card--accessory:not(.sdh-card--zippo) .sdh-card__media {
	flex: 0 0 clamp(277.2px, 25.41vw, 340.725px);
	height: clamp(277.2px, 25.41vw, 340.725px);
	padding: clamp(23.1px, 2.86vw, 41.58px);
	background: #ffffff;
}
.sdh-card.sdh-card--accessory:not(.sdh-card--zippo) .sdh-card__img {
	/* 2026-09-19 -- first pass raised 88% -> 100% (see below), which was the
	   maximum size obtainable with zero cropping for a square photo in a
	   square box. Requested a further increase on top of that, so this now
	   goes past 100% using the exact same over-scale-and-let-the-parent-crop
	   technique as .sdh-card--cigar .sdh-card__img above (.sdh-card__media
	   already has overflow:hidden). 105% means the image is rendered 5%
	   larger than the box on all sides and the outer 2.5% is clipped by the
	   parent -- safe here because the punch-cutter photos (Sikarlan, Zino)
	   have 14-19% of empty vertical margin above/below the product at 100%,
	   comfortably more than the 2.5%-per-side that gets cropped, so no part
	   of the actual cutter is cut off, only more of the dead space. width/
	   height (not just max-width/max-height) must be set together, same
	   reason documented on the cigar rule: max-width always wins over width
	   regardless of specificity, so width itself has to move too or the
	   max-width bump alone does nothing. No max-height for the same reason
	   the cigar rule has none -- nothing else constrains it. Deliberately
	   NOT touched: .sdh-card--zippo .sdh-card__img (separate rule above) and
	   .sdh-card--cigar .sdh-card__img (separate rule). */
	width: 105% !important;
	height: 105% !important;
	max-width: 105% !important;
	flex-shrink: 0;
}

/* ---------------------------------------------------------------------------
 * BOVEDA · ISOLATED MEDIA TREATMENT (2026-09-01)
 * ---------------------------------------------------------------------------
 * Boveda is a subtype of the existing accessory card system. The two shared
 * accessory selectors above are intentionally left unchanged because they
 * control existing products such as Zino, cutters, lighters, humidors,
 * ashtrays and holders.
 *
 * Boveda product photography is generally smaller/less vertically filling
 * than the lighter imagery that motivated the shared fixed media box. Give
 * Boveda its own desktop/tablet media stage only. Mobile is deliberately not
 * touched here; it continues to use the existing responsive rules below.
 */
@media (min-width: 768px) {
	/* 2026-09-02 — SPECIFICITY FIX: this rule was silently losing to
	   `.sdh-card.sdh-card--accessory:not(.sdh-card--zippo) .sdh-card__media`
	   above (line ~1595). That rule has no media-query guard (applies at
	   every width) and its `:not(.sdh-card--zippo)` counts as a 3rd class in
	   specificity — (0,3,0) — which beats this block's original (0,2,0)
	   regardless of source order or the min-width condition being active.
	   Confirmed live: computed styles on a real Boveda card were the
	   accessory rule's values (240–295px/88%/20–36px padding), not this
	   block's, even after changing the numbers below — the numbers were
	   never actually reaching the page. Adding `.sdh-card--accessory` here
	   (Boveda cards always carry it — see sdh_render_product_card()) brings
	   this to the same (0,3,0) specificity; being later in the file, it now
	   wins the tie and actually applies. Still scoped to Boveda only. */
	.sdh-card.sdh-card--accessory.sdh-card--boveda .sdh-card__media {
		/* enlarged from clamp(200px, 18vw, 250px) — reported as too small vs.
		   the other accessory cards. Now matches the shared Zippo/Zino
		   fixed-box size (see .sdh-card--zippo .sdh-card__media above) with a
		   tighter padding so the product itself reads bigger, not just the
		   box. Box size only — deliberately still gated to desktop/tablet,
		   same as the rest of this section (see the comment at the top of
		   this file's BOVEDA · ISOLATED MEDIA TREATMENT block, 2026-09-01,
		   "Mobile is deliberately not touched here"). The image-fill rule
		   below is intentionally NOT in this block — see why just below. */
		/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(240px,22vw,295px) / clamp(10px,1.6vw,18px) */
		flex: 0 0 clamp(277.2px, 25.41vw, 340.725px);
		height: clamp(277.2px, 25.41vw, 340.725px);
		padding: clamp(11.55px, 1.87vw, 20.79px);
	}
}

/* Boveda image fill (2026-09-02) — deliberately OUTSIDE the min-width:768px
 * block above. On mobile, Boveda's box is still resized by the narrow-card
 * @container rule just below (a pure element-width query, unaffected by
 * viewport — it already applied on mobile before today), but the photo
 * inside it was capped at the shared accessory rule's 88% fill at every
 * width, since that rule has no media-query guard either. Keeping this one
 * declaration unconditional (not just desktop-gated) is what makes the
 * photo itself actually look bigger on mobile too, not just its box. Same
 * (0,3,0) specificity fix as the media-box rule above — `.sdh-card--accessory`
 * added so this beats the unconditional shared accessory rule everywhere. */
.sdh-card.sdh-card--accessory.sdh-card--boveda .sdh-card__img {
	max-width: 96%;
	max-height: 96%;
}

/* Boveda · narrow desktop/tablet cards. This is scoped to Boveda only so
 * the existing narrow-card treatment for every other product is unchanged.
 * Same specificity fix as the block above — `.sdh-card--accessory` added so
 * this actually beats the unconditional shared accessory rule. This
 * @container query is width-based, not viewport-based, so it already
 * applies on mobile whenever the rendered card is this narrow (confirmed
 * live: a 2-column mobile grid at 375px triggers it). */
@container sdh-card (max-width: 220px) {
	.sdh-card.sdh-card--accessory.sdh-card--boveda .sdh-card__media {
		/* enlarged in step with the desktop box above. */
		/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(175px,46cqw,210px) / clamp(6px,2.2cqw,10px) */
		flex: 0 0 clamp(202.125px, 53.13cqw, 242.55px);
		height: clamp(202.125px, 53.13cqw, 242.55px);
		padding: clamp(6.93px, 2.541cqw, 11.55px);
	}
}

/* Hover · image zoom — real pointer only (no zoom on touch/iOS) */
@media (hover: hover) and (pointer: fine) {
	.sdh-card:hover .sdh-card__img {
		transform: scale(1.04);
	}
	/* 2026-09-12 — cigars are now enlarged via width/height (128.25%), not
	 * transform, so the generic hover bump above (transform: scale(1.04))
	 * would otherwise ADD on top of that sizing instead of replacing it,
	 * producing an unwanted extra zoom on hover. Cancelling it here keeps
	 * hover a no-op for cigars, same as before. */
	.sdh-card--cigar:hover .sdh-card__img {
		transform: none;
	}
}

/* ─── Responsive · device-specific media tuning ─── */

/* Tablet */
@media (max-width: 1024px) and (min-width: 768px) {
	.sdh-card__media {
		/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(220px, 27vw, 295px) */
		min-height: clamp(254.1px, 30.8vw, 340.725px);
		height: auto;
	}
	/* 2026-09-11 — media-box height, cigar cards only. Was clamp(254.1px, 30.8vw, 340.725px);
	 * +15%, then +10% on top, then +30% on top of that. */
	.sdh-card--cigar .sdh-card__media {
		min-height: clamp(417.86745px, 50.6506vw, 560.3222625px);
	}
	/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(200px,25vw,260px) / clamp(18px,2.5vw,30px) */
	.sdh-card--zippo .sdh-card__media {
		flex: 0 0 clamp(231px, 28.875vw, 300.3px);
		height: clamp(231px, 28.875vw, 300.3px);
		padding: clamp(20.79px, 2.86vw, 34.65px);
	}
}

/* Mobile — image takes more visual prominence */
@media (max-width: 767px) {
	.sdh-card__media {
		/* 2026-09-10 — raised again: the 3-seal rating stack (.sl, top:12px,
		 * 58px circles + 7px gaps on mobile = 12+58+7+58+7+58 = 200px needed)
		 * was getting clipped by this box's overflow:hidden at the old floor
		 * (207.9px left only ~8px of slack — too tight in practice). New floor
		 * clears the seal stack with a real margin. Was clamp(207.9px, 55vw, 300.3px). */
		min-height: clamp(240px, 63vw, 340px);   /* grows to fill ~65% of taller card */
		height: auto;
		padding: clamp(7.15px, 2.86vw, 13.75px);
	}
	/* 2026-09-11 — mobile cigar media height REVERTED back to the shared base
	 * above (was clamp(394.68px, 103.6035vw, 559.13px), i.e. +15%/+10%/+30%
	 * on top of it): on mobile 2-col cards the box was ~2.4x taller than wide
	 * against a square product photo, leaving huge blank margin above/below
	 * the cigar (photo only ~45-50% fill). Desktop/tablet keep the full
	 * enlargement — only mobile/narrow needed pulling back. Cigar's own
	 * .sdh-card__img still gets scale(1.35), just inside a shorter box now.
	 * MUST be restated explicitly here, not just deleted — the unscoped
	 * desktop .sdh-card--cigar .sdh-card__media rule above this media query
	 * has the same specificity (0,2,0) and no media/container guard, so
	 * without an equally-specific mobile override it wins at every width
	 * (confirmed live: deleting this outright left mobile pinned to the
	 * desktop 417.86745px value instead of falling back to the generic
	 * .sdh-card__media rule above). */
	.sdh-card--cigar .sdh-card__media {
		min-height: clamp(240px, 63vw, 340px);
	}
	.sdh-card--zippo .sdh-card__media {
		padding: clamp(27.72px, 8.085vw, 50.82px);
	}
	.sdh-card--accessory:not(.sdh-card--zippo) .sdh-card__media {
		padding: clamp(11.55px, 3.465vw, 20.79px);
	}
	/* 2026-09-19 -- mobile-only further enlarge, on top of the 105% that now
	   applies at every width (see the unguarded .sdh-card.sdh-card--accessory
	   :not(.sdh-card--zippo) .sdh-card__img rule above). Same selector
	   (identical specificity, 4 classes) placed later in the file so it wins
	   the tie on mobile only, inside this existing @media(max-width:767px)
	   block -- desktop/tablet stay at 105%.
	   Raised 110% -> 111% ("bigger, but same proportions" -- an asymmetric
	   width:180%/height:110% was tried first, but for a square source photo
	   under object-fit:contain the smaller of the two relative dimensions
	   always wins, so width past 110% alone would have been a pure no-op).
	   Hard safety ceiling, measured directly per-edge (not assumed symmetric
	   -- an earlier version of this comment guessed ~7%/side and a ~114%
	   ceiling; the real numbers are tighter): Sikarlan Punch Cutter's top
	   edge (the keyring loop) has only 5.8% margin at 100%, the tightest of
	   both cutters' 4 edges (Zino: 11.3% top / 8.3% bottom; Sikarlan: 5.8%
	   top / 8.3% bottom). Crop-per-side = (zoom-1)/2, so 111% = 5.5%-per-side
	   -- a bare ~0.3% buffer on Sikarlan's top. Do not raise further without
	   redoing this measurement; ~112% already risks clipping that ring.
	   Real further enlargement needs the source photos re-cropped to remove
	   their ~37%-per-side dead horizontal margin, not more zoom here. */
	.sdh-card.sdh-card--accessory:not(.sdh-card--zippo) .sdh-card__img {
		width: 111% !important;
		height: 111% !important;
		max-width: 111% !important;
		flex-shrink: 0;
	}
	/* Info block — tighter padding so image/info ratio favours the image */
	.sdh-card__info {
		/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(8px,2vw,12px) clamp(8px,2vw,12px) clamp(10px,2.5vw,14px) */
		padding: clamp(9.24px, 2.31vw, 13.86px) clamp(9.24px, 2.31vw, 13.86px) clamp(11.55px, 2.86vw, 16.17px);
		gap: clamp(3.52px, 0.935vw, 5.775px);
	}
}

/* Narrow card (Vault 2-column grid on mobile) */
@container sdh-card (max-width: 220px) {
	.sdh-card__media {
		/* 2026-09-10 — same seal-clipping fix as the general mobile rule above,
		 * for narrow (2-col grid) cards — this floor was even shorter (184.8px)
		 * than the 200px the 3-seal stack needs, so the 3rd seal was visibly
		 * cut off here specifically. Was clamp(184.8px, 50.6vw, 254.1px). */
		min-height: clamp(240px, 65vw, 320px);   /* compact but still ≥65% of narrow card */
		padding: clamp(4.4px, 1.76vw, 9.35px);
	}
	/* 2026-09-11 — narrow-card cigar media height REVERTED back to the shared
	 * base above (was clamp(394.68px, 106.8925vw, 526.24px)) — same reason as
	 * the mobile revert just above: too tall for a square product photo,
	 * leaving excess blank margin top/bottom in the Vault 2-column grid.
	 * MUST be restated explicitly, not just deleted — same specificity trap
	 * as the mobile block above (the unscoped desktop cigar-media rule wins
	 * at every width without an equally-specific override here). */
	.sdh-card--cigar .sdh-card__media {
		min-height: clamp(240px, 65vw, 320px);
	}
	.sdh-card--zippo .sdh-card__media {
		padding: clamp(18.48px, 5.225vw, 34.65px);
	}
}

/* Brand badge · centered inline pill above the product title
 * (was top-left overlay — moved here to match original card layout) */
.sdh-card__brand {
	display: inline-flex;
	align-self: center;                                   /* centered horizontally in the info block */
	max-width: 100%;
	/* 2026-09-10 — widened ~15% (was clamp(5px,0.7vw,7px) clamp(10px,1.2vw,14px))
	 * alongside the font-size pullback below, so long brand labels get more
	 * room without the pill shrinking out of proportion with the card. */
	padding: clamp(5.75px, 0.805vw, 8.05px) clamp(11.5px, 1.38vw, 16.1px);
	background: linear-gradient(135deg, var(--sdh-brass-bg-18) 0%, var(--sdh-brass-bg-10) 100%);
	border: 1px solid var(--sdh-brass-border-28);
	color: var(--sdh-brass-deep);
	border-radius: var(--sdh-radius-pill);
	/* 2026-09-10 — pulled back ~12% from the round-2 bump (was clamp(9.79px,
	 * 0.814vw, 11.55px)) — long labels ("Lighters & Accessories") were
	 * overflowing/clipping against white-space:nowrap + text-overflow:ellipsis
	 * at that size; a slightly smaller font plus the widened padding above
	 * fits them cleanly. */
	font-size: clamp(8.6px, 0.716vw, 10.16px);
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.1;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	margin-bottom: clamp(2px, 0.4vw, 5px);
}

/* Coming Soon badge · top-right */
.sdh-card__soldout {
	position: absolute;
	top: clamp(8px, 1vw, 14px);
	right: clamp(8px, 1vw, 14px);
	padding: clamp(4px, 0.5vw, 6px) clamp(8px, 1vw, 12px);
	background: var(--sdh-ink-900);
	color: #ffffff;
	border-radius: var(--sdh-radius-pill);
	font-size: clamp(8px, 0.65vw, 9.5px);
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	z-index: 3;
	box-shadow: 0 4px 10px rgba(17, 24, 39, 0.20);
}

/* Rating seals — stacked, top-left corner (design spec v5.0, product-cards.html §4).
 * ACF: rating_1..6 fields via tsd_get_cigar_rating_medallions(), cigars only,
 * capped to 3 for the card. Replaces the old single hexagon .sdh-card__rating-seal
 * badge (top-right, one ACF number field) — re-enabled 2026-09-10.
 * Colour is the only hierarchy: every seal is the same diameter; weight 1
 * (award, deepest brass) → weight 2 (score 90+, plain) → weight 3 (score <90,
 * pale gold) → weight 4 (Best Buy, flat cream) via the .sl__i--* modifiers.
 * pointer-events:none throughout — the stack must never intercept clicks,
 * the whole card stays one link target. Coming Soon no longer needs
 * repositioning (its own default is top-right; this stack lives top-left,
 * so the two can no longer collide the way the old top-right seal did). */
.sl {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 4;
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
	pointer-events: none;
	font-family: Inter, -apple-system, "Segoe UI", Roboto, sans-serif;
}
.sl__i { flex: none; }
.sl__d {
	box-sizing: border-box;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 0 3px;
	background: linear-gradient(180deg, #C6A76C, #AD8B4F);
	color: #ffffff;
	box-shadow: 0 3px 8px rgba(28, 25, 23, 0.16);
}
/* No eyebrow at card size — the seal is 56px and the figure (#N / score /
 * "Best Buy") already carries enough meaning without it; eyebrow is
 * product-page only, per the design spec. */
.sl__k { display: none; }
.sl__f {
	font-size: 18.5px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
}
.sl__p {
	margin-top: 2px;
	font-size: 5px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.22;
	opacity: 0.9;
}
/* Weight 1 — award (Cigar of the Year / Top 25), deepest brass gradient. */
.sl__i--lead .sl__d {
	background: linear-gradient(180deg, #BE9A57, #94743C);
	box-shadow: 0 4px 11px rgba(94, 69, 39, 0.28);
}
/* Weight 3 — score below 90, palest gold gradient of the two score weights. */
.sl__i--soft .sl__d {
	background: linear-gradient(180deg, #E8D6B0, #DCC79A);
	color: #6E5230;
	box-shadow: 0 2px 6px rgba(28, 25, 23, 0.1);
}
/* Weight 4 — Best Buy: flat cream, never a gradient, never the lead. */
.sl__i--value .sl__d {
	background: #F7F2E9;
	color: #6E5230;
	box-shadow: inset 0 0 0 1px rgba(110, 82, 48, 0.26);
}
.sl__i--value .sl__f {
	font-size: 7px;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.2;
}

/* Mobile card is wider and the image taller, so the seal grows slightly
 * rather than shrinking (58px vs 56px desktop) — matches the design spec's
 * dimension table exactly. Breakpoint matches this file's existing
 * mobile/desktop boundary used elsewhere for .sdh-card (max-width: 767px). */
@media (max-width: 767px) {
	.sl { gap: 7px; }
	.sl__d { width: 58px; height: 58px; }
	.sl__f { font-size: 19.5px; }
}

/* Compact rating-seal badge — Shop, Category, and Brand archive pages only,
 * mobile only (2026-09-14). Scoped to .sdh-card--badge-compact, set in
 * functions.php's sdh_render_product_card() via the same
 * is_shop()/is_product_category()/is_tax('product_brand') flag already used
 * for the icon-only Add-to-Cart button — homepage, product page, accessories,
 * and search are NOT touched (confirmed live: homepage renders the same
 * .sl__d badge at the unmodified 58px, since it never gets this class).
 * Sized down from mobile's 58px to 44px (~24% smaller), with the score
 * figure and publication label scaled down to match proportionally. */
@media (max-width: 767px) {
	.sdh-card--badge-compact .sl { gap: 5px; }
	.sdh-card--badge-compact .sl__d { width: 44px; height: 44px; }
	.sdh-card--badge-compact .sl__f { font-size: 14.5px; }
	.sdh-card--badge-compact .sl__p { font-size: 4px; margin-top: 1px; }
	.sdh-card--badge-compact .sl__i--value .sl__f { font-size: 5.5px; }
}

/* Hover Buy Now overlay · centered on image
 * IMPORTANT: overlay itself is `pointer-events: none` ALWAYS — clicks pass through
 * to the underlying card link (PDP) by default. Only the pill itself catches clicks
 * (see .sdh-card__buy-pill rules below). This prevents the "click near the pill
 * accidentally goes to PDP" bug on desktop. */
.sdh-card__buy-overlay {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;                           /* no dark tint — pill's white bg + shadow does the work */
	opacity: 0;
	pointer-events: none;                              /* never catches clicks */
	transition: opacity 0.25s var(--sdh-ease);
	z-index: 5;
}
/* Desktop (real pointer) only — guarded so iOS :hover simulation can't interfere */
@media (hover: hover) and (pointer: fine) {
	.sdh-card:hover .sdh-card__buy-overlay,
	.sdh-card:focus-within .sdh-card__buy-overlay {
		opacity: 1;
		/* pointer-events stays none — only the pill catches clicks */
	}
}
.sdh-card__buy-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: clamp(10px, 1.1vw, 13px) clamp(20px, 1.8vw, 26px);
	background: #ffffff;
	color: var(--sdh-ink-900);
	border: 1.5px solid var(--sdh-ink-900);
	border-radius: var(--sdh-radius-pill);
	font-family: inherit;
	font-size: clamp(10px, 0.8vw, 11.5px);
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	box-shadow: 0 8px 22px rgba(17, 24, 39, 0.20);
	transition: background 0.25s var(--sdh-ease), color 0.25s var(--sdh-ease), transform 0.18s var(--sdh-ease);
	min-height: 44px;
	min-width: 44px;
	user-select: none;
	white-space: nowrap;
	touch-action: manipulation;                          /* fires tap instantly on mobile (no 300ms delay) */
	-webkit-tap-highlight-color: transparent;
	pointer-events: none;                                /* default: not clickable (overlay is hidden) */
	position: relative;                                  /* establishes stacking */
	z-index: 1;
}
/* Pill becomes clickable ONLY when card is hovered/focused — desktop only */
@media (hover: hover) and (pointer: fine) {
	.sdh-card:hover .sdh-card__buy-pill,
	.sdh-card:focus-within .sdh-card__buy-pill {
		pointer-events: auto;
	}
}
.sdh-card__buy-pill:hover {
	background: var(--sdh-ink-900);
	color: #ffffff;
	box-shadow: 0 14px 28px rgba(17, 24, 39, 0.28);
}
/* translateY on pill hover — real pointer only, not touch */
@media (hover: hover) and (pointer: fine) {
	.sdh-card__buy-pill:hover {
		transform: translateY(-2px);
	}
}
.sdh-card__buy-pill:focus-visible {
	outline: 2px solid var(--sdh-brass);
	outline-offset: 3px;
}
/* iOS press feedback on buy pill */
.sdh-card__buy-pill:active,
.sdh-card__buy-pill.is-pressing {
	background: var(--sdh-ink-900);
	color: #ffffff;
	transform: scale(0.95);
	box-shadow: 0 6px 16px rgba(17, 24, 39, 0.20);
	transition-duration: 80ms;
}

/* ============================================================
 * MOBILE BUY NOW · original centred pill design (restored)
 *
 * Tap image → overlay fades in → centred "BUY NOW" pill appears.
 * Tap pill → handleBuyClick fires → checkout redirect.
 * ============================================================ */
@media (hover: none) and (pointer: coarse) {

	/* Overlay: centred pill, transparent background */
	.sdh-card__buy-overlay {
		align-items: center;
		justify-content: center;
		padding: 0;
		transition: opacity 0.2s var(--sdh-ease);
	}

	/* Revealed state */
	.sdh-card.is-img-tapped .sdh-card__buy-overlay {
		opacity: 1;
		pointer-events: none;                               /* overlay never catches taps */
	}

	/* Pill: centred, original white pill with dark border */
	.sdh-card__buy-pill {
		min-height: 36px !important;
		padding: 0 14px !important;
		font-size: 9px !important;
		letter-spacing: 0.1em !important;
		font-weight: 900 !important;
		border-radius: var(--sdh-radius-pill) !important;
		border: 1.5px solid var(--sdh-ink-900) !important;
		background: #ffffff !important;
		color: var(--sdh-ink-900) !important;
		box-shadow: 0 4px 14px rgba(17, 24, 39, 0.22) !important;
		min-width: 0 !important;
		width: auto;
		white-space: nowrap;
	}

	.sdh-card.is-img-tapped .sdh-card__buy-pill {
		pointer-events: auto;
	}

	/* Press feedback */
	.sdh-card__buy-pill:active,
	.sdh-card__buy-pill.is-pressing {
		background: var(--sdh-ink-900) !important;
		color: #ffffff !important;
		transform: scale(0.96) !important;
		transition-duration: 80ms !important;
	}
}

/* MOBILE · meta fields — smaller text, tighter cells.
 * Values WRAP up to 2 lines instead of truncating with ellipsis —
 * ACF dimension strings like "120 mm × 20.64 mm" must never be cropped. */
@media (max-width: 767px) {
	.sdh-card__meta {
		padding-block: clamp(7px, 1.8vw, 9px);
	}
	.sdh-card__meta-item {
		padding: 1px clamp(3px, 1vw, 5px);
	}
	/* .sdh-card__meta-item strong/span removed here (2026-09-10) — dead code.
	 * tsd_render_meta_row_spacing_fix() in functions.php sets font-size AND
	 * every wrapping-related property (white-space, overflow, line-clamp,
	 * display, text-overflow, max-height) on these same selectors with
	 * !important, hooked to wp_head so it always prints — this block never
	 * actually applied. See that function for the one real declaration. */
}

/* INFO · auto-grow · never crops content */
.sdh-card__info {
	flex: 0 0 auto;
	/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(12px,1.4vw,16px) clamp(12px,1.4vw,16px) clamp(14px,1.6vw,18px).
	 * NOTE: functions.php's tsd_render_meta_row_spacing_fix() sets this same property
	 * with !important and wins the cascade — that copy must be bumped in step or this
	 * one has no visible effect. See that function for the value actually applied. */
	padding: clamp(13.86px, 1.617vw, 18.48px) clamp(13.86px, 1.617vw, 18.48px) clamp(16.17px, 1.848vw, 20.79px);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: clamp(4px, 0.5vw, 7px);
	border-top: 1px solid var(--sdh-brass-border-28);
	background: #ffffff;
}
.sdh-card__title {
	margin: 0;
	/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(13px, 1.05vw, 14.5px) */
	font-size: clamp(15.015px, 1.21vw, 16.775px);
	font-weight: 800;
	color: var(--sdh-ink-900);
	line-height: 1.25;
	letter-spacing: -0.01em;
	text-align: center;
	text-transform: uppercase;
	/* Always reserve exactly 2 lines so price + meta align
	 * consistently across all cards regardless of title length. */
	min-height: calc(1.25em * 2);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.sdh-card__price {
	/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(14px, 1.15vw, 16px) */
	font-size: clamp(16.17px, 1.32vw, 18.48px);
	font-weight: 800;
	color: var(--sdh-ink-900);
	letter-spacing: -0.01em;
	font-variant-numeric: tabular-nums;
	line-height: 1.2;
}
.sdh-card__price del,
.sdh-card__price .sd-price-mrp {
	color: var(--sdh-ink-300);
	font-weight: 500;
	font-size: 85%;
	margin-right: 5px;
}
.sdh-card__price ins {
	text-decoration: none;
	color: var(--sdh-ink-900);
}

/* Container-query setup — lets the meta + buy-pill adapt when the card is narrow
 * (e.g., 2-up Vault grid on mobile gets a more compact meta layout). The card
 * itself is the container; descendants query its inline-size. */
.sdh-card {
	container-type: inline-size;
	container-name: sdh-card;
}

/* ============================================================
 * META GRID · modern luxury watch-dial style
 *
 * Replaces the old "datasheet boxes" look (one background + border per cell)
 * with a borderless layout: vertical hairline dividers BETWEEN cells, plus a
 * brass hairline above + below the whole meta block. Matches the spec-card
 * aesthetic used by Davidoff product pages and luxury watch brands —
 * refined, scannable, premium.
 *
 *   ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─   ← brass hairline (separates from price)
 *    10-15M  │  ●●●○○  │ 178×22
 *     TIME   │   INT   │  SIZE
 *   ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─ ─   ← brass hairline (separates from Add to Cart)
 *
 * 3 cells for cigars · 2 cells for accessories.
 * gap is 0 so dividers (border-left on cell 2+) sit cleanly on cell edges.
 * ============================================================ */
.sdh-card__meta {
	display: grid;
	grid-template-columns: repeat(2, 1fr);                /* 2 cells: TIME + INTENSITY (SIZE removed) */
	gap: 0;                                               /* dividers via border-left · no gap */
	margin-top: auto;
	padding-block: clamp(10px, 1.4vw, 14px);
	border-block: 1px solid var(--sdh-brass-border-28);   /* brass hairlines top + bottom */
	width: 100%;
	align-self: stretch;
}
/* Accessories: also 2 cells (TYPE + BLADE/CAPACITY) — same as default, no override needed */

/* Single ACF field (e.g. Humidor with TYPE only, no BLADE/CAPACITY) —
 * span all columns so the lone cell is properly centered. */
.sdh-card__meta-item:only-child {
	grid-column: 1 / -1;
	border-left: 0;
	justify-self: center;
	width: 100%;
}

/* Boveda 3-field one-line fix (2026-09-02) — Boveda meta items max out at
 * 3 (RH LEVEL/PACK FORMAT, BOVEDA SIZE/PACK FORMAT, PRICE PER BOX), and
 * explicit direction was that when all 3 are present they should sit
 * together on ONE line, not 2-then-1 wrapped onto a second row. The base
 * grid is 2 columns (shared by every card type), so a 3rd item would
 * otherwise wrap. `:has()` detects the exactly-3-items case (3rd child
 * that's also the last child) and switches that grid to 3 equal columns.
 * `!important` is required here only because the shared
 * tsd_render_meta_row_spacing_fix() style block in functions.php already
 * forces `grid-template-columns: repeat(2, 1fr) !important` on every card
 * — a non-important rule could never win against that regardless of
 * specificity. The ordinary `.sdh-card__meta-item + .sdh-card__meta-item`
 * divider rule above already draws a clean line between all 3 cells once
 * they're side by side, so no extra border handling is needed here.
 * No media-query guard, so this applies at every width, mobile included.
 * Scoped to .sdh-card--boveda only — no other card type is touched. */
.sdh-card--boveda .sdh-card__meta:has(.sdh-card__meta-item:nth-child(3):last-child) {
	grid-template-columns: repeat(3, 1fr) !important;
}

/* Mobile row-break override (2026-09-14, widened same day) — first built
 * at max-width:150px for "extreme small" devices only, but real-device
 * testing on a mainstream current phone (iPhone 16, 393px viewport →
 * 174.5px card) showed truncation still happening there, which wasn't
 * the intent — the goal is no truncation on any 2-column mobile card,
 * not just the narrowest ones. Widened to max-width:220px, reusing this
 * codebase's own already-established "narrow card / mobile 2-column
 * grid" threshold (see the container-query hook of the same name a few
 * lines up) rather than inventing a new one. Reverts to 2 columns and
 * lets PRICE PER BOX drop to its own full-width row — same layout the
 * base (non-Boveda) 2-cell cards already use for a lone spanning cell. */
@container sdh-card (max-width: 220px) {
	.sdh-card--boveda .sdh-card__meta:has(.sdh-card__meta-item:nth-child(3):last-child) {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	/* 2026-09-14 — justify-self: center removed. It shrank this cell's own
	 * box to its content width instead of stretching across the full
	 * spanned column, which meant the border-top divider (from the
	 * pre-existing .sdh-card__meta-item:nth-child(n+3) rule below — not
	 * something added here) only drew under that narrower box instead of
	 * the full card width. Default justify-self (stretch) fixes that; the
	 * text itself was already centered via .sdh-card__meta-item's own
	 * text-align:center, so visual centering is unaffected. */
	.sdh-card--boveda .sdh-card__meta-item:nth-child(3):last-child {
		grid-column: 1 / -1 !important;
		border-left: 0 !important;
	}
}

/* 2026-09-14 — Shop/Category/Brand pages ONLY (not homepage, not the single
 * product page's related-products grid): PRICE PER BOX / CAPACITY (the 3rd
 * Boveda meta item) should drop to its own full-width row at every screen
 * width, not just inside the narrow-card @container query above.
 * `.sdh-card--grid-homepage-style-test` is the existing page-scope marker
 * class already added only when `is_shop() || is_product_category() ||
 * is_tax('product_brand')` is true (functions.php, $_sdh_icon_only_add) —
 * reusing it here means this rule can never match a Boveda card rendered on
 * the homepage rail/Vault, without needing a new PHP flag. Two classes beats
 * the general `.sdh-card--boveda` rule's one class, so this wins even though
 * both carry !important — file order doesn't matter here. */
.sdh-card--grid-homepage-style-test.sdh-card--boveda .sdh-card__meta:has(.sdh-card__meta-item:nth-child(3):last-child) {
	grid-template-columns: repeat(2, 1fr) !important;
}
.sdh-card--grid-homepage-style-test.sdh-card--boveda .sdh-card__meta-item:nth-child(3):last-child {
	grid-column: 1 / -1 !important;
	border-left: 0 !important;
}

.sdh-card__meta-item {
	padding: clamp(2px, 0.4vw, 4px) clamp(6px, 1vw, 10px);
	text-align: center;
	background: transparent;                              /* borderless · removed box look */
	border: 0;
	border-radius: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: clamp(3px, 0.5vw, 5px);
	min-height: 0;                                        /* let content size naturally */
	/* 2026-09-14 — min-width: 0 added. Without it, a grid item's default
	 * min-width:auto forces its track to at least the item's min-content
	 * width, even inside `repeat(N, 1fr)` — on Boveda's 3-column meta grid
	 * ("PRICE PER BOX" + "₹6,100.00"), that pushed the grid past the card's
	 * own width, and the card's overflow:hidden hard-clipped the text
	 * mid-character instead of the existing nowrap/ellipsis (label) and
	 * wrap (value) rules ever getting a chance to apply. This just lets the
	 * track shrink to its real 1fr share so those existing rules can do
	 * their job — doesn't change anything for cards where content already
	 * fits (2-column cigar cards, etc). */
	min-width: 0;
}
/* Vertical hairline dividers BETWEEN cells (no left border on first cell) */
.sdh-card__meta-item + .sdh-card__meta-item {
	border-left: 1px solid var(--sdh-brass-border-28);
}
/* Value · primary spec data (e.g., "10-15 Mins", dots widget, "178 × 22 mm") */
.sdh-card__meta-item strong {
	/* font-size intentionally NOT set here (2026-09-10) — functions.php's
	 * tsd_render_meta_row_spacing_fix() forces it with !important on wp_head,
	 * always winning regardless of what's declared here; keeping a value in
	 * both places invites exactly the "which one is real" confusion this was
	 * cleaned up to avoid. color/weight/spacing below are NOT touched by that
	 * !important rule and still apply from here. */
	color: var(--sdh-ink-900);
	font-weight: 700;                                     /* refined · was 800, too heavy without box */
	letter-spacing: -0.01em;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;                   /* tabular figures · cleaner numbers */
}
/* Label · brass eyebrow underneath value (e.g., "TIME" / "INTENSITY" / "SIZE") */
.sdh-card__meta-item span {
	/* font-size intentionally NOT set here (2026-09-10) — same reason as
	 * .sdh-card__meta-item strong above: functions.php's !important rule
	 * always wins. color/weight/spacing/transform below still apply. */
	color: var(--sdh-brass-deep);                         /* brass · was muted grey, now brand-aligned */
	font-weight: 700;
	letter-spacing: 0.16em;                               /* more spaced · luxury eyebrow feel */
	text-transform: uppercase;
}

/* Boveda meta-label one-line fix (2026-09-02) — "PRICE PER BOX" is longer
 * than every other label this grid has ever shown (RH LEVEL, BOVEDA SIZE,
 * PACK FORMAT, TIME, INTENSITY, STRENGTH, SHAPE, Size(LxRG)), and the base
 * rule above has no white-space guard — confirmed live it was wrapping to
 * 3 lines. Scoped to .sdh-card--boveda only (higher specificity than the
 * base rule via the extra class, so it wins without !important) so no
 * other card's label is affected. */
.sdh-card--boveda .sdh-card__meta-item span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* Intensity dot row — global (used by sdh_render_product_card on homepage AND brand/archive pages) */
.sdh-intensity {
	display: inline-flex;
	align-items: center;
	gap: clamp(2.5px, 0.6vw, 3.5px);
	line-height: 1;
}
.sdh-idot {
	display: block;
	width: clamp(6px, 1.5vw, 8px);
	height: clamp(6px, 1.5vw, 8px);
	border-radius: 50%;
	background: currentColor;
	opacity: 0.25;
	flex-shrink: 0;
}
.sdh-idot.is-on { opacity: 1; }

/* ============================================================
 * NARROW CARD LAYOUT · container query (< 220px)
 * SIZE cell removed — meta is now always 2 columns (TIME + INTENSITY).
 * No extra rows needed on narrow cards. Container query kept as hook
 * in case future cells need narrow-card handling.
 * ============================================================ */
@container sdh-card (max-width: 220px) {
	/* Meta already repeat(2, 1fr) — no reflow rule needed.
	 * Keeping the @container block as an extension point. */
}

/* ============================================================
 * ACTIONS ROW · qty selector + Add button — always a single row.
 * Desktop: flex:1 qty / flex:1 add — equal natural widths.
 * Mobile (≤767px): qty=60% / add=40% for easy tap targets.
 * ============================================================ */
.sdh-card__actions {
	width: 100%;
	margin-top: clamp(8px, 1vw, 12px);
	padding-top: 0;
	/* border-top removed — sdh-card__meta's border-block-end already provides the separator */
	display: flex;
	flex-direction: row;
	align-items: stretch;    /* both pills grow to the same height */
	gap: clamp(6px, 0.7vw, 8px);
}
/* Single-line row on all screen sizes — qty + add-to-cart always side-by-side */

/* Qty +/- selector — pill matches ADD TO CART height via stretch */
.sdh-card__qty {
	display: inline-flex;
	align-items: center;         /* center -/value/+ vertically inside the pill */
	flex-shrink: 0;              /* never compress the qty pill */
	background: #fff;
	border: 1px solid var(--sdh-brass-border-28);
	border-radius: var(--sdh-radius-pill);
	overflow: hidden;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 1px 3px rgba(17, 24, 39, 0.04);
}
.sdh-card__qty-btn {
	appearance: none;
	background: transparent;
	border: 0;
	/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(32px,3vw,36px) / clamp(28px,2.8vw,32px) / clamp(15px,1.1vw,17px) */
	width: clamp(36.96px, 3.465vw, 41.58px);  /* slightly wider tap area */
	height: 100%;                    /* fills the stretched pill height */
	min-height: clamp(32.34px, 3.245vw, 36.96px);
	font-size: clamp(17.325px, 1.276vw, 19.635px);
	font-weight: 700;
	color: var(--sdh-ink-700);
	cursor: pointer;
	line-height: 1;
	padding: 0;
	transition: background 0.18s var(--sdh-ease), color 0.18s var(--sdh-ease);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	user-select: none;
	font-family: inherit;
}
.sdh-card__qty-btn:hover,
.sdh-card__qty-btn:focus {
	background: var(--sdh-brass-bg-10);
	color: var(--sdh-brass-deep);
}
.sdh-card__qty-btn:active {
	background: var(--sdh-brass-bg-18);
}
.sdh-card__qty-btn:focus-visible {
	outline: 2px solid var(--sdh-brass);
	outline-offset: 2px;
}
.sdh-card__qty-val {
	/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(26px,2.6vw,32px) / clamp(11px,0.9vw,13px) */
	min-width: clamp(30.03px, 3.003vw, 36.96px);
	text-align: center;
	font-size: clamp(12.705px, 1.045vw, 15.015px);
	font-weight: 700;
	color: var(--sdh-ink-900);
	font-variant-numeric: tabular-nums;
	user-select: none;
	line-height: 1;
}

/* Add to Cart button — fills remaining row space on desktop, full-width on mobile */
.sdh-card__add {
	appearance: none;
	flex: 1;
	min-width: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* ×1.05 then +10% again (2026-09-10, round 2) — gap was clamp(5px,0.6vw,7px), padding
	 * clamp(9px,1.05vw,12px) clamp(12px,1.4vw,16px), font-size clamp(10px,0.78vw,11.5px),
	 * min-height 40px */
	gap: clamp(5.775px, 0.693vw, 8.085px);
	padding: clamp(10.395px, 1.21vw, 13.86px) clamp(13.86px, 1.617vw, 18.48px);
	background: var(--sdh-ink-900);
	color: #fff;
	border: 0;
	border-radius: var(--sdh-radius-pill);
	font-family: inherit;
	font-size: clamp(11.55px, 0.902vw, 13.31px);
	font-weight: 900;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	cursor: pointer;
	min-height: 46.2px;
	line-height: 1;
	box-shadow: 0 6px 16px rgba(17, 24, 39, 0.16);
	transition:
		background 0.25s var(--sdh-ease),
		transform 0.18s var(--sdh-ease),
		box-shadow 0.25s var(--sdh-ease),
		color 0.25s var(--sdh-ease);
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	position: relative;
}
.sdh-card__add:focus {
	background-color: var(--sdh-ink-900);
}
.sdh-card__add:hover {
	background: var(--sdh-brass-deep);
	transform: translateY(-1px);
	box-shadow: 0 12px 24px rgba(111, 78, 55, 0.30);
}
.sdh-card__add:active,
.sdh-card__add.is-pressing {
	transform: scale(0.96);
	background: var(--sdh-brass-deep);
	transition-duration: 80ms;
}
.sdh-card__add:focus-visible {
	outline: 2px solid var(--sdh-brass);
	outline-offset: 2px;
}
.sdh-card__add[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}
.sdh-card__add-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	/* ×1.05 then +10% again (2026-09-10, round 2) — was clamp(14px, 1.05vw, 16px) */
	width: clamp(16.17px, 1.21vw, 18.48px);
	height: clamp(16.17px, 1.21vw, 18.48px);
}
.sdh-card__add-icon svg {
	width: 100%;
	height: 100%;
}

/* Add smooth fade on content elements so loading state is silky */
.sdh-card__add-icon,
.sdh-card__add-label {
	transition: opacity 0.18s var(--sdh-ease);
	flex-shrink: 0;
}

/* ============================================================
 * TRIAL — Shop/Category/Brand grid cards styled to match the homepage
 * rail's compact look, 2026-09-14. Scoped to .sdh-card--grid-homepage-style-test
 * (same is_shop()/is_product_category()/is_tax('product_brand') flag as the
 * icon-only button above — this class rides on the same PHP boolean).
 * Deliberately does NOT touch .sdh-card__media height/flex — that's the
 * card's photo box, tightly coupled to the zoom fix (.sdh-card--cigar
 * .sdh-card__img width/height: 128.25%) and the border-line alignment fix
 * from earlier today. Values below are homepage's own narrowest/most-compact
 * numbers (assets/css/homepage-hero.css, the "mobile 2-col Vault grid" block
 * around line 5920-6010) applied flat, not homepage's full responsive
 * cascade — these grid cards are narrow (~165px) at every breakpoint anyway,
 * so homepage's own "narrow card" end-state is the relevant reference. This
 * is explicitly a first-pass visual trial, not a finished port. */
.sdh-card--grid-homepage-style-test {
	border-radius: clamp(11.55px, 1.155vw, 16.17px);
}
.sdh-card--grid-homepage-style-test .sdh-card__info {
	/* !important needed — tsd_render_meta_row_spacing_fix() (functions.php)
	 * outputs an inline <style> block targeting .sdh-card__info /
	 * .sd-home .sdh-card__info with !important, which otherwise beats this
	 * rule regardless of load order. Higher specificity (2 classes vs 1)
	 * plus matching !important is what actually wins here. */
	padding: 5.775px 0 8.085px !important;
	gap: 2.31px !important;
}
.sdh-card--grid-homepage-style-test .sdh-card__title {
	font-size: 11.55px;
	min-height: calc(1.2em * 2);
	line-height: 1.2;
}
.sdh-card--grid-homepage-style-test .sdh-card__price {
	font-size: 12.705px;
	line-height: 1.1;
}

/* Icon-only Add-to-Cart variant — Shop, Category, and Brand archive pages only
 * (flag set in functions.php's sdh_render_product_card(): $_sdh_icon_only_add).
 * Hides the "Add" text label, leaving just the cart icon — but MOBILE ONLY
 * (2026-09-14, follow-up: desktop keeps the full icon + "Add" text button,
 * exactly as it always has, on every page — this variant only ever changes
 * mobile). Homepage, product page, accessories page, and search results are
 * unaffected at any width (the class is never applied there at all). */
@media (max-width: 767px) {
	.sdh-card__add--icon-only .sdh-card__add-label {
		display: none;
	}
}

/* Override — three of the templates that use icon-only mode (archive-product.php,
 * taxonomy-product_cat.php, taxonomy-product_brand.php) each carry their own inline
 * <style> block with a pre-existing, unrelated mobile rule:
 *   @media (max-width: 767px) { .sdh-card__add-icon { display: none !important; } }
 * — added previously so mobile showed the text label only, icon hidden, to save
 * width. Icon-only mode now hides the label instead, so on mobile that old rule
 * would leave the button completely empty. This override beats it purely on
 * selector specificity (two classes vs. one), regardless of which stylesheet
 * loads first or is inline. */
@media (max-width: 767px) {
	.sdh-card__add--icon-only .sdh-card__add-icon {
		display: inline-flex !important;
	}
}

/* ─── 3-dot pulse loader — centered, absolutely positioned ─────────────────
 * Hidden by default. Fades in when .is-loading is set by JS.
 * Dots pulse in sequence — modern iOS/Android app loading feel.
 * ─────────────────────────────────────────────────────────────────────────── */
.sdh-card__add-loader {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s var(--sdh-ease);
}
.sdh-card__add-loader span {
	display: block;
	width: 5px;
	height: 5px;
	border-radius: 50%;
	background: #ffffff;
	flex-shrink: 0;
	animation: sdhDotPulse 1.1s ease-in-out infinite both;
}
.sdh-card__add-loader span:nth-child(1) { animation-delay: 0s; }
.sdh-card__add-loader span:nth-child(2) { animation-delay: 0.18s; }
.sdh-card__add-loader span:nth-child(3) { animation-delay: 0.36s; }

@keyframes sdhDotPulse {
	0%, 55%, 100% { transform: scale(0.55); opacity: 0.35; }
	27.5%         { transform: scale(1);    opacity: 1;    }
}

/* Loading state — fade out content, fade in dots.
 * .is-loading = set by the homepage custom handler (legacy, now unused).
 * .loading    = set by the cart plugin (js-sd-drawer-add-to-cart handler).
 * Both classes produce the same visual state. */
.sdh-card__add.is-loading,
.sdh-card__add.loading {
	pointer-events: none;
	background: var(--sdh-ink-700);
}
.sdh-card__add.is-loading .sdh-card__add-icon,
.sdh-card__add.is-loading .sdh-card__add-label,
.sdh-card__add.loading .sdh-card__add-icon,
.sdh-card__add.loading .sdh-card__add-label {
	opacity: 0;
}
.sdh-card__add.is-loading .sdh-card__add-loader,
.sdh-card__add.loading .sdh-card__add-loader {
	opacity: 1;
}

/* Success / error flash states */
.sdh-card__add.is-success {
	background: #1e9d4e;
	box-shadow: 0 10px 22px rgba(30, 157, 78, 0.30);
}
.sdh-card__add.is-error {
	background: #c43d3d;
	box-shadow: 0 10px 22px rgba(196, 61, 61, 0.30);
	animation: sdhCardShake 0.4s var(--sdh-ease);
}
@keyframes sdhCardShake {
	0%, 100% { transform: translateX(0); }
	25%      { transform: translateX(-3px); }
	75%      { transform: translateX(3px); }
}

/* Qty + button max-reached state — brief pulse to signal the cap */
.sdh-card__qty-btn.is-maxed {
	animation: sdhQtyMaxPulse 0.35s var(--sdh-ease) forwards;
}
@keyframes sdhQtyMaxPulse {
	0%   { transform: scale(1);    background: rgba(201, 164, 90,0.08); }
	40%  { transform: scale(0.88); background: rgba(201, 164, 90,0.22); }
	100% { transform: scale(1);    background: transparent; }
}

/* ── STOCK MODAL ─────────────────────────────────────────────────────────────
   All colours use hardcoded brand values alongside CSS-variable fallbacks.
   This is intentional: the modal is position:fixed so it floats outside the
   .sd-home ancestor that scopes the --sdh-* variables. Hardcoded values
   guarantee correct rendering even if variable inheritance breaks.
   Brand palette: brass #c9a45a · brass-deep #7a4f1c · ink-900 #111827
                  ink-700 #374151 · ink-500 #4B5563
   ──────────────────────────────────────────────────────────────────────── */
body.sd-stock-modal-open { overflow: hidden; }

.sd-stock-modal {
	position: fixed;
	inset: 0;
	z-index: 10200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(18, 14, 10, 0);
	-webkit-backdrop-filter: blur(0px); backdrop-filter: blur(0px);
	-webkit-backdrop-filter: blur(0px);
	transition: background 0.28s ease, backdrop-filter 0.28s ease;
	pointer-events: none;
}
.sd-stock-modal.is-active {
	background: rgba(18, 14, 10, 0.52);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	pointer-events: auto;
}
.sd-stock-modal__card {
	position: relative;
	background: #ffffff;
	border-radius: 24px;
	overflow: hidden; /* clips the ::before accent line to the rounded corners */
	padding: clamp(2rem, 5vw, 2.75rem) clamp(1.75rem, 4vw, 2.5rem);
	width: min(420px, 100%);
	box-shadow:
		0 0 0 1px rgba(201, 164, 90, 0.28),
		0 24px 60px rgba(18, 14, 10, 0.20);
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(0.85rem, 1.4vw, 1.1rem);
	transform: translateY(18px) scale(0.96);
	opacity: 0;
	transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.24s ease;
}
/* Top brass accent line — matches the site's card language */
.sd-stock-modal__card::before {
	content: '';
	position: absolute;
	inset-block-start: 0;
	inset-inline: 0;
	height: 3px;
	background: linear-gradient(90deg, #c9a45a 0%, #7a4f1c 50%, #c9a45a 100%);
	border-radius: 24px 24px 0 0;
}
.sd-stock-modal.is-active .sd-stock-modal__card {
	transform: translateY(0) scale(1);
	opacity: 1;
}

/* Close × button — theme-safe reset */
.sd-stock-modal__close {
	position: absolute !important;
	top: 14px !important;
	right: 16px !important;
	width: 32px !important;
	height: 32px !important;
	padding: 0 !important;
	border: none !important;
	border-radius: 50% !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #9b6b28 !important;
	font-size: 20px !important;
	line-height: 1 !important;
	font-family: inherit !important;
	cursor: pointer !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	box-shadow: none !important;
	transition: background 0.18s ease, color 0.18s ease !important;
}
.sd-stock-modal__close:hover {
	background: rgba(201, 164, 90, 0.10) !important;
	background-color: rgba(201, 164, 90, 0.10) !important;
	color: #111827 !important;
}

/* Icon circle */
.sd-stock-modal__icon {
	width: clamp(52px, 7vw, 62px);
	height: clamp(52px, 7vw, 62px);
	border-radius: 50%;
	background: rgba(201, 164, 90, 0.09);
	border: 1.5px solid rgba(201, 164, 90, 0.28);
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}
.sd-stock-modal__icon svg {
	width: clamp(22px, 3vw, 28px);
	height: clamp(22px, 3vw, 28px);
	color: #7a4f1c;
	stroke: #7a4f1c;
}

/* Text */
.sd-stock-modal__title {
	font-family: inherit;
	font-size: clamp(1.05rem, 1.8vw, 1.2rem);
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #111827;
	margin: 0;
	line-height: 1.25;
}
.sd-stock-modal__body {
	font-size: clamp(0.875rem, 1.3vw, 0.95rem);
	color: #374151;
	line-height: 1.6;
	margin: 0;
}
.sd-stock-modal__body strong {
	color: #111827;
	font-weight: 700;
}

/* Action buttons */
.sd-stock-modal__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin-top: clamp(0.2rem, 0.5vw, 0.4rem);
}

/* Primary CTA — brass gold pill — consistent with minimum-order modal brand language */
.sd-stock-modal__add-btn {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: block !important;
	width: 100% !important;
	padding: clamp(11px, 2.5vw, 14px) clamp(20px, 4vw, 28px) !important;
	border-radius: 999px !important;
	border: none !important;
	background: #c9a45a !important;
	background-color: #c9a45a !important;
	color: #ffffff !important;
	font-family: inherit !important;
	font-size: clamp(10px, 1.1vw, 11px) !important;
	font-weight: 800 !important;
	letter-spacing: 0.14em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	text-align: center !important;
	box-shadow: 0 4px 14px rgba(201, 164, 90, 0.38) !important;
	transition: background 0.22s ease, transform 0.15s ease, box-shadow 0.22s ease !important;
}
.sd-stock-modal__add-btn:hover {
	background: #b8934a !important;
	background-color: #b8934a !important;
	transform: translateY(-1px) !important;
	box-shadow: 0 6px 22px rgba(201, 164, 90, 0.50) !important;
}
.sd-stock-modal__add-btn:active {
	transform: translateY(0) !important;
}

/* Secondary — subtle ink outline, NO theme colour */
.sd-stock-modal__cancel {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: block !important;
	width: 100% !important;
	padding: 12px 20px !important;
	border-radius: 12px !important;
	border: 1.5px solid rgba(201, 164, 90, 0.35) !important;
	background: #ffffff !important;
	background-color: #ffffff !important;
	color: #374151 !important;
	font-family: inherit !important;
	font-size: clamp(0.8rem, 1.2vw, 0.875rem) !important;
	font-weight: 600 !important;
	letter-spacing: 0.01em !important;
	cursor: pointer !important;
	text-align: center !important;
	box-shadow: none !important;
	transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease !important;
}
.sd-stock-modal__cancel:hover {
	background: rgba(201, 164, 90, 0.06) !important;
	background-color: rgba(201, 164, 90, 0.06) !important;
	color: #111827 !important;
	border-color: rgba(201, 164, 90, 0.55) !important;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.sd-stock-modal,
	.sd-stock-modal__card { transition: none !important; }
	.sdh-card__qty-btn.is-maxed { animation: none; }
}

/* Reduced motion · respect user preference */
@media (prefers-reduced-motion: reduce) {
	.sdh-card,
	.sdh-card__img,
	.sdh-card__buy-overlay,
	.sdh-card__buy-pill,
	.sdh-card__add,
	.sdh-card__qty-btn,
	.sdh-card__add-icon,
	.sdh-card__add-label,
	.sdh-card__add-loader {
		transition: none !important;
	}
	.sdh-card:hover,
	.sdh-card:active { transform: none; }
	.sdh-card:hover .sdh-card__img { transform: none; }
	.sdh-card__add:hover { transform: none; }
	/* Replace pulse animation with a static single-dot indicator */
	.sdh-card__add-loader span { animation: none; opacity: 1; }
	.sdh-card__add-loader span:nth-child(1),
	.sdh-card__add-loader span:nth-child(3) { opacity: 0.35; }
	.sdh-card__add.is-error { animation: none; }
}


/* Mobile: qty = 65%, Add = 35% — wider qty for easy tap, breathing gap between pills.
 * All fixed values ×1.05 then +10% again (2026-09-10, round 2) — were gap:4px, qty padding:3px 4px,
 * qty gap:1px, qty-btn 28px/28px/28px/14px, qty-val 18px/14px, add 0 10px/12px/44px. */
@media (max-width: 767px) {
	.sdh-card__actions {
		gap: 4.62px;
	}
	.sdh-card__qty {
		padding: 3.465px 4.62px;
		gap: 1.155px;
	}
	.sdh-card__qty-btn {
		width: 32.34px;
		min-width: 32.34px;
		min-height: 32.34px;
		font-size: 16.17px;
	}
	.sdh-card__qty-val {
		flex: 0 0 auto;
		min-width: 20.79px;
		font-size: 16.17px;
	}
	.sdh-card__add {
		padding: 0 11.55px;
		font-size: 13.86px;
		letter-spacing: 0.14em;
		min-height: 50.82px;
		gap: 0;
	}
	.sdh-card__add-icon { display: none; }
	.sdh-card__add-loader {
		gap: 4px;
	}
	.sdh-card__add-loader span {
		width: 4px;
		height: 4px;
	}
}
/* Restore cart icon on phones wide enough to show both icon + label */
@media (min-width: 360px) and (max-width: 767px) {
	.sdh-card__add {
		gap: 5.775px;
	}
	/* +10% again (2026-09-10, round 2) — was width/height 14.7px */
	.sdh-card__add-icon {
		display: inline-flex;
		width: 16.17px;
		height: 16.17px;
	}
}

/* ============================================================
 * BUY NOW · premium checkout overlay + toast notifications
 * Ported from front-page.php so archive/brand/category pages get
 * the same "Securing your order" transition before checkout redirect.
 * Markup is printed via functions.php (wp_footer), JS lives in the
 * page template that owns the Buy Now click handler.
 * ============================================================ */
body.sd-modal-open { overflow: hidden; }

.sd-checkout-overlay {
	position: fixed !important;
	inset: 0;
	z-index: 2147483647;
	background:
		radial-gradient(circle at 50% 50%, rgba(201, 164, 90, 0.08) 0%, rgba(255, 255, 255, 0.97) 70%),
		rgba(17, 24, 39, 0.08);
	-webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
	-webkit-backdrop-filter: blur(14px) saturate(1.2);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease-out;
	padding: clamp(16px, 3vw, 28px);
	overscroll-behavior: contain;
}
.sd-checkout-overlay.is-active {
	opacity: 1 !important;
	pointer-events: auto !important;
	visibility: visible !important;
	display: flex !important;
}

.sd-checkout-overlay__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(16px, 2vw, 26px);
	padding: clamp(2rem, 4.5vw, 3.4rem) clamp(1.8rem, 4vw, 3.5rem);
	background: #ffffff;
	border: 1px solid var(--sdh-brass-border-28);
	border-radius: clamp(20px, 2.6vw, 32px);
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.7) inset,
		0 28px 70px rgba(17, 24, 39, 0.22),
		0 6px 18px rgba(201, 164, 90, 0.14);
	width: min(calc(100% - 32px), 420px);
	max-width: 420px;
	text-align: center;
	transform: scale(0.96) translateY(8px);
	transition: transform 0.25s ease-out;
	position: relative;
	overflow: hidden;
}
.sd-checkout-overlay.is-active .sd-checkout-overlay__inner {
	transform: scale(1) translateY(0);
}
.sd-checkout-overlay__inner::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: linear-gradient(90deg, var(--sdh-brass) 0%, var(--sdh-brass-deep) 50%, var(--sdh-brass) 100%);
}
.sd-checkout-overlay__inner::after {
	content: '';
	position: absolute;
	inset: -40% -40% auto auto;
	width: 70%;
	height: 70%;
	background: radial-gradient(circle, rgba(201, 164, 90, 0.12) 0%, transparent 65%);
	filter: blur(28px);
	pointer-events: none;
	z-index: 0;
}
.sd-checkout-overlay__inner > * {
	position: relative;
	z-index: 1;
}

.sd-checkout-overlay__brand {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: clamp(6px, 0.8vw, 10px);
}
.sd-checkout-overlay__logo {
	max-width: clamp(120px, 38%, 160px);
	height: auto;
	display: block;
	object-fit: contain;
	filter: brightness(1);
}
.sd-checkout-overlay__divider {
	width: 40px;
	height: 1px;
	background: var(--sdh-brass-border-28);
	margin: 0 auto clamp(6px, 0.8vw, 10px);
}

.sd-checkout-overlay__spinner {
	width: clamp(54px, 5.5vw, 64px);
	height: clamp(54px, 5.5vw, 64px);
	position: relative;
	margin: clamp(4px, 0.6vw, 8px) 0;
}
.sd-checkout-overlay__spinner::before {
	content: '';
	position: absolute;
	inset: 0;
	border: 3px solid var(--sdh-brass-bg-18);
	border-top-color: var(--sdh-brass);
	border-radius: 50%;
	animation: sdcSpin 0.9s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}
.sd-checkout-overlay__spinner::after {
	content: '';
	position: absolute;
	inset: 8px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(201, 164, 90, 0.18) 0%, rgba(201, 164, 90, 0.04) 60%, transparent 100%);
	animation: sdcPulseInner 1.5s ease-in-out infinite;
}
@keyframes sdcSpin { to { transform: rotate(360deg); } }
@keyframes sdcPulseInner {
	0%, 100% { transform: scale(1);    opacity: 0.6; }
	50%      { transform: scale(0.85); opacity: 1;   }
}

.sd-checkout-overlay__msg {
	font-weight: 800;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	font-size: clamp(12px, 0.95vw, 13.5px);
	color: var(--sdh-ink-900);
	line-height: 1.3;
	animation: sdcMsgPulse 1.8s ease-in-out infinite;
}
.sd-checkout-overlay__sub {
	font-size: clamp(11px, 0.85vw, 12.5px);
	color: var(--sdh-ink-500);
	font-weight: 500;
	letter-spacing: 0.02em;
	margin: -8px 0 0;
	max-width: 30ch;
	line-height: 1.5;
}
@keyframes sdcMsgPulse {
	0%, 100% { opacity: 1; }
	50%      { opacity: 0.5; }
}

.sd-checkout-overlay__trust {
	display: flex;
	gap: clamp(8px, 1.2vw, 14px);
	margin-top: clamp(4px, 0.6vw, 8px);
	padding-top: clamp(12px, 1.5vw, 16px);
	border-top: 1px solid var(--sdh-brass-border-28);
	flex-wrap: wrap;
	justify-content: center;
}
.sd-checkout-overlay__trust span {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: clamp(9px, 0.75vw, 10.5px);
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--sdh-brass-deep);
}
.sd-checkout-overlay__trust span::before {
	content: '✓';
	color: var(--sdh-brass);
	font-weight: 900;
}

.sd-checkout-overlay__cloudflare {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-top: clamp(8px, 1vw, 12px);
	font-size: clamp(8.5px, 0.7vw, 10px);
	font-weight: 600;
	letter-spacing: 0.07em;
	text-transform: uppercase;
	color: #6b7280;
	opacity: 0.75;
}
.sd-checkout-overlay__cloudflare svg {
	flex-shrink: 0;
	width: clamp(12px, 1.1vw, 14px);
	height: clamp(12px, 1.1vw, 14px);
}

@media (max-width: 575px) {
	.sd-checkout-overlay {
		padding: 16px;
	}
	.sd-checkout-overlay__inner {
		width: 100%;
		padding: clamp(1.8rem, 7vw, 2.4rem) clamp(1.4rem, 6vw, 2rem);
		border-radius: 22px;
		gap: 14px;
	}
	.sd-checkout-overlay__msg {
		font-size: 12px;
	}
	.sd-checkout-overlay__trust {
		gap: 8px;
	}
	.sd-checkout-overlay__trust span {
		font-size: 9px;
	}
	.sd-checkout-overlay__logo {
		max-width: 110px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sd-checkout-overlay,
	.sd-checkout-overlay__inner { transition: none; }
	.sd-checkout-overlay__spinner::before,
	.sd-checkout-overlay__spinner::after,
	.sd-checkout-overlay__msg { animation: none; }
}

.sd-toast {
	position: fixed;
	bottom: clamp(16px, 2vw, 28px);
	right: clamp(16px, 2vw, 28px);
	z-index: 1000000;
	min-width: 280px;
	max-width: 420px;
	transform: translateY(140%);
	opacity: 0;
	pointer-events: none;
	transition:
		transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.3s var(--sdh-ease);
	font-family: inherit;
}
.sd-toast[hidden] { display: none; }
.sd-toast.is-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
.sd-toast__inner {
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.2vw, 14px);
	padding: clamp(12px, 1.3vw, 16px) clamp(14px, 1.5vw, 18px);
	background:
		radial-gradient(circle at top right, rgba(201, 164, 90, 0.22) 0%, transparent 65%),
		linear-gradient(135deg, rgba(17, 24, 39, 0.96) 0%, rgba(28, 33, 46, 0.95) 100%);
	border: 1px solid var(--sdh-brass-border-28);
	border-radius: clamp(12px, 1.3vw, 16px);
	box-shadow:
		0 1px 0 rgba(245, 223, 174, 0.08) inset,
		0 20px 50px rgba(17, 24, 39, 0.35);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	-webkit-backdrop-filter: blur(14px);
}
.sd-toast__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: clamp(28px, 2.4vw, 34px);
	height: clamp(28px, 2.4vw, 34px);
	border-radius: 50%;
	background: var(--sdh-brass-bg-18);
	border: 1px solid var(--sdh-brass-border-28);
	color: #F5DFAE;
	flex-shrink: 0;
}
.sd-toast__msg {
	flex: 1 1 auto;
	color: #ffffff;
	font-size: clamp(13px, 0.95vw, 14px);
	font-weight: 600;
	line-height: 1.45;
	letter-spacing: 0.01em;
}
.sd-toast__close {
	flex: 0 0 auto;
	background: transparent;
	border: none;
	color: rgba(255, 255, 255, 0.55);
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 28px;
	height: 28px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: color 0.2s var(--sdh-ease), background 0.2s var(--sdh-ease);
	font-family: inherit;
}
.sd-toast__close:hover {
	color: #fff;
	background: rgba(255, 255, 255, 0.08);
}
.sd-toast__close:focus-visible {
	outline: 2px solid var(--sdh-brass);
	outline-offset: 2px;
}

@media (max-width: 575px) {
	.sd-toast {
		left: 16px;
		right: 16px;
		bottom: 16px;
		max-width: none;
		min-width: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.sd-toast { transition: opacity 0.2s ease; transform: none; }
	.sd-toast.is-visible { transform: none; }
}
 .sd-stock-modal[hidden]{display:none !important}

/* 2026-10-10 — narrow-card fixes v2 (brand / category / shop pages only). Desktop/tablet unchanged.
   Backup of the original file: shop-styles.css.10oct-before-qty-fix */
@media (max-width:479px){
  body.tax-product_brand .sdh-card__actions,
  body.tax-product_cat .sdh-card__actions,
  body.post-type-archive-product .sdh-card__actions,
  body.woocommerce-shop .sdh-card__actions{display:flex!important;flex-wrap:nowrap!important;gap:4px!important;padding-left:4px!important;padding-right:4px!important;min-width:0!important;box-sizing:border-box!important;}
  body.tax-product_brand .sdh-card__qty,
  body.tax-product_cat .sdh-card__qty,
  body.post-type-archive-product .sdh-card__qty,
  body.woocommerce-shop .sdh-card__qty{flex:1 1 auto!important;min-width:0!important;padding-left:2px!important;padding-right:2px!important;justify-content:space-between!important;}
  body.tax-product_brand .sdh-card__qty-btn,
  body.tax-product_cat .sdh-card__qty-btn,
  body.post-type-archive-product .sdh-card__qty-btn,
  body.woocommerce-shop .sdh-card__qty-btn{width:26px!important;min-width:26px!important;flex:0 0 26px!important;}
  body.tax-product_brand .sdh-card__qty-val,
  body.tax-product_cat .sdh-card__qty-val,
  body.post-type-archive-product .sdh-card__qty-val,
  body.woocommerce-shop .sdh-card__qty-val{min-width:14px!important;flex:1 1 auto!important;text-align:center!important;}
  body.tax-product_brand .sdh-card__add,
  body.tax-product_cat .sdh-card__add,
  body.post-type-archive-product .sdh-card__add,
  body.woocommerce-shop .sdh-card__add{flex:0 0 auto!important;min-width:40px!important;padding-left:10px!important;padding-right:10px!important;}
  /* brand pill ("NEW WORLD CIGARS") fits inside the card */
  body.tax-product_brand .sdh-card__brand,
  body.tax-product_cat .sdh-card__brand,
  body.post-type-archive-product .sdh-card__brand,
  body.woocommerce-shop .sdh-card__brand{letter-spacing:.06em!important;max-width:100%!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;box-sizing:border-box!important;}
  /* cigar picture a little bigger */
  body.tax-product_brand .sdh-card--cigar .sdh-card__img,
  body.tax-product_cat .sdh-card--cigar .sdh-card__img,
  body.post-type-archive-product .sdh-card--cigar .sdh-card__img,
  body.woocommerce-shop .sdh-card--cigar .sdh-card__img{transform:scale(1.15)!important;transform-origin:center center!important;}
}
/* very small phones (<360px): qty on its own row, ADD full width below — nothing hidden */
@media (max-width:359px){
  body.tax-product_brand .sdh-card__actions,
  body.tax-product_cat .sdh-card__actions,
  body.post-type-archive-product .sdh-card__actions,
  body.woocommerce-shop .sdh-card__actions{flex-wrap:wrap!important;gap:6px!important;}
  body.tax-product_brand .sdh-card__qty,
  body.tax-product_cat .sdh-card__qty,
  body.post-type-archive-product .sdh-card__qty,
  body.woocommerce-shop .sdh-card__qty{flex:1 1 100%!important;width:100%!important;}
  body.tax-product_brand .sdh-card__add,
  body.tax-product_cat .sdh-card__add,
  body.post-type-archive-product .sdh-card__add,
  body.woocommerce-shop .sdh-card__add{flex:1 1 100%!important;width:100%!important;min-height:40px!important;justify-content:center!important;}
}
/* brand "About" facts boxes: long words (ACCESSORIES, Honduras) no longer overflow */
@media (max-width:399px){
  body.tax-product_brand .tsd-about__facts,
  body.tax-product_cat .tsd-about__facts,
  body.post-type-archive-product .tsd-about__facts,
  body.woocommerce-shop .tsd-about__facts{gap:8px!important;}
  body.tax-product_brand .tsd-about__facts span,
  body.tax-product_cat .tsd-about__facts span,
  body.post-type-archive-product .tsd-about__facts span,
  body.woocommerce-shop .tsd-about__facts span{letter-spacing:.05em!important;overflow-wrap:anywhere!important;}
  body.tax-product_brand .tsd-about__facts strong,
  body.tax-product_cat .tsd-about__facts strong,
  body.post-type-archive-product .tsd-about__facts strong,
  body.woocommerce-shop .tsd-about__facts strong{font-size:15px!important;overflow-wrap:anywhere!important;}
  body.tax-product_brand .tsd-about__facts li,
  body.tax-product_cat .tsd-about__facts li,
  body.post-type-archive-product .tsd-about__facts li,
  body.woocommerce-shop .tsd-about__facts li{min-width:0!important;overflow:hidden!important;}
}
