/**
 * LuxShop Header
 * استایل هدر و مگا منو — کاملاً مستقل از style.min.css قالب
 * همه کلاس‌ها با پیشوند lux- هستند تا هیچ تداخلی رخ ندهد.
 */

/* ------------------------------------------------------------------ */
/* پایه                                                                */
/* ------------------------------------------------------------------ */

.lux-header,
.lux-mobile,
.lux-topbar,
.lux-extra {
    --lux-primary: #f6be11;
    --lux-primary-text: #17181c;
    --lux-dark: #17181c;
    --lux-dark-text: #ffffff;
    --lux-bg: #ffffff;
    --lux-text: #24262b;
    --lux-muted: #6b7076;
    --lux-border: #e8eaed;
    --lux-hover: #f7f8fa;
    --lux-radius: 18px;
    --lux-pill: 12px;
    --lux-fs: 15px;
    --lux-container: 1440px;
    --lux-logo-w: 150px;
    --lux-gap: 8px;
    --lux-z: 999;
    --lux-promo-w: 230px;
    --lux-search-w: 520px;
    --lux-shadow: 0 10px 30px rgba(16, 18, 22, .08);
}

.lux-header *,
.lux-mobile *,
.lux-topbar * {
    box-sizing: border-box;
}

.lux-header a:focus-visible,
.lux-header button:focus-visible,
.lux-mobile a:focus-visible,
.lux-mobile button:focus-visible {
    outline: 2px solid var(--lux-primary);
    outline-offset: 2px;
}

/* نمایش دسکتاپ / موبایل — نقطه شکست از پیشخوان تزریق می‌شود */
.lux-only-d {
    display: none;
}

.lux-only-m {
    display: flex;
}

/* ------------------------------------------------------------------ */
/* نوار اطلاع‌رسانی                                                     */
/* ------------------------------------------------------------------ */

.lux-topbar {
    position: relative;
    z-index: 2;
    font-size: 13px;
    padding: 9px 16px;
}

.lux-topbar.is-hidden {
    display: none;
}

.lux-topbar__in {
    position: relative;
    max-width: var(--lux-container);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-inline-end: 28px;
}

.lux-topbar__in a {
    text-decoration: none;
}

.lux-topbar__x {
    position: absolute;
    inset-inline-end: 0;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: 0;
    color: inherit;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: .65;
    padding: 0 4px;
}

.lux-topbar__x:hover {
    opacity: 1;
}

/* قرص کوچک کنار متن نوار — سفید با متن هم‌رنگ پس‌زمینه برای کنتراست کافی */
.lux-topbar__cta {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 3px 12px;
    border-radius: 999px;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.8;
    text-decoration: none;
    transition: transform .2s, box-shadow .2s;
}

a.lux-topbar__cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* ------------------------------------------------------------------ */
/* بنر تماس / کد رهگیری (ردیف دوم نوار اطلاع‌رسانی)                       */
/* ------------------------------------------------------------------ */

.lux-cta2 {
    position: relative;
    z-index: 1;
    display: block;
    text-decoration: none;
    text-align: center;
    padding: 11px 16px;
    font-size: 14px;
    transition: filter .2s;
}

a.lux-cta2:hover {
    filter: brightness(.96);
}

/* متن اصلی همیشه یک خط، و «زمان پاسخگویی + شماره تماس» ردیف دوم زیرش */
.lux-cta2__in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    max-width: 100%;
}

.lux-cta2__text {
    font-weight: 800;
}

.lux-cta2__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lux-cta2__badge {
    display: inline-flex;
    align-items: center;
    flex: none;
    padding: 3px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, .16);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .2px;
}

@media (max-width: 600px) {
    .lux-cta2 {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ------------------------------------------------------------------ */
/* پوسته هدر                                                           */
/* ------------------------------------------------------------------ */

.lux-header {
    position: relative;
    z-index: var(--lux-z);
    font-size: var(--lux-fs);
    line-height: 1.7;
    color: var(--lux-text);
}

.lux-header.is-sticky {
    position: sticky;
    top: 0;
}

body.admin-bar .lux-header.is-sticky {
    top: 32px;
}

@media (max-width: 782px) {
    body.admin-bar .lux-header.is-sticky {
        top: 46px;
    }
}

.lux-header__container {
    max-width: var(--lux-container);
    margin: 0 auto;
    padding: 0 16px;
}

.lux-header--card .lux-header__container {
    padding-top: 12px;
    /* سایه کارت باید فضای تنفس داشته باشد وگرنه روی محتوای بعدی می‌افتد */
    padding-bottom: 14px;
}

.lux-header__inner {
    position: relative;
    background: var(--lux-bg);
    border-radius: var(--lux-radius);
    box-shadow: var(--lux-shadow);
}

.lux-header--full {
    background: var(--lux-bg);
    box-shadow: var(--lux-shadow);
}

.lux-header--full .lux-header__container {
    max-width: none;
    padding-inline: 24px;
}

.lux-header--full .lux-header__inner {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    max-width: var(--lux-container);
    margin: 0 auto;
}

.lux-header__bar {
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 18px;
}

.lux-header__start {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

/* وقتی جستجو در هدر است، فضای کشسان به جستجو می‌رسد نه به لوگو */
.lux-has-search .lux-header__start {
    flex: 0 1 auto;
}

.lux-header__end {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
}

.lux-header__spacer {
    display: block;
    width: 42px;
    flex: none;
}

/* ------------------------------------------------------------------ */
/* گروه حساب کاربری + سبد خرید                                          */
/* ------------------------------------------------------------------ */

.lux-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* حالت گروه‌بندی‌شده: هر دو داخل یک قاب مشترک تا سبد تنها نیفتد */
.lux-actions.is-grouped {
    gap: 6px;
    padding: 4px;
    border: 1px solid var(--lux-border);
    border-radius: 999px;
    background: var(--lux-bg);
}

.lux-actions.is-grouped .lux-btn {
    padding: 9px 16px;
}

/* ------------------------------------------------------------------ */
/* کادر جستجوی دسکتاپ                                                   */
/* ------------------------------------------------------------------ */

.lux-search {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    max-width: var(--lux-search-w);
    margin-inline: auto;
    height: 46px;
    padding: 4px;
    padding-inline-start: 16px;
    border: 1px solid var(--lux-border);
    border-radius: 999px;
    background: var(--lux-hover);
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.lux-search:focus-within {
    background: var(--lux-bg);
    border-color: var(--lux-primary);
    box-shadow: 0 0 0 3px rgba(246, 190, 17, .18);
}

.lux-search__ico {
    flex: none;
    width: 20px;
    height: 20px;
    color: var(--lux-muted);
    pointer-events: none;
}

.lux-search__input {
    flex: 1;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding-inline: 10px;
    border: 0;
    background: none;
    color: var(--lux-text);
    font: inherit;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.lux-search__input::placeholder {
    color: var(--lux-muted);
}

/* حذف دکمه ضربدر پیش‌فرض مرورگر که با دکمه جستجو تداخل می‌کند */
.lux-search__input::-webkit-search-decoration,
.lux-search__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.lux-search__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    height: 100%;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: var(--lux-primary);
    color: var(--lux-primary-text);
    font: inherit;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: filter .2s;
}

.lux-search__btn:hover {
    filter: brightness(.94);
}

.lux-search__btn.is-icon {
    width: 38px;
    padding: 0;
}

/* برچسب فقط برای صفحه‌خوان‌ها */
.lux-search__lbl {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ------------------------------------------------------------------ */
/* ردیف لینک‌های پشتیبانی زیر هدر                                        */
/* ------------------------------------------------------------------ */

/* بدون display — نمایش/مخفی‌سازی را کلاس .lux-only-d بر عهده دارد */
.lux-header__navrow {
    align-items: center;
    margin-top: 2px;
    padding: 8px 18px 10px;
    border-top: 1px solid var(--lux-border);
}

.lux-header__navrow .lux-nav__list {
    justify-content: center;
}

.lux-header__navrow .lux-nav__link {
    padding: 7px 12px;
    font-size: calc(var(--lux-fs) - 1px);
    color: var(--lux-muted);
}

.lux-header__navrow .lux-nav__link:hover,
.lux-header__navrow .lux-nav__item.is-current > .lux-nav__link {
    color: var(--lux-text);
}

/* ------------------------------------------------------------------ */
/* حالت فشرده هنگام اسکرول                                              */
/* ------------------------------------------------------------------ */

/*
 * هدر دو ردیفه در بالای صفحه کامل نمایش داده می‌شود، ولی بعد از اسکرول
 * ردیف لینک‌های پشتیبانی جمع می‌شود تا ارتفاع هدر چسبان کمتر شود.
 *
 * مهم: در این حالت فقط و فقط ردیف دوم تغییر می‌کند. نوار اصلی هدر (لوگو،
 * دکمه دسته‌بندی‌ها، جستجو، حساب و سبد) هیچ تکانی نمی‌خورد؛ چون اگر دکمه
 * «دسته‌بندی ها» زیر نشانگر ماوس جابه‌جا شود، mouseenter/mouseleave پشت هم
 * شلیک می‌شود و مگا منو شروع به باز و بسته شدن می‌کند.
 */
.lux-compactable .lux-header__navrow {
    overflow: hidden;
    transition: max-height .25s ease, padding .25s ease, opacity .2s ease;
    /* سخاوتمند تا اگر لینک‌ها در نمایشگر باریک به سطر دوم رفتند بریده نشوند */
    max-height: 160px;
}

.lux-compactable.is-compact .lux-header__navrow {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-top-color: transparent;
    opacity: 0;
}

/*
 * scroll anchoring مرورگر نباید تغییر ارتفاع هدر را با جابه‌جایی scrollY
 * جبران کند؛ وگرنه بین دو آستانه نوسان بی‌پایان ایجاد می‌شود.
 */
.lux-compactable,
.lux-compactable .lux-header__navrow {
    overflow-anchor: none;
}

@media (prefers-reduced-motion: reduce) {
    .lux-compactable .lux-header__navrow {
        transition: none;
    }
}

/* ------------------------------------------------------------------ */
/* لوگو                                                                */
/* ------------------------------------------------------------------ */

.lux-logo {
    display: inline-flex;
    align-items: center;
    flex: none;
    text-decoration: none;
    color: inherit;
}

.lux-logo img {
    display: block;
    width: auto;
    height: auto;
    max-width: var(--lux-logo-w);
    max-height: 54px;
}

.lux-logo__text {
    font-weight: bolder;
    font-size: calc(var(--lux-fs) + 8px);
    letter-spacing: .6px;
    color: var(--lux-text);
    font-family: sans-serif;
}

/* ------------------------------------------------------------------ */
/* آیکون‌ها و دکمه‌ها                                                    */
/* ------------------------------------------------------------------ */

.lux-ico-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    line-height: 0;
}

.lux-ico {
    display: block;
    width: 1.3em;
    height: 1.3em;
}

.lux-ico-img {
    display: block;
    width: 1.45em;
    height: 1.45em;
    object-fit: contain;
}

[dir="ltr"] .lux-ico--chev {
    transform: scaleX(-1);
}

.lux-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: none;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font: inherit;
    font-weight: 700;
    white-space: nowrap;
    padding: 11px 18px;
    border-radius: 999px;
    transition: background .2s, color .2s, opacity .2s, filter .2s;
}

.lux-btn--primary {
    background: var(--lux-primary);
    color: var(--lux-primary-text);
}

.lux-btn--primary:hover,
.lux-btn--primary:focus {
    filter: brightness(.94);
    color: var(--lux-primary-text);
}

.lux-btn--dark {
    background: var(--lux-dark);
    color: var(--lux-dark-text);
}

.lux-btn--dark:hover,
.lux-btn--dark:focus {
    opacity: .88;
    color: var(--lux-dark-text);
}

.lux-badge {
    display: inline-flex;
    align-items: center;
    background: var(--lux-primary);
    color: var(--lux-primary-text);
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 3px 6px;
}

/* ------------------------------------------------------------------ */
/* منوی اصلی (دسکتاپ)                                                   */
/* ------------------------------------------------------------------ */

.lux-nav {
    flex: 1;
    min-width: 0;
}

.lux-nav__list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--lux-gap);
    margin: 0;
    padding: 0;
    list-style: none;
}

.lux-nav__item {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lux-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    /* هر چیز کلیک‌شدنی در هدر قرصی است تا زبان طراحی یکدست بماند */
    border-radius: 999px;
    color: var(--lux-text);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
    transition: background .2s, border-color .2s, color .2s;
}

.lux-nav-pill .lux-nav__link {
    border-color: var(--lux-border);
}

.lux-nav__link:hover,
.lux-nav__item.is-current > .lux-nav__link {
    background: var(--lux-hover);
    border-color: var(--lux-primary);
    color: var(--lux-text);
}

/* آیتم‌هایی که در پیشخوان «دکمه زرد / دکمه تیره» انتخاب شده‌اند */
.lux-nav__item--primary > .lux-nav__link,
.lux-nav__item--primary:hover > .lux-nav__link {
    background: var(--lux-primary);
    border-color: var(--lux-primary);
    color: var(--lux-primary-text);
    font-weight: 700;
}

.lux-nav__item--dark > .lux-nav__link,
.lux-nav__item--dark:hover > .lux-nav__link {
    background: var(--lux-dark);
    border-color: var(--lux-dark);
    color: var(--lux-dark-text);
    font-weight: 700;
}

.lux-nav__item--primary > .lux-nav__link .lux-nav__arrow,
.lux-nav__item--dark > .lux-nav__link .lux-nav__arrow {
    color: inherit;
}

/* محل آیکون: سمت پایان متن (مطابق طرح) */
.lux-nav-icon-end .lux-nav__link > * {
    order: 1;
}

.lux-nav-icon-end .lux-nav__link > .lux-ico-wrap {
    order: 2;
}

.lux-nav-icon-end .lux-nav__link > .lux-nav__arrow {
    order: 3;
}

.lux-nav__arrow {
    display: inline-flex;
    line-height: 0;
    color: var(--lux-muted);
}

.lux-nav__arrow .lux-ico {
    width: 15px;
    height: 15px;
    transform: rotate(-90deg);
}

[dir="ltr"] .lux-nav__arrow .lux-ico {
    transform: rotate(90deg);
}

/* پل هاور تا زیرمنو */
.lux-nav__item.has-sub::after {
    content: "";
    position: absolute;
    top: 100%;
    inset-inline: 0;
    height: 12px;
}

.lux-drop {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: var(--lux-bg);
    border: 1px solid var(--lux-border);
    border-radius: var(--lux-radius);
    box-shadow: 0 14px 34px rgba(16, 18, 22, .12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
    z-index: 5;
}

.lux-nav__item:hover > .lux-drop,
.lux-nav__item:focus-within > .lux-drop {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lux-drop__item {
    position: relative;
    list-style: none;
    margin: 0;
}

.lux-drop__link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--lux-text);
    text-decoration: none;
    font-size: 14px;
    transition: background .15s, color .15s;
}

.lux-drop__link:hover {
    background: var(--lux-hover);
    color: var(--lux-text);
}

.lux-drop--sub {
    top: -9px;
    inset-inline-start: 100%;
}

.lux-drop__item:hover > .lux-drop--sub,
.lux-drop__item:focus-within > .lux-drop--sub {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* ------------------------------------------------------------------ */
/* سبد خرید                                                            */
/* ------------------------------------------------------------------ */

.lux-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 44px;
    height: 44px;
    /* قاب دایره‌ای تا آیکون سبد کنار دکمه‌های قرصی، بی‌ظرف و رهاشده دیده نشود */
    border: 1px solid var(--lux-border);
    border-radius: 999px;
    color: var(--lux-text);
    text-decoration: none;
    transition: background .2s, border-color .2s;
}

.lux-cart:hover {
    background: var(--lux-hover);
    border-color: var(--lux-primary);
    color: var(--lux-text);
}

/* حالت گروه‌بندی‌شده: قاب بیرونی وظیفه کادرکشی را دارد */
.lux-actions.is-grouped .lux-cart {
    border-color: transparent;
}

.lux-actions.is-grouped .lux-cart:hover {
    border-color: var(--lux-border);
}

.lux-cart__ico {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.lux-cart .lux-ico,
.lux-cart .lux-ico-img {
    width: 26px;
    height: 26px;
}

/* سبد با مبلغ: از آیکون تنها به یک دکمه کامل تبدیل می‌شود */
.lux-cart--wide {
    width: auto;
    gap: 8px;
    padding-inline: 14px;
}

.lux-cart__total {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.lux-cart__total.is-empty {
    display: none;
}

.lux-cart__total del,
.lux-cart__total ins {
    text-decoration: none;
}

.lux-cart__count {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--lux-primary);
    color: var(--lux-primary-text);
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lux-cart__count.is-empty {
    display: none;
}

/* وقتی آیکون داخل پوشش .lux-cart__ico است، بج نسبت به خود آیکون تنظیم می‌شود */
.lux-cart__ico .lux-cart__count {
    top: -9px;
    inset-inline-start: -11px;
}

/* ------------------------------------------------------------------ */
/* مگا منو                                                             */
/* ------------------------------------------------------------------ */

.lux-mega {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 20;
}

.lux-mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.lux-mega__inner {
    flex: 1;
    min-width: 0;
    display: flex;
    gap: 26px;
    padding: 26px 28px;
    background: var(--lux-bg);
    border-radius: var(--lux-radius);
    box-shadow: 0 18px 45px rgba(16, 18, 22, .14);
}

.lux-mega__cols {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 8px 26px;
}

.lux-mega__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lux-mega__col.is-wide {
    grid-column: span 2;
}

.lux-mega__head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--lux-text);
    text-decoration: none;
    font-weight: 800;
    font-size: calc(var(--lux-fs) + 1px);
}

.lux-mega__head:hover {
    color: var(--lux-text);
}

.lux-mega__head .lux-ico,
.lux-mega__head .lux-ico-img {
    width: 22px;
    height: 22px;
}

.lux-mega__list {
    flex: 1;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.lux-mega__list li {
    list-style: none;
    margin: 0;
}

.lux-mega__list a {
    display: block;
    padding: 6px 0;
    color: var(--lux-muted);
    text-decoration: none;
    font-size: var(--lux-fs);
    transition: color .15s;
}

.lux-mega__list a:hover {
    color: var(--lux-text);
}

.lux-mega__sub {
    margin: 0;
    padding-inline-start: 12px;
    list-style: none;
}

.lux-mega__sub a {
    font-size: calc(var(--lux-fs) - 1px);
    opacity: .85;
    padding: 4px 0;
}

.lux-mega__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: auto;
    padding: 9px 12px;
    border: 1px solid var(--lux-border);
    border-radius: var(--lux-pill);
    color: var(--lux-text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .2s, border-color .2s, color .2s;
}

.lux-mega__all:hover {
    background: var(--lux-primary);
    border-color: var(--lux-primary);
    color: var(--lux-primary-text);
}

.lux-mega__all .lux-ico {
    width: 16px;
    height: 16px;
}

.lux-mega__promo {
    flex: none;
    width: var(--lux-promo-w);
}

.lux-mega__promo-link {
    position: relative;
    display: block;
    height: 100%;
    min-height: 240px;
    border-radius: calc(var(--lux-radius) - 4px);
    overflow: hidden;
    background: var(--lux-hover);
}

.lux-mega__promo-link img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.lux-mega__promo-link:hover img {
    transform: scale(1.05);
}

.lux-mega__promo-btn {
    position: absolute;
    inset-inline: 14px;
    bottom: 14px;
    display: block;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--lux-text);
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}

/* ------------------------------------------------------------------ */
/* نوار موبایل                                                          */
/* ------------------------------------------------------------------ */

.lux-header__mbar {
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 14px;
}

.lux-burger,
.lux-mobile__close {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    flex: none;
    width: 42px;
    height: 42px;
    padding: 0 9px;
    border: 0;
    background: none;
    border-radius: var(--lux-pill);
    cursor: pointer;
}

.lux-burger span,
.lux-mobile__close span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: var(--lux-text);
    transition: transform .2s, opacity .2s;
}

.lux-burger:hover,
.lux-mobile__close:hover {
    background: var(--lux-hover);
}

/* ------------------------------------------------------------------ */
/* کشوی موبایل                                                          */
/* ------------------------------------------------------------------ */

.lux-mobile {
    position: fixed;
    inset: 0;
    z-index: calc(var(--lux-z) + 10);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s;
}

.lux-mobile.is-open {
    opacity: 1;
    visibility: visible;
}

.lux-mobile__overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 14, 18, .5);
}

.lux-mobile__panel {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    width: min(360px, 86vw);
    display: flex;
    flex-direction: column;
    background: var(--lux-bg);
    box-shadow: 0 0 44px rgba(0, 0, 0, .22);
    border-start-end-radius: var(--lux-radius);
    border-end-end-radius: var(--lux-radius);
    transform: translateX(-100%);
    transition: transform .28s ease;
}

[dir="rtl"] .lux-mobile__panel {
    transform: translateX(100%);
}

.lux-mobile.is-open .lux-mobile__panel {
    transform: none;
}

.lux-mobile__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px;
}

.lux-mobile__title {
    font-weight: 800;
    font-size: calc(var(--lux-fs) + 3px);
}

.lux-mobile__scroll {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 14px 28px;
}

/* جستجو */
.lux-msearch {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.lux-msearch input[type="search"] {
    width: 100%;
    padding-block: 12px;
    padding-inline-start: 44px;
    padding-inline-end: 14px;
    border: 1px solid var(--lux-border);
    border-radius: var(--lux-pill);
    background: #fff;
    color: var(--lux-text);
    font: inherit;
    font-size: 14px;
    outline: none;
    box-shadow: none;
}

.lux-msearch input[type="search"]:focus {
    border-color: var(--lux-primary);
}

.lux-msearch__ico {
    position: absolute;
    inset-inline-start: 14px;
    width: 20px;
    height: 20px;
    color: var(--lux-muted);
    pointer-events: none;
}

/* دکمه دسته‌بندی موبایل */
.lux-mcats {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: var(--lux-pill);
}

.lux-mcats__arrow {
    position: absolute;
    inset-inline-end: 16px;
    top: 50%;
    display: inline-flex;
    line-height: 0;
    opacity: .7;
    transform: translateY(-50%);
    transition: transform .2s;
}

.lux-mcats.is-open .lux-mcats__arrow {
    transform: translateY(-50%) rotate(-90deg);
}

.lux-mmega {
    display: none;
    margin-bottom: 12px;
    padding: 4px 10px;
    border: 1px solid var(--lux-border);
    border-radius: var(--lux-radius);
}

.lux-mmega.is-open {
    display: block;
}

/* لیست موبایل */
.lux-mlist {
    margin: 0;
    padding: 0;
    list-style: none;
}

.lux-mlist--account {
    /* بدون margin-top: آخرین آیتم منو border-bottom ندارد، پس این
       border-top جای همان مرز را می‌گیرد و فاصله با فاصله‌ی بقیه‌ی
       آیتم‌ها برابر می‌ماند */
    border-top: 1px solid var(--lux-border);
}

.lux-mlist__item {
    position: relative;
    list-style: none;
    margin: 0;
    border-bottom: 1px solid var(--lux-border);
}

.lux-mlist__item:last-child {
    border-bottom: 0;
}

.lux-mlist__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 4px;
    padding-inline-end: 40px;
    color: var(--lux-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
}

.lux-mlist__link:hover {
    color: var(--lux-text);
}

.lux-mlist__item.is-current > .lux-mlist__link {
    color: var(--lux-text);
}

.lux-mlist__item.is-current::before {
    content: "";
    position: absolute;
    inset-inline-start: -14px;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 3px;
    background: var(--lux-primary);
}

.lux-mlist__txt {
    flex: 1;
    min-width: 0;
}

.lux-mlist__chev,
.lux-mlist__toggle {
    position: absolute;
    inset-inline-end: 0;
    top: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--lux-muted);
    cursor: pointer;
}

.lux-mlist__toggle .lux-ico {
    transition: transform .2s;
}

.lux-mlist__item.is-open > .lux-mlist__toggle .lux-ico {
    transform: rotate(-90deg);
}

.lux-mlist__sub {
    display: none;
    margin: 0;
    padding: 0 0 10px;
    list-style: none;
}

.lux-mlist__item.is-open > .lux-mlist__sub {
    display: block;
}

.lux-mlist__sub li {
    list-style: none;
    margin: 0;
}

.lux-mlist__sub a {
    display: block;
    padding: 9px 0;
    padding-inline-start: 34px;
    color: var(--lux-muted);
    text-decoration: none;
    font-size: 14px;
}

.lux-mlist__sub a:hover {
    color: var(--lux-text);
}

/* ------------------------------------------------------------------ */
/* راهنمای مدیر و متفرقه                                                */
/* ------------------------------------------------------------------ */

.lux-setup-hint {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
    padding: 8px 14px;
    border: 1px dashed var(--lux-primary);
    border-radius: var(--lux-pill);
    background: rgba(246, 190, 17, .12);
    color: var(--lux-text);
    text-decoration: none;
    font-size: 13px;
}

.lux-no-scroll {
    overflow: hidden !important;
}

.lux-extra img {
    max-width: 100%;
    height: auto;
}

/* هم‌ترازی محتوای قبل/بعد از هدر با کانتینر هدر */
.lux-extra--boxed .lux-extra__in {
    max-width: var(--lux-container);
    margin: 0 auto;
    padding-inline: 16px;
}

/* نوار پایین هدر نباید به سایه کارت بچسبد */
.lux-extra--after {
    margin-top: 4px;
}

/* ------------------------------------------------------------------ */
/* سپر در برابر قوانین سراسری قالب                                       */
/* ------------------------------------------------------------------ */

/*
 * قالب Market Star در style.min.css این قانون را دارد:
 *
 *     .search button { background:transparent; position:absolute;
 *                      left:0; top:50%; transform:translateY(-50%);
 *                      height:85%; margin:0 0 0 5px; }
 *
 * این برای ویجت جستجوی خود قالب نوشته شده، ولی وردپرس در صفحات نتایج
 * جستجو کلاس «search» را به <body> اضافه می‌کند و در نتیجه قانون بالا به
 * *هر* دکمه‌ای در کل صفحه می‌خورد — از جمله دکمه‌های هدر ما.
 *
 * ویژگی آن سلکتور (0,1,1) است، پس اینجا با (0,2,0) و بالاتر پس گرفته
 * می‌شود. فقط همان چند خاصیتی بازنویسی می‌شود که قالب می‌ربایَد.
 * لینک‌ها (<a>) درگیر نیستند و نیازی به سپر ندارند.
 */
.lux-header .lux-btn,
.lux-header .lux-search__btn,
.lux-header .lux-burger,
.lux-mobile .lux-btn,
.lux-mobile .lux-mobile__close {
    position: relative;
    inset: auto;
    height: auto;
    margin: 0;
    transform: none;
}

.lux-header .lux-btn--primary,
.lux-header .lux-search__btn,
.lux-mobile .lux-btn--primary {
    background: var(--lux-primary);
}

.lux-header .lux-btn--dark,
.lux-mobile .lux-btn--dark {
    background: var(--lux-dark);
}

.lux-header .lux-burger,
.lux-mobile .lux-mobile__close {
    height: 42px;
    background: none;
}

/* دکمه جستجو باید هم‌ارتفاع کادر بماند */
.lux-header .lux-search__btn {
    height: 100%;
}

/* این دو در طراحی خودمان عمداً absolute هستند */
.lux-topbar .lux-topbar__x,
.lux-mobile .lux-mlist__toggle {
    background: none;
    height: auto;
}

.lux-mobile .lux-mcats {
    margin-bottom: 12px;
}

/* ------------------------------------------------------------------ */
/* ریزتنظیمات نمایشگر کوچک                                              */
/* ------------------------------------------------------------------ */

/* دسکتاپ‌های باریک‌تر: فشرده‌سازی تا منو در یک ردیف بماند */
@media (max-width: 1360px) {
    .lux-header__bar {
        gap: 10px;
        padding: 10px 14px;
    }

    .lux-nav__list {
        gap: min(var(--lux-gap), 6px);
    }

    .lux-nav__link {
        gap: 6px;
        padding: 8px 10px;
    }

    .lux-btn {
        padding: 10px 14px;
    }

    .lux-logo__text {
        font-size: calc(var(--lux-fs) + 5px);
    }

    .lux-header__navrow {
        padding-inline: 14px;
    }
}

/* دسکتاپ فشرده: جستجو باید سرپا بماند، متن دکمه‌ها اول کوتاه می‌شود */
@media (max-width: 1180px) {
    .lux-search {
        margin-inline-start: 4px;
    }

    .lux-search__btn {
        padding: 0 14px;
    }

    .lux-account .lux-btn__txt {
        display: none;
    }

    .lux-actions.is-grouped .lux-account {
        width: 44px;
        padding: 0;
    }

    .lux-cart--wide .lux-cart__total {
        display: none;
    }

    .lux-cart--wide {
        width: 44px;
        padding-inline: 0;
    }
}

@media (max-width: 480px) {
    .lux-header__container {
        padding: 0 10px;
    }

    .lux-header__mbar {
        padding: 8px 10px;
    }

    .lux-logo img {
        max-height: 42px;
    }
}
