/* AhanBox Header - RTL */
.ahanbox-header {
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .06);
    /* سایه خیلی کم */
    position: relative;
    z-index: 999;
}
 /* Mobile icons: default hidden on desktop */
 .ahanbox-micon {
     display: none;
 }
.ahanbox-header__top {
    max-width: 1300px;
    margin: 0 auto;
    padding: 14px 16px 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    direction: rtl;
}

.ahanbox-brand {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
}

.ahanbox-brand__link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.ahanbox-brand img {
    max-height: 52px;
    width: auto;
    display: block;
}

.ahanbox-search {
flex: 1 1 auto;
    display: flex;
    padding: 0 20px;
    justify-content: flex-start;
}
.ahanbox-hotline {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.ahanbox-hotline:hover .ahanbox-hotline__phone {
    color: #BF0413;
}
.ahanbox-search__form {
width: min(650px, 100%);
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(240, 240, 240, 1) 100%);
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 0 20px 0 5px;
    gap: 10px;
    flex-direction: row-reverse;
}
input.ahanbox-search__input {
    border: none;
    padding: 0px;
}
.ahanbox-search__btn {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;
}
button.ahanbox-search__btn {
    padding: 4px;
}
.ahanbox-search__input {
    border: 0;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 14px;
    color: #333;
    text-align: right;
    padding: 0 4px;
}

.ahanbox-hotline {
flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-direction: row-reverse;
}

.ahanbox-hotline__avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
   
}

.ahanbox-hotline__meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-align: right;
}

.ahanbox-hotline__phone {
    font-weight: 700;
    font-size: 15px;
    color: #111;
    letter-spacing: .2px;
}

.ahanbox-hotline__label {
    font-size: 12px;
    color: #595959;
    white-space: nowrap;
}

/* NAV ROW */
.ahanbox-header__nav {
    border-top: 1px solid #f1f1f1;
}

.ahanbox-navwrap {
    max-width: 1300px;
    margin: 0 auto;
    padding: 8px 16px 12px;
    direction: rtl;
}

.ahanbox-navtoggle {
    display: none;
    border: 1px solid #eee;
    background: #fff;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
}

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

.ahanbox-nav .ahanbox-menu>li {
    position: relative;
}

/* فقط لینک‌های سطح اول منوی اصلی */
.ahanbox-nav .ahanbox-menu>li>a {
text-decoration: none;
    color: #1f2937;
    font-size: 13.5px;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    flex-direction: row;
}
/* =========================
   AhanBox Menu SVG icon colors
   normal: #334155
   hover : #BF0413
   ========================= */

/* رنگ پیشفرض آیکن‌های svg */
.ahanbox-nav .ahanbox-menu a .ahanbox-mi-icon--svg {
    color: #334155;
}

/* روی هاور/فعال شدن آیتم */
.ahanbox-nav .ahanbox-menu li:hover>a .ahanbox-mi-icon--svg,
.ahanbox-nav .ahanbox-menu li:focus-within>a .ahanbox-mi-icon--svg,
.ahanbox-nav .ahanbox-menu li.current-menu-item>a .ahanbox-mi-icon--svg,
.ahanbox-nav .ahanbox-menu li.current-menu-ancestor>a .ahanbox-mi-icon--svg {
    color: #BF0413;
}

/* اطمینان: خود svg از currentColor تبعیت کند */
.ahanbox-nav .ahanbox-menu a .ahanbox-mi-icon--svg svg {
    fill: currentColor;
}
/* لینک‌های ستون راست (سطح 2) داخل مگا */
.ahanbox-nav .ahanbox-mega__lvl2>li>a {
    text-decoration: none;
    color: #111;
    font-size: 14px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-direction: row-reverse;
}
/* لینک‌های داخل پنل صورتی */
.ahanbox-nav .ahanbox-mega__group-title,
.ahanbox-nav .ahanbox-mega__group-list a {
    text-decoration: none;
    display: block;
    flex-direction: initial;
    /* جلوگیری از row-reverse کلی */
}
.ahanbox-nav .ahanbox-mega__group-title {
    color: #bf0413;
    font-weight: 800;
    font-size: 16px;
}

.ahanbox-nav .ahanbox-mega__group-list a {
    color: #1f2937;
    font-size: 13.5px;
    padding: 6px 0;
}

/* فقط لینک‌های داخل زیرمنوها (سطح 2 به بعد) */
.ahanbox-nav .ahanbox-menu ul.sub-menu li>a {
    text-decoration: none;
    color: #1f2937;
    font-size: 13.5px;
    padding: 8px 12px;
    display: block;
    /* برای راست‌چین کامل */
    text-align: right;
    /* راست‌چین */
    direction: rtl;
    /* RTL */
    line-height: 1.9;
}
.ahanbox-nav .ahanbox-menu ul.sub-menu li>a:hover {
    color: #bf0413;
}
/* لینک‌های داخل پنل صورتی (group list) */
.ahanbox-nav .ahanbox-mega__group-list li>a {
    display: block;
    text-align: right;
    direction: rtl;
    line-height: 1.9;
}
/* فقط آیتم‌های سطح اول (منوی اصلی) که زیرمنو دارند */
.ahanbox-nav .ahanbox-menu>li.menu-item-has-children>a:after {
    content: "▾";
    font-size: 12px;
    margin-right: 6px;
    color: #bf0413;
}
/* =========================
   AhanBox Two-Column Submenu (FIXED)
   ستون راست: سطح 2
   ستون چپ: سطح 3 (مربوط به آیتم فعال)
   ========================= */

.ahanbox-nav .ahanbox-menu>li {
    position: relative;
}

/* پنل dropdown سطح 2 */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;

    width: 620px;
    min-height: 420px;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);

    /* مهم: فضای ستون چپ را رزرو می‌کنیم تا آیتم‌های ستون راست زیر پنل چپ نروند */
    padding: 14px;
    padding-left: calc(55% + 24px);
    /* 55% پنل چپ + فاصله */

    margin: 0;
    list-style: none;
    display: none;
    z-index: 9999;

    box-sizing: border-box;
    direction: rtl;
}

/* نمایش پنل روی هاور */
.ahanbox-nav .ahanbox-menu>li:hover>ul.sub-menu,
.ahanbox-nav .ahanbox-menu>li:focus-within>ul.sub-menu {
    display: block;
}

/* Hover-Bridge برای جلوگیری از بسته شدن (گپ بین آیتم و پنل) */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu::after {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    left: 0;
    height: 12px;
    background: transparent;
}

/* بک‌گراند پنل چپ */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 14px;
    /* ستون چپ */
    width: calc(55% - 14px);
    height: calc(100% - 28px);
  
    border-radius: 16px;
    pointer-events: none;
}

/* ستون راست: آیتم‌های سطح 2 (لیست عمودی) */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li {
    position: relative;
    margin: 0;
    padding: 0;
    width: 100%;
    /* کل ستون راست */
}

/* لینک سطح 2 */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li>a {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    color: #111;
    text-decoration: none;
}

/* فلش (مثل عکس) */
/* فلش بعد از متن (نه قبل) */
.ahanbox-mega__lvl2>li.menu-item-has-children>a:after {
    content: "←";
    font-size: 18px;
    color: #bf0413;
    margin-right: 10px;
    /* چون RTL هستی، فاصله سمت راست بهتره */
}

/* اگر قبلاً :before داشتی، خنثی‌اش کن */
.ahanbox-mega__lvl2>li.menu-item-has-children>a:before {
    content: none !important;
}

/* حالت فعال/هاور آیتم سطح 2 */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li:hover>a,
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li:focus-within>a,
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li.is-active>a {
    background: #fdecee;
    color: #bf0413;
    width: 320px;
}

/* ========= پنل چپ: زیرمنو سطح 3 ========= */

/* مخفی پیش‌فرض */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li>ul.sub-menu {
    display: none;

    position: absolute !important;
    top: 14px;
    left: 14px;

    width: calc(55% - 14px);
    height: calc(100% - 28px);

    overflow: auto;
    padding: 16px;
    margin: 0;

    list-style: none;
    border: 0;
    background: transparent;
    border-radius: 16px;
    box-shadow: none;

    box-sizing: border-box;
}

.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li.is-open>ul.sub-menu {
    display: block !important;
}

/* آیتم‌های داخل پنل چپ */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li>ul.sub-menu>li>a {
    display: block;
    padding: 7px 0;
    font-size: 13.5px;
    color: #1f2937;
    text-decoration: none;
}

/* bullet مثل عکس */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li>ul.sub-menu>li>a:before {
    content: "•";
    margin-left: 8px;
    color: #111;
}

/* هاور پنل چپ */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li>ul.sub-menu>li>a:hover {
    color: #bf0413;
}
@media (max-width:980px) {
    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu {
        position: static;
        width: 100%;
        min-height: auto;
        display: none;
        box-shadow: none;
        padding: 0;
        border: 0;
        border-radius: 0;
    }

    .ahanbox-nav .ahanbox-menu>li.is-open>ul.sub-menu {
        display: block;
    }

    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu::before,
    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu::after {
        display: none;
    }

    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li {
        width: 100%;
    }

    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li>ul.sub-menu {
        position: static !important;
        display: none;
        width: 100%;
        height: auto;
        padding: 0 14px;
    }

    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu>li.is-active>ul.sub-menu {
        display: block;
    }
}
.ahanbox-search-overlay {
    display: none;
}
/* Responsive */
@media (max-width: 980px) {
.ahanbox-header.is-search-open {
        z-index: 10001;
    }

    .ahanbox-header.is-search-open .ahanbox-search {
        position: relative;
        z-index: 10002;
    }

    .ahanbox-search-overlay__backdrop {
        z-index: 10000;
        /* پایین‌تر از سرچ */
    }
    /* -------------------------------------------------
     0) CLEANUP: دکمه متنی قدیمی منو (داخل navwrap) مخفی
  ------------------------------------------------- */
    .ahanbox-navwrap>.ahanbox-navtoggle {
        display: none !important;
    }

    /* -------------------------------------------------
     1) MOBILE TOP BAR: search | logo | burger
  ------------------------------------------------- */
 .ahanbox-header__top {
     direction: ltr !important;
     align-items: center !important;
 }

    /* جایگذاری دقیق */
.ahanbox-navtoggle {
    grid-column: 1;
    justify-self: left;
}

.ahanbox-brand {
    grid-column: 2;
    justify-self: center;
}

.ahanbox-searchtoggle {
    grid-column: 3;
    justify-self: right;
}
.ahanbox-micon {
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.ahanbox-micon svg {
    display: block;
}
    /* آیکن‌های موبایل (فقط آیکن، بدون باکس) */
    .ahanbox-micon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: 0 !important;
        padding: 8px !important;
        border-radius: 12px;
        line-height: 0;
        cursor: pointer;
    }

    /* لوگو در موبایل */
    .ahanbox-brand img {
        max-height: 40px !important;
    }
 /* آیکن SVG سرچ وقتی بازه مخفی شود */
 .ahanbox-header.is-search-open .ahanbox-searchtoggle svg {
     opacity: 0;
     transform: scale(.6) rotate(-10deg);
     transition: transform .18s ease, opacity .18s ease;
 }

 /* دکمه سرچ: پایه */
 .ahanbox-searchtoggle {
     position: relative;
 }

 /* ضربدر (pseudo) روی همان دکمه */
 .ahanbox-searchtoggle::before,
 .ahanbox-searchtoggle::after {
     content: "";
     position: absolute;
     top: 50%;
     left: 50%;
     width: 18px;
     height: 2px;
     background: #BDBDBD;
     border-radius: 2px;

     opacity: 0;
     transform-origin: center;
     transition: transform .18s ease, opacity .18s ease;
 }

 /* حالت بسته: ضربدر دیده نشود */
 .ahanbox-searchtoggle::before,
 .ahanbox-searchtoggle::after {
     transform: translate(-50%, -50%) scale(.7) rotate(0deg);
 }

 /* حالت باز: ضربدر نمایش داده شود */
 .ahanbox-header.is-search-open .ahanbox-searchtoggle::before,
 .ahanbox-header.is-search-open .ahanbox-searchtoggle::after {
     opacity: 1;
 }

 .ahanbox-header.is-search-open .ahanbox-searchtoggle::before {
     transform: translate(-50%, -50%) rotate(45deg);
 }

 .ahanbox-header.is-search-open .ahanbox-searchtoggle::after {
     transform: translate(-50%, -50%) rotate(-45deg);
 }
    /* هات‌لاین موبایل نمایش نده */
    .ahanbox-hotline {
        display: none !important;
    }

    /* -------------------------------------------------
     2) DESKTOP SEARCH BAR: در موبایل کلاً مخفی
     (چون سرچ باید فقط overlay باشد)
  ------------------------------------------------- */
    .ahanbox-search {
        display: none !important;
    }

    /* -------------------------------------------------
     3) NAV (mobile dropdown)
  ------------------------------------------------- */
    .ahanbox-header__nav {
        border-top: 0;
    }

    .ahanbox-navwrap {
        padding: 0 12px 12px;
        direction: rtl;
    }

    .ahanbox-nav {
        display: none;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
        padding: 10px;
        margin-top: 8px;
    }

    .ahanbox-nav.is-open {
        display: block;
    }

    .ahanbox-nav .ahanbox-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ahanbox-nav .ahanbox-menu li.is-open>ul.sub-menu {
        display: block;
    }

    /* -------------------------------------------------
     4) SEARCH OVERLAY (opens when header has is-search-open)
  ------------------------------------------------- */
    .ahanbox-header.is-search-open .ahanbox-search-overlay {
        display: block;
    }

    .ahanbox-search-overlay {
        display: none;
        /* default */
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        padding: 10px 12px 14px;
        background: rgba(255, 255, 255, .92);
        backdrop-filter: blur(10px);
        z-index: 9999;
    }

    /* وقتی سرچ باز است، لوگو وسط مخفی شود ولی ستون‌بندی نپرد */
    .ahanbox-header.is-search-open .ahanbox-brand {
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* ردیف: X | SearchBox | Spacer */
    .ahanbox-search-overlay__row {
        display: grid;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        gap: 10px;
    }

    .ahanbox-search-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 0;
        padding: 8px;
        cursor: pointer;
        line-height: 0;
    }

    .ahanbox-search-overlay__form {
        height: 56px;
        border-radius: 22px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 1) 0%, rgba(240, 240, 240, 1) 100%);
        border: 1px solid #eee;
        display: flex;
        align-items: center;
        overflow: hidden;
        padding: 0 18px 0 10px;
        gap: 10px;
        direction: rtl;

        /* وسط بودن فرم در ستون میانی */
        justify-self: center;
        width: 100%;
        max-width: 520px;
    }

    .ahanbox-search-overlay__input {
        border: 0;
        background: transparent;
        outline: none;
        width: 100%;
        font-size: 18px;
        color: #555;
        text-align: right;
    }

    .ahanbox-search-overlay__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        line-height: 0;
    }

    /* کلیک بیرون => بسته شدن */
    .ahanbox-search-overlay__backdrop {
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 9998;
    }
}
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 800px;
    min-height: 440px;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
    padding: 14px;
    margin: 0;
    z-index: 9999;

    display: none;
    box-sizing: border-box;
}

.ahanbox-nav .ahanbox-menu>li:hover>ul.sub-menu.ahanbox-mega,
.ahanbox-nav .ahanbox-menu>li:focus-within>ul.sub-menu.ahanbox-mega {
    display: flex;
    gap: 14px;
}

/* hover bridge */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega::after {
    content: "";
    position: absolute;
    top: -12px;
    right: 0;
    left: 0;
    height: 12px;
}

/* ستون راست */
.ahanbox-mega__right {
    width: 42%;
}
/* Single-mode: فقط ستون راست نمایش داده شود، بدون دستکاری display والد */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega.ahanbox-mega--single .ahanbox-mega__right {
    width: 100% !important;
}

.ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega.ahanbox-mega--single .ahanbox-mega__left {
    display: none !important;
}
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega.ahanbox-mega--single .ahanbox-mega__right {
    width: 100% !important;
}

.ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega.ahanbox-mega--single .ahanbox-mega__left {
    display: none !important;
}
.ahanbox-mega__lvl2 {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
/* خیلی مهم: زیرمنوی واقعی (ul.sub-menu) داخل ستون راست را مخفی کن
   چون پنل صورتی باید آن‌ها را رندر کند */
.ahanbox-mega__lvl2>li>ul.sub-menu {
    display: none !important;
}
.ahanbox-mega__lvl2>li>a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 12px;
    color: #111;
    text-decoration: none;
    font-size: 14px;
}
.ahanbox-mega__lvl2>li.menu-item-has-children>a:before,
.ahanbox-mega__lvl2>li.menu-item-has-children>a:after {
    content: none !important;
}
.ahanbox-mega__lvl2>li.menu-item-has-children>a:before {
    content: "←";
    font-size: 18px;
    color: #bf0413;
    margin-left: 10px;
}
/* آیکن SVG کنار آیتم‌های سطح 2 در مگا */
.ahanbox-mega__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    left: 16px !important;
        /* چسبیده‌تر به چپ */
        width: 22px !important;
        height: 22px !important;
    /* قابل تغییر */
    margin-right: 10px;
    /* چون RTL هستی: فاصله سمت راست */
    flex: 0 0 auto;
    color: #bf0413;
    /* رنگ آیکن */
}

.ahanbox-mega__arrow-svg {
    width: 18px;
    height: 18px;
    display: block;
}
.ahanbox-mega__lvl2>li:hover>a,
.ahanbox-mega__lvl2>li.is-active>a {
background: #fdecee;
    color: #bf0413;
    width: 100%;
    padding-right: 10px;
}

.ahanbox-mega__left {
    width: 100%;
    background: #fdecee;
    border-radius: 16px;
    padding: 25px 30px;
    box-sizing: border-box;
    overflow: visible; /* ✅ بدون اسکرول داخلی */
}


/* هد پنل */
.ahanbox-mega__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ahanbox-mega__back {
    border: 1px solid rgba(191, 4, 19, .35);
    background: #fff;
    color: #bf0413;
    border-radius: 12px;
    width: 46px;
    height: 46px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ahanbox-mega__title {
    font-weight: 800;
    color: #bf0413;
    font-size: 18px;
    text-align: right;
    width: 100%;
}

/* گروه‌ها/لیست‌ها داخل پنل */
.ahanbox-mega__columns {
    display: block;
}

.ahanbox-mega__group {
    margin-bottom: 14px;
}

.ahanbox-mega__group-title {
    display: block;
    font-weight: 800;
    color: #bf0413;
    text-decoration: none;
    margin-bottom: 8px;
}

.ahanbox-mega__group-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ahanbox-mega__group-list li a {
    display: block;
    padding: 6px 0;
    color: #1f2937;
    text-decoration: none;
    font-size: 13.5px;
}

.ahanbox-mega__group-list li a:before {
    content: "•";
    margin-left: 8px;
    color: #111;
}

.ahanbox-mega__group-list li a:hover {
    color: #bf0413;
}

/* موبایل: mega را مثل آکاردئون عادی کن */
@media (max-width:980px) {
/* =========================
   AhanBox Mega Menu (Auto size)
   ========================= */


    /* روی hover */
    .ahanbox-nav .ahanbox-menu>li:hover>ul.sub-menu.ahanbox-mega,
    .ahanbox-nav .ahanbox-menu>li:focus-within>ul.sub-menu.ahanbox-mega {
        display: flex;
        gap: 14px;
        align-items: flex-start;
        /* ✅ ارتفاع را از کش آمدن جلوگیری می‌کند */
    }

    /* ستون‌ها */
    .ahanbox-mega__right {
        width: 360px;
        /* ✅ ستون سفید */
        max-width: 92vw;
    }

    .ahanbox-mega__left {
        width: 520px;
        /* ✅ پنل صورتی (شامل باکس دوم/سوم) */
        max-width: 92vw;
        background: #fdecee;
        border-radius: 16px;
        padding: 16px;
        box-sizing: border-box;
        overflow: auto;
        max-height: 70vh;
        /* ✅ اگر زیاد شد اسکرول بگیرد */
    }

    /* حالت single: فقط ستون سفید */
    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega.ahanbox-mega--single .ahanbox-mega__right {
    width: max-content
        /* یا اگر می‌خوای دقیقاً اندازه متن باشد: width:max-content */
    }

    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega.ahanbox-mega--single .ahanbox-mega__left {
        display: none !important;
    }

    .ahanbox-nav .ahanbox-menu>li.is-open>ul.sub-menu.ahanbox-mega {
        display: block;
    }

    .ahanbox-mega__left {
        display: none;
    }

    .ahanbox-mega__right {
        width: 100%;
    }
}
/* ===== Mega panel body: lvl3 + lvl4 side-by-side (RTL) ===== */
.ahanbox-mega__panel-body {
    display: flex;
    gap: 14px;
    direction: rtl;
}

/* باکس وسط: سطح3 */
.ahanbox-mega__lvl3pane {
width: 100%;
    border-radius: 14px;
    box-sizing: border-box;
}

.ahanbox-mega__lvl3title {
    font-weight: 800;
    color: #bf0413;
    margin-bottom: 10px;
    text-align: right;
}

.ahanbox-mega__lvl3list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.ahanbox-mega__lvl3item>a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: #111;
    text-align: right;
}



.ahanbox-mega__lvl3item:hover>a,
.ahanbox-mega__lvl3item.is-active>a {
    background: #fff;
    color: #bf0413;
    
}


/* بی‌اثر، فقط safety */

.ahanbox-mega__panel.lvl4-empty .ahanbox-mega__lvl3pane {
    width: 100% !important;
}

.ahanbox-mega__panel.lvl4-empty .ahanbox-mega__lvl4pane {
    display: none !important;
}
/* باکس سوم: سطح4 */
.ahanbox-mega__lvl4pane {
    width: 100%;
    background: #fdecee;
    border-radius: 14px;
    padding: 12px;
    box-sizing: border-box;
}

.ahanbox-mega__lvl4title {
    font-weight: 900;
    color: #bf0413;
    margin-bottom: 10px;
    text-align: right;
}

.ahanbox-mega__lvl4list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ahanbox-mega__lvl4list li a {
    display: block;
    padding: 6px 0;
    text-decoration: none;
    color: #1f2937;
    text-align: right;
}

.ahanbox-mega__lvl4list li a:before {
    content: "•";
    margin-left: 8px;
    color: #111;
}

.ahanbox-mega__lvl4list li a:hover {
    color: #bf0413;
}

/* اگر lvl4 خالی بود، باکس سوم را کمی کم‌رنگ کن */
.ahanbox-mega__panel.lvl4-empty .ahanbox-mega__lvl4pane {
    opacity: .55;
}
/* لینک‌ها باید ریلتیو باشند تا فلش absolut بشود */
.ahanbox-mega__lvl2>li>a,
.ahanbox-mega__lvl3item>a,
.ahanbox-mega__lvl4list li>a {
    position: relative;
    padding-left: 44px;
    /* جا برای فلش سمت چپ */
}

/* فلش همیشه چسبیده به چپ */
.ahanbox-mega__arrow {
    position: absolute;
    left: 12px;
    /* چسبیده به چپ */
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #bf0413;
}

.ahanbox-mega__arrow-svg {
    width: 26px;
    height: 26px;
    display: block;
}
/* =========================
   AhanBox Mega Menu - AUTO SIZE (override)
   (باید آخر فایل باشد)
   ========================= */

/* خود dropdown دیگر ثابت نباشد */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega {
    width: fit-content !important;
    min-width: max-content!important;
    /* حداقل منطقی برای ستون سفید */
    max-width: min(92vw, 980px) !important;

    height: auto !important;
    min-height: 0 !important;
    /* ✅ حذف قد ثابت */
}

/* وقتی باز می‌شود، ارتفاع را با محتوا بگیرد */
.ahanbox-nav .ahanbox-menu>li:hover>ul.sub-menu.ahanbox-mega,
.ahanbox-nav .ahanbox-menu>li:focus-within>ul.sub-menu.ahanbox-mega {
    align-items: flex-start !important;
    /* ✅ قد اضافه ایجاد نشود */
}

/* ستون سفید */
.ahanbox-mega__right {
    flex: 0 0 360px !important;
    width: 360px !important;
}
.ahanbox-mega__left {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    /* ✅ هیچ اسکرولی در باکس‌ها نباشد */
}

/* داخل پنل: باکس 2 و 3 کنار هم */
.ahanbox-mega__panel-body {
    align-items: flex-start !important;
}

/* باکس دوم (سطح3) */
.ahanbox-mega__lvl3pane {
  
    width: 320px !important;
}

/* باکس سوم (سطح4) */
.ahanbox-mega__lvl4pane {
    flex: 0 0 320px !important;
    width: 320px !important;
}

/* وقتی باکس سوم وجود ندارد: باکس دوم کل عرض پنل را بگیرد */
.ahanbox-mega__panel.lvl4-empty .ahanbox-mega__lvl3pane {
    flex: 0 0 auto !important;
    width: fit-content !important;
}

/* حالت single (وقتی پنل صورتی مخفی است) */
/* حالت single: باکس سفید حداقل عرض داشته باشد (جمع نشود) */
.ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega.ahanbox-mega--single .ahanbox-mega__right {
    flex: 0 0 320px !important;
    width: 320px !important;
    /* ✅ ثابتِ خوش‌فرم */
    max-width: 92vw !important;
}

.ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega.ahanbox-mega--single .ahanbox-mega__left {
    display: none !important;
}
/* FIX: جلوگیری از افتادن فلش روی متن */
.ahanbox-mega__lvl2>li>a,
.ahanbox-mega__lvl3item>a {
    padding-left: 64px !important;
    /* جا برای فلش */
}

/* اگر متن بلند شد روی فلش نیاد */
.ahanbox-mega__lvl2>li>a,
.ahanbox-mega__lvl3item>a {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* Menu item icons (PNG/SVG) */
.ahanbox-mi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 10px;
    /* چون RTL است، فاصله بین آیکن و متن */
    flex: 0 0 auto;
}

.ahanbox-mi-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.ahanbox-mi-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* متن کنار آیکن */
.ahanbox-mi-text {
    display: inline-block;
}

@media (max-width: 980px) {

    /* دکمه متنی قدیمی منو داخل navwrap مخفی */
    .ahanbox-navwrap>.ahanbox-navtoggle {
        display: none !important;
    }

    /* Top bar: search icon | logo | burger */
    .ahanbox-header__top {
        display: grid !important;
        grid-template-columns: 44px 1fr 44px;
        align-items: center;
        gap: 10px !important;
        padding: 14px 16px 10px !important;
    }

    .ahanbox-searchtoggle {
        grid-column: 1;
        justify-self: start;
    }

    .ahanbox-brand {
        grid-column: 2;
        justify-self: center;
    }

    .ahanbox-navtoggle {
        grid-column: 3;
        justify-self: end;
    }

    .ahanbox-micon {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        background: transparent !important;
        border: 0 !important;
        padding: 8px !important;
        border-radius: 12px;
        line-height: 0;
        cursor: pointer;
    }

    .ahanbox-hotline {
        display: none !important;
    }

    .ahanbox-brand img {
        max-height: 40px !important;
    }
.ahanbox-search {
    transform: scale(.92);
    opacity: 0;
    filter: blur(2px);
    transform-origin: center center;
    transition:
        transform 260ms cubic-bezier(.2, .9, .2, 1),
        opacity 200ms ease,
        filter 220ms ease;
    will-change: transform, opacity, filter;
}

.ahanbox-header.is-search-open .ahanbox-search {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
}
    /* ✅ سرچ دسکتاپ در موبایل: پیش‌فرض مخفی */
    .ahanbox-search {
        display: none !important;
        padding: 0 !important;
    margin: -55px 0 0 0 !important;

        /* وقتی باز شد، دقیقاً وسطِ تاپ‌بار (ستون لوگو) بیاد */
        grid-column: 2;
        justify-self: center;
        align-self: center;
        width: 100%;
        max-width: 520px;
    }

    /* ✅ وقتی سرچ باز شد: لوگو مخفی + سرچ ظاهر */
    .ahanbox-header.is-search-open .ahanbox-brand {
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .ahanbox-header.is-search-open .ahanbox-search {
        display: flex !important;
    }

    /* کمی کوچکتر از دسکتاپ */
    .ahanbox-header.is-search-open .ahanbox-search__form {
        height: 44px !important;
        border-radius: 16px !important;
        width: 100%;
        max-width: 520px;
        padding: 0 14px 0 8px !important;
    }

    .ahanbox-header.is-search-open .ahanbox-search__input {
        font-size: 15px !important;
    }

    /* بک‌دراپ برای بستن با تاچ بیرون */
    .ahanbox-search-overlay__backdrop {
        position: fixed;
        inset: 0;
        background: transparent;
        z-index: 998;
    }

    /* هدر باید بالای بک‌دراپ باشد */
    .ahanbox-header {
        z-index: 999;
    }
}
/* =========================
   MOBILE MEGA LIKE SCREENSHOT (pink panel under item)
   put at END of CSS file
   ========================= */
@media (max-width:980px){

  /* خود dropdown مگا در موبایل باید در جریان صفحه باشد */
  .ahanbox-nav .ahanbox-menu > li > ul.sub-menu.ahanbox-mega{
    position: static !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    display: none !important;       /* فقط وقتی والد is-open شد */
    padding: 10px 0 0 !important;
    margin: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
  }

  /* وقتی والد (آیتم سطح اول) باز شد */
  .ahanbox-nav .ahanbox-menu > li.is-open > ul.sub-menu.ahanbox-mega{
    display: block !important;
  }

  /* داخل مگا: ستونی */
  .ahanbox-nav .ahanbox-menu > li > ul.sub-menu.ahanbox-mega{
    flex-direction: column !important;
    gap: 10px !important;
  }

  /* ستون سفید (لیست سطح 2) */
  .ahanbox-mega__right{
    width: 100% !important;
    flex: none !important;
  }

  /* آیتم‌های سطح2 شبیه ردیف‌های عکس */
  .ahanbox-mega__lvl2 > li > a{
    border-radius: 16px !important;
    padding: 14px 14px !important;
    background: #fff !important;
  }

  .ahanbox-mega__lvl2 > li.is-active > a{
    background: #fdecee !important;
    color: #bf0413 !important;
  }

  /* پنل صورتی: پیش‌فرض مخفی (تا وقتی روی یک آیتم سطح2 کلیک نشده) */
  .ahanbox-mega__left{
    display: none !important;
    width: 100% !important;
    flex: none !important;
    background: #fdecee !important;
    border-radius: 18px !important;
    padding: 18px 18px !important;
    box-shadow: none !important;
  }

  /* وقتی dropdown کلاس is-panel-open گرفت، پنل صورتی را نشان بده */
  .ahanbox-nav .ahanbox-menu > li > ul.sub-menu.ahanbox-mega.is-panel-open .ahanbox-mega__left{
    display: block !important;
  }

  /* داخل پنل، ستون‌ها زیر هم (مثل عکس) */
  .ahanbox-mega__panel-body{
    flex-direction: column !important;
    gap: 12px !important;
  }

  .ahanbox-mega__lvl3pane,
  .ahanbox-mega__lvl4pane{
    width: 100% !important;
  }

  /* بولت‌ها و فاصله‌ها */
  .ahanbox-mega__lvl4list li a,
  .ahanbox-mega__group-list li a{
    padding: 8px 0 !important;
  }
}
@media (max-width: 980px) {

    /* ✅ هر سطحی که is-open شد، زیرمنوش دقیقاً زیر خودش باز شود */
    .ahanbox-nav .ahanbox-menu li.is-open>ul.sub-menu {
        display: block !important;
    }
}@media (min-width: 981px) {

  

    /* ستون راست ثابت */
    .ahanbox-mega__right {
        flex: 0 0 340px !important;
        width: 340px !important;
    }

    /* لیست سطح2: چندستونه برای جلوگیری از قد خیلی زیاد */
    .ahanbox-mega__lvl2 {
        display: block !important;
        column-width: 170px;
        column-gap: 12px;
    }

    .ahanbox-mega__lvl2>li {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }

    /* پنل صورتی: دو باکس کنار هم استاندارد */
    .ahanbox-mega__lvl3pane {
        flex: 0 0 280px !important;
        width: 280px !important;
    }

    .ahanbox-mega__lvl4pane {
        flex: 0 0 280px !important;
        width: 280px !important;
    }

    /* سطح4 هم ستونی شود اگر زیاد بود */
    .ahanbox-mega__lvl4list {
        column-width: 200px;
        column-gap: 12px;
    }

    .ahanbox-mega__lvl4list>li {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }
}
/* ================================
   FINAL STANDARD OVERRIDES
   Mobile: real accordion
   Desktop: Mega states + no inner scroll
================================ */

/* -------- Mobile (Standard nested accordion) -------- */
@media (max-width: 980px) {
    .ahanbox-nav .ahanbox-menu li.is-open>ul.sub-menu {
        display: block !important;
        /* ✅ زیرمنو زیر همان آیتم باز می‌شود */
    }
}

/* -------- Desktop Mega (Standard behavior) -------- */
@media (min-width: 981px) {

 

    /* ✅ هیچ اسکرولی داخل باکس‌ها نباشد */
    .ahanbox-mega__right,
    .ahanbox-mega__left,
    .ahanbox-mega__panel,
    .ahanbox-mega__panel-body,
    .ahanbox-mega__lvl2,
    .ahanbox-mega__lvl3list,
    .ahanbox-mega__lvl4list {
        overflow: visible !important;
        max-height: none !important;
        height: auto !important;
    }

    /* ستون راست (lvl2) */
    .ahanbox-mega__right {
        flex: 0 0 340px !important;
        width: 340px !important;
    }

    /* ستون چپ (پنل) */
    .ahanbox-mega__left {
        flex: 1 1 auto !important;
        width: auto !important;
        max-width: none !important;
        height: auto !important;
        max-height: none !important;
    }

    /* پنل: دو باکس استاندارد کنار هم */
    .ahanbox-mega__panel-body {
        display: flex !important;
        gap: 18px !important;
        align-items: flex-start !important;
    }

    .ahanbox-mega__lvl3pane {
        flex: 0 0 280px !important;
        width: 280px !important;
    }

    .ahanbox-mega__lvl4pane {
        flex: 0 0 280px !important;
        width: 280px !important;
    }

    /* ✅ اگر آیتم زیاد بود: به جای اسکرول، ستونی شود */
    .ahanbox-mega__lvl2 {
        display: block !important;
        column-width: 170px;
        column-gap: 12px;
    }

    .ahanbox-mega__lvl2>li {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }

    .ahanbox-mega__lvl4list {
        column-width: 200px;
        column-gap: 12px;
    }

    .ahanbox-mega__lvl4list>li {
        break-inside: avoid;
        -webkit-column-break-inside: avoid;
    }

    /* ✅ استاندارد: هنگام باز شدن مگا (idle) فقط lvl2 دیده شود */
    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega.ahanbox-mega--idle .ahanbox-mega__left {
        display: none !important;
    }

    /* ✅ تا وقتی lvl3 فعال نشده، باکس lvl4 نمایش داده نشود */
    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega:not(.ahanbox-mega--lvl3-active) .ahanbox-mega__lvl4pane {
        display: none !important;
    }

    /* اگر lvl4 نداریم (empty)، باز هم lvl4 را مخفی کن */
    .ahanbox-nav .ahanbox-menu>li>ul.sub-menu.ahanbox-mega .ahanbox-mega__panel.lvl4-empty .ahanbox-mega__lvl4pane {
        display: none !important;
    }
}

/* بهبود کنتراست متن‌های عمومی در صفحات المنتور */
.elementor-page p,
.elementor-page em,
.elementor-page strong,
.elementor-page li,
.elementor-page .elementor-widget-text-editor {
  color: #373737;
}

/* تیترها */
.elementor-page h1,
.elementor-page h2,
.elementor-page h3,
.elementor-page h4,
.elementor-page h5,
.elementor-page h6 {
  color: #373737;
}

/* متن توضیح Icon Box که خودت هم در گزارش دیدی */
.elementor-page .elementor-icon-box-description {
  color: #373737;
}

#breadcrumbs a {
  text-decoration: none;
  /* border-bottom: 1px solid currentColor; */
  padding-bottom: 1px;
  color:#A32952;
}
#breadcrumbs a:hover,
#breadcrumbs a:focus-visible {
  border-bottom-width: 2px;
}
