/* Header v3 — Dual logo + Mega menu + Inline layout */

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: var(--z-header);
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 14px clamp(var(--s5), 5vw, var(--s9));
    display: flex;
    align-items: center;
    gap: clamp(var(--s5), 3vw, var(--s8));
    transition: all var(--dur-3) var(--ease-out);
    /* Always dark glass — hero bg is light now */
    background: transparent;
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-header--scrolled {
    background: rgba(6,6,6,.58);
    border-bottom-color: var(--flint);
    padding-top: 10px;
    padding-bottom: 10px;
}

/* ── DUAL LOGO ────────────────────────────────────────────── */
.site-header__logo { flex-shrink: 0; text-decoration: none; }

.logo-stack {
    position: relative;
    display: block;
    width: 200px;
    height: 84px;
    /* NO overflow:hidden — logos are transparent PNGs, shimmer uses mask-image */
}

/* ── LOGO SHIMMER — follows logo shape via mask-image ─────── */
/*
   We animate background-position (no translateX) so the mask-image
   stays fixed in the element's own coordinate space.
   background-size: 50% 100% → image is half the container width (100px).
   offset formula: (container - bg_size) * % / 100 = 100px * % / 100 = 1px per 1%
   -100% → offset -100px (starts fully off-screen left)
    200% → offset +200px (ends fully off-screen right)
*/
@keyframes logo-shimmer {
    0%   { background-position: -100% center; }
    100% { background-position: 200% center; }
}

.logo-stack::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 15%,
        rgba(255,255,255,.95) 50%,
        transparent 85%
    );
    background-size: 50% 100%;
    background-repeat: no-repeat;
    background-position: -100% center; /* starts off-screen left */
    /* Clip shimmer to the logo shape only */
    -webkit-mask-image: url('/images/logo.png');
    mask-image: url('/images/logo.png');
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    pointer-events: none;
    z-index: 20;
}

/* Switch mask to match the active/visible logo */
.site-header__logo:has(.logo-hover.activated) .logo-stack::after {
    -webkit-mask-image: url('/images/logo-delicatese.png');
    mask-image: url('/images/logo-delicatese.png');
}
.site-header__logo:has(.logo-hover-over.activated) .logo-stack::after {
    -webkit-mask-image: url('/images/logo-atelier.png');
    mask-image: url('/images/logo-atelier.png');
}
/* On hover, switch mask to the logo that becomes visible */
.site-header__logo:hover .logo-stack::after {
    -webkit-mask-image: url('/images/logo-delicatese.png');
    mask-image: url('/images/logo-delicatese.png');
}
.site-header__logo:hover:has(.logo-hover-over.activated) .logo-stack::after {
    -webkit-mask-image: url('/images/logo-atelier.png');
    mask-image: url('/images/logo-atelier.png');
}

.logo-stack.is-glowing::after {
    animation: logo-shimmer 1.2s cubic-bezier(.3, 0, .2, 1) forwards;
    scale: 1;
    margin-top:6px;
}

.site-header__logo:has(.logo-hover.activated) .logo-stack.is-glowing::after,
.site-header__logo:has(.logo-hover-over.activated) .logo-stack.is-glowing::after,
.site-header__logo:hover .logo-stack.is-glowing::after {
    scale: 1.12;
    margin-top:-6px;
}

/* ── LOGO IMAGES ──────────────────────────────────────────── */
.logo-main,
.logo-hover,
.logo-hover-over {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity var(--dur-3) var(--ease-out),
                transform var(--dur-3) var(--ease-out),
                filter var(--dur-2) var(--ease-out);
    transform-origin: center bottom;
    margin-top: 8px;
}

/* Default state */
.logo-main        { opacity: 1; transform: scale(1);    z-index: 2; }
.logo-hover       { opacity: 0; transform: scale(1);  z-index: 1; }
.logo-hover-over  { opacity: 0; transform: scale(1);  z-index: 0; }

/* Activated: page-specific logo takes over */
.site-header__logo:has(.logo-hover.activated) .logo-main      { opacity: 0; transform: scale(1); }
.site-header__logo:has(.logo-hover-over.activated) .logo-main { opacity: 0; transform: scale(1); }
.site-header__logo .logo-hover.activated      { opacity: 1; transform: scale(1.2); }
.site-header__logo .logo-hover-over.activated { opacity: 1; transform: scale(1.2); }


/* Hover: cross-fade to delicatese logo with a slight grow
   (unless atelier is activated — then hover enhances atelier, not delicatese) */
.site-header__logo:hover:not(:has(.logo-hover-over.activated)) .logo-hover {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 2px 12px rgba(184,150,62,.45));
}

.site-header--scrolled .site-header__logo:hover .logo-main {
    opacity: 1;
    transform: scale(1) translateY(14px);
}

.site-header__logo:hover .logo-main{
    opacity: 1;
    transform: scale(1) translateY(16px);
}

/* Activated logos get enhanced on hover */
.site-header__logo:hover .logo-hover.activated {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 2px 12px rgba(184,150,62,.45));
}
.site-header__logo:hover .logo-hover-over.activated {
    opacity: 1;
    transform: scale(1.2);
    filter: drop-shadow(0 2px 12px rgba(184,150,62,.45));
}
/* Keep main hidden when activated logo is hovered */
.site-header__logo:hover:has(.logo-hover.activated) .logo-main      { opacity: 0; }
.site-header__logo:hover:has(.logo-hover-over.activated) .logo-main { opacity: 0; }


.site-header--scrolled .logo-stack { width: 170px; height: 70px; }

@media (max-width: 960px) {
    .site-header {
        min-height: 82px;
        padding: 10px 16px;
        gap: 10px;
        background: transparent !important;
        /* background: linear-gradient(180deg, rgba(15,13,9,.96), rgba(7,7,6,.88)); */
    }
    .site-header--scrolled {
        padding-top: 8px;
        padding-bottom: 8px;
    }
    .logo-stack { width: 150px; height: 63px; }
    .site-header__actions {
        flex: 0 0 auto;
        min-width: 0;
        gap: 5px;
        margin-left: auto;
    }
    .header-icon {
        width: 34px;
        height: 34px;
    }
    .header-icon--auth {
        display: none;
    }
    .hamburger {
        width: 38px;
        height: 38px;
        padding: 8px;
    }
    .cart-badge {
        top: -5px;
        right: -4px;
        width: 17px;
        height: 17px;
        font-size: 9px;
        box-shadow: 0 0 0 2px rgba(9,8,6,.92);
    }
    .site-header__logo:hover .logo-main{
        transform: scale(1) translateY(12px);
    }
    .site-header__logo:has(.logo-hover.activated) .logo-stack.is-glowing::after,
    .site-header__logo:has(.logo-hover-over.activated) .logo-stack.is-glowing::after,
    .site-header__logo:hover .logo-stack.is-glowing::after {
        scale: 1;
        margin-top:0;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding-inline: 10px;
        gap: 6px;
    }
    .logo-stack {
        width: 122px;
        height: 52px;
    }
    .site-header__actions {
        gap: 3px;
    }
    .header-icon {
        width: 32px;
        height: 32px;
    }
    .hamburger {
        width: 36px;
        height: 36px;
    }
    .site-header__logo .logo-hover.activated,
    .site-header__logo .logo-hover-over.activated,
    .site-header__logo:hover:not(:has(.logo-hover-over.activated)) .logo-hover,
    .site-header__logo:hover .logo-hover.activated,
    .site-header__logo:hover .logo-hover-over.activated {
        transform: scale(1.08);
    }
}

@media (max-width: 430px) {
    .header-icon--wishlist {
        display: none;
    }
}

/* ── NAV ─────────────────────────────────────────────────── */
.site-header__nav {
    display: flex;
    gap: clamp(var(--s5), 2.5vw, var(--s7));
    margin-left: auto;
    align-items: center;
}

.nav-link, .site-header__nav a {
    font-size: var(--t1);
    font-weight: 500;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(242,234,216,.75);
    transition: color var(--dur-1);
    position: relative;
    padding-bottom: 3px;
    white-space: nowrap;
    text-decoration: none;
}
.nav-link::after, .site-header__nav a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--dur-2) var(--ease-out);
}
.nav-link:hover,
.nav-link.router-link-active,
.site-header__nav a:hover,
.site-header__nav a.router-link-active {
    color: var(--parchment);
}
.nav-link:hover::after,
.nav-link.router-link-active::after,
.site-header__nav a:hover::after,
.site-header__nav a.router-link-active::after { width: 100%; }

.nav-atelier {
    color: var(--gold) !important;
    display: flex;
    align-items: center;
    gap: var(--s2);
}
.nav-atelier::after { background: var(--gold) !important; }

.seasonal-dot {
    width: 5px; height: 5px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 6px #4ade80;
    flex-shrink: 0;
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.4; transform:scale(1.5); }
}

/* ── MEGA MENU TRIGGER ───────────────────────────────────── */
.nav-item { position: relative; }
.nav-item--mega { display: flex; align-items: center; }

/* ── MEGA MENU ───────────────────────────────────────────── */
.mega-menu {
    position: fixed;
    top: var(--mega-top, 84px);
    left: 0;
    right: 0;
    background: var(--void);
    border-top: 1px solid rgba(255,255,255,.07);
    border-bottom: 1px solid rgba(255,255,255,.07);
    box-shadow: 0 40px 80px rgba(0,0,0,.75);
    z-index: calc(var(--z-header) - 1);
    overflow: hidden;
}

/* ── MEGA MENU — full-width 7-tile editorial row ─────────── */

/* Full-width 7 tiles in a single row — no sidebar */
.mega-cats {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    height: clamp(260px, 28vw, 380px);
}

.mega-cat-item {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--parchment);
    border-right: 1px solid rgba(255,255,255,.06);
    position: relative;
    overflow: hidden;
    transition: flex var(--dur-3) var(--ease-out);
}
.mega-cat-item:last-child { border-right: none; }

/* Gold bottom accent on hover / active */
.mega-cat-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-2) var(--ease-out);
    z-index: 3;
}
.mega-cat-item:hover::before { transform: scaleX(1); }

.mega-cat-img {
    flex: 1;
    overflow: hidden;
    background: var(--carbon);
    position: relative;
}
.mega-cat-img img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: saturate(.78) brightness(.72);
    transform: scale(1.01);
    transform-origin: center;
    transition: transform var(--dur-3) var(--ease-out);
}
.mega-cat-item:hover .mega-cat-img img {
    transform: scale(1.025);
}

/* Promo tile has contain instead of cover */
.mega-cat-img--promo {
    background: linear-gradient(135deg, #12100a, #1c1610);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--s4);
}
.mega-cat-img--promo img {
    object-fit: contain;
    filter: none;
    max-height: 110px;
    width: auto;
}
.mega-cat-item--promo { background: #0e0c08; }
.mega-cat-item--promo:hover { background: #181410; }
.mega-cat-item--promo .mega-cat-img img { filter: none; transform: none; }
.mega-cat-item--promo:hover .mega-cat-img img { transform: scale(1.025); }

.mega-cat-body {
    padding: var(--s3) var(--s4) var(--s4);
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--void);
    border-top: 1px solid rgba(255,255,255,.05);
    transition: border-top-color var(--dur-2), background var(--dur-2);
    flex-shrink: 0;
}
.mega-cat-item:hover .mega-cat-body { border-top-color: rgba(184,150,62,.4); }
.mega-cat-item--promo .mega-cat-body { background: rgba(184,150,62,.06); border-top-color: rgba(184,150,62,.25); }

.mega-promo-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--void);
    background: var(--gold);
    padding: 1px 6px;
    margin-bottom: 2px;
    align-self: flex-start;
}

.mega-cat-name {
    font-family: var(--font-display);
    font-size: clamp(var(--t2), 1.1vw, var(--t4));
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1.2;
    display: block;
    transition: color var(--dur-1);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mega-cat-item:hover .mega-cat-name { color: var(--gold-light); }
.mega-cat-item--promo .mega-cat-name { color: var(--gold-light); }
.mega-cat-count {
    font-size: 10px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cream-ghost);
}

/* Bottom links bar */
.mega-bottom-bar {
    display: flex;
    align-items: center;
    gap: var(--s7);
    padding: var(--s3) var(--s6);
    background: var(--carbon);
    border-top: 1px solid rgba(255,255,255,.06);
}
.mega-bottom-link {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cream-ghost);
    text-decoration: none;
    transition: color var(--dur-1);
}
.mega-bottom-link:hover { color: var(--gold-light); }

/* Mega menu transition */
.mega-enter-active { transition: opacity var(--dur-2), transform var(--dur-2) var(--ease-out); }
.mega-leave-active { transition: opacity var(--dur-1); }
.mega-enter-from { opacity: 0; transform: translateY(-6px); }
.mega-leave-to   { opacity: 0; }


/* ── ACTIONS ─────────────────────────────────────────────── */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: var(--s3);
    margin-left: var(--s5);
}

.header-icon {
    position: relative;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(242,234,216,.7);
    border: 1px solid transparent;
    border-radius: 50%;
    transition: all var(--dur-1);
    text-decoration: none;
    flex-shrink: 0;
}
.header-icon:hover {
    color: var(--parchment);
    border-color: var(--flint);
    background: var(--stone);
}

/* Auth icon — slightly more prominent */
.header-icon--auth:not(.header-icon:hover) { color: rgba(242,234,216,.6); }

/* Cart */
.header-icon--cart { position: relative; }
.cart-badge {
    position: absolute;
    top: -3px; right: -3px;
    background: var(--gold);
    color: var(--void);
    font-size: 9px;
    font-weight: 700;
    width: 16px; height: 16px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* ── LANG SWITCHER ───────────────────────────────────────── */
/* Row variant — desktop glass pill */
.lang-sw--row {
    display: flex;
    align-items: center;
    border-radius: 4px;
    border: 1px solid rgba(232,212,160,.18);
    background: rgba(12,11,9,.38);
    backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 0 2px 12px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
    overflow: hidden;
    flex-shrink: 0;
}

/* Col variant — inside mobile nav */
.lang-sw--col {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: var(--s4);
}

.lang-sw__btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background var(--dur-2), color var(--dur-2);
    color: rgba(242,234,216,.52);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    line-height: 1;
    font-family: var(--font-ui);
    white-space: nowrap;
}
.lang-sw--row .lang-sw__btn { padding: 7px 11px; }
.lang-sw__btn:hover {
    color: var(--parchment);
    background: rgba(232,212,160,.08);
}
.lang-sw__btn.is-active {
    color: var(--gold);
    background: rgba(184,150,62,.16);
}

/* Flags */
.lang-sw__flag {
    display: block;
    width: 18px;
    height: 12px;
    flex-shrink: 0;
    border-radius: 1px;
    box-shadow: 0 0 0 1px rgba(255,255,255,.12);
}
.lang-sw__flag--uk { width: 22px; height: 11px; }

/* Divider between row buttons */
.lang-sw__sep {
    width: 1px;
    height: 14px;
    background: rgba(232,212,160,.14);
    flex-shrink: 0;
}

/* Col (mobile) overrides */
.lang-sw--col .lang-sw__btn {
    padding: var(--s4) clamp(var(--s5), 6vw, var(--s8));
    font-size: var(--t2);
    letter-spacing: .14em;
    gap: var(--s4);
    border-bottom: 1px solid rgba(255,255,255,.05);
    color: var(--cream-dim);
}
.lang-sw--col .lang-sw__btn.is-active { color: var(--gold); background: rgba(184,150,62,.10); }
.lang-sw--col .lang-sw__btn:last-of-type { border-bottom: none; }
.lang-sw--col .lang-sw__flag { width: 26px; height: 17px; }
.lang-sw--col .lang-sw__flag--uk { width: 30px; height: 15px; }

/* Checkmark shown next to active locale in col mode */
.lang-sw__check {
    width: 14px;
    height: 14px;
    color: var(--gold);
    margin-left: auto;
    flex-shrink: 0;
}

/* Show/hide per breakpoint */
.lang-sw-mobileonly  { display: none; }
@media (max-width: 960px) {
    .lang-sw-desktoponly { display: none !important; }
    .lang-sw-mobileonly  { display: flex; }
}

/* ── HAMBURGER (mobile) ──────────────────────────────────── */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
    background: transparent;
    border: 1px solid var(--flint);
    border-radius: var(--r1);
    cursor: pointer;
    flex-shrink: 0;
    width: 38px;
    height: 38px;
}
.hamburger span {
    display: block;
    width: 18px; height: 1.5px;
    background: rgba(242,234,216,.75);
    transition: transform 0.3s var(--ease-out), opacity 0.2s ease, width 0.2s ease;
    transform-origin: center;
}
/* Animate to X */
.hamburger.is-active span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.hamburger.is-active span:nth-child(2) {
    opacity: 0;
    width: 0;
}
.hamburger.is-active span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

/* ── MOBILE ──────────────────────────────────────────────── */
@media (max-width: 960px) {
    .hamburger { display: flex; }
    .mega-menu { display: none; }

    /* Nav panel drops below the fixed header bar */
    .site-header__nav {
        position: fixed;
        top: 100px; /* will be updated by JS if header height differs */
        left: 0;
        right: 0;
        background: rgba(6,6,6,.98);
        backdrop-filter: blur(24px) saturate(150%);
        -webkit-backdrop-filter: blur(24px) saturate(150%);
        border-bottom: 1px solid var(--flint);
        box-shadow: 0 24px 60px rgba(0,0,0,.7);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: var(--s2) 0 var(--s4);
        /* hidden by default */
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.28s var(--ease-out), opacity 0.22s ease, visibility 0s linear 0.28s;
        z-index: calc(var(--z-header) - 1);
        max-height: calc(100svh - 100px);
        overflow-y: auto;
    }
    .site-header__nav.is-open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        transition: transform 0.28s var(--ease-out), opacity 0.22s ease, visibility 0s linear 0s;
    }
    /* Nav items — full-width rows */
    .site-header__nav .nav-link,
    .site-header__nav > a {
        font-size: var(--t2);
        letter-spacing: .14em;
        text-transform: uppercase;
        display: block;
        padding: var(--s4) clamp(var(--s5), 6vw, var(--s8));
        border-bottom: 1px solid rgba(255,255,255,.05);
        text-align: center;
        width: 100%;
        white-space: normal;
    }
    .site-header__nav .nav-link:last-child,
    .site-header__nav > a:last-child { border-bottom: none; }
    .site-header__nav .nav-link::after { display: none; }
    .nav-item--mega {
        flex-direction: column;
        align-items: stretch;
    }
    .nav-item--mega .nav-link { width: 100%; }
}

@media (max-width: 960px) {
    .mega-cats { grid-template-columns: repeat(4, 1fr); height: auto; }
    .mega-cat-img { aspect-ratio: 3/4; flex: none; }
}

/* Push hero down (not needed since header is fixed and hero starts at 0) */
#poiana-app { padding-top: 0; }

/* ── INLINE SEARCH BAR ───────────────────────────────────── */

/* Desktop: absolutely covers the nav area */
.header-search-bar {
    position: absolute;
    left: 220px;   /* clear the logo */
    right: 180px;  /* clear the actions icons */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    background: rgba(12,10,8,.97);
    border: 1px solid var(--flint);
    backdrop-filter: blur(20px);
    z-index: calc(var(--z-header) + 5);
}

.site-header--search .site-header__nav {
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-1);
}

.search-bar__input {
    flex: 1;
    background: transparent;
    border: none;
    padding: var(--s3) var(--s5);
    color: var(--parchment);
    font-family: var(--font-ui);
    font-size: var(--t3);
    letter-spacing: .02em;
    outline: none;
    height: 42px;
}
.search-bar__input::placeholder { color: var(--cream-ghost); font-size: var(--t2); }
.search-bar__input::-webkit-search-cancel-button { display: none; }

.search-bar__close,
.search-bar__submit {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: var(--cream-ghost);
    cursor: pointer;
    transition: color var(--dur-1);
}
.search-bar__close { order: -1; border-right: 1px solid var(--flint); }
.search-bar__submit { border-left: 1px solid var(--flint); color: var(--gold); }
.search-bar__close:hover { color: var(--parchment); }
.search-bar__submit:hover { color: var(--parchment); }

/* Results dropdown (below the header bar) */
.search-bar__results {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    background: var(--void);
    border: 1px solid var(--flint);
    border-top: none;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 24px 60px rgba(0,0,0,.8);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: var(--s4);
    padding: var(--s3) var(--s5);
    text-decoration: none;
    color: var(--parchment);
    border-bottom: 1px solid rgba(255,255,255,.04);
    transition: background var(--dur-1);
}
.search-result-item:last-child { border-bottom: none; }
.search-result-item:hover { background: var(--stone); }
.search-result-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--carbon);
}
.search-result-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.search-result-name {
    display: block;
    font-size: var(--t2);
    color: var(--parchment);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result-price {
    display: block;
    font-size: var(--t1);
    color: var(--gold);
    letter-spacing: .06em;
}
.search-results--empty {
    padding: var(--s4) var(--s5);
    color: var(--cream-ghost);
    font-size: var(--t2);
    font-style: italic;
}

/* Search overlay (closes on click outside) */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: calc(var(--z-header) + 4);
    background: rgba(0,0,0,.4);
    backdrop-filter: blur(2px);
    cursor: default;
}

/* Transition */
.search-expand-enter-active { transition: opacity var(--dur-1), transform var(--dur-2) var(--ease-out); }
.search-expand-leave-active { transition: opacity var(--dur-1); }
.search-expand-enter-from { opacity: 0; transform: translateY(calc(-50% - 8px)); }
.search-expand-leave-to   { opacity: 0; }

/* Mobile: full-screen overlay */
@media (max-width: 960px) {
    .header-search-bar {
        position: fixed;
        inset: 0;
        left: 0;
        right: 0;
        top: 0;
        transform: none;
        flex-direction: column;
        align-items: stretch;
        background: rgba(6,6,6,.98);
        border: none;
        border-bottom: 1px solid var(--flint);
        padding-top: 80px;
        height: auto;
        max-height: 100svh;
    }
    .search-bar__input {
        height: 56px;
        font-size: var(--t4);
        border-bottom: 1px solid var(--flint);
        padding: var(--s4) var(--s6);
    }
    .search-bar__close {
        position: absolute;
        top: 20px;
        right: 16px;
        width: 44px;
        height: 44px;
        border: none;
        order: unset;
    }
    .search-bar__submit { display: none; }
    .search-bar__results {
        position: static;
        border: none;
        border-top: 1px solid var(--flint);
        box-shadow: none;
        max-height: calc(100svh - 200px);
    }
    .search-expand-enter-from { transform: translateY(-20px); }
    .search-overlay { background: transparent; }
}

/* Final mobile header compaction overrides. Keep these after desktop action styles. */
@media (max-width: 960px) {
    .site-header {
        min-height: 82px;
        padding: 10px 16px;
        gap: 10px;
        background: linear-gradient(180deg, rgba(15,13,9,.96), rgba(7,7,6,.88));
    }
    .site-header__actions {
        gap: 5px;
        margin-left: auto;
    }
    .header-icon {
        width: 34px;
        height: 34px;
    }
    .header-icon--auth {
        display: none;
    }
    .hamburger {
        width: 38px;
        height: 38px;
        padding: 8px;
    }
}

@media (max-width: 480px) {
    .site-header {
        padding-inline: 12px;
    }
    .logo-stack {
        width: 134px;
        height: 56px;
    }
    .site-header__actions {
        gap: 3px;
    }
    .header-icon {
        width: 32px;
        height: 32px;
    }
    .hamburger {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 390px) {
    .header-icon--wishlist {
        display: none;
    }
}
