﻿/* =========================================================
           PRODUCT MEGA MENU - FIXED
           ========================================================= */

.product-mega-menu {
    position: relative;
    direction: rtl;
    z-index: 99999;
    font-family: inherit;
}


    /* =========================================================
           RESET - مهم برای جلوگیری از تاثیر CSS قبلی سایت
           ========================================================= */

    .product-mega-menu ul,
    .product-mega-menu li {
        box-sizing: border-box;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .product-mega-menu ul {
        display: block !important;
        flex-direction: unset !important;
        flex-wrap: unset !important;
        align-items: unset !important;
        align-content: unset !important;
        height: auto !important;
    }


/* =========================================================
           TRIGGER
           ========================================================= */

.product-mega-trigger {
    height: 48px;
    padding: 0 15px;
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
    background: transparent;
    white-space: nowrap;
}

    .product-mega-trigger:hover {
        color: var(--main-color-one, #275fe0);
    }

    .product-mega-trigger > i:first-child {
        font-size: 20px;
    }

.product-trigger-arrow {
    margin-right: auto !important;
    font-size: 13px !important;
    transition: transform .2s ease;
}

.product-mega-menu:hover .product-trigger-arrow {
    transform: rotate(180deg);
}


/* =========================================================
           MAIN DROPDOWN
           ========================================================= */

.product-mega-dropdown {
    position: absolute !important;
    top: 100%;
    right: 0;
    width: 270px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 100000;
    overflow: visible !important;
}

.product-mega-menu:hover > .product-mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}


/* =========================================================
           LEVEL 1
           ========================================================= */

.product-level-1 {
    width: 100% !important;
    background: #fff;
    border-radius: 10px;
    padding: 8px 0 !important;
}

.product-level-1-item {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}


/* =========================================================
           LINKS
           ========================================================= */

.product-mega-menu .product-menu-link {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100% !important;
    min-height: 46px;
    padding: 10px 18px !important;
    color: #333;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    transition: all .2s ease;
}

    .product-mega-menu .product-menu-link:hover {
        color: var(--main-color-one, #275fe0);
        background: #f5f7fb;
    }

    .product-mega-menu .product-menu-link i {
        flex-shrink: 0;
        margin-right: 10px;
        font-size: 11px;
        color: #777;
    }


/* =========================================================
           LEVEL 2
           ========================================================= */

.product-level-2 {
    position: absolute !important;
    top: 0 !important;
    right: 100% !important;
    width: 270px !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 100001;
    overflow: visible !important;
}


/* باز شدن سطح دوم */

.product-level-1-item:hover > .product-level-2 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* UL داخل سطح دوم */

.product-level-2 > ul {
    width: 100% !important;
    display: block !important;
    background: #fff;
    padding: 8px 0 !important;
}


/* LI داخل سطح دوم */

.product-level-2-item {
    position: relative !important;
    width: 100% !important;
    display: block !important;
}


/* =========================================================
           LEVEL 3
           ========================================================= */

.product-level-3 {
    position: absolute !important;
    top: 0 !important;
    right: 100% !important;
    width: 270px !important;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, .14);
    opacity: 0;
    visibility: hidden;
    transform: translateX(8px);
    transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
    z-index: 100002;
    overflow: visible !important;
}


/* باز شدن سطح سوم */

.product-level-2-item:hover > .product-level-3 {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}


/* UL داخل سطح سوم */

.product-level-3 > ul {
    width: 100% !important;
    display: block !important;
    background: #fff;
    padding: 8px 0 !important;
}


    /* آیتم های سطح سوم */

    .product-level-3 > ul > li {
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        padding: 0 !important;
    }


        /* لینک سطح سوم */

        .product-level-3 > ul > li > a {
            display: block !important;
            width: 100% !important;
            padding: 11px 18px !important;
            color: #333;
            text-decoration: none;
            white-space: nowrap;
            font-size: 13px;
            transition: all .2s ease;
        }

            .product-level-3 > ul > li > a:hover {
                color: var(--main-color-one, #275fe0);
                background: #f5f7fb;
            }


/* =========================================================
           HOVER BRIDGE
           جلوگیری از قطع شدن منو هنگام حرکت موس
           ========================================================= */

.product-level-2::after,
.product-level-3::after {
    content: "";
    position: absolute;
    top: 0;
    width: 10px;
    height: 100%;
    background: transparent;
}


/* سطح دوم در سمت چپ سطح اول است */
.product-level-2::after {
    right: -10px;
}


/* سطح سوم در سمت چپ سطح دوم است */
.product-level-3::after {
    right: -10px;
}


/* =========================================================
           جلوگیری از بریده شدن منو
           ========================================================= */

.product-mega-menu,
.product-mega-dropdown,
.product-level-1,
.product-level-1-item,
.product-level-2,
.product-level-2-item,
.product-level-3 {
    overflow: visible !important;
}


/* =========================================================
           MOBILE
           ========================================================= */
@media (max-width: 767px) {
    .product-mega-dropdown {
        position: static !important;
        width: 100% !important;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
        display: none;
    }

    .product-mega-menu:hover > .product-mega-dropdown {
        display: block;
    }

    .product-level-2,
    .product-level-3 {
        position: static !important;
        width: 100% !important;
        display: none;
        box-shadow: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }

    .product-level-1-item:hover > .product-level-2,
    .product-level-2-item:hover > .product-level-3 {
        display: block;
    }
}
/* ================================================================================================================ */
/* =========================================
           Mobile Menu
        ========================================= */
.mobile-menu,
.mobile-submenu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-menu {
    width: 100%;
    direction: rtl;
}

/* هر آیتم */
.mobile-menu-item {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
}

/* ردیف منو */
.mobile-menu-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* لینک */
.mobile-menu-link {
    flex: 1;
    display: flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

    .mobile-menu-link:hover {
        color: #d49b00;
        background: #fafafa;
    }

/* دکمه فلش */
.mobile-menu-toggle {
    width: 50px;
    height: 52px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
    transition: all 0.25s ease;
}

    /* آیکون */
    .mobile-menu-toggle i {
        font-size: 14px;
        transition: transform 0.3s ease;
    }

/* وقتی منو باز است */
.mobile-menu-item.open > .mobile-menu-row > .mobile-menu-toggle i {
    transform: rotate(180deg);
}

.mobile-menu-item.open > .mobile-menu-row > .mobile-menu-toggle {
    color: #d49b00;
}

/* =========================================
           Sub Menu
        ========================================= */

.mobile-submenu {
    display: none;
    background: #f8f8f8;
}

/* زیرمنو باز */
.mobile-menu-item.open > .mobile-submenu {
    display: block;
}

/* سطح دوم */
.mobile-submenu > .mobile-menu-item > .mobile-menu-row > .mobile-menu-link {
    padding-right: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #444;
}

/* سطح سوم */
.mobile-submenu-level-3 {
    background: #ffffff;
}

    .mobile-submenu-level-3
    .mobile-menu-item
    .mobile-menu-link {
        padding-right: 48px;
        font-size: 13px;
        font-weight: 400;
        color: #666;
    }

    /* hover سطح سوم */
    .mobile-submenu-level-3
    .mobile-menu-link:hover {
        color: #d49b00;
        background: #fafafa;
    }

/* خط کنار سطح دوم */
.mobile-submenu > .mobile-menu-item {
    border-bottom: 1px solid #e9e9e9;
}

/* سطح سوم */
.mobile-submenu-level-3 > .mobile-menu-item {
    border-bottom: 1px solid #f0f0f0;
}

/* موبایل */
@media (max-width: 991px) {
    .mobile-menu {
        display: block;
    }
}

/* دسکتاپ */
@media (min-width: 992px) {
    .mobile-menu {
        display: none;
    }
}

/* =====================================
           SEARCH CATEGORY FILTER
        ===================================== */
.search-category-filter {
    width: 100%;
    direction: rtl;
    background: #fff;
}


/* =====================================
           دسته اصلی
        ===================================== */

.category-main-item {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
}


/* دکمه سردسته */

.category-main-button {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #333;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: right;
}


    .category-main-button:hover {
        background: #fafafa;
    }


/* =====================================
           زیر دسته‌ها
        ===================================== */

.category-children {
    display: none;
    width: 100%;
    background: #fafafa;
}


    /* وقتی باز است */

    .category-children.active {
        display: block;
    }


/* =====================================
           Header داخل زیر منو
        ===================================== */

.category-header {
    min-height: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    background: #f4f4f4;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    font-weight: 600;
}


/* دکمه برگشت */

.category-back {
    width: 35px;
    height: 35px;
    margin-left: 8px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #555;
}


/* =====================================
           ردیف دسته
        ===================================== */

.category-child-item {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
}


.category-child-row {
    width: 100%;
    min-height: 48px;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =====================================
           Checkbox
        ===================================== */

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
}


    .category-checkbox input {
        width: 17px;
        height: 17px;
        cursor: pointer;
        accent-color: #c99a2e;
    }


    .category-checkbox label {
        margin: 0;
        cursor: pointer;
        font-size: 13px;
        color: #444;
    }


/* =====================================
           فلش رفتن به سطح بعد
        ===================================== */

.category-next {
    width: 35px;
    height: 35px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #777;
}


    .category-next i {
        font-size: 12px;
    }


/* =====================================
           سطح سوم
        ===================================== */

.category-level-3 {
    background: #fff;
}


/* =====================================
           دسته‌ای که زیر دسته ندارد
        ===================================== */

.category-single {
    border-bottom: 1px solid #eeeeee;
}

/* =====================================================
           DESKTOP CATEGORY FILTER
        ===================================================== */
.desktop-category-filter {
    width: 100%;
    direction: rtl;
}


/* =====================================================
           LEVEL 1
        ===================================================== */

.dcf-level-1 {
    width: 100%;
    border-bottom: 1px solid #eeeeee;
}


.dcf-main-button {
    width: 100%;
    min-height: 48px;
    padding: 0 5px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    color: #333;
    text-align: right;
}


    .dcf-main-button:hover {
        color: #c69735;
    }


.dcf-title {
    font-size: 14px;
    font-weight: 600;
}


.dcf-arrow {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #777;
    transition: transform .2s ease;
}


.dcf-main-button.active .dcf-arrow {
    transform: rotate(-90deg);
}


/* =====================================================
           SUB MENU
        ===================================================== */

.dcf-submenu {
    display: none;
    width: 100%;
    padding-right: 15px;
}


    .dcf-submenu.open {
        display: block !important;
    }


/* =====================================================
           LEVEL 2
        ===================================================== */

.dcf-level-2 {
    width: 100%;
}


.dcf-level-2-row {
    width: 100%;
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* =====================================================
           CHECKBOX
        ===================================================== */

.dcf-check {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}


    .dcf-check input {
        width: 16px;
        height: 16px;
        margin: 0;
        cursor: pointer;
        accent-color: #c69735;
    }


    .dcf-check label {
        margin: 0;
        cursor: pointer;
        font-size: 13px;
        color: #555;
    }


        .dcf-check label:hover {
            color: #c69735;
        }


/* =====================================================
           LEVEL 2 ARROW
        ===================================================== */

.dcf-next {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #888;
}


    .dcf-next:hover {
        color: #c69735;
    }


/* =====================================================
           LEVEL 3
        ===================================================== */

.dcf-level-3-menu {
    padding-right: 20px;
    background: #fafafa;
}


.dcf-level-3-row {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    padding-right: 5px;
    border-bottom: 1px solid #f0f0f0;
}


    .dcf-level-3-row .dcf-check label {
        font-size: 12px;
        color: #666;
    }


/* =====================================================
           SINGLE CATEGORY
        ===================================================== */

.dcf-single {
    width: 100%;
    min-height: 45px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eeeeee;
}