/* ═══════════════════════════════════════════════════════════
   ساخت‌یار · Header System
   Namespace: .site-header__*
   Palette: Ivory Stone / Deep Olive / Warm Sand / Terracotta / Lime
   ═══════════════════════════════════════════════════════════ */

/* =========================================================
   HEADER · ROOT VARIABLES
   رنگ + فونت + fallback امن
   ========================================================= */
:root {
    /* ── فونت‌ها ── */
    --font-body: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-display: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, Arial, sans-serif;
    --font-mono: 'Vazirmatn', Tahoma, sans-serif;

    /* اگر فایل‌های دیگر از --sy-font استفاده می‌کنند */
    --sy-font: var(--font-body);
    --sy-font-display: var(--font-display);

    /* ── رنگ‌های هدر مطابق تم اصلی ── */
    --brand-olive: #24372F;
    --brand-olive-dark: #18251F;
    --brand-olive-deep: #1A2822;

    --brand-ivory: #F5F1E8;
    --brand-sand: #E8E0D2;
    --brand-white: #FFFFFF;

    --brand-ink: #171A18;
    --brand-muted: #5f645c;
    --brand-muted-light: #737869;

    --brand-terracotta: #B85C38;
    --brand-terracotta-dark: #9A4B2C;
    --brand-terracotta-soft: #FFF2EC;
    --brand-terracotta-border: #F3D2C3;

    --brand-lime: #D9E84A;

    --brand-border: #E8E2D8;
    --brand-border-light: #F0EDE6;
    --brand-border-strong: #D7D0C4;

    /* ── سایه‌ها ── */
    --brand-shadow-sm: 0 2px 8px rgba(23, 26, 24, 0.06);
    --brand-shadow-md: 0 10px 28px rgba(23, 26, 24, 0.08);
    --brand-shadow-lg: 0 18px 40px rgba(23, 26, 24, 0.10);

    /* ── transition ── */
    --brand-ease: cubic-bezier(0.4, 0, 0.2, 1);
    --brand-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --brand-t-fast: 160ms;
    --brand-t-base: 260ms;
}


/* ── Base ─────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--brand-white);
    color: var(--brand-ink);
    font-family: var(--font-body, 'Vazirmatn', system-ui, sans-serif);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    cursor: pointer;
}

input {
    font: inherit;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

::selection {
    background: var(--brand-lime);
    color: var(--brand-ink);
}

.site-header :focus-visible,
.site-header__drawer :focus-visible {
    outline: 2px solid var(--brand-terracotta);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Shared micro-square (Lime signature) */
.site-header__tick {
    width: 5px;
    height: 5px;
    flex: none;
    background: var(--brand-lime);
    border-radius: 1px;
}

.site-header__container {
    max-width: 1380px;
    margin-inline: auto;
    padding-inline: clamp(14px, 3vw, 40px);
}

/* ── Header shell ─────────────────────────────────────── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 900;
    background: var(--brand-ivory);
    transition: box-shadow 0.35s ease;
}

.site-header.is-compact {
    box-shadow: var(--sh-shadow);
}

/* ── LAYER 01 · Top bar ───────────────────────────────── */
.site-header__top {
    background: var(--brand-olive);
    color: rgba(245, 241, 232, 0.85);
    max-height: 38px;
    overflow: hidden;
    transition: max-height 0.35s var(--sh-ease), opacity 0.3s ease;
    opacity: 1;
}

.site-header.is-compact .site-header__top {
    max-height: 0;
    opacity: 0;
}

.site-header__top-in {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 36px;
    font-size: 12px;
}

.site-header__top-tagline {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-header__top-links {
    display: flex;
    align-items: center;
}

.site-header__top-links a {
    position: relative;
    padding: 0 14px;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.site-header__top-links a:hover {
    color: #FFFFFF;
}

.site-header__top-links a+a::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 12px;
    background: rgba(245, 241, 232, 0.18);
}

.site-header__top-links .is-phone i {
    margin-inline-end: 7px;
    font-size: 12px;
    color: var(--brand-lime);
}

/* ── LAYER 02 · Main row ──────────────────────────────── */
.site-header__main-in {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 28px;
    padding-block: 17px;
    transition: padding 0.3s var(--sh-ease);
}

.site-header.is-compact .site-header__main-in {
    padding-block: 10px;
}

/* Icon buttons (burger / search-toggle) */
.site-header__icon-btn {
    width: 44px;
    height: 44px;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 17px;
    transition: background 0.2s ease, transform 0.15s ease;
}

.site-header__icon-btn:hover {
    background: var(--brand-sand);
}

.site-header__icon-btn:active {
    transform: scale(0.94);
}

.site-header__burger,
.site-header__search-toggle {
    display: none;
}

/* ── Brand ────────────────────────────────────────────── */
.site-header__brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__brand-mark {
    position: relative;
    width: 40px;
    height: 40px;
    flex: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.site-header__brand-mark i {
    display: block;
    height: 7px;
    border-radius: 2px;
    background: var(--brand-olive);
    transition: transform 0.38s var(--sh-ease);
}

.site-header__brand-mark i:nth-child(1) {
    width: 100%;
}

.site-header__brand-mark i:nth-child(2) {
    width: 64%;
    transition-delay: 0.05s;
}

.site-header__brand-mark i:nth-child(3) {
    width: 40%;
    transition-delay: 0.1s;
}

.site-header__brand-dot {
    position: absolute;
    bottom: -1px;
    inset-inline-end: -3px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-lime);
    opacity: 0;
    transform: scale(0.3);
    transition: opacity 0.3s ease, transform 0.3s var(--sh-ease);
}

.site-header__brand:hover .site-header__brand-mark i:nth-child(1) {
    transform: translateX(-3px);
}

.site-header__brand:hover .site-header__brand-mark i:nth-child(2) {
    transform: translateX(3px);
}

.site-header__brand:hover .site-header__brand-mark i:nth-child(3) {
    transform: translateX(-2px);
}

.site-header__brand:hover .site-header__brand-dot {
    opacity: 1;
    transform: scale(1);
}

.site-header__brand-text strong {
    display: block;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 26px;
    line-height: 1;
    color: var(--brand-olive);
}

.site-header__brand-text small {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    color: var(--brand-muted);
    transition: opacity 0.25s ease;
}

.site-header.is-compact .site-header__brand-text small {
    opacity: 0;
}

.site-header__brand-mark.is-sm {
    width: 30px;
    height: 30px;
    gap: 3px;
}

.site-header__brand-mark.is-sm i {
    height: 5px;
}

/* ── Command Search ───────────────────────────────────── */
.site-header__search {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin-inline: auto;
    transition: max-width 0.35s var(--sh-ease);
}

.site-header__search.is-focused {
    max-width: 620px;
}

.site-header__search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding-inline: 16px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--brand-border);
    border-radius: 10px;
    transition: background 0.25s ease, border-color 0.25s ease,
        box-shadow 0.25s ease, transform 0.25s ease, height 0.3s ease;
}

.site-header__search-box>i {
    font-size: 13px;
    color: var(--brand-muted);
    flex: none;
    transition: color 0.2s ease;
}

.site-header__search-box input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    background: transparent;
    font-size: 14px;
    color: var(--brand-ink);
}

.site-header__search-box input::placeholder {
    color: var(--brand-muted);
}

.site-header__search-box input:focus {
    outline: none;
}

.site-header__search-kbd {
    display: flex;
    gap: 4px;
    flex: none;
}

.site-header__search-kbd kbd {
    font-family: inherit;
    font-size: 12px;
    line-height: 1.5;
    color: var(--brand-muted);
    background: var(--brand-sand);
    border: 1px solid var(--brand-border);
    border-radius: 5px;
    padding: 1px 6px;
}

.site-header__search.is-focused .site-header__search-box {
    background: var(--brand-white);
    border-color: var(--brand-terracotta);
    box-shadow: 0 10px 28px rgba(23, 26, 24, 0.09);
    transform: translateY(-1px);
}

.site-header__search.is-focused .site-header__search-box>i {
    color: var(--brand-terracotta);
}

.site-header.is-compact .site-header__search-box {
    height: 40px;
}

/* Search panel */
.site-header__search-panel {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline: 0;
    z-index: 60;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    box-shadow: var(--sh-shadow);
    padding: 16px 16px 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.24s ease, transform 0.24s var(--sh-ease), visibility 0.24s;
}

.site-header__search.is-open .site-header__search-panel {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-header__search-panel-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 11px;
    font-size: 12px;
    color: var(--brand-muted);
}

.site-header__search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-header__search-chip {
    padding: 7px 15px;
    font-size: 12.5px;
    background: var(--brand-ivory);
    border: 1px solid var(--brand-border);
    border-radius: 7px;
    transition: background 0.2s ease, color 0.2s ease,
        border-color 0.2s ease, transform 0.2s ease;
}

.site-header__search-chip:hover {
    background: var(--brand-olive);
    border-color: var(--brand-olive);
    color: var(--brand-ivory);
    transform: translateY(-1px);
}

.site-header__search-panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 11px;
    border-top: 1px solid var(--brand-border);
    font-size: 12px;
    color: var(--brand-muted);
}

.site-header__search-panel-foot a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    color: var(--brand-ink);
    transition: color 0.2s ease;
}

.site-header__search-panel-foot a i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.site-header__search-panel-foot a:hover {
    color: var(--brand-terracotta);
}

.site-header__search-panel-foot a:hover i {
    transform: translateX(-3px);
}

/* ── Actions ──────────────────────────────────────────── */
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-header__divider {
    width: 1px;
    height: 24px;
    background: var(--brand-border);
    margin-inline: 8px;
}

/* Account */
.site-header__account {
    position: relative;
}

.site-header__account-btn {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.site-header__account-btn i {
    font-size: 15px;
    transition: transform 0.2s ease;
}

.site-header__account-btn:hover {
    background: var(--brand-sand);
}

.site-header__account-btn:hover i {
    transform: translateY(-1px) scale(1.08);
}

.site-header__account-pop {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-end: 0;
    z-index: 70;
    width: 232px;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 12px;
    box-shadow: var(--sh-shadow);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s var(--sh-ease), visibility 0.22s;
}

.site-header__account:hover .site-header__account-pop,
.site-header__account:focus-within .site-header__account-pop {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.site-header__account-pop a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    transition: background 0.18s ease;
}

.site-header__account-pop a:hover {
    background: var(--brand-ivory);
}

.site-header__account-pop a i {
    width: 16px;
    text-align: center;
    font-size: 12px;
    color: var(--brand-muted);
}

.site-header__account-pop hr {
    border: 0;
    border-top: 1px solid var(--brand-border);
    margin: 6px 4px;
}

.site-header__account-pop .is-pro i {
    color: var(--brand-terracotta);
}

.site-header__account-pop .is-pro .site-header__tick {
    margin-inline-start: auto;
}

/* Cart */
.site-header__cart {
    position: relative;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 18px;
    transition: background 0.2s ease;
}

.site-header__cart i {
    transition: transform 0.25s var(--sh-ease);
}

.site-header__cart:hover {
    background: var(--brand-sand);
}

.site-header__cart:hover i {
    transform: translateY(-2px) scale(1.06);
}

.site-header__cart-badge {
    position: absolute;
    top: 5px;
    inset-inline-end: 3px;
    min-width: 17px;
    height: 17px;
    padding-inline: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-terracotta);
    color: #FFFFFF;
    font-size: 12px;
    font-weight: 700;
    border-radius: 999px;
    animation: sy-cart-pulse 2.8s ease-in-out infinite;
}

@keyframes sy-cart-pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.12);
    }
}

/* ── LAYER 03 · Editorial Nav ─────────────────────────── */
.site-header__nav {
    border-top: 1px solid var(--brand-border);
}

.site-header__nav-in {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 54px;
    transition: height 0.3s var(--sh-ease);
}

.site-header.is-compact .site-header__nav-in {
    height: 46px;
}

.site-header__nav-list {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 100%;
}

.site-header__nav-list li {
    height: 100%;
}

.site-header__nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 100%;
    padding-inline: 2px;
    font-size: 14.5px;
    font-weight: 500;
    color: var(--brand-ink);
    transition: color 0.2s ease;
}

.site-header__nav-num {
    font-size: 12px;
    font-weight: 400;
    color: var(--brand-muted);
    transition: color 0.2s ease;
}

/* Lime hover tick (signature) */
.site-header__nav-link::before {
    content: "";
    position: absolute;
    inset-inline-start: -13px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 1px;
    background: var(--brand-lime);
    transform: translateY(-50%) scale(0.3);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s var(--sh-ease);
}

/* Terracotta underline */
.site-header__nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    height: 2px;
    background: var(--brand-terracotta);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform 0.3s var(--sh-ease);
}

.site-header__nav-link:hover {
    color: var(--brand-olive-dark);
}

.site-header__nav-link:hover::before {
    opacity: 1;
    transform: translateY(-50%) scale(1);
}

.site-header__nav-link:hover .site-header__nav-num {
    color: var(--brand-terracotta);
}

.site-header__nav-link.is-current {
    color: var(--brand-terracotta);
}

.site-header__nav-link.is-current::after {
    transform: scaleX(1);
}

.site-header__nav-link.is-current .site-header__nav-num {
    color: var(--brand-terracotta);
}

.site-header__nav-caret {
    font-size: 12px;
    color: var(--brand-muted);
    transition: transform 0.25s var(--sh-ease), color 0.2s ease;
}

.site-header__nav-link--mega.is-open {
    color: var(--brand-terracotta);
}

.site-header__nav-link--mega.is-open::after {
    transform: scaleX(1);
}

.site-header__nav-link--mega.is-open .site-header__nav-caret {
    transform: rotate(180deg);
    color: var(--brand-terracotta);
}

/* Nav side · chip + CTA */
.site-header__nav-side {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-header__project-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 13px;
    background: var(--brand-lime);
    color: var(--brand-ink);
    font-size: 12px;
    font-weight: 600;
    border-radius: 5px;
    transition: transform 0.25s var(--sh-ease), box-shadow 0.25s ease;
}

.site-header__project-chip:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(23, 26, 24, 0.14);
}

.site-header__project-chip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-ink);
    animation: sy-dot-blink 2.4s ease-in-out infinite;
}

@keyframes sy-dot-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.site-header__quotation {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 18px;
    background: var(--brand-terracotta);
    color: #FFFFFF;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 8px;
    transition: background 0.3s ease, transform 0.25s var(--sh-ease), box-shadow 0.3s ease;
}

.site-header__quotation i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.site-header__quotation:hover {
    background: var(--brand-olive-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(36, 55, 47, 0.22);
}

.site-header__quotation:hover i {
    transform: translateX(-3px);
}

.site-header.is-compact .site-header__quotation {
    padding-block: 8px;
}

/* ── MEGA MENU ────────────────────────────────────────── */
.site-header__mega {
    position: absolute;
    top: 100%;
    inset-inline: 0;
    z-index: 40;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.26s ease, transform 0.26s var(--sh-ease), visibility 0.26s;
}

.site-header__mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
}

.site-header__mega-panel {
    position: relative;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 0 0 14px 14px;
    box-shadow: 0 18px 45px rgba(23, 26, 24, 0.10);
    padding: 26px 30px 22px;
}

.site-header__mega-panel::before {
    content: "";
    position: absolute;
    top: -1px;
    inset-inline-start: 30px;
    width: 64px;
    height: 3px;
    background: var(--brand-terracotta);
}

.site-header__mega-body {
    display: grid;
    grid-template-columns: 236px minmax(0, 1fr) 288px;
    gap: 36px;
    min-height: 318px;
}

/* Categories (right) */
.site-header__mega-cats {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-inline-end: 20px;
    border-inline-end: 1px solid var(--brand-border);
}

.site-header__mega-cat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: start;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-header__mega-cat .n {
    font-size: 12px;
    color: var(--brand-muted);
    transition: color 0.2s ease;
}

.site-header__mega-cat i {
    margin-inline-start: auto;
    font-size: 12px;
    color: var(--brand-muted);
    opacity: 0.45;
    transition: opacity 0.2s ease, color 0.2s ease, transform 0.25s var(--sh-ease);
}

.site-header__mega-cat:hover {
    background: var(--brand-ivory);
}

.site-header__mega-cat.is-active {
    background: var(--brand-ivory);
    color: var(--brand-terracotta);
}

.site-header__mega-cat.is-active .n {
    color: var(--brand-terracotta);
}

.site-header__mega-cat.is-active i {
    opacity: 1;
    color: var(--brand-terracotta);
    transform: translateX(-2px);
}

.site-header__mega-cat.is-active::before {
    content: "";
    position: absolute;
    inset-inline-start: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 18px;
    border-radius: 2px;
    background: var(--brand-terracotta);
}

/* Sub-categories (middle) */
.site-header__mega-pane {
    display: none;
}

.site-header__mega-pane.is-active {
    display: block;
    animation: sy-mega-fade 0.24s ease both;
}

@keyframes sy-mega-fade {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.site-header__mega-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px 26px;
}

.site-header__mega-list a {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 9px 12px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.site-header__mega-list a:hover {
    background: var(--brand-ivory);
}

.site-header__mega-list .t {
    font-size: 13.5px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-header__mega-list a:hover .t {
    color: var(--brand-terracotta);
}

.site-header__mega-list .m {
    font-size: 12px;
    color: var(--brand-muted);
}

.site-header__mega-more {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--brand-terracotta);
}

.site-header__mega-more i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.site-header__mega-more:hover i {
    transform: translateX(-3px);
}

/* Poster (left) — pure CSS architectural composition */
.site-header__poster {
    position: relative;
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(160deg, #2C443A 0%, var(--brand-olive) 55%, #1E2F27 100%);
}

.site-header__poster-grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 21px, rgba(245, 241, 232, 0.07) 21px 22px),
        repeating-linear-gradient(90deg, transparent 0 21px, rgba(245, 241, 232, 0.07) 21px 22px);
}

.site-header__poster-line {
    position: absolute;
    top: 46%;
    inset-inline: -12%;
    height: 1px;
    background: rgba(245, 241, 232, 0.16);
    transform: rotate(-14deg);
}

.site-header__poster-arch {
    position: absolute;
    top: 26px;
    inset-inline-start: 30px;
    width: 106px;
    height: 120px;
    background: var(--brand-terracotta);
    border-radius: 53px 53px 3px 3px;
}

.site-header__poster-arch::after {
    content: "";
    position: absolute;
    bottom: 0;
    inset-inline-start: 30px;
    width: 46px;
    height: 74px;
    background: var(--brand-olive);
    border-radius: 23px 23px 0 0;
}

.site-header__poster-dot {
    position: absolute;
    top: 30px;
    inset-inline-end: 28px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand-lime);
}

.site-header__poster-blocks {
    position: absolute;
    bottom: 132px;
    inset-inline-start: 30px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.site-header__poster-blocks i {
    display: block;
    height: 13px;
    border-radius: 2px;
    background: var(--brand-sand);
    box-shadow: inset 0 -3px 0 rgba(23, 26, 24, 0.15);
}

.site-header__poster-blocks i:nth-child(1) {
    width: 118px;
}

.site-header__poster-blocks i:nth-child(2) {
    width: 86px;
    margin-inline-start: 18px;
}

.site-header__poster-blocks i:nth-child(3) {
    width: 52px;
    margin-inline-start: 36px;
}

.site-header__poster-copy {
    position: relative;
    z-index: 1;
    padding: 20px 22px;
}

.site-header__poster-title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 19px;
    line-height: 1.3;
    color: var(--brand-ivory);
}

.site-header__poster-sub {
    margin: 4px 0 0;
    font-size: 12px;
    color: rgba(245, 241, 232, 0.72);
}

.site-header__poster-copy a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-lime);
}

.site-header__poster-copy a i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.site-header__poster-copy a:hover i {
    transform: translateX(-3px);
}

/* Mega footer strip */
.site-header__mega-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding-top: 15px;
    border-top: 1px solid var(--brand-border);
    font-size: 12.5px;
}

.site-header__mega-foot a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    transition: color 0.2s ease;
}

.site-header__mega-foot a i {
    font-size: 12px;
    transition: transform 0.25s ease;
}

.site-header__mega-foot a:hover {
    color: var(--brand-terracotta);
}

.site-header__mega-foot a:hover i {
    transform: translateX(-3px);
}

.site-header__mega-foot span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand-muted);
}

/* ── Mobile search row ────────────────────────────────── */
.site-header__search-mobile {
    display: none;
}

/* ── Overlay + Drawer ─────────────────────────────────── */
.site-header__overlay {
    position: fixed;
    inset: 0;
    z-index: 980;
    background: rgba(23, 26, 24, 0.35);
    backdrop-filter: blur(3px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-header__overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.site-header__drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    inset-inline-start: 0;
    /* در RTL = سمت راست */
    z-index: 1000;
    width: min(86vw, 380px);
    display: flex;
    flex-direction: column;
    background: var(--brand-ivory);
    box-shadow: -20px 0 60px rgba(23, 26, 24, 0.18);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.4s var(--sh-ease), visibility 0.4s ease;
}

.site-header__drawer.is-open {
    transform: translateX(0);
    visibility: visible;
}

.site-header__drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--brand-border);
}

.site-header__drawer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-size: 21px;
    color: var(--brand-olive);
}

.site-header__drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 6px 18px 20px;
}

.site-header__drawer-search {
    margin: 16px 0 4px;
}

.site-header__drawer-search .site-header__search-box {
    height: 44px;
    background: var(--brand-white);
}

.site-header__drawer-nav {
    margin-top: 10px;
}

.site-header__drawer-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 6px;
    border-bottom: 1px solid var(--brand-border);
    font-size: 14.5px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.site-header__drawer-nav li:last-child a {
    border-bottom: 0;
}

.site-header__drawer-nav .n {
    font-size: 12px;
    color: var(--brand-muted);
}

.site-header__drawer-nav a i {
    margin-inline-start: auto;
    font-size: 12px;
    color: var(--brand-muted);
    opacity: 0;
    transform: translateX(4px);
    transition: opacity 0.2s ease, transform 0.25s var(--sh-ease);
}

.site-header__drawer-nav a:hover {
    color: var(--brand-terracotta);
}

.site-header__drawer-nav a:hover i {
    opacity: 1;
    transform: translateX(0);
}

.site-header__drawer-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 12px;
    font-size: 12px;
    color: var(--brand-muted);
}

.site-header__drawer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.site-header__drawer-chips a {
    padding: 9px 15px;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: 7px;
    font-size: 12.5px;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.site-header__drawer-chips a:hover {
    background: var(--brand-olive);
    border-color: var(--brand-olive);
    color: var(--brand-ivory);
}

.site-header__drawer-project {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    padding: 18px;
    background: var(--brand-olive);
    border-radius: 12px;
    color: var(--brand-ivory);
}

.site-header__drawer-project::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 19px, rgba(245, 241, 232, 0.06) 19px 20px),
        repeating-linear-gradient(90deg, transparent 0 19px, rgba(245, 241, 232, 0.06) 19px 20px);
}

.site-header__drawer-project-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 17px;
}

.site-header__drawer-project-title .site-header__project-chip-dot {
    background: var(--brand-lime);
}

.site-header__drawer-project-sub {
    position: relative;
    margin: 6px 0 14px;
    font-size: 12px;
    line-height: 1.9;
    color: rgba(245, 241, 232, 0.75);
}

.site-header__drawer-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    background: var(--brand-terracotta);
    color: #FFFFFF;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.site-header__drawer-cta:hover {
    background: var(--brand-olive-dark);
}

.site-header__drawer-foot {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 18px;
    background: var(--brand-sand);
    border-top: 1px solid var(--brand-border);
}

.site-header__drawer-phone {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-olive);
}

.site-header__drawer-phone i {
    color: var(--brand-terracotta);
    font-size: 13px;
}

.site-header__drawer-foot span {
    font-size: 12px;
    color: var(--brand-muted);
}

body.sy-lock {
    overflow: hidden;
}

/* ═══ Responsive ═══════════════════════════════════════ */
@media (max-width: 1366px) {
    .site-header__mega-body {
        grid-template-columns: 224px minmax(0, 1fr) 268px;
        gap: 28px;
    }
}

@media (max-width: 1280px) {
    .site-header__main-in {
        gap: 20px;
    }

    .site-header__search {
        max-width: 480px;
    }

    .site-header__nav-list {
        gap: 18px;
    }
}

@media (max-width: 1160px) {
    .site-header__account-btn span {
        display: none;
    }

    .site-header__project-chip {
        display: none;
    }

    .site-header__mega-body {
        grid-template-columns: 210px minmax(0, 1fr) 240px;
        gap: 22px;
    }
}

@media (max-width: 1024px) {
    .site-header__nav-hide-md {
        display: none;
    }

    .site-header__nav-list {
        gap: 14px;
    }

    .site-header__nav-link {
        font-size: 13.5px;
    }

    .site-header__quotation {
        padding: 9px 14px;
    }
}

/* ── Mobile mode ── */
@media (max-width: 992px) {

    .site-header__nav,
    .site-header__mega,
    .site-header__search,
    .site-header__account,
    .site-header__divider {
        display: none;
    }

    .site-header__burger,
    .site-header__search-toggle {
        display: flex;
    }

    .site-header__main-in {
        display: flex;
        align-items: center;
        gap: 6px;
        padding-block: 12px;
    }

    .site-header__actions {
        margin-inline-start: auto;
    }

    .site-header__brand-text strong {
        font-size: 22px;
    }

    .site-header__brand-text small {
        display: none;
    }

    .site-header__brand {
        gap: 10px;
    }

    .site-header__brand-mark {
        width: 34px;
        height: 34px;
    }

    /* Expandable search row */
    .site-header__search-mobile {
        display: grid;
        grid-template-rows: 0fr;
        transition: grid-template-rows 0.34s var(--sh-ease);
    }

    .site-header.is-search-open .site-header__search-mobile {
        grid-template-rows: 1fr;
    }

    .site-header__search-mobile-in {
        overflow: hidden;
        min-height: 0;
        visibility: hidden;
        transition: visibility 0.34s;
    }

    .site-header.is-search-open .site-header__search-mobile-in {
        visibility: visible;
    }

    .site-header__search-mobile .site-header__search-box {
        height: 46px;
        margin-bottom: 14px;
        background: var(--brand-white);
    }
}

@media (max-width: 640px) {
    .site-header__top-links a:not(.is-phone) {
        display: none;
    }

    .site-header__top-links a+a::before {
        display: none;
    }

    .site-header__top-tagline {
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .site-header__container {
        padding-inline: 14px;
    }

    .site-header__brand-text strong {
        font-size: 20px;
    }

    .site-header__brand-mark {
        width: 32px;
        height: 32px;
    }

    .site-header__cart {
        width: 44px;
        height: 44px;
    }

    .site-header__search-toggle {
        width: 42px;
    }
}

/* ── Reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    .site-header *,
    .site-header *::before,
    .site-header *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ═══ DEMO SCAFFOLD — فقط برای پیش‌نمایش؛ حذف در پروژهٔ اصلی ═══ */
.page-demo__hero {
    position: relative;
    min-height: 76vh;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 40px 20px;
    background: var(--brand-sand);
    overflow: hidden;
}

.page-demo__hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(0deg, transparent 0 43px, rgba(36, 55, 47, 0.05) 43px 44px),
        repeating-linear-gradient(90deg, transparent 0 43px, rgba(36, 55, 47, 0.05) 43px 44px);
}

.page-demo__eyebrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin: 0;
    font-size: 12px;
    color: var(--brand-muted);
}

.page-demo__title {
    position: relative;
    margin: 14px 0 8px;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(30px, 5vw, 54px);
    line-height: 1.3;
    color: var(--brand-olive);
}

.page-demo__sub {
    position: relative;
    margin: 0 auto;
    max-width: 440px;
    font-size: 13px;
    color: var(--brand-muted);
}

.page-demo__space {
    min-height: 120vh;
    display: grid;
    place-content: center;
    background: var(--brand-ivory);
    color: var(--brand-muted);
    font-size: 13px;
}

/* ═══════════ لینک فعال در ناوبری ═══════════ */
.site-header__nav-link.is-active {
    color: var(--sh-accent);
}

.site-header__nav-link.is-active::after {
    transform: scaleX(1);
}

/* انیمیشن اسکرول نرم برای کل صفحه */
html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* آفست اسکرول برای بخش‌ها */
section[id] {
    scroll-margin-top: 140px;
}

/* =========================================================
   HEADER · SOFT OFF-WHITE BACKGROUND
   هدر کاملاً سفید نباشد؛ یک درجه ملایم تیره‌تر از سایت
   ========================================================= */

:root {
    /* پس‌زمینه هدر: خیلی ملایم، نه سفید خالص */
    --brand-header-bg: var(--color-surface, #F8F8F6);

    /* border هدر */
    --brand-header-border: var(--color-border, #E8E2D8);

    /* سایه خیلی ظریف برای جدا شدن از بدنه */
    --brand-header-shadow: 0 1px 0 rgba(23, 26, 24, 0.04);
}

/* =========================================================
   ۱) بک‌گراند اصلی هدر
   ========================================================= */

.site-header,
.site-header__main,
.site-header__bar,
.site-header__nav,
.site-header__menu,
.site-header__bottom {
    background-color: var(--brand-header-bg) !important;
    border-color: var(--brand-header-border) !important;
    box-shadow: var(--brand-header-shadow);
}

/* =========================================================
   ۲) اگر هدر چسبان / اسکرول‌شده دارد
   همان رنگ حفظ شود، فقط کمی شیشه‌ای‌تر
   ========================================================= */

.site-header.is-scrolled,
.site-header--scrolled,
.site-header.scrolled,
.site-header.is-sticky,
.site-header--sticky {
    background-color: rgba(248, 248, 246, 0.96) !important;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* =========================================================
   ۳) پنل‌های بازشو می‌توانند سفید بمانند
   تا کنتراست ظریف با هدر داشته باشند
   ========================================================= */

.site-header__dropdown,
.site-header__mega,
.site-header__submenu,
.site-header__search-panel,
.site-header__drawer,
.site-header__drawer-body,
.site-header__drawer-head {
    background-color: var(--color-white, #FFFFFF) !important;
}

/* =========================================================
   ۴) نوار بالایی اگر وجود دارد، زیتونی بماند
   ========================================================= */

.site-header__topbar,
.site-header__utility,
.site-header__announce {
    background-color: var(--brand-olive, #24372F) !important;
    color: rgba(255, 255, 255, 0.82);
}

.site-header__topbar a,
.site-header__utility a,
.site-header__announce a {
    color: rgba(255, 255, 255, 0.82);
}

.site-header__topbar a:hover,
.site-header__utility a:hover,
.site-header__announce a:hover {
    color: var(--color-white, #FFFFFF);
}

/* =========================================================
   HEADER · ACTIVE NAV + UNDERLINE
   ========================================================= */

.site-header__link,
.site-header__nav-link,
.site-header__menu-link {
    position: relative;
}

.site-header__link::after,
.site-header__nav-link::after,
.site-header__menu-link::after {
    content: "";
    position: absolute;
    bottom: -6px;
    inset-inline: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-terracotta, #B85C38);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform 0.25s ease;
    pointer-events: none;
}

.site-header__link:hover,
.site-header__nav-link:hover,
.site-header__menu-link:hover {
    color: var(--brand-terracotta, #B85C38);
}

.site-header__link:hover::after,
.site-header__nav-link:hover::after,
.site-header__menu-link:hover::after {
    transform: scaleX(1);
}

.site-header__link.is-active,
.site-header__nav-link.is-active,
.site-header__menu-link.is-active,
.site-header__drawer-link.is-active {
    color: var(--brand-terracotta, #B85C38) !important;
    font-weight: 800;
}

.site-header__link.is-active::after,
.site-header__nav-link.is-active::after,
.site-header__menu-link.is-active::after {
    transform: scaleX(1) !important;
}

/* drawer موبایل */
.site-header__drawer-link.is-active {
    background: var(--brand-terracotta-soft, #FFF2EC);
    border-inline-start: 3px solid var(--brand-terracotta, #B85C38);
    color: var(--brand-terracotta-dark, #9A4B2C) !important;
}

/* Divider between store links and company links in the main nav */
.site-header__nav-list .site-header__nav-divider {
    flex: 0 0 1px;
    width: 1px;
    height: 18px;
    margin-inline: 8px;
    background: var(--brand-border, #d7d0c4);
    align-self: center;
}
