/* ───────────────────────────────────────────────────────────────────
   GLOBAL TOKENS — single source of truth shared by all pages
   ─────────────────────────────────────────────────────────────────── */
:root {
    --gold: #C9A84C;
    --gold-light: #E8C97A;
    --gl: #E8C97A;
    --gold-dim: #8A6B2A;
    --gd: #8A6B2A;
    --gf: rgba(201,168,76,.10);
    --gff: rgba(201,168,76,.05);
    --black: #080808;
    --bk: #060606;
    --dark: #0F0F0F;
    --d1: #0B0B0B;
    --dark2: #161616;
    --d2: #121212;
    --dark3: #1E1E1E;
    --d3: #191919;
    --d4: #1E1E1E;
    --text: #F0EBE0;
    --tx: #EDE8DE;
    --text-muted: #9A9080;
    --tm: #8A8278;
    --text-dim: #5A5248;
    --td: #4A4640;
    --te: #2A2620;
    --border: rgba(201,168,76,.15);
    --br: rgba(201,168,76,.13);
    --border-strong: rgba(201,168,76,.35);
    --brh: rgba(201,168,76,.32);
    --brs: rgba(201,168,76,.55);
    --harmony: #C9A84C;
    --clash: #C97060;
    --neutral: #7A8A90;
}

/* Language switcher in the nav (visible in both LTR and RTL). */
.hb-lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border: 1px solid var(--br);
    background: transparent;
    color: var(--tm);
    font-size: 10px;
    letter-spacing: 1px;
    cursor: pointer;
    text-decoration: none;
}
.hb-lang-switch:hover { color: var(--gold); border-color: var(--brh); }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { background: var(--black); color: var(--text); font-family: 'Jost', sans-serif; font-weight: 300; overflow-x: hidden; min-height: 100vh; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--gold-dim); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ───────────────────────────────────────────────────────────────────
   MASTER NAVIGATION SHELL
   ─────────────────────────────────────────────────────────────────── */
.hb-shell-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; padding: 0 2.5rem;
    background: rgba(6,6,6,.92);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}
.hb-brand { display: flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; min-width: 0; }
.hb-brand-mark { width: 112px; height: 54px; flex-shrink: 0; object-fit: contain; display: block; filter: drop-shadow(0 8px 18px rgba(201,168,76,.2)); }
.hb-brand-text { font-family: 'Cormorant Garamond', serif; font-size: 21px; color: var(--gold); letter-spacing: 4px; }
.hb-brand-text em { font-style: italic; font-weight: 300; color: var(--gold-light); }
.hb-nav-list { display: flex; gap: 2rem; list-style: none; }
.hb-nav-link {
    color: var(--text-muted); font-size: 10px; letter-spacing: 2.5px; text-transform: uppercase;
    text-decoration: none; cursor: pointer; transition: .3s; padding: 6px 0; position: relative;
    font-weight: 400;
}
.hb-nav-link::after { content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 1px; background: var(--gold); transition: .3s; }
.hb-nav-link:hover { color: var(--text); }
.hb-nav-link:hover::after { width: 80%; }
.hb-nav-link.active { color: var(--gold); }
.hb-nav-link.active::after { width: 80%; }

.hb-facebook-share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 42px;
    padding: 11px 18px;
    background: rgba(24, 119, 242, .12);
    color: #dce9ff;
    border: 1px solid rgba(24, 119, 242, .58);
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 2px;
    line-height: 1.1;
    text-transform: uppercase;
    cursor: pointer;
    transition: .25s;
}
.hb-facebook-share:hover {
    background: rgba(24, 119, 242, .22);
    border-color: rgba(95, 158, 255, .85);
    color: #fff;
}
.hb-facebook-share-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1877f2;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
}
.detail-facebook-share {
    min-height: 50px;
    padding-inline: 24px;
}
.hb-nav-search {
    display: grid;
    grid-template-columns: 108px minmax(140px, 240px) 36px;
    align-items: center;
    min-width: 0;
    border: 1px solid var(--border);
    background: rgba(8,8,8,.58);
}
.hb-nav-search select,
.hb-nav-search input,
.hb-nav-search button {
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    outline: none;
}
.hb-nav-search select {
    padding: 0 8px;
    border-inline-end: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.hb-nav-search input {
    min-width: 0;
    padding: 0 10px;
}
.hb-nav-search button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gold);
}
.hb-nav-actions { display: flex; align-items: center; gap: .5rem; }
.hb-icon-btn {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    background: transparent; border: 1px solid transparent; color: var(--text-muted);
    cursor: pointer; transition: .25s; border-radius: 0; padding: 0; position: relative;
    text-decoration: none;
}
.hb-icon-btn:hover { color: var(--gold); border-color: var(--border-strong); }
.hb-cart-count {
    position: absolute; top: 2px; right: 2px;
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
    background: var(--gold); color: #0b0b0b;
    font-family: 'Jost', sans-serif; font-size: 9px; font-weight: 600; letter-spacing: .5px;
    display: flex; align-items: center; justify-content: center; line-height: 1;
    pointer-events: none;
    transform: scale(0); transition: transform .25s cubic-bezier(.5,1.6,.4,1);
}
.hb-cart-count.show { transform: scale(1); }
.hb-cart-count.bump { animation: hb-cart-bump .35s ease; }
@keyframes hb-cart-bump {
    0% { transform: scale(1); }
    40% { transform: scale(1.35); }
    100% { transform: scale(1); }
}
.hb-nav-burger { display: none; background: none; border: 0; color: var(--gold); font-size: 22px; cursor: pointer; padding: 4px 8px; }
.hb-mobile-gift-link { display: none; }

/* Reserve space below the fixed nav on every page */
.hb-page { padding-top: 64px; min-height: 100vh; }

/* Loading curtain */
.hb-loading { position: fixed; inset: 0; background: var(--black); z-index: 99999; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 1.5rem; transition: opacity .5s ease; }
.hb-loading.gone { opacity: 0; pointer-events: none; }
.hb-loading-spinner { width: 48px; height: 48px; border: 1px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: hb-spin 1s linear infinite; }
.hb-loading-text { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: var(--gold); letter-spacing: 4px; font-style: italic; }

.promo-gold-stamp {
    position: absolute;
    right: clamp(12px, 3vw, 28px);
    top: clamp(12px, 3vw, 28px);
    z-index: 6;
    width: clamp(62px, 6.6vw, 92px);
    aspect-ratio: 1;
    border: 1px solid rgba(232, 201, 122, .92);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    background: radial-gradient(circle, rgba(201, 168, 76, .16) 0%, rgba(12, 10, 6, .72) 68%, rgba(201, 168, 76, .1) 100%);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, .07), 0 10px 24px rgba(0, 0, 0, .34);
    transform: rotate(-14deg);
    pointer-events: none;
    text-align: center;
    text-transform: uppercase;
    font-family: 'Cormorant Garamond', serif;
}

.promo-gold-stamp::before {
    content: '';
    position: absolute;
    inset: 5px;
    border: 1px dashed rgba(232, 201, 122, .72);
    border-radius: 50%;
}

.promo-gold-stamp span {
    position: relative;
    display: block;
    font-size: clamp(10px, 1vw, 15px);
    line-height: .95;
    letter-spacing: 1.3px;
    font-weight: 600;
}

.promo-gold-stamp small {
    display: block;
    margin-top: 3px;
    font-family: 'Jost', sans-serif;
    font-size: clamp(5px, .55vw, 7px);
    letter-spacing: 1.3px;
    color: rgba(232, 201, 122, .76);
}

.promo-gold-stamp.compact {
    width: clamp(52px, 5.2vw, 70px);
    right: .75rem;
    top: auto;
    bottom: .75rem;
}

.promo-gold-stamp.compact span {
    font-size: clamp(8px, .82vw, 11px);
}

.promo-gold-stamp.compact small {
    font-size: 5px;
}

.perfume-stamp-stack {
    position: absolute;
    right: clamp(12px, 3vw, 28px);
    top: clamp(12px, 3vw, 28px);
    z-index: 6;
    display: grid;
    gap: 7px;
    justify-items: end;
    pointer-events: none;
}

.perfume-stamp-stack .promo-gold-stamp {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
}

.perfume-stamp-stack.compact {
    right: .75rem;
    top: auto;
    bottom: .75rem;
    gap: 5px;
}

.perfume-stamp-stack.compact .promo-gold-stamp {
    width: clamp(52px, 5.2vw, 70px);
}

.perfume-stamp-stack.compact .promo-gold-stamp span {
    max-width: calc(100% - 12px);
    font-size: clamp(7px, .72vw, 9px);
    letter-spacing: .45px;
}

.perfume-stamp-stack.compact .promo-gold-stamp small {
    font-size: 5px;
    letter-spacing: .7px;
}

.promo-gold-stamp.stamp-featured {
    transform: rotate(10deg);
    border-color: rgba(255, 244, 190, .88);
    color: #fff4be;
}

.promo-gold-stamp.stamp-bestseller {
    transform: rotate(-8deg);
    border-color: rgba(232, 201, 122, .96);
}

.promo-gold-stamp.promo-world-cup-stamp {
    width: clamp(92px, 10vw, 136px);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    transform: rotate(-7deg);
    overflow: visible;
}

.promo-gold-stamp.promo-world-cup-stamp::before {
    display: none;
}

.promo-gold-stamp.promo-world-cup-stamp img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .42));
}

.promo-gold-stamp.promo-world-cup-stamp.compact,
.perfume-stamp-stack.compact .promo-gold-stamp.promo-world-cup-stamp {
    width: clamp(78px, 8vw, 106px);
}

@media (max-width: 640px) {
    .promo-gold-stamp {
        right: 10px;
        top: 10px;
        width: 58px;
    }
    .perfume-stamp-stack {
        right: 10px;
        top: 10px;
        gap: 5px;
    }
    .perfume-stamp-stack.compact {
        right: .55rem;
        bottom: .55rem;
    }
    .promo-gold-stamp.promo-world-cup-stamp,
    .promo-gold-stamp.promo-world-cup-stamp.compact,
    .perfume-stamp-stack.compact .promo-gold-stamp.promo-world-cup-stamp {
        width: 82px;
    }
}
@keyframes hb-spin { to { transform: rotate(360deg); } }

/* Mobile drawer */
@media (max-width: 880px) {
    .hb-shell-nav {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "brand actions"
            "search search";
        align-items: center;
        height: auto;
        min-height: 108px;
        padding: .75rem 1.25rem .6rem;
        gap: .55rem .75rem;
        background: rgba(6,6,6,.98);
    }
    .hb-brand { grid-area: brand; min-width: 0; position: relative; z-index: 1; }
    .hb-nav-actions { grid-area: actions; gap: .45rem; position: relative; z-index: 1; }
    .hb-nav-actions > .hb-lang-switch,
    .hb-nav-actions > .hb-icon-btn,
    .hb-nav-actions > form,
    .hb-nav-actions > .hb-nav-link:not(.hb-mobile-gift-link) {
        display: none;
    }
    .hb-nav-list {
        position: fixed; top: 108px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: rgba(6,6,6,.98);
        border-bottom: 1px solid var(--border);
        padding: 1rem 0; gap: 0;
        max-height: calc(100dvh - 108px);
        overflow-y: auto;
        overscroll-behavior: contain;
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        transform: translateY(calc(-100% - 16px));
        transition: transform .28s ease, opacity .2s ease, visibility 0s linear .28s;
        z-index: 9997;
    }
    .hb-nav-list.open {
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
        transform: translateY(0);
        transition: transform .28s ease, opacity .2s ease;
    }
    .hb-nav-list li { border-bottom: 1px solid var(--border); }
    .hb-nav-list li:last-child { border-bottom: 0; }
    .hb-nav-link { display: block; text-align: center; padding: 14px 1.5rem; font-size: 11px; }
    .hb-nav-link::after { display: none; }
    .hb-nav-search {
        grid-area: search;
        position: static;
        width: 100%;
        grid-template-columns: minmax(92px, 30%) minmax(0, 1fr) 42px;
        border: 1px solid var(--border);
        transform: none;
        transition: none;
        z-index: auto;
        min-width: 0;
    }
    .hb-nav-burger { display: block; }
    .hb-mobile-gift-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 36px;
        max-width: 88px;
        padding: 0 8px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        border: 1px solid var(--border);
        color: var(--gold);
    }
    .hb-page { padding-top: 108px; }
    .hb-page--home #home-hero {
        height: calc(100vh - 108px);
        min-height: 520px;
    }
}

/* Footer */
.hb-footer {
    background: #040404; border-top: 1px solid var(--border);
    padding: 3rem 2.5rem 2rem; color: var(--text-muted); font-size: 11px; letter-spacing: .5px;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.hb-footer h4 { font-family: 'Cormorant Garamond', serif; color: var(--gold); font-weight: 400; font-size: 18px; margin-bottom: 1rem; letter-spacing: 2px; }
.hb-footer ul { list-style: none; }
.hb-footer ul li { margin-bottom: .5rem; }
.hb-footer a { color: var(--text-muted); text-decoration: none; cursor: pointer; transition: .3s; }
.hb-footer a:hover { color: var(--gold); }
.hb-footer-tag { font-family: 'Cormorant Garamond', serif; font-style: italic; color: var(--text-muted); max-width: 340px; line-height: 1.7; margin-top: .5rem; }
.hb-footer-bot {
    grid-column: 1/-1; border-top: 1px solid var(--border);
    margin-top: 2rem; padding-top: 1.5rem;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim);
}
@media (max-width: 880px) { .hb-footer { grid-template-columns: 1fr 1fr; gap: 2rem; } .hb-footer-bot { flex-direction: column; gap: .5rem; text-align: center; } }
@media (max-width: 520px) { .hb-footer { grid-template-columns: 1fr; } }

/* For pages that originally used 100vh hero, account for the 64px shell nav. */
.hb-page--home #home-hero { height: calc(100vh - 64px); min-height: 560px; }

/* Mobile comfort pass */
@media (max-width: 640px) {
    html { scroll-padding-top: 100px; }
    body { -webkit-text-size-adjust: 100%; }
    .hb-shell-nav {
        min-height: 100px;
        padding: .55rem .875rem .5rem;
        gap: .45rem .5rem;
    }
    .hb-page { padding-top: 100px; }
    .hb-brand { gap: 8px; min-width: 0; }
    .hb-brand-mark { width: 94px; height: 46px; }
    .hb-nav-actions { gap: .35rem; flex-shrink: 0; }
    .hb-nav-search {
        grid-template-columns: minmax(86px, 31%) minmax(0, 1fr) 40px;
    }
    .hb-nav-list {
        top: 100px;
    }
    .hb-icon-btn,
    .hb-nav-burger {
        width: 42px;
        height: 42px;
        min-width: 42px;
        padding: 0;
    }
    .hb-lang-switch {
        min-height: 34px;
        padding: 4px 8px;
        font-size: 9px;
        letter-spacing: .5px;
    }
    .hb-nav-actions > .hb-nav-link {
        max-width: 74px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        letter-spacing: 1px;
        font-size: 9px;
    }
    .hb-mobile-gift-link {
        min-height: 34px;
        max-width: 74px;
        letter-spacing: 1px;
        font-size: 9px;
    }
    .hb-nav-search select,
    .hb-nav-search input,
    .hb-nav-search button {
        height: 34px;
        font-size: 9px;
    }
    .hb-nav-search select { padding: 0 6px; letter-spacing: .5px; }
    .hb-nav-search input { padding: 0 8px; }
    .hb-nav-list { max-height: calc(100dvh - 100px); }
    .hb-nav-link { min-height: 44px; }
    .hb-footer {
        padding: 2rem 1.25rem 1.5rem;
        gap: 1.5rem;
    }
    .hb-footer-bot { align-items: flex-start; text-align: start; }
    .hb-page--home #home-hero {
        height: calc(100dvh - 100px);
        min-height: 500px;
    }
}

@media (max-width: 480px) {
    .hb-lang-switch { display: none; }
}

@media (max-width: 390px) {
    .hb-brand-mark { width: 76px; height: 38px; }
    .hb-icon-btn,
    .hb-nav-burger {
        width: 38px;
        height: 38px;
        min-width: 38px;
    }
    .hb-mobile-gift-link { max-width: 56px; }
    .hb-nav-actions > .hb-nav-link { max-width: 64px; }
}
