/* =====================================
   Wrapper کلی ویجت
===================================== */

.menu-ele-widget {
    position: relative;
    width: 100%;
}

/* nav عمومی */

.menu-ele-nav {
    width: 100%;
}

/* سوییچ بین دسکتاپ و موبایل */

.menu-ele-nav-desktop {
    display: none;
}

.menu-ele-nav-mobile {
    display: block;
}

@media (min-width: 1025px) {
    .menu-ele-nav-desktop {
        display: block;
    }
    .menu-ele-nav-mobile {
        display: none;
    }
}

/* =====================================
   دسکتاپ – استایل مشترک بین همه طرح‌ها
===================================== */

.menu-ele-menu-desktop {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    align-items: center;
    width: 100%;
}

.menu-ele-menu-desktop > .menu-ele-item {
    position: relative;
}

/* لینک سطح اول */

.menu-ele-menu-desktop > .menu-ele-item > .menu-ele-link {
    display: block;
    padding: 10px 14px;
    text-decoration: none;
    color: inherit;
    white-space: nowrap;
}

/* لینک سطح اول با آیکن */

.menu-ele-link-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.menu-ele-link-label {
    display: inline-block;
}

/* آیکن‌های باز/بستن روی سطح اول */

.menu-ele-top-icon {
    font-size: 10px;
    line-height: 1;
}

.menu-ele-top-icon-inner {
    display: inline-block;
    width: 12px;
    height: 12px;
    vertical-align: middle;
    margin-left: 4px;
    margin-right: 4px;
}

/* اگر SVG نداشتیم و فقط کاراکتر بود */

.menu-ele-top-icon:not(:has(.menu-ele-top-icon-inner)) {
    font-size: 11px;
}

/* پیش‌فرض: بسته */

.menu-ele-top-icon-open {
    display: none;
}
.menu-ele-top-icon-close {
    display: inline-block;
}

/* روی hover آیتم‌هایی که زیرمنو دارن، آیکن‌ها عوض می‌شن */

.menu-ele-menu-desktop > .menu-ele-item.has-children:hover .menu-ele-top-icon-open {
    display: inline-block;
}
.menu-ele-menu-desktop > .menu-ele-item.has-children:hover .menu-ele-top-icon-close {
    display: none;
}

/* hover سطح اول */

.menu-ele-menu-desktop > .menu-ele-item > .menu-ele-link:hover {
    text-decoration: none;
}

/* پایه‌ی پنل مگامنو – برای هر سه طرح */

.menu-ele-mega {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.18s ease;
}

body.rtl .menu-ele-mega {
    left: auto;
    right: 0;
}

.menu-ele-menu-desktop > .menu-ele-item.has-children:hover > .menu-ele-mega {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* گرید عمومی داخل پنل – در طرح‌ها override می‌شود */

.menu-ele-mega-grid {
    display: block;
}

/* =====================================
   طرح ۱ – مگامنو کارت‌بندی (classic)
===================================== */

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.22);
    padding: 16px 20px 18px;
    margin-top: 10px;
    min-width: 900px;
    max-width: calc(100vw - 40px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    backdrop-filter: blur(8px);
}

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(180px, 1fr));
    gap: 18px;
}

/* کارت‌ها */

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col {
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
    padding: 12px 14px 12px;
}

/* تیتر کارت */

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col-title {
    margin-bottom: 8px;
}

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col-title > a,
.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col-title > span {
    display: inline-block;
    font-weight: 600;
    padding-bottom: 5px;
    border-bottom: 2px solid rgba(148, 163, 184, 0.3);
    font-size: 0.95rem;
}

/* لیست لایه دوم */

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col .menu-ele-submenu {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
}

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col .menu-ele-submenu .menu-ele-item {
    margin-bottom: 3px;
}

/* لینک‌های داخل کارت‌ها */

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col .menu-ele-submenu .menu-ele-link {
    display: block;
    padding: 4px 0;
    text-decoration: none;
    color: inherit;
    white-space: normal;
    word-break: break-word;
    font-size: 0.94em;
    border-radius: 4px;
    transition: background-color 0.12s ease, transform 0.12s ease;
}

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col .menu-ele-submenu .menu-ele-link:hover {
    background: #f3f4ff;
    transform: translateY(-1px);
}

/* زیرمنوی لایه سوم */

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col .menu-ele-submenu .menu-ele-submenu {
    margin-top: 3px;
    padding-left: 10px;
    border-left: 1px dashed rgba(148, 163, 184, 0.5);
}

body.rtl .menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col .menu-ele-submenu .menu-ele-submenu {
    padding-left: 0;
    padding-right: 10px;
    border-left: none;
    border-right: 1px dashed rgba(148, 163, 184, 0.5);
}

/* لایه سوم به بعد – کارت‌های ریز */

.menu-ele-nav-desktop.menu-ele-layout-classic .menu-ele-mega-col .menu-ele-submenu .menu-ele-submenu .menu-ele-item {
    margin-bottom: 4px;
    padding: 4px 6px;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f9fafb;
}

/* =====================================
   طرح ۲ – منوی فلای‌اوت چندلایه (flyout)
===================================== */

/* پنل اصلی زیر آیتم هدر */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 10px 0;
    margin-top: 8px;
    min-width: 280px;
}

/* فقط یک ستون داریم */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-grid {
    display: block;
}

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col {
    position: relative;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col-title {
    display: none;
}

/* سطح ۱ – لیست عمودی */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col > .menu-ele-submenu.level-1 {
    list-style: none;
    margin: 0;
    padding: 4px 0;
}

/* آیتم‌های سطح ۱ */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col > .menu-ele-submenu.level-1 > .menu-ele-item {
    position: relative;
    margin: 0;
}

/* لینک سطح ۱ */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col > .menu-ele-submenu.level-1 > .menu-ele-item > .menu-ele-link,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col > .menu-ele-submenu.level-1 > .menu-ele-item > .menu-ele-link--nolink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 8px 16px;
    text-decoration: none;
    color: #0f172a;
    white-space: nowrap;
    font-size: 0.93rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

/* فلش کنار آیتم‌های دارای زیرمنو – سطح ۱ */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col > .menu-ele-submenu.level-1 > .menu-ele-item.has-children > .menu-ele-link::after {
    content: '›';
    font-size: 0.8rem;
    opacity: 0.6;
    margin-right: 6px;
    position: relative;
    top: -1px;
}

body.rtl .menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col > .menu-ele-submenu.level-1 > .menu-ele-item.has-children > .menu-ele-link::after {
    content: '‹';
    margin-right: 0;
    margin-left: 6px;
}

/* hover سطح ۱ */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col > .menu-ele-submenu.level-1 > .menu-ele-item > .menu-ele-link:hover {
    background: linear-gradient(90deg, #eef2ff 0%, #e0f2fe 100%);
    color: #0f172a;
}

/* سطح ۲+ – پنل‌های فلای‌اوت */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-2,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-3,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-4 {
    position: absolute;
    top: 0;
    left: 100%;
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 240px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.2);
    border: 1px solid rgba(148, 163, 184, 0.3);
    display: none;
    z-index: 1000;
}

body.rtl .menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-2,
body.rtl .menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-3,
body.rtl .menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-4 {
    left: auto;
    right: 100%;
}

/* نمایش زیرمنو هنگام hover روی والد */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu .menu-ele-item.has-children:hover > .menu-ele-submenu {
    display: block;
}

/* آیتم‌های سطح ۲+ */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-2 > .menu-ele-item,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-3 > .menu-ele-item,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-4 > .menu-ele-item {
    position: relative;
    margin: 0;
}

/* لینک‌های سطح ۲+ */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-2 > .menu-ele-item > .menu-ele-link,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-3 > .menu-ele-item > .menu-ele-link,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-4 > .menu-ele-item > .menu-ele-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 6px 14px;
    text-decoration: none;
    color: #0f172a;
    white-space: nowrap;
    font-size: 0.9rem;
    transition: background-color 0.12s ease, color 0.12s ease;
}

/* فلش سطح ۲+ – هم‌سطح متن */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-2 > .menu-ele-item.has-children > .menu-ele-link::after,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-3 > .menu-ele-item.has-children > .menu-ele-link::after {
    content: '›';
    font-size: 0.75rem;
    opacity: 0.6;
    margin-right: 6px;
    position: relative;
    top: -1px;
}

body.rtl .menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-2 > .menu-ele-item.has-children > .menu-ele-link::after,
body.rtl .menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-3 > .menu-ele-item.has-children > .menu-ele-link::after {
    content: '‹';
    margin-right: 0;
    margin-left: 6px;
}

/* hover روی لینک‌های سطح ۲+ */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-2 > .menu-ele-item > .menu-ele-link:hover,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-3 > .menu-ele-item > .menu-ele-link:hover,
.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu.level-4 > .menu-ele-item > .menu-ele-link:hover {
    background: #f3f4f6;
}

/* سطح‌های عمیق‌تر – pill */

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu .menu-ele-submenu .menu-ele-item {
    margin: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #f9fafb;
}

.menu-ele-nav-desktop.menu-ele-layout-flyout .menu-ele-mega-col .menu-ele-submenu .menu-ele-submenu .menu-ele-item > .menu-ele-link {
    padding: 4px 10px;
    font-size: 0.82rem;
}

/* =====================================
   طرح ۳ – مگامنو دیجی‌کالایی (digikala)
===================================== */

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega.menu-ele-mega-dk {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.35);
    margin-top: 10px;
    padding: 0;
    min-width: 960px;
    max-width: 1100px;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-inner {
    display: flex;
    align-items: stretch;
}

/* ستون چپ – لیست لایه دوم */

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-left {
    width: 260px;
    background: #f9fafb;
    border-inline-end: 1px solid rgba(148, 163, 184, 0.35);
    padding: 8px 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-left .menu-ele-submenu.level-1 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-left .menu-ele-item {
    margin: 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-left .menu-ele-link,
.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-left .menu-ele-link--nolink {
    display: block;
    padding: 8px 18px;
    text-decoration: none;
    color: #0f172a;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-left .menu-ele-link:hover {
    background: #eef2ff;
}

/* آیتم فعال در ستون چپ */

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-left .menu-ele-item.is-active > .menu-ele-link {
    background: #ffffff;
    font-weight: 600;
}

/* ستون راست – فقط گروه فعال دیده می‌شود */

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-right {
    flex: 1;
    padding: 12px 18px 14px;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group {
    display: none;
    min-width: 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group.is-active {
    display: block;
}

/* گروه فعال – لایه سوم‌ها در سه ستون */

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group > .menu-ele-submenu.level-2 {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 24px; /* فاصله بین ستون‌ها */
}

/* هر آیتم لایه سوم خودش یک ستون است */

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group > .menu-ele-submenu.level-2 > .menu-ele-item {
    margin: 0;
}

/* تایتل لایه سوم */

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group > .menu-ele-submenu.level-2 > .menu-ele-item > .menu-ele-link,
.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group > .menu-ele-submenu.level-2 > .menu-ele-item > .menu-ele-link--nolink {
    display: block;
    padding: 2px 0;
    font-weight: 600;
    font-size: 0.9rem;
    color: #0f172a;
    text-decoration: none;
    margin-bottom: 3px;
}

/* لیست لایه چهارم زیر هر تایتل */

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group .menu-ele-submenu.level-3 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group .menu-ele-submenu.level-3 .menu-ele-item {
    margin-bottom: 2px;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group .menu-ele-submenu.level-3 .menu-ele-link {
    font-size: 0.84rem;
    color: #4b5563;
    text-decoration: none;
    white-space: normal;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala .menu-ele-mega-dk-group .menu-ele-submenu.level-3 .menu-ele-link:hover {
    color: #2563eb;
}

/* دیجی‌کالایی – تو رفتگی برای لایه‌های عمیق‌تر از ۳ */
.menu-ele-nav-desktop.menu-ele-layout-digikala
    .menu-ele-mega-dk-group .menu-ele-submenu .menu-ele-submenu {
    margin-top: 2px;
    padding-inline-start: 10px;
}

/* =====================================
   طرح ۴ – مگامنو دیجی‌کالایی ساده (digikala-simple)
   ستون چپ: لایه دوم
   ستون راست: آیتم‌های لایه سوم، هر ۶ تا در یک ستون
===================================== */

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega.menu-ele-mega-dk {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
    border: 1px solid rgba(148, 163, 184, 0.35);
    margin-top: 10px;
    padding: 0;
    min-width: 720px;
    max-width: 960px;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-inner {
    display: flex;
    align-items: stretch;
}

/* ستون چپ – گروه‌ها (لایه ۲) */

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-left {
    width: 240px;
    background: #f9fafb;
    border-inline-end: 1px solid rgba(148, 163, 184, 0.35);
    padding: 8px 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-left .menu-ele-submenu.level-1 {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-left .menu-ele-item {
    margin: 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-left .menu-ele-link,
.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-left .menu-ele-link--nolink {
    display: block;
    padding: 8px 16px;
    text-decoration: none;
    color: #0f172a;
    font-size: 0.92rem;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-left .menu-ele-link:hover {
    background: #eef2ff;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-left .menu-ele-item.is-active > .menu-ele-link {
    background: #ffffff;
    font-weight: 600;
}

/* ستون راست – گروه فعال و ستون‌بندی ۶‌تایی */

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-right {
    flex: 1;
    padding: 12px 18px 14px;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-group {
    display: none;
    min-width: 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-group.is-active {
    display: block;
}

/* کانتینر ستون‌ها */

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-simple-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px; /* فاصله بین ستون‌ها */
}

/* هر ستون */

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-simple-col {
    min-width: 180px;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-simple-col > .menu-ele-submenu.level-2 {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* آیتم‌های داخل ستون */

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-simple-col .menu-ele-item {
    margin: 0 0 4px 0;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-simple-col .menu-ele-link,
.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-simple-col .menu-ele-link--nolink {
    display: block;
    padding: 6px 4px;
    text-decoration: none;
    color: #4b5563;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: background-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.menu-ele-nav-desktop.menu-ele-layout-digikala-simple .menu-ele-mega-dk-simple-col .menu-ele-link:hover {
    background: #f3f4f6;
    color: #111827;
    transform: translateY(-1px);
}


/* =====================================
   موبایل – همبرگری + هدر + زیرمنوی کشویی
===================================== */

.menu-ele-nav-mobile {
    position: relative;
    z-index: 9998;
}

/* دکمه همبرگری */

.menu-ele-hamburger {
    background: transparent;
    border: 0;
    padding: 8px;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
    align-items: center;
}

.menu-ele-hamburger-line {
    width: 22px;
    height: 2px;
    background: currentColor;
    border-radius: 99px;
}

/* آیکن SVG همبرگری */

.menu-ele-hamburger-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-ele-hamburger-icon-inner svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* اگر آیکن svg باشد، خط‌ها را مخفی کن */

.menu-ele-nav-mobile.menu-ele-has-icon .menu-ele-hamburger-line {
    display: none;
}

/* پنل موبایل */

.menu-ele-mobile-panel {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -100%;
    width: 100%;
    background: #ffffff;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
    padding: 32px 20px 20px;
    overflow-y: auto;
    transition: left 0.25s ease;
    z-index: 9999;
}

body.rtl .menu-ele-mobile-panel {
    right: -100%;
    left: auto;
}

body.rtl .menu-ele-nav-mobile.menu-ele-mobile-open .menu-ele-mobile-panel {
    right: 0;
    left: auto;
}

.menu-ele-nav-mobile.menu-ele-mobile-open .menu-ele-mobile-panel {
    left: 0;
}

/* هدر منوی موبایل */

.menu-ele-mobile-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.menu-ele-mobile-title {
    font-weight: 600;
    font-size: 1.05rem;
}

/* دکمه بستن */

.menu-ele-mobile-close {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px 6px;
}

.menu-ele-mobile-close-icon {
    display: inline-block;
}

.menu-ele-mobile-close-icon-inner svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* بخش شرت‌کدهای هدر/فوتر موبایل */

.menu-ele-mobile-extra {
    margin: 8px 0;
}

/* لیست موبایل */

.menu-ele-menu-mobile {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-ele-menu-mobile .menu-ele-item {
    margin-bottom: 2px;
}

/* ردیف بالای هر آیتم */

.menu-ele-mobile-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* لینک موبایل */

.menu-ele-menu-mobile .menu-ele-link {
    display: block;
    padding: 10px 4px;
    text-decoration: none;
    color: inherit;
}

/* دکمه باز/بستن زیرمنو موبایل */

.menu-ele-sub-toggle {
    background: transparent;
    border: 0;
    padding: 6px 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.menu-ele-sub-toggle-icon {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
}

.menu-ele-sub-toggle-icon-inner svg {
    width: 1em;
    height: 1em;
    display: block;
}

/* پیش‌فرض: آیکن بسته مخفی است */

.menu-ele-sub-toggle-icon-close {
    display: none;
}

/* وقتی زیرمنو باز است */

.menu-ele-item.submenu-open > .menu-ele-mobile-item-top .menu-ele-sub-toggle-icon-open {
    display: none;
}
.menu-ele-item.submenu-open > .menu-ele-mobile-item-top .menu-ele-sub-toggle-icon-close {
    display: inline-block;
}

/* زیرمنوی موبایل */

.menu-ele-menu-mobile .menu-ele-submenu {
    list-style: none;
    margin: 0;
    padding-left: 16px;
    display: none;
}

body.rtl .menu-ele-menu-mobile .menu-ele-submenu {
    padding-left: 0;
    padding-right: 16px;
}

/* نوتیف ساده */

.menu-ele-notice {
    padding: 8px 12px;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    border-radius: 3px;
    font-size: 13px;
}


