/* ============================================
   SAMI NAV V2 - منوی استاندارد سامی ساپ
   کاملاً جداسازی شده با کلاس‌های جدید
   ============================================ */

/* ===== متغیرها ===== */
:root {
    --sami-nav-bg: #2f2a2a;
    --sami-nav-text: #fff7f7;
    --sami-nav-hover: #c96;
    --sami-dropdown-bg: #ffffff;
    --sami-dropdown-text: #333333;
    --sami-dropdown-hover: #c96;
    --sami-mobile-bg: #2f2a2a;
    --sami-mobile-text: #ffffff;
    --sami-mobile-hover: #c96;
    --sami-border-color: rgba(255,255,255,0.08);
    --sami-transition: 0.3s ease;
}

/* ===== استایل مدرن هدر اصلی ===== */
.section-header {
    direction: rtl;
}
.section-header .header-quick-cta a,
.section-header .header-quick-cta span {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: #212529;
    font-size: 1.25rem;
    min-height: 50px;
    padding: 0.75rem 1rem;
    border-radius: 999px;
}

.section-header .header-quick-cta a {
    background: rgba(43, 125, 25, 0.08);
    border: 1px solid rgba(43, 125, 25, 0.16);
    transition: all var(--sami-transition);
}

.section-header .header-quick-cta span {
    background: rgba(43, 125, 25, 0.05);
}

.section-header .header-quick-cta a:hover,
.section-header .header-quick-cta span:hover {
    background: rgba(43, 125, 25, 0.16);
    color: #0b2a10;
}

.section-header .header-quick-cta .text-success {
    color: #2b7d19 !important;
}

/* ===== کانتینر اصلی منو ===== */
.sami-nav-container {
    position: relative;
    background: var(--sami-nav-bg);
    width: 100%;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 0 15px;
    box-shadow: inset 0 4px 8px rgba(0,0,0,0.1);
    z-index: 1000;
}

/* ===== لیست منو ===== */
.sami-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    gap: 0;
}

    .sami-nav-list > li {
        position: relative;
        margin: 0;
    }

        .sami-nav-list > li > a {
            display: block;
            padding: 18px 20px;
            color: var(--sami-nav-text);
            font-weight: 500;
            font-size: 1.5rem;
            text-decoration: none;
            transition: all var(--sami-transition);
            white-space: nowrap;
            position: relative;
            cursor: pointer;
        }

            .sami-nav-list > li > a:hover,
            .sami-nav-list > li > a:focus {
                color: var(--sami-nav-hover);
                background-color: rgba(255,255,255,0.05);
                border-radius: 4px;
            }

        /* ===== آیتم‌های دارای زیرمنو ===== */
        .sami-nav-list > li.has-dropdown > a::after {
            content: "▼";
            font-size: 0.7rem;
            margin-right: 6px;
            display: inline-block;
            transition: transform var(--sami-transition);
        }

        .sami-nav-list > li.has-dropdown:hover > a::after {
            transform: rotate(180deg);
        }

/* ===== آیتم ویژه صفحه اصلی ===== */
.sami-nav-list > li.home-menu-item > a {
    color: #081d07;
    font-weight: 700;
    background: #2b7d19;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(43, 125, 25, 0.25);
    margin-left: 6px;
}

.sami-nav-list > li.home-menu-item > a:hover,
.sami-nav-list > li.home-menu-item > a:focus {
    color: #081d07;
    background: #348f20;
    transform: translateY(-1px);
}

/* ===== دراپ‌داون سطح اول ===== */
.sami-dropdown {
    position: absolute;
    right: 0;
    top: 100%;
    min-width: 220px;
    background: var(--sami-dropdown-bg);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--sami-transition);
    z-index: 9999;
    padding: 8px 0;
    list-style: none;
    margin: 0;
}

.sami-nav-list > li:hover > .sami-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    text-align: justify;
}

/* ===== آیتم‌های دراپ‌داون ===== */
.sami-dropdown > li {
    position: relative;
}

    .sami-dropdown > li > a {
        display: block;
        padding: 10px 20px;
        color: var(--sami-dropdown-text);
        font-weight: 400;
        font-size: 1.4rem;
        text-decoration: none;
        transition: all var(--sami-transition);
        white-space: nowrap;
        border-right: 3px solid transparent;
    }

        .sami-dropdown > li > a:hover,
        .sami-dropdown > li > a:focus {
            background-color: #f8f8f8;
            color: var(--sami-dropdown-hover);
            border-right-color: var(--sami-dropdown-hover);
        }

/* ===== زیرمنوی سطح دوم ===== */
.sami-dropdown .sami-sub-dropdown {
    position: absolute;
    right: 100%;
    top: 0;
    min-width: 200px;
    background: var(--sami-dropdown-bg);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-10px);
    transition: all var(--sami-transition);
    padding: 8px 0;
    list-style: none;
    margin: 0;
}

.sami-dropdown > li:hover > .sami-sub-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.sami-dropdown > li.has-sub-dropdown > a::after {
    content: "◀";
    font-size: 0.7rem;
    margin-right: 8px;
    float: left;
}

.sami-sub-dropdown > li > a {
    display: block;
    padding: 10px 20px;
    color: var(--sami-dropdown-text);
    font-weight: 400;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all var(--sami-transition);
    white-space: nowrap;
    border-right: 3px solid transparent;
}

    .sami-sub-dropdown > li > a:hover,
    .sami-sub-dropdown > li > a:focus {
        background-color: #f8f8f8;
        color: var(--sami-dropdown-hover);
        border-right-color: var(--sami-dropdown-hover);
    }

/* ===== بخش راست منو (دکمه‌ها) ===== */
.sami-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-right: auto;
}

/* ===== دکمه سبد خرید ===== */
.sami-cart-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    color: var(--sami-nav-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all var(--sami-transition);
    border-radius: 6px;
    position: relative;
}

    .sami-cart-btn:hover {
        color: var(--sami-nav-hover);
        background-color: rgba(255,255,255,0.08);
    }

    .sami-cart-btn i {
        font-size: 2rem;
    }

.sami-cart-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 50%;
    background-color: var(--sami-nav-hover);
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
}

/* ===== دکمه پروفایل / ورود ===== */
.sami-profile-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    color: var(--sami-nav-text);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all var(--sami-transition);
    border-radius: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.15);
    cursor: pointer;
}

    .sami-profile-btn:hover {
        color: var(--sami-nav-hover);
        background-color: rgba(255,255,255,0.08);
        border-color: var(--sami-nav-hover);
    }

    .sami-profile-btn i {
        font-size: 1.8rem;
    }

/* ===== منوی پروفایل (دراپ‌داون) ===== */
.sami-profile-dropdown {
    position: absolute;
    left: 0;
    top: 100%;
    min-width: 160px;
    background: var(--sami-dropdown-bg);
    border-radius: 0 0 8px 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--sami-transition);
    padding: 8px 0;
    list-style: none;
    margin: 0;
    z-index: 9999;
}

.sami-profile-wrapper {
    position: relative;
}

    .sami-profile-wrapper:hover .sami-profile-dropdown,
    .sami-profile-wrapper.active .sami-profile-dropdown {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

.sami-profile-dropdown > li > a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px;
    color: var(--sami-dropdown-text);
    font-weight: 400;
    font-size: 1.3rem;
    text-decoration: none;
    transition: all var(--sami-transition);
    white-space: nowrap;
}

    .sami-profile-dropdown > li > a:hover,
    .sami-profile-dropdown > li > a:focus {
        background-color: #f8f8f8;
        color: var(--sami-dropdown-hover);
    }

    .sami-profile-dropdown > li > a i {
        font-size: 1.4rem;
        width: 20px;
        text-align: center;
    }

/* ===== دکمه همبرگر موبایل ===== */
.sami-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 10000;
}

    .sami-hamburger span {
        display: block;
        width: 28px;
        height: 3px;
        background: var(--sami-nav-text);
        border-radius: 2px;
        transition: all var(--sami-transition);
    }

    .sami-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .sami-hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .sami-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

/* ============================================
   منوی موبایل (کرکره‌ای از راست)
   ============================================ */
.sami-mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    opacity: 0;
    transition: opacity var(--sami-transition);
}

    .sami-mobile-overlay.active {
        opacity: 1;
    }

.sami-mobile-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--sami-mobile-bg);
    z-index: 9999;
    overflow-y: auto;
    transition: right var(--sami-transition);
    padding: 20px 0;
    box-shadow: -5px 0 20px rgba(0,0,0,0.3);
}

    .sami-mobile-menu.active {
        right: 0;
    }

/* کلوز دکمه موبایل */
.sami-mobile-close {
    display: flex;
    justify-content: flex-end;
    padding: 0 20px 15px;
    border-bottom: 1px solid var(--sami-border-color);
}

    .sami-mobile-close button {
        background: transparent;
        border: none;
        color: var(--sami-mobile-text);
        font-size: 2.4rem;
        cursor: pointer;
        padding: 5px;
        transition: all var(--sami-transition);
    }

        .sami-mobile-close button:hover {
            color: var(--sami-mobile-hover);
            transform: rotate(90deg);
        }

/* لیست منوی موبایل */
.sami-mobile-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .sami-mobile-list > li {
        border-bottom: 1px solid var(--sami-border-color);
    }

        .sami-mobile-list > li > a {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 20px;
            color: var(--sami-mobile-text);
            font-weight: 500;
            font-size: 1.4rem;
            text-decoration: none;
            transition: all var(--sami-transition);
        }

            .sami-mobile-list > li > a:hover,
            .sami-mobile-list > li > a:focus {
                color: var(--sami-mobile-hover);
                background-color: rgba(255,255,255,0.05);
            }

        /* آیتم‌های دارای زیرمنو در موبایل */
        .sami-mobile-list > li.has-dropdown > a::after {
            content: "◀";
            font-size: 1.2rem;
            transition: transform var(--sami-transition);
        }

        .sami-mobile-list > li.has-dropdown.open > a::after {
            transform: rotate(180deg);
        }

/* زیرمنوی موبایل */
.sami-mobile-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--sami-transition);
    background: rgba(255,255,255,0.05);
}

.sami-mobile-list > li.open .sami-mobile-sub {
    max-height: 800px;
}

.sami-mobile-sub > li {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

    .sami-mobile-sub > li > a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 20px 12px 40px;
        color: rgba(255,255,255,0.85);
        font-weight: 400;
        font-size: 1.3rem;
        text-decoration: none;
        transition: all var(--sami-transition);
    }

        .sami-mobile-sub > li > a:hover,
        .sami-mobile-sub > li > a:focus {
            color: var(--sami-mobile-hover);
            background-color: rgba(255,255,255,0.05);
        }

/* زیرمنوی سطح دوم در موبایل */
.sami-mobile-sub-sub {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--sami-transition);
    background: rgba(0,0,0,0.2);
    text-align: justify;
}

.sami-mobile-sub > li.open .sami-mobile-sub-sub {
    max-height: 600px;
}

.sami-mobile-sub-sub > li > a {
    display: block;
    padding: 10px 20px 10px 60px;
    color: rgba(255,255,255,0.75);
    font-weight: 300;
    font-size: 1.2rem;
    text-decoration: none;
    transition: all var(--sami-transition);
}

    .sami-mobile-sub-sub > li > a:hover,
    .sami-mobile-sub-sub > li > a:focus {
        color: var(--sami-mobile-hover);
        background-color: rgba(255,255,255,0.03);
    }

/* آیتم‌های دارای زیرمنو در موبایل - نشانگر */
.sami-mobile-sub > li.has-sub-dropdown > a::after {
    content: "◀";
    font-size: 1rem;
    transition: transform var(--sami-transition);
}

.sami-mobile-sub > li.has-sub-dropdown.open > a::after {
    transform: rotate(180deg);
}

/* ============================================
   ریسپانسیو
   ============================================ */

/* تبلت و موبایل */
@media (max-width: 991px) {
    .sami-nav-list {
        display: none;
    }

    .sami-hamburger {
        display: flex;
    }

    /*  .sami-mobile-overlay {
        display: block;
    }
*/
    /* hide the top quick CTA row on mobile */
    .section-header .header-quick-cta .d-flex.align-items-center.gap-3.text-muted {
        display: none !important;
    }

    /* تنظیم دکمه‌های سمت راست در موبایل */
    .sami-nav-right {
        gap: 5px;
    }

    .sami-cart-btn {
        padding: 6px 10px;
        font-size: 1.2rem;
    }

        .sami-cart-btn i {
            font-size: 1.6rem;
        }

    /* .sami-cart-btn span:not(.sami-cart-badge) {
        display: none;
    }*/
    .basket_title {
        display: none;
    }

    .sami-profile-btn {
        padding: 6px 10px;
        font-size: 1.2rem;
        border: none;
    }

        .sami-profile-btn span:not(.sami-profile-name) {
            display: none;
        }

        .sami-profile-btn i {
            font-size: 1.6rem;
        }

    .sami-profile-name {
        display: none !important;
    }

    /* منوی پروفایل در موبایل */
    .sami-profile-dropdown {
        position: fixed;
        left: 0;
        right: auto;
        top: 10pc;
        bottom: auto;
        min-width: 180px;
        border-radius: 8px;
    }

    .sami-profile-wrapper:hover .sami-profile-dropdown {
        transform: translateY(0);
    }
}

/* موبایل کوچک */
@media (max-width: 576px) {
    .sami-nav-container {
        padding: 0 10px;
        min-height: 50px;
    }

    .sami-cart-btn {
        padding: 4px 8px;
    }

        .sami-cart-btn i {
            font-size: 1.4rem;
        }

    .sami-cart-badge {
        min-width: 16px;
        height: 16px;
        font-size: 0.8rem;
    }

    .sami-profile-btn {
        padding: 4px 8px;
    }

        .sami-profile-btn i {
            font-size: 1.4rem;
        }

    .sami-mobile-menu {
        width: 280px;
        max-width: 80vw;
    }
}

/* تبلت بزرگتر */
@media (min-width: 992px) {
    .sami-hamburger {
        display: none;
    }

    .sami-mobile-overlay {
        display: none !important;
    }

    .sami-mobile-menu {
        display: none !important;
    }
}

/* ============================================
   بهبود اسکرول و نمایش
   ============================================ */

/* جلوگیری از اسکرول عرضی */
body.sami-nav-open {
    overflow: hidden;
}

/* استایل اسکرول منوی موبایل */
.sami-mobile-menu::-webkit-scrollbar {
    width: 4px;
}

.sami-mobile-menu::-webkit-scrollbar-track {
    background: transparent;
}

.sami-mobile-menu::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
}

    .sami-mobile-menu::-webkit-scrollbar-thumb:hover {
        background: rgba(255,255,255,0.3);
    }

/* ===== استایل فوتر مدرن ===== */
.footer-modern {
    background: linear-gradient(180deg, #0d0f12 0%, #0b0d10 100%);
    color: #cbd5e1;
}

.footer-modern .footer-top {
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

    .footer-modern .footer-card {
        background: rgba(255, 255, 255, 0.03);
        border: 1px solid rgba(148, 163, 184, 0.12);
        border-radius: 1.25rem;
        padding: 2rem;
        min-height: 100%;
        text-align: justify;
        direction: rtl;
    }

.footer-modern .widget-title {
    color: #f8fafc;
    font-size: 1.65rem;
    margin-bottom: 1.4rem;
    letter-spacing: 0.02em;
}

.footer-modern .widget-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-modern .widget-list li {
    margin-bottom: 0.9rem;
}

.footer-modern .widget-list li:last-child {
    margin-bottom: 0;
}

.footer-modern .widget-list a {
    color: #cbd5e1;
    transition: color 0.25s ease, transform 0.25s ease;
}

.footer-modern .widget-list a:hover {
    color: var(--sami-nav-hover);
    transform: translateX(-2px);
}

.footer-modern .footer-logo {
    border-radius: 0.65rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.35rem 0.55rem;
}

.footer-modern .social-icons {
    margin-top: 0.5rem;
}

.footer-modern .social-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.footer-modern .social-icon:hover {
    color: #fff;
    background: rgba(163, 230, 53, 0.14);
    transform: translateY(-2px);
}

.footer-modern .footer-bottom {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.footer-modern .footer-copyright {
    color: #94a3b8;
    margin: 0;
    font-size: 0.95rem;
}

.footer-modern .footer-trust {
    flex-wrap: wrap;
}

.footer-modern .footer-trust a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-modern .footer-trust-seal {
    max-width: 120px;
    height: auto;
    transition: filter 0.3s ease, transform 0.3s ease;
    filter: grayscale(0.75);
}

.footer-modern .footer-trust-seal:hover {
    filter: grayscale(0);
    transform: translateY(-2px);
}

@media screen and (max-width: 767px) {
    .footer-modern .footer-card {
        padding: 1.6rem;
    }

    .footer-modern .footer-bottom {
        padding-top: 1.2rem;
        padding-bottom: 1.2rem;
    }
}

/* ============================================================
   ============================================================
   مگامنوی «دسته‌بندی کالاها» به سبک دیجی‌کالا
   فقط برای دسکتاپ (>= 992px) - موبایل دست‌نخورده باقی می‌ماند
   ============================================================
   ============================================================ */

:root {
    --sami-mega-sidebar-w: 240px;
    --sami-mega-panel-w: 900px;
    --sami-mega-border: #ebebeb;
    --sami-mega-text-muted: #7c7c7c;
}

/* ===== آیتم تریگر «دسته‌بندی کالاها» ===== */
.mega-categories-trigger {
    position: static; /* تا مگامنو بتواند به کل عرض کانتینر بچسبد */
}

    .mega-categories-trigger > .mega-trigger-link {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .mega-categories-trigger .sami-mega-icon {
        font-size: 1.3rem;
    }

    .mega-categories-trigger .sami-mega-caret {
        font-size: 0.65rem;
        transition: transform var(--sami-transition);
    }

    .mega-categories-trigger:hover .sami-mega-caret,
    .mega-categories-trigger.open .sami-mega-caret {
        transform: rotate(180deg);
    }

/* ===== آیتم‌های ثابت (مقالات / تماس با ما) ===== */
.sami-static-link > a {
    display: block;
    padding: 18px 20px;
    color: var(--sami-nav-text);
    font-weight: 500;
    font-size: 1.5rem;
    text-decoration: none;
    transition: all var(--sami-transition);
    white-space: nowrap;
}

    .sami-static-link > a:hover,
    .sami-static-link > a:focus {
        color: var(--sami-nav-hover);
        background-color: rgba(255,255,255,0.05);
        border-radius: 4px;
    }

/* ===== باکس اصلی مگامنو ===== */
.sami-mega-menu {
    position: absolute;
    top: 100%;
    right: 0;
    display: flex;
    flex-direction: row-reverse; /* سایدبار سمت راست، پنل سمت چپ */
    align-items: stretch;
    background: var(--sami-dropdown-bg);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity var(--sami-transition), visibility var(--sami-transition), transform var(--sami-transition);
    z-index: 9999;
    overflow: hidden;
    max-height: 75vh;
}

.mega-categories-trigger:hover .sami-mega-menu,
.mega-categories-trigger.open .sami-mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ===== سایدبار (ستون راست - دسته‌های اصلی) ===== */
.sami-mega-sidebar {
    list-style: none;
    margin: 0;
    padding: 10px 0;
    width: var(--sami-mega-sidebar-w);
    flex: 0 0 var(--sami-mega-sidebar-w);
    background: #fafafa;
    border-left: 1px solid var(--sami-mega-border);
    overflow-y: auto;
    max-height: 75vh;
}

.sami-mega-sidebar-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 20px;
    color: var(--sami-dropdown-text);
    font-size: 1.4rem;
    font-weight: 400;
    text-decoration: none;
    border-right: 3px solid transparent;
    transition: all var(--sami-transition);
}

    .sami-mega-sidebar-item > a .sami-mega-arrow {
        font-size: 0.7rem;
        color: var(--sami-mega-text-muted);
    }

.sami-mega-sidebar-item:hover > a,
.sami-mega-sidebar-item.active > a {
    background: #ffffff;
    color: var(--sami-dropdown-hover);
    border-right-color: var(--sami-dropdown-hover);
    font-weight: 600;
}

/* ===== محتوا (ستون چپ - پنل چند ستونه) ===== */
.sami-mega-content {
    width: var(--sami-mega-panel-w);
    max-width: calc(96vw - var(--sami-mega-sidebar-w));
    max-height: 75vh;
    overflow-y: auto;
    position: relative;
}

.sami-mega-panel {
    display: none;
    padding: 20px 28px;
}

    .sami-mega-panel.active {
        display: block;
    }

.sami-mega-panel-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--sami-mega-border);
    text-align: justify;
}

    .sami-mega-panel-header > a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--sami-dropdown-hover);
        font-size: 1.3rem;
        font-weight: 600;
        text-decoration: none;
    }

        .sami-mega-panel-header > a i {
            font-size: 0.7rem;
        }

.sami-mega-empty {
    padding: 30px 0;
    text-align: center;
    color: var(--sami-mega-text-muted);
}

    .sami-mega-empty a {
        color: var(--sami-dropdown-hover);
        text-decoration: none;
        font-weight: 600;
    }

/* ===== شبکه ستون‌ها (مثل بلوک‌های دیجی‌کالا) ===== */
.sami-mega-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    text-align: right;
}

.sami-mega-column {
    flex: 1 1 180px;
    min-width: 170px;
    max-width: 220px;
}

.sami-mega-column-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: var(--sami-dropdown-text);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    padding-bottom: 8px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--sami-mega-border);
}

    .sami-mega-column-title:hover {
        color: var(--sami-dropdown-hover);
    }

    .sami-mega-column-title i {
        font-size: 0.65rem;
        color: var(--sami-mega-text-muted);
    }

.sami-mega-column-list {
    list-style: none;
    margin: 0 0 6px 0;
    padding: 0;
}

    .sami-mega-column-list > li > a {
        display: block;
        padding: 6px 0;
        color: var(--sami-mega-text-muted);
        font-size: 1.25rem;
        font-weight: 400;
        text-decoration: none;
        transition: color var(--sami-transition);
    }

        .sami-mega-column-list > li > a:hover,
        .sami-mega-column-list > li > a:focus {
            color: var(--sami-dropdown-hover);
        }

/* ===== زیرگروه سطح سوم داخل هر ستون ===== */
.sami-mega-subgroup {
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dashed var(--sami-mega-border);
}

.sami-mega-subgroup-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    color: var(--sami-dropdown-text);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 6px;
}

    .sami-mega-subgroup-title:hover {
        color: var(--sami-dropdown-hover);
    }

    .sami-mega-subgroup-title i {
        font-size: 0.6rem;
        color: var(--sami-mega-text-muted);
    }

/* ===== اسکرول‌بار داخل مگامنو ===== */
.sami-mega-sidebar::-webkit-scrollbar,
.sami-mega-content::-webkit-scrollbar {
    width: 6px;
}

.sami-mega-sidebar::-webkit-scrollbar-thumb,
.sami-mega-content::-webkit-scrollbar-thumb {
    background: #d8d8d8;
    border-radius: 4px;
}

/* ===== محدودسازی مگامنو به موقعیت داخل container ===== */
@media (min-width: 992px) {
    .sami-mega-menu {
        right: 0;
    }
}

/* روی صفحات کوچک‌تر دسکتاپ، عرض پنل را کمی جمع‌تر می‌کنیم */
@media (max-width: 1200px) {
    :root {
        --sami-mega-panel-w: 700px;
    }
}

/* زیر 992px مگامنو اصلاً رندر بصری نمی‌شود چون کل .sami-nav-list مخفی است
   (طبق قانون ریسپانسیو موجود در همین فایل) و منوی موبایل جدا از این ساختار کار می‌کند */
