﻿/* تعریف فونت ایران‌سنس */
@font-face {
    font-family: 'IRANSansX';
    src: url('/Assets/fonts/IRANSansWeb_Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'IRANMahoor';
    src: url('/Assets/fonts/Mahoor-FD-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

:root {
    --main-color: #16a085;
    --accent-teal: #18b7b0;
    --deep-teal: #087f82;
}

body {
    font-family: IRANMahoor, Tahoma, sans-serif;
    background-color: #f8f9fa;
    /*    background:url(Patern.svg);
    background-repeat:repeat;*/
    color: #333;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}
/* تم رنگی اختصاصی تاسیسات: گرادینت‌های آبی تیره (تاسیسات سرمایشی) و نارنجی/آجری (گرمایشی) */
.bg-gradient-install {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

/* هدر چسبان شیشه‌ای (Glassmorphism) */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 14px 0 0;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(18, 116, 129, .1);
    box-shadow: 0 8px 30px rgba(30, 76, 82, .06);
    transition: all .3s ease;
}

    .glass-header.header-compact {
        padding-top: 8px;
    }

/* استایل هدر روشن شیشه‌ای */
.glass-header-light .main-category span, .glass-header-light i {
    transition: all .3s ease-in-out;
}


.glass-header.header-compact .header-search-hint{
    display:none;
}
.glass-header.header-compact .glass-header-light .main-category > i {
    opacity: 0;
}

.glass-header.header-compact .glass-header-light .main-category span {
    margin-top: -18px;
    color: #000;
    text-shadow: 0 0 3px #18efc5
}

.glass-header.header-compact .brand-logo {
    width: 43px;
    height: 43px;
    border-radius: 13px;
}

.glass-header.header-compact .brand-name {
    font-size: 21px;
}

.header-main {
    display: grid;
    grid-template-columns: minmax(190px, 240px) minmax(300px, 1fr) auto;
    align-items: center;
    gap: 28px;
}

.brand-area {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 11px;
    min-width: 0;
    color: #263f43;
}

.brand-logo {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 17px;
    box-shadow: 0 8px 22px rgba(22, 127, 130, .16);
    transition: all .3s ease-in-out;
}

.brand-name {
    color: #244247;
    font-family: IRANMahoor, Tahoma, sans-serif;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -.8px;
    white-space: nowrap;
}

    .brand-name span {
        color: #f47721;
    }

.header-search {
    width: 100%;
    max-width: 680px;
    justify-self: center;
    transition: opacity .25s ease, transform .25s ease, max-height .3s ease;
}

.header-search-box {
    display: flex;
    align-items: center;
    height: 54px;
    padding: 5px 7px 5px 6px;
    border: 1px solid #d9e9e8;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 9px 28px rgba(31, 103, 106, .09);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}

    .header-search-box:focus-within {
        border-color: #40b4a1;
        box-shadow: 0 12px 34px rgba(22, 160, 133, .15), 0 0 0 4px rgba(22, 160, 133, .08);
        transform: translateY(-1px);
    }

.header-search-icon {
    flex: 0 0 auto;
    margin: 0 15px 0 10px;
    color: #22a28d;
    font-size: 17px;
}

.header-search-box input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #294b50;
    font-family: IRANMahoor, Tahoma, sans-serif;
    font-size: 13px;
}

    .header-search-box input::placeholder {
        color: #9aaeb0;
    }

.header-search-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    flex: 0 0 auto;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, #149b86, #36b8a0);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 14px rgba(20, 155, 134, .22);
    transition: transform .2s ease, filter .2s ease;
}

    .header-search-box button:hover {
        filter: brightness(.96);
        transform: translateX(-2px);
    }

.header-search-hint {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 5px 0;
    color: #849a9c;
    font-family: IRANSansX, Tahoma, sans-serif;
    font-size: 9px;
}

    .header-search-hint span:first-child {
        color: #51958d;
    }

    .header-search-hint i {
        margin-left: 4px;
        color: #f2a333;
    }

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    min-width: max-content;
}

.header-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid #dcebea;
    border-radius: 13px;
    background: #fff;
    color: #247c7c;
    font-size: 17px;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 1100px) {
    .header-main {
        grid-template-columns: minmax(170px, 210px) minmax(260px, 1fr) auto;
        gap: 17px;
    }

    .brand-name {
        font-size: 21px;
    }

    .brand-logo {
        width: 46px;
        height: 46px;
    }
}

@media (max-width: 767.98px) {
    .glass-header {
        padding: 10px 0 12px;
    }

    .header-main {
        grid-template-columns: 42px 1fr auto;
        gap: 9px;
    }

    .header-menu-toggle {
        grid-column: 1;
        grid-row: 1;
    }

    .brand-area {
        grid-column: 2;
        grid-row: 1;
        justify-content: center;
        gap: 7px;
    }

    .brand-logo {
        width: 39px;
        height: 39px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 18px;
        letter-spacing: -.5px;
    }

    .header-actions {
        grid-column: 3;
        grid-row: 1;
        gap: 5px;
    }

        .header-actions .btn-user-panel {
            min-width: 40px;
            padding: 8px 9px;
        }

        .header-actions .account-trigger-auth .d-md-inline,
        .header-actions .account-trigger-auth .account-chevron {
            display: none !important;
        }

        .header-actions .cart-trigger {
            min-width: 40px;
            padding: 8px 8px;
        }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }

    .glass-header.mobile-search-open .header-search {
        max-height: 78px;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        padding-top: 5px;
    }

    .glass-header.header-compact .header-main {
        row-gap: 0;
    }

    .glass-header.header-compact .header-search {
        max-height: 0;
        opacity: 0;
        transform: translateY(-8px);
        pointer-events: none;
    }

    .glass-header.mobile-search-open.header-compact .header-search {
        max-height: 0;
        opacity: 0;
        pointer-events: none;
    }

    .header-search-box {
        height: 49px;
        border-radius: 15px;
    }

        .header-search-box input {
            font-size: 11px;
        }

    .header-search-icon {
        margin-right: 11px;
        margin-left: 7px;
        font-size: 15px;
    }

    .header-search-box button {
        width: 38px;
        height: 38px;
        border-radius: 11px;
    }

    .header-search-hint {
        margin-top: 6px;
        font-size: 8px;
    }

    .header-search-examples {
        display: none;
    }

    .glass-header-light {
        display: none;
    }

    body {
        padding-bottom: 78px;
    }

    .mobile-bottom-nav {
        position: fixed;
        right: 10px;
        bottom: 10px;
        left: 10px;
        z-index: 1100;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        align-items: center;
        min-height: 42px;
        padding: 7px 5px 6px;
        border: 1px solid rgba(31, 133, 126, .14);
        border-radius: 22px;
        background: rgba(255, 255, 255, .94);
        box-shadow: 0 12px 35px rgba(22, 80, 83, .2);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .mobile-bottom-nav-item {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
        border: 0;
        background: transparent;
        color: #789194;
        font-family: IRANMahoor, Tahoma, sans-serif;
        font-size: 9px;
        line-height: 1.1;
        text-decoration: none;
        cursor: pointer;
    }

        .mobile-bottom-nav-item i {
            font-size: 16px;
            transition: transform .2s ease, color .2s ease;
        }

        .mobile-bottom-nav-item:active i,
        .mobile-bottom-nav-item:hover i {
            color: #168f7d;
            transform: translateY(-2px);
        }

    .mobile-bottom-cart {
        position: relative;
        z-index: 1;
        margin-top: -25px;
        color: #fff;
    }

    .mobile-bottom-cart-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 54px;
        height: 54px;
        border: 5px solid #f8f9fa;
        border-radius: 50%;
        background: linear-gradient(135deg, #0c8f80, #35baa0);
        box-shadow: 0 8px 22px rgba(17, 143, 125, .3);
    }

        .mobile-bottom-cart-icon i {
            font-size: 20px;
        }

    .mobile-bottom-cart .cart-badge {
        position: absolute;
        top: 10px;
        /*right: calc(50% - 28px);*/
        min-width: 20px;
        height: 20px;
        font-size: 11px;
        box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
    }

    .mobile-bottom-cart > span:last-child {
        margin-top: 3px;
        color: #347b76;
    }
}

@media (min-width: 768px) {
    .glass-header.header-compact + .glass-header-light {
        top: 68px;
    }
}

@media (max-width: 380px) {
    .header-main {
        gap: 5px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-logo {
        width: 35px;
        height: 35px;
    }

    .header-actions .cart-trigger {
        display: none;
    }

    .cart-trigger .fa-basket-shopping {
        margin-top: 10px;
        color: #e0f3f0 !important;
    }
}

.account-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 54px;
}

.account-trigger-auth {
    max-width: 190px;
}

.account-trigger .fa-user-circle {
    color: var(--accent-teal);
    font-size: 1.15rem;
}

.account-chevron {
    color: #8b979d;
    font-size: 10px;
}

.account-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #d9fff6, #b7ece6);
    color: var(--deep-teal);
}

.account-avatar-small {
    width: 25px;
    height: 25px;
    font-size: 12px;
}

.account-avatar-large {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    box-shadow: 0 8px 20px rgba(8, 127, 130, .16);
    font-size: 25px;
}

.btn-user-panel {
    background: #ffffff;
    color: #2d3748;
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

    .btn-user-panel:hover {
        border-color: var(--accent-teal);
        color: var(--deep-teal);
        box-shadow: 0 4px 15px rgba(24, 183, 176, 0.14);
    }
/* سبد خرید استاتیک - نسخه نمایشی اولیه */
.cart-trigger {
    min-width: 54px;
    padding: 8px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

    .cart-trigger .fa-basket-shopping {
        font-size: 1.1rem;
        color: #35baa0;
    }

.cart-badge {
    min-width: 21px;
    height: 21px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border-radius: 50%;
    background: var(--main-color);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.cart-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 21px;
    background: #fbfcfe;
    box-shadow: 0 24px 80px rgba(15, 32, 39, .22);
}

.cart-modal-header {
    position: relative;
    padding: 16px 24px 15px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #087f82, #16a085);
}

.cart-modal-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: rgba(255, 255, 255, .68);
    font-size: 12px;
}

.cart-modal-header .modal-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

    .cart-modal-header .modal-title i {
        color: #a9fff0;
    }

.cart-modal-close {
    position: absolute;
    top: 14px;
    left: 18px;
    opacity: .9;
    filter: invert(1) grayscale(1) brightness(3);
}

.cart-modal-body {
    padding: 16px 24px 8px;
}

.cart-demo-notice {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 11px;
    padding: 10px 13px;
    border: 1px solid rgba(22, 160, 133, .18);
    border-radius: 12px;
    background: rgba(22, 160, 133, .08);
    color: #397875;
    font-size: 12px;
}

    .cart-demo-notice i {
        color: var(--accent-teal);
    }

.cart-item {
    position: relative;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) auto 24px;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-bottom: 1px solid #edf0f3;
}

    .cart-item:last-child {
        border-bottom: 0;
    }

    .cart-item > img {
        width: 62px;
        height: 62px;
        padding: 6px;
        object-fit: contain;
        border-radius: 16px;
        background: #fff;
        box-shadow: 0 5px 18px rgba(15, 32, 39, .08);
    }

.cart-item-info {
    min-width: 0;
}

    .cart-item-info h6 {
        overflow: hidden;
        margin: 0 0 5px;
        color: #25323a;
        font-size: 14px;
        font-weight: 700;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

.cart-item-meta {
    display: block;
    margin-bottom: 7px;
    color: #8c969d;
    font-family: IRANSansX, sans-serif;
    font-size: 10px;
}

.cart-item-info strong {
    color: var(--deep-teal);
    font-family: IRANSansX, sans-serif;
    font-size: 12px;
}

.cart-item-pricing {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

    .cart-item-pricing strong {
        color: var(--deep-teal);
    }

.cart-item-original-price {
    color: #9aa4a9;
    font-family: IRANSansX, sans-serif;
    font-size: 10px;
    text-decoration: line-through;
}

.cart-item-discount {
    padding: 2px 6px;
    border-radius: 999px;
    background: rgba(32, 178, 170, .12);
    color: #138f87;
    font-family: IRANSansX, sans-serif;
    font-size: 10px;
    font-weight: 700;
}

.cart-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 6px 8px;
    border: 1px solid #e6eaee;
    border-radius: 12px;
    background: #fff;
    color: #36454d;
    font-family: IRANSansX, sans-serif;
    font-size: 14px;
}

    .cart-item-actions button {
        width: 23px;
        height: 23px;
        padding: 0;
        border: 0;
        border-radius: 7px;
        background: #f3f5f7;
        color: #68757d;
        font-size: 11px;
    }

        .cart-item-actions button:hover {
            background: var(--accent-teal);
            color: #fff;
        }

.cart-item-remove {
    padding: 0;
    border: 0;
    background: transparent;
    color: #b7c0c5;
    font-size: 13px;
}

    .cart-item-remove:hover {
        color: #e05252;
    }

.cart-empty-demo {
    display: none;
    padding: 35px 10px;
    color: #8a969d;
    text-align: center;
}

.cart-load-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 120px;
    color: #c45b5b;
    font-size: 13px;
}

    .cart-load-error i {
        font-size: 18px;
    }

.cart-is-loading {
    opacity: .55;
    pointer-events: none;
}

.cart-empty-demo i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    margin-bottom: 13px;
    border-radius: 50%;
    background: rgba(255, 115, 0, .1);
    color: var(--main-color);
    font-size: 24px;
}

.cart-empty-demo h6 {
    color: #394850;
    font-weight: 700;
}

.cart-empty-demo p {
    margin: 0;
    font-size: 12px;
}

.cart-modal-footer {
    display: block;
    padding: 15px 24px 18px;
    border-top: 1px solid #edf0f3;
    background: #fff;
}

.cart-summary,
.cart-modal-buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cart-summary {
    margin-bottom: 17px;
    color: #748088;
    font-size: 13px;
}

    .cart-summary strong {
        color: #25323a;
        font-family: IRANSansX, sans-serif;
        font-size: 16px;
    }

.cart-modal-buttons {
    gap: 10px;
}

    .cart-modal-buttons .btn {
        flex: 1;
        min-height: 45px;
        border-radius: 12px;
        font-size: 13px;
    }

.cart-continue-btn {
    border: 1px solid #e1e7eb;
    color: #68757d;
    background: #fff;
}

    .cart-continue-btn:hover {
        border-color: #c8d1d6;
        background: #f8fafb;
    }

.cart-checkout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #16a085, #087f82);
}

    .cart-checkout-btn:hover {
        color: #fff;
        transform: translateY(-1px);
        box-shadow: 0 8px 18px rgba(8, 127, 130, .22);
    }

@media (max-width: 575px) {
    .cart-modal-body,
    .cart-modal-footer,
    .cart-modal-header {
        padding-right: 15px;
        padding-left: 15px;
    }

    .cart-modal .modal-dialog {
        margin: 10px;
    }

    .cart-item {
        grid-template-columns: 58px minmax(0, 1fr) 24px;
        gap: 10px;
    }

        .cart-item > img {
            width: 58px;
            height: 58px;
        }

    .cart-item-actions {
        grid-column: 2;
        justify-self: start;
    }

    .cart-item-remove {
        grid-column: 3;
        grid-row: 1 / span 2;
    }

    .cart-modal-buttons {
        flex-direction: column-reverse;
    }

        .cart-modal-buttons .btn {
            width: 100%;
        }
}

/* آیکون همبرگری منو */
.hamburger-icon {
    font-size: 1.5rem;
    color: #2d3748;
}

/* کانتینر اختصاصی منوی سطح ۴ */
/* نمایش سطح ۴ صرفاً در زمان هوور روی لایه سطح ۳ */
.dropdown-hover-sub-layer3:hover .dropdown-menu-sub-sub-custom {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

/* اصلاح استایل‌های موبایل جهت تفکیک کلیک آیکون از متن */
.toggle-icon-btn, .toggle-icon-sub-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 10; /* قرارگیری روی لایه بالاتر جهت کلیک دقیق */
}
/* تمام صفحه کردن کامل منوی موبایل */
.offcanvas.offcanvas-start {
    width: 100% !important;
    max-width: 100% !important;
    border-right: none !important;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

/* آیتم‌های ردیفی منوی موبایل */
.mobile-nav-link-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

/* استایل دکمه‌های بازکننده زیرمنو */
.toggle-icon-btn, .toggle-icon-sub-btn {
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    border-radius: 50%;
    font-size: 1.1rem;
    font-weight: bold;
    user-select: none;
    transition: all 0.25s ease;
}

    /* تغییر آیکون به ضربدر در زمان فعال بودن آکاردئون */
    .toggle-icon-btn:not(.collapsed), .toggle-icon-sub-btn:not(.collapsed) {
        transform: rotate(45deg);
        background: #ff7300 !important;
        color: #ffffff !important;
    }

/* افزایش اندازه آیکون ضربدر بستن هدر */
.btn-close:focus {
    box-shadow: none !important;
}

.img {
    width: 54px;
}


/****************************** منو تستی فعلا ****************************/
.navbar-desktop-menu {
    list-style: none;
    position: relative;
    display: flex;
    margin: 0;
    padding: 0;
    justify-content: center;
}

    .navbar-desktop-menu li {
        padding: 7px 0;
    }

.menu-col-sub li {
    padding: 5px 0;
}

.main-category {
    color: #757575;
    padding: 8px;
    position: relative;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100px;
    border-radius: 10px;
}

    .main-category span {
        margin-top: 5px;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
        display: -webkit-box;
        overflow: hidden;
        -webkit-line-clamp: 1;
        text-align: center;
    }

    .main-category img {
        width: 28px;
    }

.mega-menu {
    right: 0;
    top: 100%;
    height: 0;
    width: 100%;
    z-index: 203;
    overflow: hidden;
    position: absolute;
    transition: 0s;
    min-width: 1300px;
    border-radius: 7px;
}

.navbar-desktop-menu li:hover > .mega-menu {
    height: 485px;
    background: #e8f8f9;
}

.menu-col-wrap {
    border-top: none;
    background: #e8f8f9;
    height: 0;
    position: relative;
    padding-bottom: 10px;
    border-radius: 0 0 8px 8px;
    padding: 10px;
    border-top: 0;
}

.menu-col {
    z-index: 2;
    padding: 0 1%;
    position: relative;
    vertical-align: top;
    display: inline-block;
    width: 20%;
    display: flex;
    flex-direction: column;
}

.menu-col-title {
    padding: 11px 0 6px 0px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.navbar-desktop-menu li:hover > .main-category {
    color: var(--color2);
    background: #e7f8f9;
}

.menu-big-header {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
}

    .menu-big-header img {
        width: 32px;
        margin-left: 10px;
    }

    .menu-big-header span {
        font-size: 18px;
        font-weight: 600;
        color: var(--color1);
    }

.menu-col-sub {
    margin: 0;
    list-style: none;
    padding: 0;
}

.menu-col-title {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: block;
    padding-bottom: 10px;
    margin-bottom: 5px;
    font-size: 14px;
    color: var(--color1);
}

.menu-col-sub li a {
    color: #888;
    padding: 3px 0 3px 3px;
    font-size: 14px;
}

.menu-col-title:hover {
    color: var(--color2);
}

.menu-col-sub li a:hover {
    color: var(--color1);
}

/********************************* استایل پایه برای حذف لیست‌های پیش‌فرض */
.menu-col-sub-level4,
.menu-col-sub-level4 ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

/* فاصله دادن به زیرمنو برای ایجاد پله */
.menu-col-sub-level4 {
    margin-right: 15px; /* اگر راست‌چین هستید */
}

    .menu-col-sub-level4 li {
        position: relative;
        padding: 0; /* ایجاد فضا برای خطوط */
        line-height: 20px;
        padding-right: 15px;
    }

        /* رسم خط افقی (├──) */
        .menu-col-sub-level4 li::before {
            content: "";
            position: absolute;
            top: 12px; /* تنظیم ارتفاع خط متناسب با متن */
            right: 0;
            width: 10px;
            height: 1px;
            background-color: #ccc; /* رنگ خط افقی */
        }

        /* رسم خط عمودی برای اتصال فرزندان */
        .menu-col-sub-level4 li::after {
            content: "";
            position: absolute;
            top: 0;
            right: 0;
            width: 1px;
            height: 100%;
            background-color: #ccc; /* رنگ خط عمودی */
        }

        /* حذف خط عمودی از آخرین آیتم برای جلوگیری از کشیده شدن بی مورد */
        .menu-col-sub-level4 li:last-child::after {
            height: 12px; /* فقط تا رسیدن به خط افقی آیتم خودمان ادامه یابد */
        }

        /* استایل لینک‌ها */
        .menu-col-sub-level4 li a {
            font-size: 12px;
            display: inline-block;
            color: rgb(18, 116, 129);
        }



@media (max-width:991px) {
    .main-category {
        font-size: 12px;
        padding: 12px 10px;
    }
}


/******************************* offcanvas Mobile menu *******************/
.offcanvas-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 1998;
    transition: all 0.3s ease-in-out;
}

.offcanvas-nav-submenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100%;
    background-color: #fff;
    z-index: 9999;
    transition: all 0.3s ease-in-out;
}

    .offcanvas-nav-submenu.active {
        right: 0;
    }

.offcanvas-nav.active {
    right: 0;
}

.offcanvas-close {
    background: transparent;
    border: 0;
    color: #000;
}

.offcanvas-nav-item-btn-back {
    background: transparent;
    border: 0;
    color: #000;
}

.offcanvas-nav-item-btn {
    border: 0;
    background: transparent;
    outline: none;
    color: #000;
}

.offcanvas-header {
    height: 65px;
    display: flex;
    align-items: center;
    padding: 15px;
    justify-content: space-between;
    color: #000;
    background: rgb(255, 255, 255);
    /* box-shadow: rgba(22, 22, 22, 0.04) 0px 2px 4px -1px, rgba(22, 22, 22, 0.04) 0px 4px 8px -1px; */
    border-bottom: 1px solid #ddd;
    transition: top 0.7s ease-in-out 0s;
}


.offcanvas-body {
    padding: 15px;
}

.offcanvas-sub-body {
    padding: 15px;
}

.offcanvas-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-link-custom {
    color: #000;
    padding: 10px 0;
    font-size: 14px;
}

    .nav-link-custom .offcanvas-nav-item-btn {
        font-size: 16px;
    }

@media (min-width: 768px) {
    .offcanvas-nav {
        display: none;
    }
}
.site-stats {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.site-stat {
    min-width: 145px;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 12px;
    background: rgba(255, 255, 255, .08);
}

.site-stat i {
    display: block;
    margin-bottom: 5px;
    color: #f5c542;
}

.site-stat span,
.site-stat strong {
    display: block;
}

.site-stat strong {
    margin-top: 4px;
    color: #fff;
    font-size: 1.15rem;
}
