/*
Theme Name: Blocksy Child - Artisan Duka
Theme URI: https://artisandukastore.com
Description: Custom child theme for Artisan Duka store
Author: Artisan Duka
Author URI: https://artisandukastore.com
Template: blocksy
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blocksy-child
*/

/* ═══════════════════════════════════════════════════════════
   GLOBAL BRAND TOKENS — Used across all pages
   ═══════════════════════════════════════════════════════════ */
:root {
    /* ── Neutrals ── */
    --ad-white:       #FFFFFF;
    --ad-offwhite:    #FAFAFB;
    --ad-gray-50:     #F5F5F5;
    --ad-gray-100:    #EBEBEB;
    --ad-gray-200:    #D4D4D4;
    --ad-gray-500:    #7D7D7D;
    --ad-gray-700:    #595959;
    --ad-gray-800:    #363636;
    --ad-gray-900:    #222222;
    --ad-black:       #000000;

    /* ── Warm Tones (African Earth) ── */
    --ad-sand:        #F5EDDF;
    --ad-sand-light:  #FAF7F2;
    --ad-brown-600:   #7B4B2A;
    --ad-brown-800:   #3D2B1F;

    /* ── Primary: Gold (Craft, warmth, heritage) ── */
    --ad-gold:        #E3B90A;
    --ad-gold-dark:   #C9A008;
    --ad-gold-light:  rgba(227, 185, 10, .12);

    /* ── Secondary: Teal (Trust, nature, freshness) ── */
    --ad-teal:        #0F4747;
    --ad-teal-light:  rgba(15, 71, 71, .10);
    --ad-sage:        #C9DCDD;
    --ad-sage-dark:   #8AB2B5;

    /* ── Accent: Green (Success, shipping, verified) ── */
    --ad-green:       #40864C;

    /* ── Accent: Terracotta (Sale, urgency, warmth) ── */
    --ad-terracotta:  #C1440E;
    --ad-terracotta-light: #F5E6DF;

    /* ── Semantic ── */
    --ad-sale:        var(--ad-terracotta);
    --ad-urgency:     var(--ad-terracotta);
    --ad-success:     var(--ad-green);
    --ad-wishlist:    var(--ad-teal);
    --ad-error:       #B33A2B;

    /* ── Overlays ── */
    --ad-overlay-dark:  rgba(0, 0, 0, .55);
    --ad-overlay-light: rgba(255, 255, 255, .5);

    /* ── Layout ── */
    --ad-radius:      12px;
    --ad-radius-lg:   16px;
    --ad-ease:        cubic-bezier(.25,.46,.45,.94);
    --ad-font:        -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* ── Hover effect config (change once, applies everywhere) ── */
    --ad-hover-gradient:  linear-gradient(135deg, var(--ad-gold) 0%, var(--ad-brown-600) 40%, var(--ad-gold-dark) 70%, var(--ad-sand) 100%);
    --ad-hover-border-w:  2.5px;
    --ad-hover-radius:    calc(var(--ad-radius-lg) + 6px);
    --ad-hover-speed:     .3s;
    --ad-hover-bg:        var(--ad-white);
    --ad-hover-lift:      -2px;
    --ad-hover-shadow:    0 6px 20px rgba(0,0,0,.07);
    --ad-hover-scale:     1.03;
}


/* ═══════════════════════════════════════════════════════════
   GLOBAL CARD HOVER — Earthy gradient border ring
   Apply to any card element via the selector list below.
   To add a new card type, just append its selector.
   ═══════════════════════════════════════════════════════════ */

/* Step 1: Base setup — add padding for the border, relative positioning */
.ad-interest,
.ad-cat-card,
.ad-gift-guide__card,
.ad-pill,
.ad-product-card,
.ad-occasion-card,
.ad-pcard {
    position: relative;
    transition: background var(--ad-hover-speed) var(--ad-ease),
                transform var(--ad-hover-speed) var(--ad-ease),
                box-shadow var(--ad-hover-speed) var(--ad-ease);
}

/* Step 2: Pseudo-element gradient ring — hidden by default */
.ad-interest::before,
.ad-cat-card::before,
.ad-gift-guide__card::before,
.ad-pill::before,
.ad-product-card::before,
.ad-occasion-card::before,
.ad-pcard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: var(--ad-hover-border-w);
    background: var(--ad-hover-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--ad-hover-speed) var(--ad-ease);
    pointer-events: none;
    z-index: 1;
}

/* Step 3: Hover state — reveal ring + lift + glow */
.ad-interest:hover::before,
.ad-cat-card:hover::before,
.ad-gift-guide__card:hover::before,
.ad-pill:hover::before,
.ad-product-card:hover::before,
.ad-occasion-card:hover::before,
.ad-pcard:hover::before {
    opacity: 1;
}

.ad-interest:hover,
.ad-cat-card:hover,
.ad-gift-guide__card:hover,
.ad-pill:hover,
.ad-product-card:hover,
.ad-occasion-card:hover,
.ad-pcard:hover {
    background: var(--ad-hover-bg);
    transform: translateY(var(--ad-hover-lift));
    box-shadow: var(--ad-hover-shadow);
}

/* ── Reduce motion for accessibility ── */
@media (prefers-reduced-motion: reduce) {
    .ad-interest::before,
    .ad-cat-card::before,
    .ad-gift-guide__card::before,
    .ad-pill::before,
    .ad-product-card::before,
    .ad-occasion-card::before,
    .ad-pcard::before {
        transition: none;
    }
    .ad-interest,
    .ad-cat-card,
    .ad-gift-guide__card,
    .ad-pill,
    .ad-product-card,
    .ad-occasion-card,
    .ad-pcard {
        transition: none;
    }
}


/* Override Blocksy's overflow:clip on #main-container so search dropdown can escape */
#main-container { overflow: visible !important; }

/* ── Hide site title text, keep only the logo image ── */
.site-branding .site-title-container {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   REMOVE floating KES/USD currency sidebar
   ═══════════════════════════════════════════════════════════ */
#wcuCurrencySwitcherFloating {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   HEADER ROW 1 — Etsy-exact layout
   [Logo] [≡ Categories] [===Search===🔍] [Sign in] [🌐] [♡] [🛒]
   ═══════════════════════════════════════════════════════════ */

header.ct-header [data-row="middle"] {
    border-bottom: none;
    padding-block: 0 !important;
    background: #fff;
    min-height: 0 !important;    /* kill Blocksy's fixed row height — stops the bottom gap */
    height: auto !important;
    position: relative;
    z-index: 100;                /* ensure search dropdown paints above subnav + page content */
}

header.ct-header [data-row="middle"] .ct-container {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    max-width: 1400px;
    padding: 10px 36px !important;
    --height: auto !important;          /* override Blocksy's 120px variable */
    height: auto !important;
    min-height: 0 !important;
}

/* Logo — collapse Blocksy's inflated --height variable through the entire wrapper chain.
   Blocksy sets --height:120px on the row which cascades into [data-column] > div > div > .site-branding > a.
   Every level inherits that height. We nuke it at every level so the column
   shrinks to the natural 60px image size. */
header.ct-header [data-row="middle"] [data-column="start"],
header.ct-header [data-row="middle"] [data-column="start"] > *,
header.ct-header [data-row="middle"] [data-column="start"] > * > *,
header.ct-header [data-row="middle"] .site-branding,
header.ct-header [data-row="middle"] .site-logo-container {
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
header.ct-header [data-row="middle"] [data-column="start"] {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    align-self: center !important;
}
header.ct-header [data-row="middle"] .site-branding {
    display: flex;
    align-items: center;
    line-height: 1;
}
header.ct-header .site-branding img {
    max-height: 70px !important;
    width: auto !important;
    display: block;
}

/* Hide Blocksy end & middle columns on DESKTOP only (mobile keeps its hamburger) */
header.ct-header [data-device="desktop"] [data-row="middle"] [data-column="end"] {
    display: none !important;
}
header.ct-header [data-device="desktop"] [data-row="middle"] [data-column="middle"] {
    display: none !important;
}

/* Hide default Blocksy search */
header.ct-header .ct-header-search {
    display: none !important;
}

/* Search bar — takes ALL remaining space */
header.ct-header .ad-header-search {
    flex: 1 1 auto !important;
    min-width: 0;
    max-width: none !important;
    margin: 0 !important;
}

/* ── Categories button (Etsy hamburger) ── */
.ad-header-categories {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    font-size: .88rem;
    font-weight: 600;
    color: var(--ad-gray-900);
    background: none;
    border: none;
    border-radius: 24px;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}
.ad-header-categories:hover {
    background: var(--ad-gray-50);
}
.ad-header-categories svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Action icons group (right side) ── */
.ad-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

/* Sign in text link */
.ad-header-actions__text {
    font-size: .85rem;
    font-weight: 600;
    color: var(--ad-gray-900);
    text-decoration: none;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 20px;
    transition: background .15s;
}
.ad-header-actions__text:hover {
    background: var(--ad-gray-50);
    text-decoration: underline;
}

/* Icon links (currency, wishlist, cart) */
.ad-header-actions__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ad-gray-900);
    text-decoration: none;
    transition: background .15s;
    position: relative;
    flex-shrink: 0;
}
.ad-header-actions__link:hover {
    background: var(--ad-gray-50);
}
.ad-header-actions__link svg {
    width: 22px;
    height: 22px;
}

/* Cart count badge */
.ad-header-actions__badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #E3B90A;
    color: #fff;
    font-size: .6rem;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    line-height: 1;
}

/* ── Currency dropdown (Etsy-style globe button) ── */
.ad-currency-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: var(--ad-gray-900);
    background: none;
    border: none;
    cursor: pointer;
    transition: background .15s;
    position: relative;
    flex-shrink: 0;
    padding: 0;
}
.ad-currency-btn:hover {
    background: var(--ad-gray-50);
}
.ad-currency-btn svg {
    width: 22px;
    height: 22px;
}

/* Currency dropdown panel */
.ad-currency-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid var(--ad-gray-200);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,.12);
    min-width: 160px;
    padding: 8px 0;
    z-index: 9999;
}
.ad-currency-btn.ad-open .ad-currency-dropdown {
    display: block;
}
.ad-currency-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: .86rem;
    font-weight: 500;
    color: var(--ad-gray-900);
    cursor: pointer;
    transition: background .1s;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
}
.ad-currency-option:hover {
    background: var(--ad-gray-50);
}
.ad-currency-option.ad-active {
    font-weight: 700;
    color: #E3B90A;
}

/* ═══════════════════════════════════════════════════════════
   SEARCH BAR (injected into header — global)
   ═══════════════════════════════════════════════════════════ */
.ad-header-search {
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid var(--ad-gray-200);
    border-radius: 28px;
    overflow: visible !important;  /* MUST be visible for search dropdown */
    transition: border-color .3s var(--ad-ease), box-shadow .3s var(--ad-ease);
    background: var(--ad-white);
    box-shadow: 0 0 0 0 transparent;
}
.ad-header-search:focus-within {
    border-color: var(--ad-gold);
    box-shadow: 0 0 0 1px var(--ad-gold), 0 2px 10px rgba(212,162,76,.12);
}
.ad-header-search input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 8px 14px;
    font-size: .83rem;
    font-family: var(--ad-font);
    background: transparent;
    color: var(--ad-gray-900);
    min-width: 0;
}
.ad-header-search input[type="text"]::placeholder { color: var(--ad-gray-500); }
.ad-header-search button {
    background: var(--ad-gold);
    border: none;
    padding: 8px 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 26px 26px 0;
    transition: background .2s;
    flex-shrink: 0;
}
.ad-header-search button:hover { background: var(--ad-gold-dark); }
.ad-header-search button svg { color: var(--ad-white); width: 16px; height: 16px; }

/* ── Search dropdown — Etsy-style suggestions ── */
.ad-header-search { position: relative; z-index: 10000; }

.ad-search-drop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--ad-white);
    border: 1px solid var(--ad-gray-200);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    z-index: 9999;
    max-height: 340px;
    overflow-y: auto;
    scrollbar-width: thin;
    /* Smooth open/close */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .2s var(--ad-ease), transform .2s var(--ad-ease), visibility .2s;
    pointer-events: none;
}
.ad-search-drop.ad-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Section heading inside dropdown */
.ad-search-drop__heading {
    padding: 10px 14px 6px;
    font-size: .72rem;
    font-weight: 600;
    color: var(--ad-gray-500);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Gift suggestion rows */
.ad-search-drop__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    text-decoration: none;
    color: var(--ad-gray-900);
    font-size: .84rem;
    font-weight: 400;
    border-radius: 8px;
    margin: 0 6px;
    position: relative;
    transition: background .15s var(--ad-ease), color .15s;
    cursor: pointer;
}
.ad-search-drop__item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--ad-hover-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--ad-hover-speed) var(--ad-ease);
    pointer-events: none;
}
.ad-search-drop__item:hover::before,
.ad-search-drop__item.ad-active::before {
    opacity: 1;
}
.ad-search-drop__item:hover,
.ad-search-drop__item.ad-active {
    background: var(--ad-sand-light);
}
.ad-search-drop__item img {
    width: 32px; height: 32px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.ad-search-drop__item-icon {
    width: 32px; height: 32px;
    border-radius: 6px;
    background: var(--ad-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--ad-gold);
}
.ad-search-drop__item-icon svg {
    width: 15px; height: 15px;
}

/* Autocomplete suggestion rows */
.ad-search-drop__suggest {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin: 0 6px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ad-gray-900);
    font-size: .84rem;
    position: relative;
    transition: background .15s var(--ad-ease);
    cursor: pointer;
}
.ad-search-drop__suggest::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.5px;
    background: var(--ad-hover-gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--ad-hover-speed) var(--ad-ease);
    pointer-events: none;
}
.ad-search-drop__suggest:hover::before,
.ad-search-drop__suggest.ad-active::before {
    opacity: 1;
}
.ad-search-drop__suggest:hover,
.ad-search-drop__suggest.ad-active {
    background: var(--ad-sand-light);
}
.ad-search-drop__suggest svg {
    width: 14px; height: 14px;
    color: var(--ad-gray-500);
    flex-shrink: 0;
}
.ad-search-drop__suggest strong {
    font-weight: 600;
}

/* "find products containing" row */
.ad-search-drop__find {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-top: 1px solid var(--ad-gray-100);
    text-decoration: none;
    color: var(--ad-gray-500);
    font-size: .8rem;
    transition: background .15s var(--ad-ease);
    cursor: pointer;
}
.ad-search-drop__find:hover {
    background: var(--ad-sand-light);
}
.ad-search-drop__find strong {
    color: var(--ad-gray-900);
    font-weight: 600;
}

/* Divider */
.ad-search-drop__divider {
    height: 1px;
    background: var(--ad-gray-100);
    margin: 4px 0;
}


/* ═══════════════════════════════════════════════════════════
   SECONDARY NAV (category bar below header — global)
   ═══════════════════════════════════════════════════════════ */
.ad-subnav {
    background: var(--ad-white);
    border-bottom: 3px solid var(--ad-gold);
    padding: 0;
    margin-top: 0 !important;
    overflow-x: auto;
    scrollbar-width: none;
}
.ad-subnav::-webkit-scrollbar { display: none; }

.ad-subnav__inner {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 36px;
    white-space: nowrap;
}

.ad-subnav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--ad-gray-900);
    text-decoration: none;
    padding: 11px 14px;
    transition: color .2s, background .2s;
    border-radius: 6px 6px 0 0;
    position: relative;
}
.ad-subnav__link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 14px;
    right: 14px;
    height: 3px;
    background: var(--ad-gray-900);
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform .2s ease;
}
.ad-subnav__link:hover {
    color: var(--ad-gray-900);
    background: var(--ad-gray-50);
}
.ad-subnav__link:hover::after {
    transform: scaleX(1);
}
.ad-subnav__link svg { width: 15px; height: 15px; flex-shrink: 0; opacity: .7; }
.ad-subnav__link:hover svg { opacity: 1; }

/* ── Categories dropdown wrapper & panel ── */
.ad-cat-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.ad-cat-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid var(--ad-gray-200);
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,.13);
    min-width: 230px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    pointer-events: none;
}
.ad-cat-panel.ad-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}
.ad-cat-panel__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    font-size: .88rem;
    color: var(--ad-gray-900);
    text-decoration: none;
    transition: background .12s;
    white-space: nowrap;
    gap: 12px;
}
.ad-cat-panel__item:hover {
    background: var(--ad-gray-50);
    color: var(--ad-gray-900);
    text-decoration: none;
}
.ad-cat-panel__count {
    font-size: .75rem;
    color: var(--ad-gray-500);
    flex-shrink: 0;
}
.ad-cat-panel__divider {
    height: 1px;
    background: var(--ad-gray-100);
    margin: 6px 0;
}
.ad-cat-panel__all {
    display: block;
    padding: 10px 18px;
    font-size: .88rem;
    font-weight: 600;
    color: #E3B90A;
    text-decoration: none;
    transition: background .12s;
}
.ad-cat-panel__all:hover {
    background: var(--ad-gray-50);
    color: #C9A008;
}

/* Expanded state indicator on the button itself */
.ad-header-categories[aria-expanded="true"] {
    background: var(--ad-gray-100);
}

/* Ensure the header-actions wrapper doesn't clip the currency dropdown */
.ad-header-actions {
    position: relative;
    align-items: center;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE SEARCH — Etsy-style pill (hidden on desktop)
   ═══════════════════════════════════════════════════════════ */
/* Blocksy hides [data-device="mobile"] on desktop and [data-device="desktop"]
   on mobile, so we don't need display:none — just style the pill. */
.ad-mobile-search {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    z-index: 9999;
}

/* ── Pill: compact capsule with gold circle button ── */
.ad-mobile-search__pill {
    display: flex;
    align-items: center;
    border: 1px solid var(--ad-gray-200);
    border-radius: 20px;
    background: var(--ad-white);
    padding: 0;
    padding-left: 12px;
    gap: 0;
    height: 36px;
    transition: border-color .25s var(--ad-ease), box-shadow .25s var(--ad-ease);
}
.ad-mobile-search__pill:focus-within {
    border-color: var(--ad-gold);
    box-shadow: 0 0 0 1px var(--ad-gold);
}

/* ── Input ── */
.ad-mobile-search__pill input[type="text"] {
    flex: 1;
    border: none;
    outline: none;
    padding: 6px 4px;
    font-size: .82rem;
    font-weight: 500;
    font-family: var(--ad-font);
    background: transparent;
    color: var(--ad-gray-900);
    min-width: 0;
    height: 100%;
}
.ad-mobile-search__pill input[type="text"]::placeholder {
    color: var(--ad-gray-500);
    font-weight: 500;
}

/* ── Gold circle search button (like Etsy's orange circle) ── */
.ad-mobile-search__pill button {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    border-radius: 50% !important;
    border: none !important;
    background: var(--ad-gold) !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    margin: 4px;
    padding: 0 !important;
    transition: background .2s var(--ad-ease), transform .1s;
    box-sizing: border-box;
}
.ad-mobile-search__pill button:hover {
    background: var(--ad-gold-dark) !important;
}
.ad-mobile-search__pill button:active {
    transform: scale(.93);
}
.ad-mobile-search__pill button svg {
    width: 14px !important;
    height: 14px !important;
    stroke: #fff !important;
    color: #fff !important;
    display: block;
    flex-shrink: 0;
}

/* ── Mobile dropdown — reuses desktop item/suggest classes ── */
.ad-mobile-drop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0; right: 0;
    background: var(--ad-white);
    border: 1px solid var(--ad-gray-200);
    border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.10);
    max-height: 60vh;
    overflow-y: auto;
    scrollbar-width: thin;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .2s var(--ad-ease), transform .2s var(--ad-ease), visibility .2s;
    pointer-events: none;
    z-index: 10000;
}
.ad-mobile-drop.ad-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ── Tablet ── */
@media (max-width: 1024px) {
    .ad-subnav__inner { justify-content: flex-start; gap: 2px; padding: 0 20px; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    /* Desktop header row — hide custom elements (Blocksy hides the whole row anyway) */
    header.ct-header .ad-header-search {
        display: none !important;
    }
    .ad-header-categories {
        display: none !important;
    }
    .ad-header-actions {
        display: none !important;
    }

    /* Mobile header row — layout for search pill */
    header.ct-header [data-device="mobile"] [data-row="middle"] .ct-container {
        display: flex !important;
        align-items: center !important;
        padding: 6px 12px !important;
        gap: 10px !important;
    }
    header.ct-header [data-device="mobile"] .site-branding img {
        max-height: 36px !important;
    }

    .ad-subnav__inner { gap: 0; padding: 0 12px; }
    .ad-subnav__link { padding: 10px 10px; font-size: .8rem; }
}
