:root {
    --accent-gold: #d4af37;
}

/* بک‌گراند تمام‌صفحه + اوورلی سفید */
.hh-hero {
    background-image: url("../../images/header-background/background.jpg");
    background-size: cover;
    background-position: center;
    width: 100vw;
    height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.hh-hero__overlay {
    background-color: rgba(255, 255, 255, .6);
    width: 100%;
    height: 100%;
}
.hh-scroll-cue{position:absolute;z-index:4;right:50%;bottom:18px;transform:translateX(50%);display:flex;flex-direction:column;align-items:center;gap:3px;color:#242323;text-decoration:none;font-size:.74rem;font-weight:800;text-shadow:0 1px 8px rgba(255,255,255,.9)}.hh-scroll-cue i{display:grid;place-items:center;width:34px;height:34px;border:1px solid rgba(36,35,35,.25);border-radius:50%;background:rgba(255,255,255,.75);font-size:1rem;animation:hh-scroll-pulse 1.6s ease-in-out infinite}.hh-scroll-cue:hover{color:#a25c68}.hh-scroll-cue:hover i{border-color:#b76e79}@keyframes hh-scroll-pulse{0%,100%{transform:translateY(0);box-shadow:0 0 0 0 rgba(183,110,121,.25)}50%{transform:translateY(7px);box-shadow:0 0 0 8px rgba(183,110,121,0)}}

/* نوار بالا و فاصله بین ردیف‌ها */
.hh-hero__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 28px 36px;
}

.hh-hero__tag {
    text-align: center;
    margin-top: 72px;
}

.hh-hero__search {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.hh-hero__features {
    display: flex;
    justify-content: space-between;
    gap: 44px;
    margin-top: 56px;
    flex-wrap: wrap;
}

/* لوگو */
.hh-hero__logo .hh-logo-img {
    max-height: 100px;
    height: auto;
    width: auto;
}

/* ───────── منو وسط ───────── */
.hh-hero__menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 1.75rem;
}

.hh-menu-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--color-black);
    text-decoration: none;
    font-weight: 700;
    padding-bottom: .35rem;
    transition: color .25s ease;
}

.hh-menu-link:hover {
    color: var(--color-rosegold);
}

/* خط زیر آیتم‌ها (فقط برای آیتم‌های بدون زیرمنو) */
.hh-menu-link::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -2px;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-rosegold), var(--color-taupe));
    border-radius: 2px;
    transition: transform .28s ease;
    transform-origin: center;
}

.hh-menu-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* آیتم‌های دارای زیرمنو: خط را حذف کن */
.hh-has-sub > .hh-menu-link::after {
    content: none;
}

/* فلشِ «محصولات» که به ذوزنقه تبدیل می‌شود */
.hh-menu-link--products {
    --trap-h: 4px; /* ارتفاع ذوزنقه پس از هاور */
    --trap-w: 100%; /* عرض ذوزنقه پس از هاور */
    --tri-w: 10px; /* عرض مثلث اولیه */
    --tri-h: 4px; /* ارتفاع مثلث اولیه */
}

.hh-menu-link--products::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: var(--tri-w);
    height: var(--tri-h);
    background: var(--color-rosegold);
    clip-path: polygon(50% 100%, 0 0, 100% 0); /* مثلث رو به پایین */
    transition: width .28s ease, height .28s ease, clip-path .28s ease, transform .28s ease;
}

/* هاور: تبدیل به ذوزنقه باریک زیر آیتم */
.hh-menu-link--products:hover::before {
    width: var(--trap-w);
    height: var(--trap-h);
    clip-path: polygon(4% 0, 96% 0, 100% 100%, 0 100%); /* ذوزنقه */
    transform: translateX(-50%) translateY(6px);
}

/* زیرمنو – دقیقاً زیر خود آیتم و وسط‌چین */
.hh-has-sub {
    position: relative;
}

/* پل نامرئی برای جلوگیری از بسته‌شدن هنگام حرکت موس */
.hh-has-sub::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 12px;
}

/* خود زیرمنو */
.hh-submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-black);
    color: var(--color-cream);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .2);
    min-width: 200px;
    padding: .4rem 0;
    display: none;
    z-index: 10;
    border-radius: .5rem;
}

.hh-submenu > li {
    list-style: none;
}

.hh-submenu a {
    display: block;
    padding: .6rem .9rem;
    color: var(--color-cream);
    text-decoration: none;
    transition: var(--transition);
}

.hh-submenu a:hover {
    background: var(--color-cream);
    color: var(--color-rosegold);
    border-radius: 0.5rem;
}

/* نمایش زیرمنو با هاور روی li یا خود زیرمنو */
.hh-has-sub:hover > .hh-submenu {
    display: block;
}

/* اکشن‌ها */
.hh-hero__actions {
    display: flex;
    align-items: center;
    gap: 2rem;
    color: var(--color-black);
}

.hh-auth a {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 700;
}

.hh-auth a:hover {
    color: var(--color-rosegold);
}

.hh-user {
    position: relative;
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--color-black);
    border-radius: 9999px;
    padding: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.hh-user .dropdown-menu {
    left: 50% !important; /* موقعیت افقی از وسط */
    transform: translateX(-50%) !important; /* جابجایی برای سنتر کامل */
    right: auto !important; /* خنثی‌سازی هم‌تراز راست بوت‌استرپ */
    top: calc(100% + 0.6rem) !important; /* فاصله‌ی دقیق زیر باکس */
    margin-top: 0 !important;
}

.hh-user__toggle {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    border-radius: 9999px;
    cursor: pointer;
}

.hh-user__link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: 6px 12px;
    text-decoration: none;
    color: inherit;
    border-radius: 9999px;
}

.hh-user__link:hover {
    background: #f8fafc;
}

.hh-user .bi-person {
    font-size: 1rem;
}

.hh-user__name {
    direction: ltr;
    unicode-bidi: plaintext; /* برای نمایش درست شماره کنار متن فارسی */
    font-weight: 700;
    letter-spacing: .2px;
}

/* چرخش فلش هنگام باز بودن دراپ‌داون */
.hh-user .bi-chevron-down {
    transition: transform .2s ease;
}

/* چرخش فلش هنگام باز بودن منو — بر اساس aria-expanded خودِ دکمه */
.hh-user .hh-user__toggle[aria-expanded="true"] .bi-chevron-down {
    transform: rotate(180deg);
}

/* بهتر نشستن منو */
.hh-user .dropdown-menu {
    margin-top: .5rem;
    min-width: 220px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    border: 0;
    border-radius: 12px;
}

.hh-cart {
    color: var(--color-black);
    font-size: 1.5rem;
}

.hh-cart:hover {
    color: var(--color-rosegold);
}

.hh-user__toggle {
    color: var(--color-black);
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.hh-user__toggle:hover {
    color: var(--color-rosegold);
}

.hh-user__dropdown {
    --bs-dropdown-min-width: 14rem;
}

/* شعار طلایی */
.hh-hero__tagline {
    font-size: 32px;
    font-weight: bold;
    display: inline-block;
    background: linear-gradient(to left, #6f5f1e 50%, var(--color-black) 20%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: hh-shine 10s linear infinite;
    direction: rtl;
    margin-top: 20px;
}

@keyframes hh-shine {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* سرچ */
.hh-search {
    position: relative;
    width: 520px;
    margin-top: 10px;
    overflow: visible;
}

.hh-search__input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    font-size: 20px;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.3);
    outline: none;
    transition: box-shadow .3s ease, border-color .3s ease;
    font-family: var(--font-fa), sans-serif;
}

.hh-search__input:focus {
    border-color: var(--color-rosegold);
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.5); /* طلایی روشن */
}

.hh-search__btn {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: #777;
    cursor: pointer;
    padding: 0;
    font-size: 18px;
    transition: color .3s ease;
}

.hh-search__btn:hover {
    color: var(--color-rosegold);
}

/* ویژگی‌ها */
.hh-feature {
    flex: 1 1 30%;
    text-align: center;
    max-width: 220px;
}

.hh-feature__icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 10px;
}

.hh-feature h5 {
    margin: 0;
    font-weight: 700;
    color: var(--color-black);
}

/* ریسپانسیو: کوچیک‌تر از مدیوم (RTL) */
@media (max-width: 768px) {
    .hh-scroll-cue{bottom:14px;width:90%;font-size:.68rem}.hh-scroll-cue span{background:rgba(255,255,255,.64);border-radius:999px;padding:4px 10px}
    /* شعار کوچیک‌تر */
    .hh-hero__tagline {
        font-size: 22px;
        line-height: 1.4;
    }

    /* سرچ بار باریک‌تر و پایین‌تر */
    .hh-search {
        width: 90%;
        max-width: 360px;
        margin-top: 40px;
    }

    /* دکمه منو (همبرگر) و متنش کوچیک‌تر */
    .hh-burger {
        font-size: 1.4rem;
    }

    .hh-burger span {
        font-size: 14px;
    }

    /* هدر: گرید دو ستونه */
    .hh-hero__bar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 10px 12px;
        padding: 16px;
    }

    /* ردیف ۱: لوگو وسطِ تمام عرض */
    .hh-hero__logo {
        grid-column: 1 / -1;
        justify-self: center;
    }

    .hh-hero__logo .hh-logo-img {
        max-height: 64px;
        height: auto;
    }

    /* منوی افقی دسکتاپ پنهان */
    .hh-hero__nav,
    .hh-hero__menu {
        display: none !important;
    }

    /* ردیف ۲: منو (همبرگر) — ستون راست (در RTL ستون 1 راست‌ترینه) */
    .hh-burger {
        grid-column: 1;
        justify-self: start; /* RTL: راست */
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        color: var(--color-black);
        font-size: 1.8rem;
        cursor: pointer;
    }

    /* ردیف ۲: اکشن‌ها — ستون چپ */
    .hh-hero__actions {
        grid-column: 2;
        justify-self: end; /* RTL: چپ */
        display: flex;
        align-items: center;
        gap: 1rem;
        margin: 0;
    }

    /* ویژگی‌ها در موبایل مخفی */
    .hh-hero__features {
        display: none;
    }

    /* فاصله‌های زیر هدر */
    .hh-hero__tag {
        margin-top: 36px;
    }

    .hh-hero__search {
        margin-top: 24px;
    }

    /* پس‌زمینهٔ صلب برای پنل‌های موبایل */
    .hh-mob-level {
        background: var(--color-rosegold, #F5F1E9);
    }
}

/* ===== Mobile Drawer (minimal) ===== */
.hh-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    opacity: 0;
    visibility: hidden;
    transition: .25s ease;
    z-index: 999;
}

.hh-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.hh-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    width: 84vw;
    max-width: 380px;
    background: var(--color-rosegold, #F5F1E9);
    box-shadow: -8px 0 30px rgba(0, 0, 0, .25);
    transform: translateX(100%);
    transition: transform .28s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.hh-drawer.is-open {
    transform: none;
}

.hh-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.hh-drawer__close {
    background: none;
    border: 0;
    font-size: 1.25rem;
    cursor: pointer;
}

.hh-mob-stack {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.hh-mob-level {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: auto;
    transform: translateX(100%);
    transition: transform .25s ease;
}

.hh-mob-level.is-active {
    transform: translateX(0);
}

.hh-mob-level li {
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.hh-mob-level a,
.hh-mob-next,
.hh-mob-prev {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1.1rem;
    background: none;
    border: 0;
    width: 100%;
    text-align: right;
    font: inherit;
    color: inherit;
    cursor: pointer;
}

.hh-mob-back {
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
}

/* pointers & hovers */
.hh-burger,
.hh-drawer__close,
.hh-mob-next,
.hh-mob-prev {
    cursor: pointer;
}

.hh-burger:hover,
.hh-drawer__close:hover,
.hh-mob-next:hover,
.hh-mob-prev:hover,
.hh-mob-level a:hover {
    opacity: .85;
}

/* === Hamburger (Home Header / hh-) — پاک‌کردن زیرخط و استایل آیتم‌ها === */

.hh-mob-level a,
.hh-mob-next,
.hh-mob-prev {
    text-decoration: none !important; /* حذف خط زیر لینک‌ها */
    text-decoration-skip: none;
    text-decoration-skip-ink: none;
    color: inherit;
    border-radius: .6rem;
    padding: .95rem 1.1rem; /* تاچ‌تارگت مناسب */
}

/* جداساز ظریف بین گزینه‌ها */
.hh-mob-level li + li {
    border-top: 1px solid rgba(0, 0, 0, .06);
}

/* هاور/فوکِس نرم */
.hh-mob-level a:hover,
.hh-mob-next:hover,
.hh-mob-prev:hover,
.hh-mob-level a:focus-visible,
.hh-mob-next:focus-visible,
.hh-mob-prev:focus-visible {
    background: rgba(255, 255, 255, .75);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
    outline: none;
}

/* ردیف «بازگشت» را استیکی و کمی برجسته کن */
.hh-mob-back {
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 2;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
}

.hh-mob-back .hh-mob-prev {
    font-weight: 700;
}

/* آیکون‌ها کمی جمع‌وجور و هم‌راستا */
.hh-mob-level .bi {
    font-size: 1rem;
    opacity: .9;
}

.hh-mob-next .bi {
    margin-inline-start: .5rem;
}

/* فلش رفتن */
.hh-mob-prev .bi {
    margin-inline-end: .5rem;
}

/* فلش بازگشت */
