/* ═══════════════════════════════════════════════════════════════
   سازه گستر سهند — هدر (نسخه اصلاح شده)
   dashtseo.ir
   ═══════════════════════════════════════════════════════════════ */

:root {
    --header-topbar-h: 36px;
    --header-main-h: 64px;
    --header-total-h: calc(var(--header-topbar-h) + var(--header-main-h));
}

/* ─────────────────────────────────────
   Top Bar - ثابت در بالا
   ───────────────────────────────────── */
.sgs-topbar {
    background: var(--color-charcoal);
    color: var(--color-cream);
    font-size: 12px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    height: var(--header-topbar-h);
}

.sgs-topbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 16px;
}

.sgs-topbar__info {
    display: flex;
    align-items: center;
    gap: 20px;
    color: var(--color-mist);
}

.sgs-topbar__info-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-cream);
    transition: color 0.25s;
    white-space: nowrap;
}

.sgs-topbar__info-item:hover {
    color: var(--color-brick-light);
}

.sgs-topbar__info-item svg {
    width: 13px;
    height: 13px;
    opacity: 0.7;
    flex-shrink: 0;
}

.sgs-topbar__social {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sgs-topbar__social a {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--color-mist);
    transition: all 0.25s;
    border-radius: 4px;
}

.sgs-topbar__social a:hover {
    color: var(--color-brick-light);
    background: rgba(255, 255, 255, 0.06);
}

.sgs-topbar__social svg {
    width: 12px;
    height: 12px;
}

/* ─────────────────────────────────────
   موبایل - فقط شماره موبایل وسط
   ───────────────────────────────────── */
@media (max-width: 768px) {
    .sgs-topbar {
        height: 40px;
    }

    .sgs-topbar__inner {
        justify-content: center;
        padding: 0;
    }

    .sgs-topbar__info,
    .sgs-topbar__social {
        display: none;
    }

    .sgs-topbar__mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .sgs-topbar__mobile a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--color-cream);
        font-size: 14px;
        font-weight: 700;
        letter-spacing: 0.5px;
    }

    .sgs-topbar__mobile svg {
        width: 16px;
        height: 16px;
        color: var(--color-brick-light);
    }
}

/* ─────────────────────────────────────
   Header اصلی - زیر تاپ‌بار
   ───────────────────────────────────── */
.sgs-header {
    background: rgba(250, 248, 244, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-cream-dark);
    position: fixed;
    top: var(--header-topbar-h);
    left: 0;
    right: 0;
    z-index: 999;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
    height: var(--header-main-h);
}

/* اسکرول پایین: هدر مخفی */
.sgs-header.is-hidden {
    transform: translateY(calc(-100% - var(--header-topbar-h)));
}

/* اسکرول بالا: هدر نمایان */
.sgs-header.is-scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sgs-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 16px;
    gap: 12px;
}

/* ─────────────────────────────────────
   لوگو
   ───────────────────────────────────── */
.sgs-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-charcoal);
    flex-shrink: 0;
    min-width: 0;
}

.sgs-logo__mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: var(--color-brick);
    color: var(--color-cream);
    border-radius: 8px;
    font-weight: 900;
    font-size: 16px;
    font-family: var(--font-display);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.sgs-logo__mark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 50%, transparent 100%);
}

.sgs-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    min-width: 0;
    overflow: hidden;
}

.sgs-logo__title {
    font-weight: 900;
    font-size: 15px;
    letter-spacing: -0.02em;
    color: var(--color-charcoal);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sgs-logo__subtitle {
    font-size: 10px;
    color: var(--color-stone);
    font-weight: 500;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─────────────────────────────────────
   منوی اصلی
   ───────────────────────────────────── */
.sgs-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.sgs-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
}

.sgs-nav__item {
    position: relative;
}

.sgs-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    color: var(--color-graphite);
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.25s;
    white-space: nowrap;
}

.sgs-nav__link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 12px;
    left: 12px;
    height: 2px;
    background: var(--color-brick);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s;
}

.sgs-nav__link:hover,
.sgs-nav__item.is-active > .sgs-nav__link {
    color: var(--color-brick);
}

.sgs-nav__link:hover::after,
.sgs-nav__item.is-active > .sgs-nav__link::after {
    transform: scaleX(1);
}

.sgs-nav__link svg {
    width: 10px;
    height: 10px;
    transition: transform 0.25s;
}

.sgs-nav__item:hover > .sgs-nav__link svg {
    transform: rotate(180deg);
}

/* زیرمنو */
.sgs-submenu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    min-width: 240px;
    background: var(--color-paper);
    border: 1px solid var(--color-cream-dark);
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s;
    z-index: 100;
    list-style: none;
}

.sgs-nav__item:hover > .sgs-submenu,
.sgs-nav__item:focus-within > .sgs-submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sgs-submenu__item {
    list-style: none;
}

.sgs-submenu__link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-graphite);
    border-radius: 6px;
    transition: all 0.25s;
    text-decoration: none;
}

.sgs-submenu__link:hover {
    background: var(--color-brick-50);
    color: var(--color-brick);
    padding-right: 16px;
}

.sgs-submenu__icon {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    background: var(--color-cream);
    color: var(--color-brick);
    border-radius: 6px;
    flex-shrink: 0;
}

.sgs-submenu__icon svg {
    width: 14px;
    height: 14px;
}

.sgs-submenu__text {
    flex: 1;
}

.sgs-submenu__title {
    display: block;
    font-weight: 700;
    color: var(--color-charcoal);
}

.sgs-submenu__desc {
    font-size: 11px;
    color: var(--color-stone);
    margin-top: 1px;
}

/* ─────────────────────────────────────
   اکشن‌های هدر
   ───────────────────────────────────── */
.sgs-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.sgs-header__cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--color-brick);
    color: var(--color-cream);
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.25s;
    text-decoration: none;
    white-space: nowrap;
}

.sgs-header__cta:hover {
    background: var(--color-brick-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 65, 43, 0.3);
}

.sgs-header__cta svg {
    width: 14px;
    height: 14px;
}

/* دکمه منوی موبایل */
.sgs-burger {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-cream-dark);
    border-radius: 8px;
    background: var(--color-paper);
    transition: all 0.25s;
    flex-shrink: 0;
}

.sgs-burger:hover {
    border-color: var(--color-brick);
    background: var(--color-brick-50);
}

.sgs-burger__lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 18px;
}

.sgs-burger__lines span {
    display: block;
    height: 2px;
    background: var(--color-charcoal);
    border-radius: 2px;
    transition: all 0.25s;
}

.sgs-burger.is-active .sgs-burger__lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.sgs-burger.is-active .sgs-burger__lines span:nth-child(2) {
    opacity: 0;
}

.sgs-burger.is-active .sgs-burger__lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ─────────────────────────────────────
   منوی موبایل (Drawer)
   ───────────────────────────────────── */
.sgs-mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(380px, 90vw);
    height: 100dvh;
    background: var(--color-paper);
    z-index: 1100;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
    overflow-y: auto;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.sgs-mobile-menu.is-open {
    transform: translateX(0);
    visibility: visible;
}

.sgs-mobile-menu__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--color-cream-dark);
    flex-shrink: 0;
}

.sgs-mobile-menu__close {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    color: var(--color-stone);
    transition: all 0.25s;
}

.sgs-mobile-menu__close:hover {
    background: var(--color-brick-50);
    color: var(--color-brick);
}

.sgs-mobile-menu__body {
    flex: 1;
    padding: 16px 0;
    overflow-y: auto;
}

.sgs-mobile-menu__nav {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sgs-mobile-menu__nav-item {
    list-style: none;
    border-bottom: 1px solid var(--color-cream);
}

.sgs-mobile-menu__nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-charcoal);
    transition: color 0.25s;
    text-decoration: none;
}

.sgs-mobile-menu__nav-link:hover,
.sgs-mobile-menu__nav-link.is-active {
    color: var(--color-brick);
}

.sgs-mobile-menu__sub {
    background: var(--color-cream);
    margin: 0 12px 8px;
    border-radius: 8px;
    padding: 4px;
    list-style: none;
}

.sgs-mobile-menu__sub-link {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    color: var(--color-graphite);
    border-radius: 6px;
    transition: all 0.25s;
    text-decoration: none;
}

.sgs-mobile-menu__sub-link:hover {
    background: var(--color-paper);
    color: var(--color-brick);
    padding-right: 20px;
}

.sgs-mobile-menu__footer {
    padding: 16px 20px;
    border-top: 1px solid var(--color-cream-dark);
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

.sgs-mobile-menu__contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sgs-mobile-menu__contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--color-graphite);
    text-decoration: none;
}

.sgs-mobile-menu__contact-item svg {
    width: 16px;
    height: 16px;
    color: var(--color-brick);
    flex-shrink: 0;
}

.sgs-mobile-menu__social {
    display: flex;
    gap: 8px;
    padding-top: 8px;
}

.sgs-mobile-menu__social a {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: var(--color-cream);
    color: var(--color-stone);
    border-radius: 8px;
    transition: all 0.25s;
}

.sgs-mobile-menu__social a:hover {
    background: var(--color-brick);
    color: var(--color-cream);
}

/* Overlay */
.sgs-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 24, 20, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1099;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    cursor: pointer;
}

.sgs-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

/* ─────────────────────────────────────
   ریسپانسیو
   ───────────────────────────────────── */
@media (max-width: 1024px) {
    :root {
        --header-main-h: 60px;
    }

    .sgs-nav,
    .sgs-header__cta {
        display: none;
    }

    .sgs-burger {
        display: flex;
    }
}

@media (max-width: 640px) {
    :root {
        --header-topbar-h: 40px;
        --header-main-h: 56px;
    }

    .sgs-logo__subtitle { display: none; }
    .sgs-logo__title { font-size: 13px; }
    .sgs-logo__mark {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}

/* ─────────────────────────────────────
   padding body
   ───────────────────────────────────── */
body {
    padding-top: var(--header-total-h);
}

@media (max-width: 640px) {
    body {
        padding-top: calc(40px + 56px);
    }
}

/* ═══════════════════════════════════════════════════════════════
   Hotfix v3.0.2 — اصلاح نمایش هدر، لوگو و منوی وردپرس
   ═══════════════════════════════════════════════════════════════ */

/* آیتم موبایل نباید در دسکتاپ دیده شود */
.sgs-topbar__mobile {
    display: none;
}

/* کنترل اندازه لوگوی آپلودشده از بخش Custom Logo وردپرس */
.sgs-logo .custom-logo-link,
.sgs-logo > .custom-logo-link {
    display: inline-flex;
    align-items: center;
    line-height: 0;
    max-height: calc(var(--header-main-h) - 14px);
}

.sgs-logo img,
.sgs-logo .custom-logo,
.custom-logo-link img {
    display: block;
    width: auto !important;
    max-width: 150px !important;
    height: auto !important;
    max-height: calc(var(--header-main-h) - 14px) !important;
    object-fit: contain;
}

/* استایل منوی واقعی وردپرس؛ چون wp_nav_menu کلاس sgs-nav__link به لینک‌ها نمی‌دهد */
.sgs-nav .sgs-nav__list,
.sgs-nav .menu,
.sgs-nav ul {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sgs-nav .menu-item,
.sgs-nav li {
    position: relative;
    margin: 0;
    list-style: none;
}

.sgs-nav .menu-item > a,
.sgs-nav li > a,
.sgs-nav__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    color: var(--color-graphite);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    transition: color .2s ease, background-color .2s ease;
}

.sgs-nav .menu-item > a:hover,
.sgs-nav .current-menu-item > a,
.sgs-nav .current_page_item > a,
.sgs-nav__link:hover {
    color: var(--color-brick);
    background: var(--color-brick-50);
}

/* زیرمنوی وردپرسی */
.sgs-nav .sub-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 220px;
    display: block;
    padding: 8px;
    margin: 0;
    background: var(--color-paper);
    border: 1px solid var(--color-cream-dark);
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all .2s ease;
    z-index: 1005;
}

.sgs-nav .menu-item:hover > .sub-menu,
.sgs-nav .menu-item:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.sgs-nav .sub-menu a {
    justify-content: flex-start;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
}

/* جلوگیری از به‌هم‌ریختگی در عرض‌های میانی */
@media (max-width: 1180px) {
    .sgs-nav .menu-item > a,
    .sgs-nav li > a,
    .sgs-nav__link {
        padding-inline: 8px;
        font-size: 12px;
    }

    .sgs-logo img,
    .sgs-logo .custom-logo,
    .custom-logo-link img {
        max-width: 120px !important;
    }
}

@media (max-width: 768px) {
    .sgs-topbar__mobile {
        display: flex;
    }

    .sgs-logo img,
    .sgs-logo .custom-logo,
    .custom-logo-link img {
        max-width: 110px !important;
        max-height: 42px !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Hotfix v3.0.3 — موبایل: CTA وسط هدر و اصلاح Offcanvas
   ═══════════════════════════════════════════════════════════════ */
.sgs-header__mobile-consult {
    display: none;
}

@media (max-width: 768px) {
    :root {
        --header-topbar-h: 0px;
        --header-main-h: 64px;
        --header-total-h: 64px;
    }

    body {
        padding-top: var(--header-main-h) !important;
    }

    .sgs-topbar {
        display: none !important;
    }

    .sgs-header {
        top: 0 !important;
        height: var(--header-main-h);
        background: rgba(250, 248, 244, 0.98);
    }

    .sgs-header__inner {
        position: relative;
        padding-inline: 12px;
    }

    .sgs-header__mobile-consult {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-width: 176px;
        max-width: calc(100vw - 150px);
        min-height: 44px;
        padding: 7px 14px;
        border-radius: 12px;
        background: var(--color-brick);
        color: var(--color-cream);
        text-decoration: none;
        box-shadow: 0 10px 22px rgba(168, 65, 43, 0.22);
        z-index: 2;
        white-space: nowrap;
    }

    .sgs-header__mobile-consult-text {
        font-size: 12px;
        font-weight: 900;
        line-height: 1.2;
    }

    .sgs-header__mobile-consult-phone {
        direction: ltr;
        unicode-bidi: plaintext;
        font-family: var(--font-num, inherit);
        font-size: 11px;
        font-weight: 800;
        opacity: 0.92;
        line-height: 1.2;
    }

    .sgs-header__actions {
        margin-inline-start: auto;
    }

    .sgs-burger {
        width: 42px;
        height: 42px;
        background: var(--color-paper);
        border-color: var(--color-cream-dark);
        z-index: 3;
    }

    .sgs-logo {
        max-width: 58px;
        overflow: hidden;
        z-index: 3;
    }

    .sgs-logo__text {
        display: none;
    }

    .sgs-logo img,
    .sgs-logo .custom-logo,
    .custom-logo-link img {
        max-width: 48px !important;
        max-height: 48px !important;
    }

    /* Offcanvas تمیزتر و سازگار با منوی واقعی وردپرس */
    .sgs-mobile-menu {
        width: min(360px, 82vw);
        background: var(--color-paper);
    }

    .sgs-mobile-menu__header {
        min-height: 72px;
        padding: 14px 18px;
    }

    .sgs-mobile-menu__header .sgs-logo {
        max-width: 74px;
    }

    .sgs-mobile-menu__header .sgs-logo img,
    .sgs-mobile-menu__header .custom-logo {
        max-width: 58px !important;
        max-height: 58px !important;
    }

    .sgs-mobile-menu__body {
        padding: 8px 0 18px;
    }

    .sgs-mobile-menu__nav,
    .sgs-mobile-menu__nav ul,
    .sgs-mobile-menu .menu {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .sgs-mobile-menu__nav li,
    .sgs-mobile-menu .menu-item {
        margin: 0;
        list-style: none;
        border-bottom: 1px solid var(--color-cream-dark);
    }

    .sgs-mobile-menu__nav a,
    .sgs-mobile-menu .menu-item > a,
    .sgs-mobile-menu__nav-link {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        width: 100%;
        min-height: 48px;
        padding: 13px 22px;
        color: var(--color-charcoal);
        font-size: 15px;
        font-weight: 800;
        line-height: 1.5;
        text-align: right;
        text-decoration: none;
        border-radius: 0;
        transition: color .2s ease, background-color .2s ease, padding .2s ease;
    }

    .sgs-mobile-menu__nav a:hover,
    .sgs-mobile-menu .current-menu-item > a,
    .sgs-mobile-menu .current_page_item > a {
        color: var(--color-brick);
        background: var(--color-brick-50);
        padding-left: 28px;
    }

    .sgs-mobile-menu .sub-menu {
        display: block;
        margin: 0;
        padding: 4px 0 8px;
        background: var(--color-cream);
    }

    .sgs-mobile-menu .sub-menu li {
        border-bottom: 0;
    }

    .sgs-mobile-menu .sub-menu a {
        min-height: 40px;
        padding: 9px 34px 9px 22px;
        font-size: 13px;
        font-weight: 700;
        color: var(--color-graphite);
    }

    .sgs-mobile-menu__footer {
        padding: 16px 18px calc(16px + env(safe-area-inset-bottom));
        background: var(--color-paper);
    }

    .sgs-mobile-menu__footer .sgs-btn {
        min-height: 52px;
        border-radius: 12px;
        font-weight: 900;
    }
}

@media (max-width: 390px) {
    .sgs-header__mobile-consult {
        min-width: 150px;
        max-width: calc(100vw - 132px);
        padding-inline: 10px;
    }

    .sgs-header__mobile-consult-text {
        font-size: 11px;
    }

    .sgs-header__mobile-consult-phone {
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Hotfix v3.0.4 — هدر موبایل: مشاوره فروش + شماره بزرگ‌تر
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .sgs-header__mobile-consult {
        min-width: 190px;
        min-height: 50px;
        padding: 7px 16px 8px;
        border-radius: 14px;
        box-shadow: 0 12px 26px rgba(168, 65, 43, 0.28);
    }

    .sgs-header__mobile-consult-text {
        font-size: 14px;
        font-weight: 950;
        line-height: 1.25;
    }

    .sgs-header__mobile-consult-phone {
        font-size: 14px;
        font-weight: 950;
        letter-spacing: .2px;
        line-height: 1.2;
    }
}

@media (max-width: 390px) {
    .sgs-header__mobile-consult {
        min-width: 168px;
        max-width: calc(100vw - 126px);
        min-height: 48px;
    }

    .sgs-header__mobile-consult-text,
    .sgs-header__mobile-consult-phone {
        font-size: 12.5px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   Hotfix v3.0.7 — حذف فضای خالی زیر هدر موبایل و هدر Sticky
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --header-topbar-h: 0px;
        --header-main-h: 62px;
        --header-total-h: 62px;
    }

    html {
        scroll-padding-top: calc(var(--header-main-h) + 10px);
    }

    body {
        padding-top: 0 !important;
        margin-top: 0 !important;
    }

    .sgs-topbar {
        display: none !important;
        height: 0 !important;
    }

    .sgs-header {
        position: sticky !important;
        top: 0 !important;
        height: var(--header-main-h) !important;
        transform: none !important;
        box-shadow: 0 6px 20px rgba(26, 24, 20, 0.08);
    }

    .sgs-header.is-hidden,
    .sgs-header.is-scrolled {
        transform: none !important;
    }

    .admin-bar .sgs-header {
        top: 0 !important;
    }

    .sgs-header__inner {
        height: var(--header-main-h) !important;
    }

    .sgs-main,
    main#sgsMain {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }

    .sgs-header__mobile-consult {
        min-width: min(218px, calc(100vw - 138px));
        min-height: 48px;
        padding: 6px 14px;
    }

    .sgs-header__mobile-consult-text {
        font-size: 13.5px;
    }

    .sgs-header__mobile-consult-phone {
        font-size: 14.5px;
    }

    /* منو باید روی آیلند پایین قرار بگیرد */
    .sgs-overlay {
        z-index: 1398 !important;
    }

    .sgs-mobile-menu {
        z-index: 1399 !important;
    }
}

@media (max-width: 380px) {
    .sgs-header__mobile-consult {
        min-width: min(182px, calc(100vw - 124px));
        padding-inline: 9px;
    }

    .sgs-header__mobile-consult-text,
    .sgs-header__mobile-consult-phone {
        font-size: 12px;
    }
}

/* v3.0.8 — اطمینان از نبود تاپ‌بار در موبایل/تبلت */
@media (max-width: 1024px) {
    .sgs-topbar {
        display: none !important;
        height: 0 !important;
    }

    .sgs-header {
        top: 0 !important;
    }
}
