﻿/* تنظیمات پایه */
body {
    font-family: 'Vazirmatn', sans-serif;
    font-feature-settings: "numr";
    -webkit-font-feature-settings: "numr";
    -moz-font-feature-settings: "numr";
    margin: 0px !important;
    padding: 0px !important;
}
/* اگر فقط می‌خواهید اعداد در قسمت‌های خاصی فارسی شوند */
.persian-number {
    font-feature-settings: "ss03";
    -webkit-font-feature-settings: "ss03";
    -moz-font-feature-settings: "ss03";
}

/* استایل هدر و دکمه‌های ورود و جستجو */
.main-header {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.auth-btn {
    border: 1.5px solid #2c6e5c;
    border-radius: 30px;
    color: #2c6e5c;
    padding: 8px 20px;
    transition: all 0.3s;
    background: transparent;
    cursor: pointer;
}

    .auth-btn:hover {
        background: #2c6e5c;
        color: #fff;
    }

.search-box {
    border: 1px solid #dee2e6;
    border-radius: 50px;
    overflow: hidden;
    background: #fff;
    display: flex;
    max-width: 400px;
    width: 100%;
}

    .search-box input {
        border: none;
        padding: 10px 15px;
        outline: none;
        width: 100%;
        background: transparent;
        flex: 1;
    }

    .search-box button {
        background: #f8f9fa;
        border: none;
        padding: 0 20px;
        color: #333;
        cursor: pointer;
        transition: 0.3s;
    }

        .search-box button:hover {
            background: #e9ecef;
        }

/* استایل مگامنوی کامل */
.ziyosh-nav {
    background: #fff;
    border-top: 1px solid #eee;
    position: relative;
    z-index: 100;
}

.ziyosh-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .nav-list > li {
        position: relative;
        height: 50px;
        display: flex;
        align-items: center;
    }

        .nav-list > li > a {
            color: #333333;
            font-size: 15px;
            font-weight: 500;
            transition: color 0.3s ease;
            cursor: pointer;
            text-decoration: none;
        }

        .nav-list > li:hover > a, .nav-list > li.active-menu > a {
            color: #00a99d;
        }

.mega-menu-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 900px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 8px 8px;
    border-top: 3px solid #00a99d;
    display: none;
    padding: 30px;
    z-index: 1050;
}

.nav-list > li:hover .mega-menu-container {
    display: block;
}

.mega-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}

.mega-column-tabs {
    border-left: 1px solid #eee;
    padding-left: 15px;
}

    .mega-column-tabs ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .mega-column-tabs ul li {
            padding: 5px 0 5px 10px;
            border-radius: 5px;
            transition: 0.3s;
            cursor: pointer;
        }

            .mega-column-tabs ul li:hover, .mega-column-tabs ul li.active-tab {
                background: #f7f9fc;
            }

            .mega-column-tabs ul li a {
                font-size: 15px;
                font-weight: 500;
                color: #333;
                display: block;
                position: relative;
                padding-right: 12px;
                text-decoration: none;
            }

                .mega-column-tabs ul li a::before {
                    content: "|";
                    position: absolute;
                    right: 0;
                    color: #d32f2f;
                    font-weight: bold;
                    font-size: 18px;
                }

.mega-content-columns {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.sub-category-box {
    display: none;
    flex-direction: column;
    gap: 15px;
}

    .sub-category-box.active-content {
        display: flex;
    }

    .sub-category-box h4 {
        font-size: 15px;
        color: #333;
        border-bottom: 1px solid #eee;
        padding-bottom: 8px;
        margin-bottom: 5px;
    }

    .sub-category-box ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }

        .sub-category-box ul li {
            padding: 5px 0;
        }

            .sub-category-box ul li a {
                font-size: 14px;
                color: #666;
                display: block;
                position: relative;
                padding-right: 12px;
                transition: 0.3s;
                text-decoration: none;
            }

                .sub-category-box ul li a:hover {
                    color: #00a99d;
                }

                .sub-category-box ul li a::before {
                    content: "|";
                    position: absolute;
                    right: 0;
                    color: #d32f2f;
                    font-weight: bold;
                    font-size: 16px;
                }

/* دکمه همبرگر (موبایل) */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    color: #333;
    cursor: pointer;
}

/* استایل فوتر */
footer.bg-dark {
    background-color: #1a1a1a !important;
    color: rgba(255,255,255,0.6);
    padding: 40px 0;
    margin-top: 40px;
}

footer .text-white-50 a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}

    footer .text-white-50 a:hover {
        color: #fff;
    }

/* ریسپانسیو منو */
/* ============================================
   استایل‌های موبایل (اصلاح شده)
   ============================================ */
@media (max-width: 992px) {
    /* دکمه همبرگر */
    .hamburger-btn {
        display: block;
    }

    /* منوی اصلی */
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 2px solid #00a99d;
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }

        .nav-list.open {
            display: flex;
        }

        .nav-list > li {
            height: auto;
            flex-direction: column;
            align-items: stretch;
            border-bottom: 1px solid #f0f0f0;
            padding: 0;
        }

            .nav-list > li > a {
                padding: 12px 20px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 14px;
            }

            /* ===== مهم: نمایش/مخفی کردن مگامنو ===== */
            .nav-list > li .mega-menu-container {
                display: none !important; /* مخفی پیش‌فرض */
                position: static !important;
                width: 100% !important;
                box-shadow: none !important;
                border: none !important;
                border-top: 1px solid #eee !important;
                border-radius: 0 !important;
                padding: 10px 15px !important;
                background: #f8f9fa !important;
                margin: 0 !important;
            }

            /* نمایش با کلاس menu-open که JS اضافه می‌کند */
            .nav-list > li.menu-open .mega-menu-container {
                display: block !important; /* نمایش با اولویت بالا */
            }

    /* ===== استایل‌های داخلی مگامنو در موبایل ===== */
    .mega-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .mega-column-tabs {
        border-left: none !important;
        border-bottom: 1px solid #eee !important;
        padding: 0 0 10px 0 !important;
    }

        .mega-column-tabs ul {
            display: flex !important;
            flex-direction: row !important;
            overflow-x: auto !important;
            gap: 5px !important;
            padding: 5px 0 !important;
            -webkit-overflow-scrolling: touch;
        }

            .mega-column-tabs ul li {
                white-space: nowrap !important;
                padding: 6px 12px !important;
                font-size: 13px !important;
                flex-shrink: 0 !important;
            }

                .mega-column-tabs ul li.active-tab {
                    background: #00a99d !important;
                    color: #fff !important;
                    border-radius: 20px !important;
                }

                    .mega-column-tabs ul li.active-tab a {
                        color: #fff !important;
                    }

                .mega-column-tabs ul li a::before {
                    content: none !important; /* حذف خط قرمز در موبایل */
                }

    .mega-content-columns {
        grid-column: 1 !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    .sub-category-box {
        display: none !important;
        flex-direction: column !important;
        gap: 15px !important;
    }

        .sub-category-box.active-content {
            display: flex !important;
        }

        .sub-category-box > div {
            flex: 1 !important;
            min-width: unset !important;
        }

        .sub-category-box h4 {
            font-size: 14px !important;
            border-bottom: 1px solid #ddd !important;
            padding-bottom: 5px !important;
            margin-bottom: 8px !important;
        }

        .sub-category-box ul li {
            padding: 4px 0 !important;
        }

            .sub-category-box ul li a {
                font-size: 13px !important;
                padding-right: 8px !important;
            }

                .sub-category-box ul li a::before {
                    content: none !important;
                }

    /* ===== منوی ادمین در موبایل ===== */
    .admin-menu-item .mega-menu-container {
        background: #f8f9fa !important;
    }

    /* ===== نشانگر فلش برای آیتم‌های دارای زیرمنو ===== */
    .nav-list > li:has(.mega-menu-container) > a::after {
        content: "▼";
        font-size: 12px;
        margin-right: 10px;
        color: #999;
        transition: transform 0.3s ease;
    }

    .nav-list > li.menu-open > a::after {
        transform: rotate(180deg);
    }
}


/* ============================================ */
/* استایل‌های فوتر */
/* ============================================ */
.main-footer {
    background: #222222;
    color: #ccc;
    padding: 60px 0 30px 0;
    font-size: 14px;
    line-height: 1.8;
    margin-top: 40px;
}

.footer-logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .footer-logo i {
        color: #ff3b30;
    }

.footer-address .info-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

    .footer-address .info-row span {
        color: #aaa;
    }

    .footer-address .info-row strong {
        color: #fff;
        font-weight: normal;
    }

.footer-logos img {
    height: 60px;
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    background: #fff;
    padding: 2px;
}

/* اگر در فوتر بخش خبرنامه دارید */
.newsletter-form {
    display: flex;
    gap: 10px;
    max-width: 400px;
}

    .newsletter-form input {
        flex: 1;
        padding: 10px 15px;
        border-radius: 8px;
        border: none;
        background: #333;
        color: #fff;
        outline: none;
    }

        .newsletter-form input::placeholder {
            color: #777;
        }

    .newsletter-form button {
        background: #111;
        color: #fff;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        cursor: pointer;
        font-weight: 600;
        transition: 0.3s;
    }

        .newsletter-form button:hover {
            background: #333;
        }

.footer-links-col h4 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 12px;
    font-weight: 600;
}

.footer-links-col ul li {
    margin-bottom: 8px;
}

    .footer-links-col ul li a {
        color: #ccc;
        transition: 0.3s;
        text-decoration: none;
    }

        .footer-links-col ul li a:hover {
            color: #fff;
            padding-right: 5px;
        }

/* برای بخش "آرُوانو" و "قوانین" */
.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lefttoright {
    direction: ltr;
}

.righttoleft {
    direction: rtl;
}


/* استایل انیمیشن برای مودال */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#addToCartModal .modal-content {
    animation: slideUp 0.4s ease-out;
}

/* استایل شمارنده */
/* انیمیشن شمارنده */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

#countdownTimer {
    display: inline-block;
    animation: pulse 1s infinite;
    font-size: 18px;
    font-weight: bold;
    color: #265a48;
}

/* استایل دکمه غیرفعال */
.btn-add:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.otp-input {
    width: 48px;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    text-align: center;
    font-size: 20px;
    outline: none;
    background: #fff;
}

    .otp-input:focus {
        border-color: #265a48;
        box-shadow: 0 0 0 3px rgba(38, 90, 72, 0.1);
    }




/* ========== استایل‌های مگامنو در موبایل ========== */
/* ============================================
   استایل‌های موبایل (اصلاح شده - رفع مشکل لایه سوم)
   ============================================ */
@media (max-width: 992px) {
    /* دکمه همبرگر */
    .hamburger-btn {
        display: block;
    }

    /* منوی اصلی */
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 0;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        border-top: 2px solid #00a99d;
        z-index: 999;
        max-height: 80vh;
        overflow-y: auto;
    }

        .nav-list.open {
            display: flex;
        }

        .nav-list > li {
            height: auto;
            flex-direction: column;
            align-items: stretch;
            border-bottom: 1px solid #f0f0f0;
            padding: 0;
        }

            .nav-list > li > a {
                padding: 12px 20px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                font-size: 14px;
                color: #333;
                text-decoration: none;
            }

            /* نمایش/مخفی کردن مگامنو */
            .nav-list > li .mega-menu-container {
                display: none !important;
                position: static !important;
                width: 100% !important;
                box-shadow: none !important;
                border: none !important;
                border-top: 1px solid #eee !important;
                border-radius: 0 !important;
                padding: 10px 15px !important;
                background: #f8f9fa !important;
                margin: 0 !important;
            }

            .nav-list > li.menu-open .mega-menu-container {
                display: block !important;
            }

    /* ===== استایل‌های داخلی مگامنو در موبایل ===== */
    .mega-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .mega-column-tabs {
        border-left: none !important;
        border-bottom: 1px solid #eee !important;
        padding: 0 0 10px 0 !important;
    }

        .mega-column-tabs ul {
            display: flex !important;
            flex-direction: row !important;
            overflow-x: auto !important;
            gap: 5px !important;
            padding: 5px 0 !important;
            -webkit-overflow-scrolling: touch;
            list-style: none !important;
            margin: 0 !important;
        }

            .mega-column-tabs ul li {
                white-space: nowrap !important;
                padding: 6px 12px !important;
                font-size: 13px !important;
                flex-shrink: 0 !important;
                background: transparent !important;
                border-radius: 20px !important;
                list-style: none !important;
            }

                .mega-column-tabs ul li.active-tab {
                    background: #00a99d !important;
                    color: #fff !important;
                }

                    .mega-column-tabs ul li.active-tab a {
                        color: #fff !important;
                    }

                .mega-column-tabs ul li a {
                    color: #333 !important;
                    text-decoration: none !important;
                    font-size: 13px !important;
                    display: block !important;
                    padding: 0 !important;
                    background: transparent !important;
                    border: none !important;
                }

                    .mega-column-tabs ul li a::before {
                        content: none !important;
                    }

    .mega-content-columns {
        grid-column: 1 !important;
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }

    /* ===== مهم: رفع مشکل لایه سوم (sub-category-box) ===== */
    .sub-category-box {
        display: none !important;
        flex-direction: column !important;
        gap: 15px !important;
        background: transparent !important;
        padding: 0 !important;
    }

        .sub-category-box.active-content {
            display: flex !important;
        }

        /* استایل محتویات لایه سوم */
        .sub-category-box > div {
            flex: 1 !important;
            min-width: unset !important;
            background: #fff !important;
            border-radius: 8px !important;
            padding: 12px 15px !important;
            margin-bottom: 5px !important;
            box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
        }

        .sub-category-box h4 {
            font-size: 14px !important;
            font-weight: 600 !important;
            color: #333 !important;
            border-bottom: 1px solid #eee !important;
            padding-bottom: 8px !important;
            margin-bottom: 8px !important;
        }

            .sub-category-box h4 a {
                color: #333 !important;
                text-decoration: none !important;
            }

        .sub-category-box ul {
            list-style: none !important;
            padding: 0 !important;
            margin: 0 !important;
            display: block !important;
        }

            .sub-category-box ul li {
                padding: 4px 0 !important;
                margin: 0 !important;
                list-style: none !important;
                background: transparent !important;
                border: none !important;
                width: 100% !important;
                display: block !important;
            }

                .sub-category-box ul li a,
                .sub-category-box ul li span {
                    font-size: 13px !important;
                    color: #555 !important;
                    text-decoration: none !important;
                    display: block !important;
                    padding: 4px 0 4px 8px !important;
                    background: transparent !important;
                    border: none !important;
                    border-radius: 0 !important;
                    width: auto !important;
                    transition: color 0.2s !important;
                    font-weight: normal !important;
                }

                    .sub-category-box ul li a:hover {
                        color: #00a99d !important;
                        background: transparent !important;
                    }

                    .sub-category-box ul li a::before,
                    .sub-category-box ul li span::before {
                        content: none !important;
                    }

        /* متن خالی */
        .sub-category-box .text-muted {
            color: #999 !important;
            font-size: 13px !important;
            padding: 10px 0 !important;
        }

    /* ===== منوی ادمین در موبایل ===== */
    .admin-menu-item .mega-menu-container {
        background: #f8f9fa !important;
    }

    /* ===== نشانگر فلش برای آیتم‌های دارای زیرمنو ===== */
    .nav-list > li:has(.mega-menu-container) > a::after {
        content: "▼";
        font-size: 12px;
        margin-right: 10px;
        color: #999;
        transition: transform 0.3s ease;
    }

    .nav-list > li.menu-open > a::after {
        transform: rotate(180deg);
    }
}
/* =========================================================
   Mobile Header + Bottom Navigation
   ========================================================= */
.mobile-header-right,
.mobile-search-btn,
.mobile-bottom-nav,
.mobile-nav-header {
    display: none;
}

@media (max-width: 992px) {
    body {
        padding-bottom: 72px;
    }

    /* هدر موبایل: همبرگر + لوگو سمت راست / جستجو سمت چپ */
    .main-header .header-main-row {
        min-height: 48px;
    }

    .main-header .mobile-header-right {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-right: 0;
    }

    .main-header .mobile-logo-link {
        display: inline-flex;
        align-items: center;
    }

        .main-header .mobile-logo-link .logo {
            font-size: 22px !important;
            line-height: 1;
        }

    .main-header .mobile-hamburger-btn,
    .main-header .mobile-search-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 160px;
        height: 160px;
        padding: 0;
        border: 0;
        background: transparent;
        color: #333;
        font-size: 36px;
        cursor: pointer;
        
    }

    .main-header .mobile-search-btn {
        margin-left: 0;
    }

    /* نسخه دسکتاپ هدر در موبایل نمایش داده نشود */
    .main-header .header-main-row > a:not(.mobile-logo-link),
    .main-header .header-main-row > .search-box,
    .main-header .header-main-row > .flex-shrink-0 {
        display: none !important;
    }

    /* نوار ناوبری اصلی در موبایل */
    .ziyosh-nav {
        position: static;
    }

    .ziyosh-nav-wrapper {
        position: relative;
    }

    .nav-list {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100dvh !important;
        max-height: none !important;
        padding: 0 0 90px !important;
        overflow-y: auto !important;
        background: #fff !important;
        box-shadow: none !important;
        border-top: 0 !important;
        z-index: 2000 !important;
    }

        .nav-list.open {
            display: flex !important;
        }

    .mobile-nav-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        position: sticky;
        top: 0;
        z-index: 2;
        min-height: 58px;
        padding: 0 16px;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

        .mobile-nav-header strong {
            font-size: 16px;
            color: #222;
        }

    .mobile-nav-back {
        display: inline-flex;
        align-items: center;
        gap: 7px;
        border: 0;
        background: transparent;
        color: #555;
        padding: 8px 0;
        font-family: inherit;
        cursor: pointer;
    }

        .mobile-nav-back i {
            font-size: 14px;
        }

    /* در موبایل منوی اصلی با دکمه همبرگری باز می‌شود؛ فلش قبلی لازم نیست */
    .nav-list > li:has(.mega-menu-container) > a::after {
        content: "";
        margin: 0;
    }

    /* منوی پایین موبایل */
    .mobile-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 2100;
        display: flex;
        align-items: stretch;
        justify-content: space-between;
        height: 68px;
        padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
        background: #fff;
        border-top: 1px solid #e8e8e8;
        box-shadow: 0 -5px 18px rgba(0, 0, 0, 0.08);
        direction: rtl;
    }

    .mobile-bottom-nav-item {
        flex: 1 1 20%;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        padding: 3px 2px;
        border: 0;
        background: transparent;
        color: #666;
        text-decoration: none;
        font-family: inherit;
        font-size: 11px;
        line-height: 1.2;
        cursor: pointer;
    }

        .mobile-bottom-nav-item i {
            font-size: 18px;
            line-height: 1;
        }

        .mobile-bottom-nav-item:active,
        .mobile-bottom-nav-item:hover {
            color: #00a99d;
        }
}

/* هدر داخلی منوی موبایل فقط در موبایل نمایش داده شود */
.nav-list > .mobile-nav-header {
    display: none;
}

@media (max-width: 992px) {
    /* همبرگر قدیمی داخل نوار دسته‌بندی حذف شد؛ همبرگر جدید داخل هدر است */
    .hamburger-btn {
        display: none !important;
    }

    .nav-list > .mobile-nav-header {
        display: flex !important;
    }
}


/* =========================================================
   Mobile Search Modal
   ========================================================= */
.mobile-search-modal-content {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.16);
}

.mobile-search-dialog {
    width: calc(100% - 24px);
    max-width: 520px;
    margin-inline: auto;
}

.mobile-search-modal-content .modal-header {
    padding: 20px 20px 14px;
}

.mobile-search-modal-content .modal-body {
    padding: 0 20px 22px;
}

.mobile-search-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 52px;
    padding: 5px 8px 5px 6px;
    border: 1px solid #dfe5e2;
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

    .mobile-search-input-wrap:focus-within {
        border-color: #00a99d;
        box-shadow: 0 0 0 4px rgba(0,169,157,.10);
    }

    .mobile-search-input-wrap > i {
        flex: 0 0 auto;
        color: #00a99d;
        font-size: 17px;
        margin-right: 5px;
    }

    .mobile-search-input-wrap input {
        flex: 1;
        min-width: 0;
        height: 40px;
        border: 0 !important;
        box-shadow: none !important;
        outline: 0 !important;
        background: transparent;
        font-family: inherit;
        font-size: 14px;
    }

    .mobile-search-input-wrap > button {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
        border: 0;
        border-radius: 10px;
        background: #00a99d;
        color: #fff;
        cursor: pointer;
    }

@media (max-width: 576px) {
    .mobile-search-dialog {
        width: calc(100% - 20px);
    }

    .mobile-search-modal-content {
        border-radius: 18px;
    }
}

@media (max-width: 576px) {
    .supplement-tabs .nav-link {
        font-size: 13px;
    }
}

.cart-icon-wrapper {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

    .cart-icon-wrapper .cart-count-badge {
        position: absolute !important;
        top: -8px !important;
        right: -9px !important;
        min-width: 18px !important;
        height: 18px !important;
        padding: 0 4px !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        background-color: #dc3545 !important;
        color: #fff !important;
        border-radius: 50% !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        border: 2px solid #fff !important;
        box-sizing: border-box !important;
        z-index: 100 !important;
    }

@media (max-width: 992px) {
    .mobile-bottom-nav-item.cart-icon-wrapper .cart-count-badge {
        top: 3px !important;
        right: auto !important;
        left: calc(50% + 10px) !important;
        transform: translateX(-50%) !important;
    }
}

/* استایل فرم جستجو */
.search-form {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 50px;
    padding: 0 4px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    width: 100%;
}

    .search-input-wrapper:focus-within {
        border-color: #265a48;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(38, 90, 72, 0.1);
    }

    .search-input-wrapper button {
        background: none;
        border: none;
        padding: 8px 14px;
        color: #88909b;
        font-size: 16px;
        cursor: pointer;
    }

    .search-input-wrapper .search-input {
        border: none;
        background: none;
        padding: 8px 0 8px 12px;
        font-size: 14px;
        color: #333;
        width: 100%;
        outline: none;
    }

        .search-input-wrapper .search-input::placeholder {
            color: #88909b;
        }

/* استایل جستجوی موبایل */
.search-form-mobile {
    width: 100%;
}

.search-box-mobile {
    padding: 8px 0;
}

    .search-box-mobile .search-input-wrapper {
        border-radius: 12px;
        padding: 0 12px;
        border-width: 2px;
    }

    .search-box-mobile .search-input-mobile {
        flex: 1;
        border: none;
        background: none;
        padding: 14px 0;
        font-size: 16px;
        color: #333;
        outline: none;
        width: 100%;
    }

        .search-box-mobile .search-input-mobile::placeholder {
            color: #88909b;
        }

    .search-box-mobile .search-clear-btn {
        background: none;
        border: none;
        color: #88909b;
        font-size: 18px;
        cursor: pointer;
        padding: 4px 8px;
    }

        .search-box-mobile .search-clear-btn:hover {
            color: #333;
        }

.search-suggestions {
    margin-top: 12px;
    max-height: 50vh;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 12px;
    border-bottom: 1px solid #f0f2f5;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
}

    .suggestion-item:hover {
        background: #f5f7fa;
    }

    .suggestion-item .suggestion-text {
        flex: 1;
        color: #333;
    }

    .suggestion-item .suggestion-category {
        font-size: 12px;
        color: #88909b;
    }

    .suggestion-item .suggestion-price {
        font-size: 12px;
        color: #265a48;
        font-weight: 600;
    }
/* =========================================================
   LIVE SEARCH MODAL
   ========================================================= */

.live-search-dialog {
    width: calc(100% - 30px);
    max-width: 760px;
    margin: 1.75rem auto;
}

.live-search-modal-content {
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0,0,0,.18);
}

.live-search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 18px;
    border-bottom: 1px solid #eeeeee;
}

.live-search-query {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #333;
    font-size: 15px;
}

    .live-search-query i {
        color: #00a99d;
    }

#liveSearchQuery {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.live-search-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f5f6f7;
    color: #777;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

    .live-search-close:hover {
        background: #eeeeee;
        color: #333;
    }

.live-search-modal-body {
    padding: 8px 18px 18px;
    max-height: 70vh;
    overflow-y: auto;
}

.live-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
}

.live-search-category {
    display: block;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #eeeeee;
    padding: 14px 8px;
    transition: background .2s ease;
}

    .live-search-category:hover {
        background: #f8faf9;
        text-decoration: none;
    }

.live-search-category-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.live-search-category-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a8;
    flex-shrink: 0;
}

.live-search-category-title {
    font-size: 15px;
    font-weight: 700;
    color: #222;
}

.live-search-category-count {
    color: #9a9da3;
    font-size: 12px;
    font-weight: 400;
    margin-right: 4px;
}

.live-search-category-search {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 12px;
    padding-right: 36px;
}

    .live-search-category-search i {
        color: #a3a8af;
        font-size: 11px;
    }

.live-search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 100px;
    color: #888;
    font-size: 13px;
}

    .live-search-loading i {
        color: #00a99d;
    }

.live-search-empty {
    min-height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #888;
    font-size: 13px;
}

    .live-search-empty i {
        font-size: 24px;
        color: #b5bac0;
    }

    .live-search-empty.d-none {
        display: none !important;
    }

@media (max-width: 767.98px) {

    .live-search-dialog {
        width: calc(100% - 16px);
        margin: .5rem auto;
    }

    .live-search-modal-content {
        border-radius: 16px;
    }

    .live-search-modal-header {
        padding: 12px 14px;
    }

    .live-search-modal-body {
        padding: 5px 12px 14px;
        max-height: 78vh;
    }

    .live-search-results {
        grid-template-columns: 1fr;
    }

    .live-search-category {
        padding: 13px 6px;
    }

    .live-search-category-title {
        font-size: 14px;
    }

    .live-search-category-search {
        font-size: 11px;
    }
}

/* ========================================================= */
/* DESKTOP SEARCH MODAL */
/* ========================================================= */

.desktop-search-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
}

    .desktop-search-modal.active {
        display: block;
    }

.desktop-search-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.desktop-search-modal-content {
    position: relative;
    width: 620px;
    max-width: calc(100% - 30px);
    max-height: 80vh;
    margin: 100px auto 0;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    direction: rtl;
}

.desktop-search-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}

.desktop-search-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #222;
}

.desktop-search-modal-close {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: #777;
}

    .desktop-search-modal-close:hover {
        color: #222;
    }

.desktop-search-modal-body {
    max-height: calc(80vh - 75px);
    overflow-y: auto;
    padding: 10px 0;
}

/* ========================================================= */
/* SEARCH RESULT */
/* ========================================================= */

.desktop-search-result {
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

    .desktop-search-result:last-child {
        border-bottom: none;
    }

.desktop-search-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.desktop-search-category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.desktop-search-category-name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.desktop-search-product-count {
    flex-shrink: 0;
    font-size: 13px;
    color: #888;
}

.desktop-search-category-text {
    margin-top: 7px;
    font-size: 14px;
    color: #666;
}

.desktop-search-category-link:hover
.desktop-search-category-name {
    color: #007bff;
}

.desktop-search-text-link {
    display: block;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #f7f7f7;
    color: #444;
    text-decoration: none;
    font-size: 14px;
}

    .desktop-search-text-link:hover {
        background: #eee;
        color: #111;
    }

.desktop-search-empty {
    padding: 40px 20px;
    text-align: center;
    color: #777;
    font-size: 15px;
}

.desktop-search-loading {
    padding: 35px 20px;
    text-align: center;
    color: #777;
    font-size: 15px;
}

.mobile-search-results {
    width: 100%;
}

.mobile-search-result-item {
    border-bottom: 1px solid #eee;
    padding: 12px 0;
}

.mobile-search-category-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    gap: 10px;
}

.mobile-search-result-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

    .mobile-search-result-icon i {
        font-size: 17px;
    }

.mobile-search-result-content {
    flex: 1;
    min-width: 0;
}

.mobile-search-category-title {
    font-weight: 700;
    font-size: 14px;
}

.mobile-search-category-count {
    font-size: 12px;
    color: #888;
    margin-top: 3px;
}

.mobile-search-arrow {
    font-size: 12px;
    color: #999;
}

.mobile-search-all-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 9px;
    padding: 8px 10px;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    text-decoration: none;
    font-size: 13px;
}

    .mobile-search-all-link i {
        font-size: 12px;
    }

.mobile-search-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 25px 10px;
    color: #888;
    font-size: 14px;
}

/* ============================================
   Mobile Search - Full Screen Modal
   ============================================ */

@media (max-width: 992px) {

    #mobileSearchModal {
        padding: 0 !important;
    }

        #mobileSearchModal .modal-dialog {
            width: 100%;
            max-width: none;
            height: 100%;
            margin: 0;
        }

        #mobileSearchModal .modal-content {
            width: 100%;
            height: 100%;
            min-height: 100vh;
            border-radius: 0 !important;
            border: 0 !important;
        }

        #mobileSearchModal .modal-header {
            padding: 16px 18px;
        }

        #mobileSearchModal .modal-body {
            padding: 0 18px 20px;
            overflow-y: auto;
        }

        #mobileSearchModal .mobile-search-input-wrap {
            width: 100%;
        }
}

@media (max-width: 992px) {

    #mobileSearchModal .modal-content {
        border-radius: 0 !important;
    }

    #mobileSearchModal .modal-header {
        flex-shrink: 0;
    }

    #mobileSearchModal .modal-body {
        flex: 1;
        overflow-y: auto;
    }

    #mobileSearchModal .modal-title {
        font-size: 18px;
    }
}

/* ============================================
   SEARCH SUGGESTIONS
   ============================================ */

.search-suggestions {
    margin-top: 24px;
    direction: rtl;
}

.search-suggestion-section {
    margin-bottom: 26px;
}

.search-suggestion-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.search-suggestion-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 17px;
    font-weight: 700;
}

    .search-suggestion-title i {
        font-size: 18px;
        color: #777;
    }

.clear-search-history {
    border: 0;
    background: #f5f6f8;
    color: #999;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

    .clear-search-history:hover {
        background: #eee;
        color: #666;
    }

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    direction: rtl;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 5px 11px;
    border: 1px solid #dce2ea;
    background: #fff;
    border-radius: 7px;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

    .search-chip i {
        font-size: 12px;
        color: #7b8794;
    }

    .search-chip:hover {
        border-color: #b9c5d5;
        background: #f8fafc;
        color: #334155;
    }

    .search-chip:active {
        transform: scale(.97);
    }


/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 767.98px) {

    .search-suggestions {
        margin-top: 22px;
    }

    .search-suggestion-title {
        font-size: 16px;
    }

    .search-chip {
        font-size: 13px;
        min-height: 36px;
        padding: 6px 12px;
    }

    .search-suggestion-section {
        margin-bottom: 28px;
    }
}


/* ============================================
   SEARCH SUGGESTIONS
   ============================================ */

.search-suggestions {
    margin-top: 24px;
    direction: rtl;
}

.search-suggestion-section {
    margin-bottom: 26px;
}

.search-suggestion-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.search-suggestion-title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 17px;
    font-weight: 700;
}

    .search-suggestion-title i {
        font-size: 18px;
        color: #777;
    }

.clear-search-history {
    border: 0;
    background: #f5f6f8;
    color: #999;
    border-radius: 7px;
    padding: 5px 10px;
    font-size: 12px;
    cursor: pointer;
    transition: all .2s ease;
}

    .clear-search-history:hover {
        background: #eee;
        color: #666;
    }

.search-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    direction: rtl;
}

.search-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 5px 11px;
    border: 1px solid #dce2ea;
    background: #fff;
    border-radius: 7px;
    color: #64748b;
    font-size: 13px;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
}

    .search-chip i {
        font-size: 12px;
        color: #7b8794;
    }

    .search-chip:hover {
        border-color: #b9c5d5;
        background: #f8fafc;
        color: #334155;
    }

    .search-chip:active {
        transform: scale(.97);
    }


/* ============================================
   MOBILE
   ============================================ */

@media (max-width: 767.98px) {

    .search-suggestions {
        margin-top: 22px;
    }

    .search-suggestion-title {
        font-size: 16px;
    }

    .search-chip {
        font-size: 13px;
        min-height: 36px;
        padding: 6px 12px;
    }

    .search-suggestion-section {
        margin-bottom: 28px;
    }
}
/* =========================================================
   FIX - Mobile Search Input / Popular Searches
   ========================================================= */

.mobile-search-modal-content .modal-body {
    position: relative !important;
    overflow-y: auto !important;
}

/* خود کادر جستجو همیشه بالاتر باشد */
.mobile-search-input-wrap {
    position: relative !important;
    z-index: 20 !important;
    background: #fff !important;
}

/* فرم جستجو بالاتر از History / Popular */
.mobile-search-modal-content form {
    position: relative !important;
    z-index: 20 !important;
    background: #fff !important;
}

/* بخش‌های تاریخچه و پرطرفدار وارد جریان عادی صفحه شوند */
.mobile-search-history,
.mobile-search-popular,
.mobile-search-history-section,
.mobile-search-popular-section {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100% !important;
    z-index: 1 !important;
}

/* فاصله از کادر جستجو */
.mobile-search-history,
.mobile-search-popular,
.mobile-search-history-section,
.mobile-search-popular-section {
    margin-top: 20px !important;
}

/* اگر یکی از این بخش‌ها position absolute گرفته باشد */
#mobileSearchHistory,
#mobilePopularSearches,
#mobileSearchHistorySection,
#mobilePopularSearchesSection {
    position: static !important;
    width: 100% !important;
    z-index: 1 !important;
    margin-top: 20px !important;
}

/* نتایج LiveSearch هم زیر input قرار بگیرند */
#mobileSearchResults {
    position: relative !important;
    z-index: 10 !important;
    width: 100% !important;
    margin-top: 14px !important;
}

/* ============================================
   Search Modal - Desktop
   ============================================ */

@media (min-width: 991px) {

    #mobileSearchModal .mobile-search-dialog {
        max-width: 720px;
        width: calc(100% - 40px);
        margin: 30px auto;
    }

    #mobileSearchModal .mobile-search-modal-content {
        border-radius: 16px;
        max-height: calc(100vh - 60px);
        overflow: hidden;
    }
}

@media (max-width: 992px) {

    #mobileSearchModal .mobile-search-dialog {
        width: 100%;
        max-width: none;
        height: 100%;
        margin: 0;
    }

    #mobileSearchModal .mobile-search-modal-content {
        height: 100%;
        border-radius: 0;
    }
}
/* =========================================================
   MOBILE MEGA MENU - آرُوانو
   ========================================================= */

.mobile-mega-menu {
    display: none;
}


@media (max-width: 992px) {

    /* -----------------------------------------
       منوی دسکتاپ روی موبایل مخفی شود
       ----------------------------------------- */

    .nav-list {
        display: none !important;
    }


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

    .mobile-mega-menu {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100dvh;
        display: none;
        background: #fff;
        z-index: 3000;
        direction: rtl;
        overflow: hidden;
    }


        .mobile-mega-menu.open {
            display: block;
        }


    /* -----------------------------------------
       Header
       ----------------------------------------- */

    .mobile-mega-header {
        height: 58px;
        display: flex;
        align-items: center;
        padding: 0 16px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
        flex-shrink: 0;
    }


    .mobile-mega-close {
        border: 0;
        background: transparent;
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: inherit;
        font-size: 16px;
        color: #333;
        cursor: pointer;
        padding: 0;
    }


        .mobile-mega-close i {
            font-size: 17px;
        }


    /* -----------------------------------------
       Layout
       ----------------------------------------- */

    .mobile-mega-layout {
        display: flex;
        width: 100%;
        height: calc(100dvh - 58px);
        overflow: hidden;
    }


    /* -----------------------------------------
       ستون اصلی سمت راست
       ----------------------------------------- */

    .mobile-mega-root-list {
        width: 118px;
        flex: 0 0 118px;
        background: #f7f7f7;
        border-left: 1px solid #e5e5e5;
        overflow-y: auto;
        scrollbar-width: thin;
    }


    /* -----------------------------------------
       دسته اصلی
       ----------------------------------------- */

    .mobile-mega-root-item {
        width: 100%;
        min-height: 56px;
        padding: 12px 10px;
        border: 0;
        border-bottom: 1px solid #e5e5e5;
        background: #f7f7f7;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 5px;
        font-family: inherit;
        font-size: 13px;
        line-height: 1.7;
        color: #333;
        text-align: right;
        cursor: pointer;
        transition: all 0.2s ease;
    }


        .mobile-mega-root-item i {
            font-size: 10px;
            color: #777;
            flex-shrink: 0;
        }


        .mobile-mega-root-item.active {
            background: #fff;
            color: #176b5b;
            font-weight: 600;
            border-right: 3px solid #00a99d;
        }


    /* -----------------------------------------
       لینک های ساده
       ----------------------------------------- */

    .mobile-mega-simple-link {
        display: block;
        width: 100%;
        padding: 14px 10px;
        border-bottom: 1px solid #e5e5e5;
        color: #444;
        font-size: 12px;
        line-height: 1.6;
        text-decoration: none;
        background: #f7f7f7;
    }


        .mobile-mega-simple-link:active {
            background: #fff;
        }


    /* -----------------------------------------
       بخش سمت چپ
       ----------------------------------------- */

    .mobile-mega-content {
        flex: 1;
        min-width: 0;
        overflow-y: auto;
        background: #fff;
        padding: 14px 18px 80px;
    }


    /* -----------------------------------------
       پنل هر دسته اصلی
       ----------------------------------------- */

    .mobile-mega-root-panel {
        display: none;
    }


        .mobile-mega-root-panel.active {
            display: block;
        }


    /* -----------------------------------------
       همه محصولات
       ----------------------------------------- */

    .mobile-mega-all-products {
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        padding: 8px 0 12px;
        margin-bottom: 5px;
        border-bottom: 1px solid #e7e7e7;
        color: #176b5b;
        font-size: 13px;
        font-weight: 500;
        text-decoration: none;
    }


        .mobile-mega-all-products i {
            font-size: 10px;
        }


        .mobile-mega-all-products.no-link {
            color: #176b5b;
        }


    /* -----------------------------------------
       سطح دسته بندی
       ----------------------------------------- */

    .mobile-mega-level {
        list-style: none;
        padding: 0;
        margin: 0;
    }


    /* -----------------------------------------
       هر آیتم
       ----------------------------------------- */

    .mobile-mega-item {
        list-style: none;
        border-bottom: 1px solid #f0f0f0;
    }


    /* -----------------------------------------
       آیتم دارای فرزند
       ----------------------------------------- */

    .mobile-mega-item-button {
        width: 100%;
        min-height: 48px;
        padding: 10px 2px 10px 30px;
        border: 0;
        background: transparent;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        color: #333;
        font-family: inherit;
        font-size: 14px;
        text-align: right;
        cursor: pointer;
        position: relative;
    }

        .mobile-mega-item-button > span {
            display: block;
            text-align: right;
        }

        .mobile-mega-item-button > i {
            position: absolute;
            left: 2px;
            top: 50%;
            transform: translateY(-50%);
            font-size: 12px;
            transition: transform 0.2s ease;
        }

        /*        .mobile-mega-item-button .mobile-mega-arrow {
            margin-right: auto;
            margin-left: 0;
            flex-shrink: 0;
        }

        .mobile-mega-item-button i {
            font-size: 10px;
            color: #888;
            transition: transform 0.2s ease;
        }*/


        .mobile-mega-item-button.open i {
            transform: rotate(180deg);
        }


    /* -----------------------------------------
       زیرمجموعه
       ----------------------------------------- */

    .mobile-mega-children {
        display: none;
        padding-right: 12px;
        padding-bottom: 5px;
    }


    .mobile-mega-item.open > .mobile-mega-children {
        display: block;
    }


    /* -----------------------------------------
       لینک نهایی
       ----------------------------------------- */

    .mobile-mega-item-link {
        min-height: 45px;
        display: flex;
        align-items: center;
        padding: 9px 2px;
        color: #666;
        font-size: 13px;
        text-decoration: none;
        line-height: 1.7;
    }


        .mobile-mega-item-link:hover {
            color: #00a99d;
        }


    /* -----------------------------------------
       آیتم بدون لینک
       ----------------------------------------- */

    .mobile-mega-item-text {
        min-height: 45px;
        display: flex;
        align-items: center;
        padding: 9px 2px;
        color: #666;
        font-size: 13px;
    }


    /* -----------------------------------------
       فلش سطح‌های داخلی
       ----------------------------------------- */

    .mobile-mega-item-button.has-children::after {
        content: "";
    }


    /* -----------------------------------------
       Empty
       ----------------------------------------- */

    .mobile-mega-empty {
        padding: 20px 0;
        color: #999;
        font-size: 13px;
    }
}

/* =========================================================
   منوهای سطح اول
   خط عمودی قرمز قبل از عنوان
   ========================================================= */

.mobile-mega-level > .mobile-mega-item > .mobile-mega-item-button {
    position: relative;
    padding-right: 10px;
}

    .mobile-mega-level > .mobile-mega-item > .mobile-mega-item-button::before {
        content: "";
        position: absolute;
        right: 0;
        top: 15px;
        bottom: 15px;
        width: 2px;
        background: #dc3545;
        border-radius: 3px;
    }


/* =========================================================
   منوهای سطح آخر
   Bullet قرمز
   ========================================================= */

/*.mobile-mega-level > .mobile-mega-item > .mobile-mega-item-link,
.mobile-mega-level > .mobile-mega-item > .mobile-mega-item-text {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 42px;
    padding-right: 18px;
    text-decoration: none;
}*/


/* Bullet */

/*.mobile-mega-level > .mobile-mega-item > .mobile-mega-item-link::before,
    .mobile-mega-level > .mobile-mega-item > .mobile-mega-item-text::before {
        content: "";
        position: absolute;
        right: 3px;
        top: 50%;
        width: 6px;
        height: 6px;
        background: #aaa;
        border-radius: 50%;
        transform: translateY(-50%);
    }*/


.mobile-mega-item-button.level-2 {
    position: relative;
    padding-right: 14px;
}

    .mobile-mega-item-button.level-2::before {
        content: "";
        position: absolute;
        right: 0;
        top: 10px;
        bottom: 10px;
        width: 3px;
        background: #dc3545;
        border-radius: 3px;
    }

.mobile-mega-item-button.level-3 {
    position: relative;
    padding-right: 32px;
    padding-left: 30px;
    min-height: 44px;
    font-size: 13px;
    color: #555;
    border: 0;
    background: transparent;
}

    .mobile-mega-item-button.level-3::before {
        display: none;
    }

.mobile-mega-item-link.level-3,
.mobile-mega-item-text.level-3 {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding-right: 32px;
    color: #555;
    text-decoration: none;
    font-size: 13px;
}

.mobile-mega-item-link.level-4,
.mobile-mega-item-text.level-4 {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 38px;
    padding-right: 52px;
    color: #666;
    font-size: 12px;
    text-decoration: none;
}

    .mobile-mega-item-link.level-4::before,
    .mobile-mega-item-text.level-4::before {
        content: "";
        position: absolute;
        right: 38px;
        top: 50%;
        width: 5px;
        height: 5px;
        background: #dc3545;
        border-radius: 50%;
        transform: translateY(-50%);
    }


    /* ---------------------------------------------------- 
        Mobile Header Height
    ---------------------------------------------------------*/

/* 2. کاهش height و padding هدر در موبایل */
@media (max-width: 992px) {
    /* کاهش padding container */
    .main-header .container {
/*        padding-top: 4px !important;
        padding-bottom: 4px !important;
        padding-left: 12px !important;
        padding-right: 12px !important;*/
    }

    /* کاهش min-height هدر */
    .main-header .header-main-row {
        min-height: 36px !important;
        gap: 6px !important;
    }

    /* کوچک‌تر کردن لوگو */
    .main-header .mobile-logo-link .logo {
        font-size: 16px !important;
        line-height: 1 !important;
    }

    /* کوچک‌تر کردن دکمه همبرگر و جستجو */
    .main-header .mobile-hamburger-btn,
    .main-header .mobile-search-btn {
        width: 50px !important;
        height: 50px !important;
        font-size: 18px !important;
        padding: 0 !important;
    }

    /* کوچک‌تر کردن آیکون سبد خرید */
    .main-header .header-main-row > .d-flex.flex-shrink-0 .cart-icon-wrapper {
        font-size: 16px !important;
    }

        /* کوچک‌تر کردن badge سبد خرید */
        .main-header .header-main-row > .d-flex.flex-shrink-0 .cart-icon-wrapper .cart-count-badge {
            top: -4px !important;
            right: -5px !important;
            min-width: 14px !important;
            height: 14px !important;
            font-size: 8px !important;
            border-width: 1px !important;
        }

    /* مخفی کردن VR در موبایل */
    .main-header .header-main-row > .d-flex.flex-shrink-0 .vr {
        display: none !important;
    }

    /* مخفی کردن دکمه ورود در موبایل (اگر جداگانه هست) */
    .main-header .header-main-row > .d-flex.flex-shrink-0 .auth-btn {
        display: none !important;
    }

    /* کوچک‌تر کردن آیکون کاربر */
    .main-header .header-main-row > .d-flex.flex-shrink-0 .dropdown-toggle {
        font-size: 18px !important;
    }
}


/* ============================================ */
/* --- استایل صفحه محصول --- */
/* ============================================ */

.breadcrumb-section {
    /*background: #fff;*/
    padding: 15px 0;
   /* border-bottom: 1px solid #eee;*/
    margin-bottom: 2px;

}

.breadcrumb-wrapper {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #888;
}

    .breadcrumb-wrapper a {
        color: #555;
        transition: 0.3s;
    }

        .breadcrumb-wrapper a:hover {
            color: #00a99d;
        }

/*    .breadcrumb-wrapper .separator {
        color: #ccc;
        margin: 0 3px;
    }*/

.plus-small-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    margin: 8px;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    background: #198754;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
    z-index: 2;
    border:none;
}
@media (max-width: 992px) {
    .plus-small-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
    }
    }