﻿.mobile-offcanvas {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 9999;
    transition: right .35s ease !important;
    overflow: hidden;
}

    .mobile-offcanvas.active {
        right: 0 !important;
    }

.mobile-panel {
    position: absolute;
    inset: 0;
    background: #fff;
    transform: translateX(100%);
    transition: transform .3s ease !important;
}

    .mobile-panel.active {
        transform: translateX(0) !important;
    }

.all-product-link {
    border-bottom: 1px solid #eee;
    width: 100%;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}

.mobile-panel-header {
    height: 56px;
    padding: 0 16px;
    /*border-bottom: 1px solid #eee;*/
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.mobile-menu-level2 li {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f1f1;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}

.mobile-accordion {
    list-style: none;
    border-bottom: 1px solid #f1f1f1;
    display: block;
    cursor: pointer;
}

.accordion-body {
    display: none;
    padding: 0 16px 8px 16px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.accordion-icon {
    position: absolute;
    left: 15px;
    transition: transform 0.3s ease;
}

.accordion-header {
    width: 100%;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    user-select: none;
}


.mobile-accordion.open .accordion-icon {
    transform: rotate(-180deg);
}

.accordion-body li a {
    display: block;
    padding: 10px 0;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

    .accordion-body li a:hover {
        color: #6c7ae0; /* رنگ آبی/بنفش برای مدرن شدن */
    }

/* ================= OFFCANVAS HEADER ================= */
.offcanvas-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
    background: #fff;
}

/* ❌ CLOSE BUTTON */
.offcanvas-close {
    position: absolute;
    left: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #111;
    cursor: pointer;
    padding: 5px;
}

.offcanvas-back {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    font-size: 20px;
    color: #111;
    cursor: pointer;
    padding: 5px;
}

.offcanvas-close:hover {
    opacity: 0.7;
}

.all-product-link a, all-product-link a:hover {
    color: #222;
}

.accordion-header span {
    color: #222;
}

.panel-title {
    color: #222;
}

.mobile-panel-header span {
    color: #222;
}

.mobile-lvl2-item span {
    color: #222;
}

.mobile-panel-header a {
    color: #222;
}

.mobile-lvl2-item a {
    color: #222;
}
