/* ==========================================================================
   Tamland Header Menu Widget (tamland-header-menu)
   Tokens-compliant stylesheet - reads exclusively from var(--tamland-*)
   Figma references:
     - Mega Menu (3-level / 3-column): 4522-130616
     - 2-level Menu (2-column):        3158-125355
     - 1-level Menu (Solo Dropdown):   3240-232847
   ========================================================================== */

.tlhm {
  --tlhm-mega-col: var(--tamland-menu-col-width, 250px);
  --tlhm-mega-gap: var(--tamland-space-48, 48px);
  --tlhm-mega-gap2: var(--tamland-space-24, 24px);
  --tlhm-mega-pad: var(--tamland-space-24, 24px);
  --tlhm-mega-row: var(--tamland-menu-row-h, 48px);
  --tlhm-mega-row2: var(--tamland-menu-row-sub-h, 44px);
  --tlhm-mega-row3: var(--tamland-menu-row-sub-h, 44px);
  --tlhm-mega-offset: var(--tamland-space-0, 0px);
  --tlhm-mega-pill: var(--tamland-radius-8, 8px);
  --tlhm-mega-bg: var(--tamland-color-surface-card, #ffffff);
  --tlhm-mega-border: var(--tamland-color-border, #d5d5d6);
  --tlhm-mega-bw: 1px;
  --tlhm-mega-radius: var(--tamland-radius-16, 1rem);
  --tlhm-mega-div: var(--tamland-color-border, #d5d5d6);
  --tlhm-mega-div-w: 1px;
  --tlhm-mega-vdiv: var(--tamland-color-border, #d5d5d6);
  --tlhm-mega-vdiv-w: 2px;
  --tlhm-mega-first-head-color: var(--tamland-color-text-primary, #202021);
  --tlhm-mega-first-head-line: var(--tamland-color-border, #d5d5d6);
  --tlhm-mega-first-head-line-w: 1px;
  --tlhm-mega-first-head-h: var(--tamland-menu-row-h, 48px);
  --tlhm-mega-first-head-pad: 0 var(--tamland-space-12, 13px);
  --tlhm-mega-parent-color: var(--tamland-color-text-primary, #202021);
  --tlhm-mega-parent-hover-color: var(--tamland-color-primary, #c5161c);
  --tlhm-mega-parent-active-color: var(--tamland-color-menu-active-red, #710d10);
  --tlhm-mega-parent-hover-bg: var(--tamland-color-pink-soft-bg, #fdefef);
  --tlhm-mega-parent-active-bg: var(--tamland-color-pink-soft-bg, #fdefef);
  --tlhm-mega-parent-pad: 0 var(--tamland-space-12, 13px) 0 var(--tamland-space-16, 14px);
  --tlhm-mega-child-color: var(--tamland-color-text-secondary, #57595b);
  --tlhm-mega-child-hover-color: var(--tamland-color-primary, #c5161c);
  --tlhm-mega-child-active-color: var(--tamland-color-primary, #c5161c);
  --tlhm-mega-child-hover-bg: var(--tamland-color-pink-soft-bg, #fdefef);
  --tlhm-mega-child-active-bg: var(--tamland-color-pink-soft-bg, #fdefef);
  --tlhm-mega-child-pad: 0 var(--tamland-space-12, 13px) 0 var(--tamland-space-16, 14px);
  --tlhm-mega-third-color: var(--tamland-color-text-muted, #7e7f83);
  --tlhm-mega-third-hover-color: var(--tamland-color-primary, #c5161c);
  --tlhm-mega-third-active-color: var(--tamland-color-primary, #c5161c);
  --tlhm-mega-third-hover-bg: var(--tamland-color-pink-soft-bg, #fdefef);
  --tlhm-mega-third-active-bg: var(--tamland-color-pink-soft-bg, #fdefef);
  --tlhm-mega-third-pad: 0 var(--tamland-space-12, 13px);
  --tlhm-mega-head-color: var(--tamland-color-text-primary, #202021);
  --tlhm-mega-head-line: var(--tamland-color-primary, #c5161c);
  --tlhm-mega-head-line-w: 2px;
  --tlhm-mega-head-h: var(--tamland-menu-row-h, 48px);
  --tlhm-mega-head-pad: 0 var(--tamland-space-12, 13px);
  --tlhm-mega-chev-color: var(--tamland-color-text-primary, #202021);
  --tlhm-mega-chev2-color: var(--tamland-color-text-secondary, #57595b);
  --tlhm-mega-chev2-active: var(--tamland-color-text-primary, #202021);
  --tlhm-mega-chev: var(--tamland-space-20, 20px);
  --tlhm-caret-color: var(--tamland-color-text-primary, #202021);
  --tlhm-caret-size: var(--tamland-space-12, 12px);
  --tlhm-drawer-divider: transparent;
  --tlhm-drawer-divider-w: 0;
  --tlhm-backdrop: var(--tamland-overlay-backdrop, rgba(0, 0, 0, 0.5));
  --tlhm-drawer-speed: 0.28s;
  --tlhm-chev-left: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 5 8 12l7 7' fill='none' stroke='%23202021' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --tlhm-chev-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23202021' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  position: relative;
  z-index: var(--tamland-z-sticky, 20);
  width: 100%;
  box-sizing: border-box;
  background: var(--tamland-color-surface-card, #ffffff);
  border-bottom: 1px solid var(--tamland-color-border-subtle, #ececec);
  direction: rtl;
  color: var(--tamland-color-text-primary, #202021);
  font-family: var(--tamland-font-family, inherit);
}

.tlhm * {
  box-sizing: border-box;
}

/* بستن راه نشت «سبک قالب» المنتور از ویژگی‌هایی که طرح این ویجت ست نمی‌کند */
.tlhm .tlhm__panel .tlhm__nav a,
.tlhm .tlhm__bar .tlhm__burger,
.tlhm .tlhm__panel .tlhm__close,
.tlhm .tlhm__nav .tlhm__sub-toggle,
.tlhm .tlhm__panel .tlhm__note {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  font-weight: inherit;
  font-style: normal;
  line-height: inherit;
  text-transform: none;
  letter-spacing: normal;
  text-decoration: none;
  text-shadow: none;
  box-shadow: none;
}

/* دکمه‌های service و پیوندها */
.tlhm .tlhm__bar .tlhm__burger,
.tlhm .tlhm__panel .tlhm__close,
.tlhm .tlhm__nav .tlhm__sub-toggle {
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.tlhm--sticky {
  z-index: var(--tamland-z-site-header, 990);
}

.tlhm--pinned {
  position: fixed;
  top: 0;
  z-index: var(--tamland-z-site-header, 990);
  box-shadow: var(--tamland-shadow-menu-pinned, 0 0.375rem 1.125rem rgba(20, 24, 40, 0.10));
}

.tlhm__bar {
  display: flex;
  align-items: center;
  gap: var(--tamland-space-12, 12px);
  min-height: var(--tamland-header-height-mobile, 4.5rem);
  padding: var(--tamland-space-8, 8px) var(--tamland-space-16, 16px);
}

.tlhm__panel {
  flex: 1 1 auto;
  min-width: 0;
}

.tlhm__nav {
  --tlhm-gap: var(--tamland-space-0, 0px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: var(--tlhm-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--tamland-font-size-title-sm, 1rem);
  font-weight: var(--tamland-font-weight-semibold, 600);
  line-height: var(--tamland-line-height-title-sm, 1.5);
}

.tlhm__nav li {
  position: relative;
}

/* پیوندها، دکمه‌ها و وضعیت فعال/هاور نوار اصلی */
.tlhm .tlhm__panel .tlhm__nav a {
  display: inline-flex;
  align-items: center;
  gap: var(--tamland-space-6, 6px);
  padding: var(--tlhm-item-pad, 10px 13px);
  border-radius: var(--tamland-radius-10, 10px);
  color: var(--tlhm-item-color, var(--tamland-color-text-primary, #202021));
  background: var(--tlhm-item-bg, transparent);
  font: inherit;
  text-decoration: none;
  transition: color 0.18s ease, background 0.18s ease;
}

.tlhm .tlhm__panel .tlhm__nav .current-menu-item > a,
.tlhm .tlhm__panel .tlhm__nav .current-menu-ancestor > a {
  color: var(--tlhm-item-active-color, var(--tamland-color-primary, #c5161c));
  background: var(--tlhm-item-active-bg, transparent);
}

.tlhm .tlhm__panel .tlhm__nav li:hover > a,
.tlhm .tlhm__panel .tlhm__nav li:focus-within > a {
  color: var(--tlhm-item-hover-color, var(--tamland-color-primary, #c5161c));
  background: var(--tlhm-item-hover-bg, transparent);
}

/* آیتم‌های والد دارای زیرمجموعه نباید کرسر ناوبری داشته باشند */
.tlhm li.menu-item-has-children > a,
.tlhm a.tlhm__parent-link {
  cursor: default;
  -webkit-user-select: none;
  user-select: none;
}

/* آخرین فرزند / آیتم بدون زیرمجموعه مجاز به کلیک است */
.tlhm li:not(.menu-item-has-children) > a,
.tlhm a.tlhm__leaf-link {
  cursor: pointer;
}

.tlhm .tlhm__bar .tlhm__burger {
  --tlhm-burger-icon-w: 22px;
  --tlhm-burger-h: 2px;
  --tlhm-burger-gap: 7px;
  display: none;
  align-items: center;
  gap: var(--tamland-space-8, 8px);
  padding: var(--tamland-space-8, 8px) 10px;
  border: 0;
  background: none;
  color: var(--tamland-color-text-primary, #202021);
  font: inherit;
  font-weight: var(--tamland-font-weight-semibold, 600);
  cursor: pointer;
}

.tlhm__burger-icon {
  position: relative;
  display: block;
  width: var(--tlhm-burger-icon-w);
  height: var(--tlhm-burger-h);
  border-radius: 2px;
  background: currentColor;
}

.tlhm__burger-icon svg {
  display: none !important;
}

.tlhm__burger-icon::before,
.tlhm__burger-icon::after {
  position: absolute;
  right: 0;
  left: 0;
  display: block;
  width: var(--tlhm-burger-icon-w);
  height: var(--tlhm-burger-h);
  border-radius: 2px;
  background: currentColor;
  content: "";
}

.tlhm__burger-icon::before {
  top: calc(-1 * var(--tlhm-burger-gap));
}

.tlhm__burger-icon::after {
  top: var(--tlhm-burger-gap);
}

.tlhm .tlhm__nav .tlhm__sub-toggle {
  display: none;
}

.tlhm .tlhm__panel .tlhm__close {
  display: none;
}

.tlhm__backdrop {
  display: none;
}

.tlhm .tlhm__panel .tlhm__note {
  margin: 0;
  padding: 10px 0;
  color: var(--tamland-color-text-muted, #7e7f83);
  font-size: var(--tamland-font-size-body-sm, 0.75rem);
}

.tldb-control-note {
  padding: 10px 12px;
  border-radius: var(--tamland-radius-6, 6px);
  background: var(--tamland-color-amber-bg, #fff1e6);
  color: var(--tamland-color-primary-dark, #8a4a00);
  font-size: var(--tamland-font-size-body-sm, 0.75rem);
  line-height: 1.7;
}

.tlhm .tlhm__panel .tlhm__nav a:focus-visible,
.tlhm .tlhm__bar .tlhm__burger:focus-visible,
.tlhm .tlhm__panel .tlhm__close:focus-visible,
.tlhm .tlhm__nav .tlhm__sub-toggle:focus-visible {
  outline: 3px solid var(--tamland-color-focus-outline, #064d76);
  outline-offset: 2px;
}

/* ==========================================================================
   دسکتاپ: پنل زیرمنو (تک ستونه، دو ستونه و مگامنو سه ستونه)
   ========================================================================== */
@media (min-width: 768px) {
  /* المان‌های مختص دراور موبایل در دسکتاپ مخفی هستند */
  .tlhm__drawer-header,
  .tlhm__drawer-footer,
  .tlhm__sub-back-item,
  .tlhm__arrow-left {
    display: none !important;
  }

  .tlhm__drawer-viewport {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
  }

  /* فلش آیتم‌های سطح اول که زیرمنو دارند */
  .tlhm__nav > li.menu-item-has-children > a::after {
    content: "";
    flex: 0 0 auto;
    width: var(--tlhm-caret-size, 12px);
    height: var(--tlhm-caret-size, 12px);
    margin-inline-start: var(--tamland-space-6, 6px);
    background-color: var(--tlhm-caret-color, var(--tamland-color-text-primary, #202021));
    -webkit-mask: var(--tlhm-chev-down) no-repeat center / contain;
    mask: var(--tlhm-chev-down) no-repeat center / contain;
  }

  /* پنل زیرمنو پایه (دید اولیه تک‌ستونه تا پیش از هاور روی ردیف دارای زیرمجموعه) */
  .tlhm__nav > li > .sub-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: var(--tamland-z-dropdown, 40);
    display: none;
    box-sizing: border-box;
    width: calc(var(--tlhm-mega-col, 250px) + var(--tlhm-mega-pad, 24px) * 2);
    margin: 0;
    padding: var(--tlhm-mega-pad, 24px);
    list-style: none;
    background: var(--tlhm-mega-bg, var(--tamland-color-surface-card, #ffffff));
    border: 0 solid var(--tlhm-mega-border, var(--tamland-color-border, #d5d5d6));
    border-width: 0 var(--tlhm-mega-bw, 1px) var(--tlhm-mega-bw, 1px) var(--tlhm-mega-bw, 1px);
    border-radius: 0 0 var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) !important;
    box-shadow: var(--tamland-shadow-menu, 0 1rem 2rem rgba(0, 0, 0, 0.08));
    direction: rtl;
    transition: width 0.18s ease;
  }

  /* دفاع قطعی در برابر CSS کامپایل‌شده المنتور (Elementor post-63.css Cache Defense) */
  .elementor .elementor-element .tlhm__nav > li > .sub-menu,
  [class*="elementor"] .tlhm__nav > li > .sub-menu {
    border-radius: 0 0 var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) !important;
  }

  /* پنل زیرمنو دو ستونه (2-Level Menu - Node 3158-125355: هنگام هاور روی آیتم ستون اول دارای فرزند) */
  .tlhm__nav > li > .sub-menu.tlhm--double {
    width: calc(var(--tlhm-mega-col, 250px) * 2 + var(--tlhm-mega-gap, 48px) + var(--tlhm-mega-pad, 24px) * 2);
    border-radius: 0 0 var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) !important;
  }

  /* مگامنو سه ستونه (Mega Menu 3-Level - Node 4522-130616: هنگام هاور روی آیتم ستون دوم دارای فرزند) */
  .tlhm__nav > li > .sub-menu.tlhm--triple {
    width: calc(var(--tlhm-mega-col, 250px) * 3 + var(--tlhm-mega-gap, 48px) + var(--tlhm-mega-gap2, 24px) + var(--tlhm-mega-pad, 24px) * 2);
    border-radius: 0 0 var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) !important;
  }

  /* منوی تک ستونه بازشو (Solo Dropdown 1-Level - Node 3240-232847) */
  .tlhm__nav > li > .sub-menu.tlhm--solo {
    width: calc(var(--tlhm-mega-col, 250px) + var(--tamland-space-16, 16px) * 2 + 2px);
    padding: var(--tamland-space-12, 12px);
    border: 0 solid var(--tlhm-mega-border, var(--tamland-color-border, #d5d5d6));
    border-width: 0 var(--tlhm-mega-bw, 1px) var(--tlhm-mega-bw, 1px) var(--tlhm-mega-bw, 1px);
    border-radius: 0 0 var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) !important;
    box-shadow: var(--tamland-shadow-menu, 0 1rem 2rem rgba(0, 0, 0, 0.08));
  }

  .elementor .elementor-element .tlhm__nav > li > .sub-menu.tlhm--solo,
  [class*="elementor"] .tlhm__nav > li > .sub-menu.tlhm--solo {
    border-radius: 0 0 var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) var(--tlhm-mega-radius, var(--tamland-radius-16, 1rem)) !important;
  }

  .tlhm__nav > li > .sub-menu.tlhm--solo::before {
    display: none !important;
  }

  .tlhm__nav > li > .sub-menu.tlhm--solo::after {
    display: none !important;
  }

  .tlhm__nav > li > .sub-menu.tlhm--solo > li {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  /* خط جداکننده صاف و افقی ۱ پیکسلی میان ردیف‌ها (بدون هیچ‌گونه انحنا یا گردی لبه‌ها - Node 3240-232847) */
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu.tlhm--solo > li:not(.tlhm__sub-back-item) + li:not(.tlhm__sub-back-item) {
    border-top: var(--tlhm-mega-div-w, 1px) solid var(--tlhm-mega-div, var(--tamland-color-border, #d5d5d6));
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu.tlhm--solo > li.tlhm__sub-back-item + li,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu.tlhm--solo > li:first-child,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu.tlhm--solo > li:first-of-type {
    border-top: none !important;
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu.tlhm--solo > li > a {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    height: var(--tlhm-mega-row2, 44px);
    padding: 0 var(--tamland-space-12, 12px);
    border: none !important;
    border-top: none !important;
    border-radius: 0 !important;
    background: transparent;
    color: var(--tamland-color-text-primary, #202021);
    font-weight: var(--tamland-font-weight-regular, 500);
    text-decoration: none;
    transition: color 0.16s ease;
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu.tlhm--solo > li + li > a {
    border-top: none !important;
  }

  .tlhm__nav > li > .sub-menu.tlhm--solo > li:hover > a::before,
  .tlhm__nav > li > .sub-menu.tlhm--solo > li > a:hover::before,
  .tlhm__nav > li > .sub-menu.tlhm--solo > li:focus-within > a::before {
    opacity: 1;
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu.tlhm--solo > li:hover > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu.tlhm--solo > li > a:hover,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu.tlhm--solo > li:focus-within > a {
    color: var(--tlhm-mega-parent-hover-color, var(--tamland-color-primary, #c5161c));
  }

  /* عنوان ستون اول: خط خاکستری ۱ پیکسلی زیر عنوان */
  .tlhm__nav > li > .sub-menu.tlhm--headed::before {
    content: attr(data-label);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: var(--tlhm-mega-col, 250px);
    height: var(--tlhm-mega-first-head-h, 48px);
    padding: var(--tlhm-mega-first-head-pad, 0 13px);
    color: var(--tlhm-mega-first-head-color, var(--tamland-color-text-primary, #202021));
    font-size: 1em;
    font-weight: var(--tamland-font-weight-bold, 700);
    border-bottom: var(--tlhm-mega-first-head-line-w, 1px) solid var(--tlhm-mega-first-head-line, var(--tamland-color-border, #d5d5d6));
  }

  /* خط عمودی میان ستون اول و دوم: ۲ پیکسلی با گوشه نرم؛ تنها در حالت دو یا سه ستونه نمایش داده می‌شود */
  .tlhm__nav > li > .sub-menu::after {
    content: "";
    position: absolute;
    top: var(--tlhm-mega-pad, 24px);
    bottom: var(--tamland-space-24, 24px);
    right: calc(var(--tlhm-mega-pad, 24px) - var(--tlhm-mega-bw, 1px) + var(--tlhm-mega-col, 250px) + var(--tlhm-mega-gap, 48px) / 2 - var(--tlhm-mega-vdiv-w, 2px) / 2);
    left: auto;
    width: var(--tlhm-mega-vdiv-w, 2px);
    border-radius: 1px;
    background: var(--tlhm-mega-vdiv, var(--tamland-color-border, #d5d5d6));
    pointer-events: none;
    display: none;
  }

  .tlhm__nav > li > .sub-menu.tlhm--double::after,
  .tlhm__nav > li > .sub-menu.tlhm--triple::after {
    display: block;
  }

  .tlhm__nav > li > .sub-menu.tlhm--solo::after {
    display: none !important;
  }

  .tlhm__nav > li > .sub-menu > li {
    position: static;
    width: var(--tlhm-mega-col, 250px);
    margin: 0;
  }

  /* ردیف‌های ستون اول */
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > a {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    height: var(--tlhm-mega-row, 48px);
    padding: var(--tlhm-mega-parent-pad, 0 13px 0 14px);
    border-radius: 0;
    background: transparent;
    color: var(--tlhm-mega-parent-color, var(--tamland-color-text-primary, #202021));
    font-weight: var(--tamland-font-weight-regular, 500);
    text-decoration: none;
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li + li > a {
    border-top: var(--tlhm-mega-div-w, 1px) solid var(--tlhm-mega-div, var(--tamland-color-border, #d5d5d6));
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li.tlhm__sub-back-item + li > a {
    border-top: none;
  }

  /* قرص صورتی نرم پشت ردیف‌های هاور یا فعال */
  .tlhm__nav > li > .sub-menu > li > a::before,
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li > a::before,
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li > a::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: var(--tamland-space-4, 4px);
    right: 0;
    bottom: var(--tamland-space-4, 4px);
    left: 0;
    border-radius: var(--tlhm-mega-pill, var(--tamland-radius-8, 8px));
    background: var(--tlhm-mega-parent-hover-bg, var(--tamland-color-pink-soft-bg, #fdefef));
    opacity: 0;
    transition: opacity 0.16s ease;
    pointer-events: none;
  }

  .tlhm__nav > li > .sub-menu > li:hover > a::before,
  .tlhm__nav > li > .sub-menu > li:focus-within > a::before {
    opacity: 1;
  }

  .tlhm.tlhm--active-pill .tlhm__nav > li > .sub-menu > li.current-menu-item > a::before,
  .tlhm.tlhm--active-pill .tlhm__nav > li > .sub-menu > li.current_page_item > a::before,
  .tlhm.tlhm--active-pill .tlhm__nav > li > .sub-menu > li.is-sub-active > a::before {
    opacity: 1;
    background: var(--tlhm-mega-parent-active-bg, var(--tamland-color-pink-soft-bg, #fdefef));
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li:hover > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li:focus-within > a {
    color: var(--tlhm-mega-parent-hover-color, var(--tamland-color-primary, #c5161c));
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li.current-menu-item > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li.current_page_item > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li.current-menu-parent > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li.current-menu-ancestor > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li.is-sub-active > a {
    color: var(--tlhm-mega-parent-active-color, var(--tamland-color-menu-active-red, #710d10));
  }

  /* فلش ردیف‌های شاخه‌دار ستون اول */
  .tlhm__nav > li > .sub-menu > li.menu-item-has-children > a::after {
    content: "";
    flex: 0 0 auto;
    width: var(--tlhm-mega-chev, 20px);
    height: var(--tlhm-mega-chev, 20px);
    margin-inline-start: auto;
    background-color: var(--tlhm-mega-chev-color, var(--tamland-color-text-primary, #202021));
    -webkit-mask: var(--tlhm-chev-left) no-repeat center / contain;
    mask: var(--tlhm-chev-left) no-repeat center / contain;
  }

  /* ستون دوم: زیرمنوی سطح دو با خط قرمز ۲ پیکسلی زیر عنوان */
  .tlhm__nav > li > .sub-menu > li > .sub-menu {
    position: absolute;
    top: var(--tlhm-mega-pad, 24px);
    right: calc(var(--tlhm-mega-pad, 24px) + var(--tlhm-mega-col, 250px) + var(--tlhm-mega-gap, 48px));
    bottom: auto;
    left: auto;
    z-index: 1;
    display: none;
    width: var(--tlhm-mega-col, 250px);
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  /* عنوان ستون دوم و سوم: خط قرمز رنگ برند تاملند ۲ پیکسلی */
  .tlhm__nav > li > .sub-menu > li > .sub-menu[data-label]::before,
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu[data-label]::before {
    content: attr(data-label);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: var(--tlhm-mega-col, 250px);
    height: var(--tlhm-mega-head-h, 48px);
    padding: var(--tlhm-mega-head-pad, 0 13px);
    color: var(--tlhm-mega-head-color, var(--tamland-color-text-primary, #202021));
    font-size: 1em;
    font-weight: var(--tamland-font-weight-bold, 700);
    border-bottom: var(--tlhm-mega-head-line-w, 2px) solid var(--tlhm-mega-head-line, var(--tamland-color-primary, #c5161c));
  }

  .tlhm__nav > li > .sub-menu > li > .sub-menu:not([data-label])::before,
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu:not([data-label])::before {
    display: none;
  }

  /* ردیف‌های ستون دوم */
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li {
    position: static;
    width: 100%;
    margin: 0;
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > a {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: var(--tlhm-mega-row2, 44px);
    padding: var(--tlhm-mega-child-pad, 0 13px 0 14px);
    border-radius: 0;
    background: transparent;
    color: var(--tlhm-mega-child-color, var(--tamland-color-text-secondary, #57595b));
    font-weight: var(--tamland-font-weight-regular, 400);
    text-decoration: none;
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li + li > a {
    border-top: var(--tlhm-mega-div-w, 1px) solid var(--tlhm-mega-div, var(--tamland-color-border, #d5d5d6));
  }

  .tlhm__nav > li > .sub-menu > li > .sub-menu > li:hover > a::before,
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li:focus-within > a::before {
    opacity: 1;
    background: var(--tlhm-mega-child-hover-bg, var(--tamland-color-pink-soft-bg, #fdefef));
  }

  .tlhm.tlhm--active-pill .tlhm__nav > li > .sub-menu > li > .sub-menu > li.current-menu-item > a::before,
  .tlhm.tlhm--active-pill .tlhm__nav > li > .sub-menu > li > .sub-menu > li.current_page_item > a::before,
  .tlhm.tlhm--active-pill .tlhm__nav > li > .sub-menu > li > .sub-menu > li.is-sub-active > a::before {
    opacity: 1;
    background: var(--tlhm-mega-child-active-bg, var(--tamland-color-pink-soft-bg, #fdefef));
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li:hover > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li:focus-within > a {
    color: var(--tlhm-mega-child-hover-color, var(--tamland-color-primary, #c5161c));
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li.current-menu-item > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li.current_page_item > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li.current-menu-parent > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li.current-menu-ancestor > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li.is-sub-active > a {
    color: var(--tlhm-mega-child-active-color, var(--tamland-color-primary, #c5161c));
  }

  /* فلش ردیف‌های شاخه‌دار ستون دوم */
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li.menu-item-has-children > a::after {
    content: "";
    flex: 0 0 auto;
    width: var(--tlhm-mega-chev, 20px);
    height: var(--tlhm-mega-chev, 20px);
    margin-inline-start: auto;
    background-color: var(--tlhm-mega-chev2-color, var(--tamland-color-text-secondary, #57595b));
    -webkit-mask: var(--tlhm-chev-left) no-repeat center / contain;
    mask: var(--tlhm-chev-left) no-repeat center / contain;
  }

  .tlhm__nav > li > .sub-menu > li > .sub-menu > li:hover.menu-item-has-children > a::after,
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li.is-sub-active.menu-item-has-children > a::after {
    background-color: var(--tlhm-mega-chev2-active, var(--tamland-color-text-primary, #202021));
  }

  /* ستون سوم: زیرمنوی ردیف فعال ستون دوم */
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu {
    position: absolute;
    top: 0;
    right: calc(100% + var(--tlhm-mega-gap2, 24px));
    bottom: auto;
    left: auto;
    z-index: 2;
    display: none;
    width: var(--tlhm-mega-col, 250px);
    margin: 0;
    padding: 0;
    list-style: none;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li {
    position: relative;
    width: 100%;
    margin: 0;
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li > a {
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 100%;
    height: var(--tlhm-mega-row3, 44px);
    padding: var(--tlhm-mega-third-pad, 0 13px);
    border-radius: 0;
    background: transparent;
    color: var(--tlhm-mega-third-color, var(--tamland-color-text-muted, #7e7f83));
    font-weight: var(--tamland-font-weight-regular, 400);
    text-decoration: none;
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li + li > a {
    border-top: var(--tlhm-mega-div-w, 1px) solid var(--tlhm-mega-div, var(--tamland-color-border, #d5d5d6));
  }

  .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li:hover > a::before,
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li:focus-within > a::before {
    opacity: 1;
    background: var(--tlhm-mega-third-hover-bg, var(--tamland-color-pink-soft-bg, #fdefef));
  }

  .tlhm.tlhm--active-pill .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li.current-menu-item > a::before,
  .tlhm.tlhm--active-pill .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li.current_page_item > a::before,
  .tlhm.tlhm--active-pill .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li.is-sub-active > a::before {
    opacity: 1;
    background: var(--tlhm-mega-third-active-bg, var(--tamland-color-pink-soft-bg, #fdefef));
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li:hover > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li:focus-within > a {
    color: var(--tlhm-mega-third-hover-color, var(--tamland-color-primary, #c5161c));
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li.current-menu-item > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li.current_page_item > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li.current-menu-parent > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li.current-menu-ancestor > a,
  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li.is-sub-active > a {
    color: var(--tlhm-mega-third-active-color, var(--tamland-color-primary, #c5161c));
  }

  /* سطح چهارم (اختیاری): پنل شناور سمت چپ ردیف والد */
  .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li > .sub-menu {
    position: absolute;
    top: 0;
    right: calc(100% + var(--tamland-space-8, 8px));
    left: auto;
    z-index: 3;
    display: none;
    width: var(--tlhm-mega-col, 250px);
    margin: 0;
    padding: var(--tamland-space-6, 6px);
    list-style: none;
    background: var(--tlhm-mega-bg, var(--tamland-color-surface-card, #ffffff));
    border: 1px solid var(--tlhm-mega-border, var(--tamland-color-border, #d5d5d6));
    border-radius: var(--tamland-radius-12, 12px);
    box-shadow: var(--tamland-shadow-menu, 0 1rem 2rem rgba(0, 0, 0, 0.08));
  }

  .tlhm .tlhm__panel .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li > .sub-menu > li > a {
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 10px;
    border-radius: var(--tamland-radius-8, 8px);
    color: var(--tlhm-mega-third-color, var(--tamland-color-text-muted, #7e7f83));
    font-weight: var(--tamland-font-weight-regular, 400);
    text-decoration: none;
  }

  /* نمایش با اشاره/فوکوس */
  .tlhm__nav > li:hover > .sub-menu,
  .tlhm__nav > li:focus-within > .sub-menu,
  .tlhm__nav > li.is-open > .sub-menu {
    display: block;
  }

  /* پل شناور میان آیتم نوار و زیرمنو برای جلوگیری از پرش ماوس */
  .tlhm__nav > li.menu-item-has-children:hover::after,
  .tlhm__nav > li.menu-item-has-children.is-open::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: var(--tlhm-bridge, 0px);
  }

  .tlhm__nav > li > .sub-menu.tlhm--double > li.is-sub-active > .sub-menu,
  .tlhm__nav > li > .sub-menu.tlhm--triple > li.is-sub-active > .sub-menu {
    display: block;
  }

  .tlhm__nav > li > .sub-menu.tlhm--triple > li > .sub-menu > li.is-sub-active > .sub-menu {
    display: block;
  }

  .tlhm__nav > li > .sub-menu > li > .sub-menu > li > .sub-menu > li.is-sub-active > .sub-menu {
    display: block;
  }
}

/* ==========================================================================
   موبایل و تبلت (دراور و تاگل آکاردئونی)
   ========================================================================== */
@media (max-width: 767px) {
  .tlhm li.menu-item-has-children > a,
  .tlhm a.tlhm__parent-link {
    cursor: pointer;
  }

  .tlhm {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .tlhm__bar {
    justify-content: flex-start;
    min-height: unset;
    padding: 0;
    gap: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .tlhm .tlhm__bar .tlhm__burger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tamland-space-40, 2.5rem);
    height: var(--tamland-space-40, 2.5rem);
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .tlhm .tlhm__bar .tlhm__burger:hover,
  .tlhm .tlhm__bar .tlhm__burger:focus-visible {
    background: var(--tamland-color-surface-muted, #f4f5f7);
    border-radius: var(--tamland-radius-8, 0.5rem);
  }

  .tlhm .tlhm__bar .tlhm__burger-text {
    position: absolute;
    width: var(--tamland-border-width-1, 1px);
    height: var(--tamland-border-width-1, 1px);
    padding: var(--tamland-space-0, 0);
    margin: calc(-1 * var(--tamland-border-width-1, 1px));
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .tlhm.is-open .tlhm__burger {
    display: none;
  }

  .tlhm__panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: calc(var(--tamland-z-bottom-nav, 10000) + 20);
    width: var(--tlhm-drawer-w, var(--tamland-drawer-mobile-w, 50vw));
    max-width: 92vw;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    background: var(--tlhm-drawer-bg, var(--tamland-color-surface-card, #ffffff));
    box-shadow: var(--tamland-shadow-drawer, -0.625rem 0 2.125rem rgba(20, 24, 40, 0.16));
    visibility: hidden;
    transform: translateX(100%);
    transition: transform var(--tlhm-drawer-speed, 0.28s) cubic-bezier(0.25, 1, 0.5, 1), visibility var(--tlhm-drawer-speed, 0.28s);
    box-sizing: border-box;
  }

  .tlhm.is-open .tlhm__panel {
    visibility: visible;
    transform: translateX(0);
  }

  /* هدر دراور موبایل: عنوان «دسته‌بندی» و دکمه بستن «×» */
  .tlhm__drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--tamland-space-0, 0) var(--tamland-space-20, 1.25rem) var(--tamland-space-16, 1rem);
    flex-shrink: 0;
    background: var(--tlhm-drawer-bg, var(--tamland-color-surface-card, #ffffff));
    box-sizing: border-box;
  }

  .tlhm__drawer-title {
    display: none !important; /* موقتاً مخفی به درخواست کاربر */
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--tamland-color-text-primary, #202021);
    line-height: 1.4;
  }

  .tlhm .tlhm__panel .tlhm__close {
    position: static;
    margin-inline-start: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border: 0;
    border-radius: var(--tamland-radius-4, 0.25rem);
    background: transparent;
    color: var(--tlhm-close-color, var(--tamland-color-text-primary, #202021));
    cursor: pointer;
    padding: 0;
    transition: opacity 0.15s ease;
  }

  .tlhm .tlhm__panel .tlhm__close:hover,
  .tlhm .tlhm__panel .tlhm__close:focus-visible {
    opacity: 0.7;
  }

  .tlhm__close svg {
    width: 1.25rem;
    height: 1.25rem;
    display: block;
  }

  .tlhm__backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: calc(var(--tamland-z-bottom-nav, 10000) + 10);
    display: block;
    background: var(--tlhm-backdrop, var(--tamland-overlay-backdrop, rgba(0, 0, 0, 0.5)));
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--tlhm-drawer-speed, 0.24s) ease, visibility var(--tlhm-drawer-speed, 0.24s) ease;
  }

  .tlhm.is-open .tlhm__backdrop {
    opacity: 1;
    visibility: visible;
  }

  /* محفظه اسکرول و انتقال اسلایدی منو */
  .tlhm__drawer-viewport {
    position: relative;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .tlhm__nav {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 0;
    list-style: none;
    width: 100%;
    box-sizing: border-box;
    transition: transform 0.24s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
  }

  .tlhm__nav li {
    position: static;
    list-style: none;
  }

  .tlhm__nav > li,
  .tlhm__nav .sub-menu > li:not(.tlhm__sub-back-item) {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--tamland-color-border-subtle, #ececec);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
  }

  .tlhm .tlhm__panel .tlhm__nav a {
    min-height: var(--tamland-drawer-item-h, 48px);
    padding: 0 var(--tamland-space-16, 1rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--tlhm-drawer-item-color, var(--tamland-color-text-primary, #202021));
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    box-sizing: border-box;
    background: transparent;
    transition: color 0.15s ease;
  }

  .tlhm .tlhm__panel .tlhm__nav a:hover,
  .tlhm .tlhm__panel .tlhm__nav li:hover > a,
  .tlhm .tlhm__panel .tlhm__nav li:focus-within > a {
    color: var(--tamland-color-primary, #c5161c);
    background: transparent;
  }

  .tlhm__nav > li.current-menu-item > a,
  .tlhm__nav > li.current_page_item > a {
    color: var(--tamland-color-primary, #C5161C);
  }

  /* فلش رو به چپ در ردیف والد (< در RTL به معنی رفتن به زیرمجموعه است) */
  .tlhm__arrow-left {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tamland-color-text-primary, #202021);
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
  }

  .tlhm__arrow-left svg {
    width: 1rem;
    height: 1rem;
    display: block;
  }

  /* زیرمنوی متحرک اسلایدی با Microinteraction سریع (Drill-down) */
  .tlhm__nav .sub-menu {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: var(--tamland-space-8, 8px) 0;
    list-style: none;
    background: var(--tlhm-drawer-bg, var(--tamland-color-surface-card, #ffffff));
    box-sizing: border-box;
    overflow-y: hidden;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
    box-shadow: none;

    /* در RTL انیمیشن ورود از سمت چپ است */
    transform: translateX(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.24s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.24s;
  }

  .tlhm__nav li.is-drilldown-active > .sub-menu,
  .tlhm__nav li.is-open > .sub-menu {
    transform: translateX(0);
    visibility: visible;
    pointer-events: auto;
    z-index: 20;
  }

  /* ردیف دکمه بازگشت در بالای زیرمنو (Figma node 3769-73828) */
  .tlhm__sub-back-item {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-shrink: 0;
  }

  .tlhm__sub-back {
    display: flex;
    align-items: center;
    gap: var(--tamland-space-8, 0.5rem);
    width: 100%;
    padding: var(--tamland-space-12, 0.75rem) var(--tamland-space-20, 1.25rem) var(--tamland-space-12, 0.75rem);
    background: transparent;
    border: 0;
    border-radius: 0 !important;
    border-bottom: 2px solid var(--tamland-color-primary, #C5161C);
    color: var(--tamland-color-text-primary, #202021);
    font-family: inherit;
    font-size: var(--tamland-font-size-title-sm, 1rem);
    font-weight: 700;
    cursor: pointer;
    box-sizing: border-box;
    text-align: right;
    transition: background-color 0.15s ease;
  }

  .tlhm__sub-back:hover,
  .tlhm__sub-back:focus-visible {
    background-color: var(--tamland-color-pink-soft-bg, #fdefef) !important;
    color: var(--tamland-color-primary, #c5161c) !important;
  }

  .tlhm__sub-back:hover .tlhm__sub-back-icon,
  .tlhm__sub-back:focus-visible .tlhm__sub-back-icon,
  .tlhm__sub-back:hover .tlhm__sub-back-title,
  .tlhm__sub-back:focus-visible .tlhm__sub-back-title {
    color: var(--tamland-color-primary, #c5161c) !important;
  }

  .tlhm__sub-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--tamland-color-text-primary, #202021);
    flex-shrink: 0;
  }

  .tlhm__sub-back-icon svg {
    width: var(--tamland-space-18, 1.125rem);
    height: var(--tamland-space-18, 1.125rem);
    display: block;
  }

  .tlhm__sub-back-title {
    flex: 1 1 auto;
  }

  /* اقلام زیرمنو */
  .tlhm__nav .sub-menu > li:not(.tlhm__sub-back-item) {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--tamland-color-border-subtle, #ececec);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: static;
    min-height: 48px;
  }

  .tlhm__nav .sub-menu > li:not(.tlhm__sub-back-item) > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--tamland-space-12, 0.75rem) var(--tamland-space-16, 1rem);
    color: var(--tamland-color-text-secondary, #57595B);
    font-size: var(--tamland-font-size-body-md, 0.875rem);
    font-weight: 500;
    min-height: auto;
    line-height: var(--tamland-line-height-body-sm, 1.5);
    box-sizing: border-box;
    transition: color 0.15s ease;
  }

  .tlhm__nav .sub-menu > li.menu-item-has-children > a {
    min-height: var(--tamland-drawer-item-h, 3rem);
    color: var(--tamland-color-text-primary, #202021);
    font-size: 0.9375rem;
    font-weight: 600;
  }

  .tlhm__nav .sub-menu > li.is-featured > a,
  .tlhm__nav .sub-menu > li.current-menu-item > a,
  .tlhm__nav .sub-menu > li.current_page_item > a {
    color: var(--tamland-color-primary, #C5161C);
    font-weight: 700;
  }

  .tlhm__sub-menu-divider {
    width: 100%;
    height: var(--tamland-border-width-1, 1px);
    background-color: var(--tamland-color-border-subtle, #ececec);
    margin-top: var(--tamland-space-8, 0.5rem);
    flex-shrink: 0;
  }

  /* فوتر دراور موبایل: دکمه آیکون خروج در سمت راست + «خروج از حساب کاربری» در سمت چپ */
  .tlhm__drawer-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: var(--tamland-space-12, 0.75rem);
    padding: var(--tamland-space-16, 1rem) var(--tamland-space-20, 1.25rem) max(var(--tamland-space-24, 1.5rem), env(safe-area-inset-bottom, 0px));
    flex-shrink: 0;
    background: var(--tlhm-drawer-bg, var(--tamland-color-surface-card, #ffffff));
    box-sizing: border-box;
  }

  .tlhm__drawer-logout-text {
    font-size: var(--tamland-font-size-body-md, 0.875rem);
    font-weight: 600;
    color: var(--tamland-color-text-primary, #202021);
  }

  .tlhm__drawer-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--tamland-space-40, 2.5rem);
    height: var(--tamland-space-40, 2.5rem);
    border-radius: var(--tamland-radius-10, 0.625rem);
    background: var(--tamland-color-surface-muted, #F4F4F5);
    border: 0;
    color: var(--tamland-color-text-primary, #202021);
    cursor: pointer;
    padding: 0;
    transition: background-color 0.15s ease, transform 0.15s ease;
  }

  .tlhm__drawer-logout-btn:hover,
  .tlhm__drawer-logout-btn:focus-visible {
    background-color: var(--tamland-color-pink-soft-bg, #fcefef);
    color: var(--tamland-color-primary, #C5161C);
    transform: scale(1.04);
  }

  .tlhm__drawer-logout-btn svg {
    width: var(--tamland-space-24, 1.5rem);
    height: var(--tamland-space-24, 1.5rem);
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tlhm .tlhm__panel .tlhm__nav a,
  .tlhm__panel,
  .tlhm__backdrop,
  .tlhm .tlhm__nav .tlhm__sub-toggle svg {
    transition: none;
  }
}

body.tlhm-lock {
  overflow: hidden;
}
