/**
 * Mobile sheets — shadcn / Radix-style bottom sheets for nav panels.
 * Loads after route CSS so theme tokens and motion always win.
 */

:root {
  --ts-sheet-duration: 420ms;
  --ts-sheet-duration-out: 280ms;
  --ts-sheet-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ts-sheet-ease-out: cubic-bezier(0.4, 0, 1, 1);
  --ts-sheet-overlay: var(--surface-overlay);
  --ts-sheet-surface: var(--surface-card);
  --ts-sheet-raised: var(--surface-raised);
  --ts-sheet-border: var(--border-subtle);
  --ts-sheet-text: var(--text-strong);
  --ts-sheet-muted: var(--text-muted);
  --ts-sheet-shadow: var(--shadow-soft);
  --ts-sheet-radius: 20px;
  --ts-sheet-handle: color-mix(in srgb, var(--text-muted) 55%, transparent);
  --ts-sheet-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ts-sheet-nav-clearance: calc(72px + var(--ts-sheet-safe-bottom));
  --ts-sheet-drag-y: 0px;
}

body.dark {
  --ts-sheet-surface: var(--surface-card);
  --ts-sheet-raised: var(--surface-raised);
  --ts-sheet-border: var(--border-subtle);
  --ts-sheet-text: var(--text-strong);
  --ts-sheet-muted: var(--text-muted);
  --ts-sheet-handle: color-mix(in srgb, var(--text-muted) 70%, transparent);
}

/* ---------- Overlay shell ---------- */
body .wbsPopup.navPanel,
body .wbsPopup.ts-mobile-sheet,
body .wbsPopup.full-popup,
body .wbsPopup.mini-popup {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent !important;
  -webkit-tap-highlight-color: transparent;
}

body .wbsPopup.navPanel.is-open,
body .wbsPopup.navPanel.is-closing,
body .wbsPopup.ts-mobile-sheet.is-open,
body .wbsPopup.ts-mobile-sheet.is-closing,
body .wbsPopup.full-popup.is-open,
body .wbsPopup.full-popup.is-closing,
body .wbsPopup.mini-popup.is-open,
body .wbsPopup.mini-popup.is-closing {
  display: flex !important;
}

body .wbsPopup.navPanel::before,
body .wbsPopup.ts-mobile-sheet::before,
body .wbsPopup.full-popup::before,
body .wbsPopup.mini-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ts-sheet-overlay);
  opacity: 0;
  transition: opacity var(--ts-sheet-duration-out) var(--ts-sheet-ease-out);
  pointer-events: none;
}

body .wbsPopup.navPanel.is-open::before,
body .wbsPopup.ts-mobile-sheet.is-open::before,
body .wbsPopup.full-popup.is-open::before,
body .wbsPopup.mini-popup.is-open::before {
  opacity: 1;
  pointer-events: auto;
  transition-duration: var(--ts-sheet-duration);
  transition-timing-function: var(--ts-sheet-ease);
}

/* ---------- Sheet panel ---------- */
body .wbsPopup.navPanel > .popup-container,
body .wbsPopup.ts-mobile-sheet > .popup-container,
body .wbsPopup.full-popup > .popup-container,
body .wbsPopup.mini-popup > .popup-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin: 0;
  color: var(--ts-sheet-text);
  background: var(--ts-sheet-surface) !important;
  box-shadow: var(--ts-sheet-shadow);
  border: 1px solid var(--ts-sheet-border);
  will-change: transform;
  transform: translate3d(0, calc(110% + var(--ts-sheet-drag-y)), 0);
  transition: transform var(--ts-sheet-duration-out) var(--ts-sheet-ease-out);
  overscroll-behavior: contain;
}

body .wbsPopup.navPanel.is-open > .popup-container,
body .wbsPopup.navPanel.is-open > .popup-container.open,
body .wbsPopup.ts-mobile-sheet.is-open > .popup-container,
body .wbsPopup.ts-mobile-sheet.is-open > .popup-container.open,
body .wbsPopup.full-popup.is-open > .popup-container,
body .wbsPopup.full-popup.is-open > .popup-container.open,
body .wbsPopup.mini-popup.is-open > .popup-container,
body .wbsPopup.mini-popup.is-open > .popup-container.open {
  transform: translate3d(0, var(--ts-sheet-drag-y), 0);
  transition-duration: var(--ts-sheet-duration);
  transition-timing-function: var(--ts-sheet-ease);
}

body .wbsPopup.navPanel.is-dragging > .popup-container,
body .wbsPopup.ts-mobile-sheet.is-dragging > .popup-container,
body .wbsPopup.mini-popup.is-dragging > .popup-container,
body .wbsPopup.full-popup.is-dragging > .popup-container {
  transition: none;
}

/* Full-height sheets (menu / search) */
body .wbsPopup.full-popup > .popup-container {
  height: 100%;
  max-height: 100dvh;
  border-radius: 0;
  border-inline: 0;
  border-block-start: 0;
  padding-bottom: var(--ts-sheet-safe-bottom);
}

/* Bottom sheets that sit above the tab bar (cart / profile) */
body .wbsPopup.mini-popup > .popup-container {
  height: auto;
  max-height: min(88dvh, calc(100dvh - var(--ts-sheet-nav-clearance) + 8px));
  margin-bottom: var(--ts-sheet-nav-clearance);
  border-radius: var(--ts-sheet-radius) var(--ts-sheet-radius) 0 0;
  border-bottom: 0;
  padding-bottom: max(12px, var(--ts-sheet-safe-bottom));
}

/*
 * Scroll-expand detent (cart).
 * Height is tweened in JS (measured px → measured px) so we never jump from
 * height:auto to a fixed full-viewport height. CSS only owns the end states
 * and cosmetic transitions (radius / shadow). Keep in sync with TS_SHEET_EXPAND_MS.
 */
body .wbsPopup[data-sheet-expand="true"] > .popup-container {
  /* Size is JS-driven during expand; open/close still uses transform. */
  transition:
    transform var(--ts-sheet-duration-out) var(--ts-sheet-ease-out),
    border-radius 520ms var(--ts-sheet-ease),
    box-shadow 520ms var(--ts-sheet-ease);
  will-change: height, margin-bottom, transform;
}

body .wbsPopup[data-sheet-expand="true"].is-open > .popup-container,
body .wbsPopup[data-sheet-expand="true"].is-open > .popup-container.open {
  transition:
    transform var(--ts-sheet-duration) var(--ts-sheet-ease),
    border-radius 520ms var(--ts-sheet-ease),
    box-shadow 520ms var(--ts-sheet-ease);
}

/* While dragging to dismiss, freeze CSS transitions; expand size is always JS-tweened. */
body .wbsPopup[data-sheet-expand="true"].is-dragging > .popup-container {
  transition: none;
}

/* Steady expanded end-state (after JS clears inline px heights). */
body .wbsPopup[data-sheet-expand="true"].is-expanded > .popup-container,
body #navCart.wbsPopup.is-expanded > .popup-container {
  height: calc(100dvh - 4px) !important;
  max-height: calc(100dvh - 4px) !important;
  margin-bottom: 0 !important;
  border-radius: 14px 14px 0 0 !important;
  padding-bottom: max(12px, var(--ts-sheet-safe-bottom)) !important;
  box-shadow:
    0 -8px 32px color-mix(in srgb, var(--text-strong) 10%, transparent),
    var(--ts-sheet-shadow) !important;
}

/* Expanded feels like a page: slightly stronger handle, tighter chrome. */
body .wbsPopup[data-sheet-expand="true"].is-expanded .ts-sheet-handle span {
  width: 36px;
  background: color-mix(in srgb, var(--ts-sheet-handle) 85%, var(--theme-accent));
  transition: width 520ms var(--ts-sheet-ease), background-color 520ms var(--ts-sheet-ease);
}

/*
 * Fullscreen cart: pin checkout CTA to the sheet bottom.
 * Only the item list scrolls — sticky was unreliable with flex+overflow on
 * the same node when many items are in the cart.
 */
body #navCart.wbsPopup.is-expanded > .popup-container {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  /* Safe-area lives on the pinned footer so the CTA sits flush on the bottom. */
  padding-bottom: 0 !important;
}

body #navCart.wbsPopup.is-expanded .ts-sheet-handle {
  flex: 0 0 auto;
}

body #navCart.wbsPopup.is-expanded .cart-info.ts-sheet-body,
body #navCart.wbsPopup.is-expanded .cart-info {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important; /* scroll moves to .cart.content */
  -webkit-overflow-scrolling: auto;
}

body #navCart.wbsPopup.is-expanded .cart-info > .top-panel {
  flex: 0 0 auto;
}

body #navCart.wbsPopup.is-expanded .cart-info > .cart.content {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

body #navCart.wbsPopup.is-expanded .cart-info > .cart.content > ul {
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 8px;
}

/* Pinned checkout bar — always at the bottom of the fullscreen sheet. */
body #navCart.wbsPopup.is-expanded .cart-info > .total-box.footer {
  flex: 0 0 auto !important;
  position: relative !important;
  inset: auto !important;
  z-index: 3;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding: 12px 14px max(14px, env(safe-area-inset-bottom, 0px)) !important;
  border-top: 1px solid var(--ts-sheet-border) !important;
  background: var(--ts-sheet-surface) !important;
  box-shadow: 0 -8px 28px color-mix(in srgb, var(--text-strong) 8%, transparent);
}

body #navCart.wbsPopup.is-expanded .cart-info > .empty-cart {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

body #navCart.wbsPopup.is-expanded .cart-info > .empty-cart .footer {
  flex: 0 0 auto;
  margin-top: auto;
  padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
}

@media (prefers-reduced-motion: reduce) {
  body .wbsPopup[data-sheet-expand="true"] > .popup-container,
  body .wbsPopup[data-sheet-expand="true"].is-open > .popup-container,
  body .wbsPopup[data-sheet-expand="true"].is-open > .popup-container.open,
  body .wbsPopup[data-sheet-expand="true"].is-expanded .ts-sheet-handle span {
    transition-duration: 0.01ms !important;
  }
}

/* Override legacy absolute bottom offsets from route CSS */
body #navMenu.wbsPopup > .popup-container,
body #navSearch.wbsPopup > .popup-container,
body #navVideo.wbsPopup > .popup-container {
  bottom: auto !important;
  top: auto !important;
  left: 0;
  right: 0;
  height: 100% !important;
  width: 100% !important;
  border-radius: 0 !important;
}

body #navProfile.wbsPopup > .popup-container,
body #navCart.wbsPopup > .popup-container {
  bottom: auto !important;
  top: auto !important;
  left: 0;
  right: 0;
  width: 100% !important;
  border-radius: var(--ts-sheet-radius) var(--ts-sheet-radius) 0 0 !important;
}

body #navProfile.wbsPopup > .popup-container.open,
body #navCart.wbsPopup > .popup-container.open {
  bottom: auto !important;
}

/* ---------- Drag handle ---------- */
body .wbsPopup .ts-sheet-handle {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
  padding: 10px 0 6px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

body .wbsPopup .ts-sheet-handle span {
  display: block;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--ts-sheet-handle);
}

body .wbsPopup.is-dragging .ts-sheet-handle {
  cursor: grabbing;
}

/* ---------- Sheet body scroll region ---------- */
body .wbsPopup .ts-sheet-body,
body #navMenu .content,
body #navCart .cart-info,
body #navProfile .mini-box,
body #navCategorySheet .ts-category-sheet__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  color: var(--ts-sheet-text);
}

/*
 * Menu text must win over compiled route CSS
 * (#navMenu .popup-container .content > ul li a { color: var(--black-white) })
 * and stay readable in both light and dark modes.
 */
body #navMenu.wbsPopup .popup-container,
body #navMenu.wbsPopup .popup-container .content,
body #navMenu.wbsPopup .popup-container .ts-sheet-body {
  color: var(--ts-sheet-text) !important;
  background: var(--ts-sheet-surface) !important;
}

body #navMenu .logo {
  flex: 0 0 auto;
  background: var(--ts-sheet-surface) !important;
  border-bottom: 1px solid var(--ts-sheet-border) !important;
  color: var(--ts-sheet-text) !important;
}

body #navMenu.wbsPopup .popup-container .content > ul li,
body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children ul li {
  background: var(--ts-sheet-raised) !important;
  border: 1px solid var(--ts-sheet-border) !important;
  color: var(--ts-sheet-text) !important;
}

body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children ul li {
  border: 0 !important;
  background: transparent !important;
}

body #navMenu.wbsPopup .popup-container .content > ul li a,
body #navMenu.wbsPopup .popup-container .content > ul li a:link,
body #navMenu.wbsPopup .popup-container .content > ul li a:visited,
body #navMenu.wbsPopup .popup-container .content > ul li a:hover,
body #navMenu.wbsPopup .popup-container .content > ul li a:active,
body #navMenu.wbsPopup .popup-container .content > ul li a::after,
body #navMenu.wbsPopup .popup-container .content > ul li a:after {
  color: var(--ts-sheet-text) !important;
}

body #navMenu.wbsPopup .popup-container .content > ul li.wbs-all-items > a,
body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children.open > a,
body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children.open > a::after,
body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children.open > a:after,
body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children ul li.open > a,
body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children ul li.open > a::after,
body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children ul li.open > a:after {
  color: var(--theme-accent) !important;
}

body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children ul {
  background: color-mix(in srgb, var(--theme-accent) 10%, var(--ts-sheet-surface)) !important;
}

body #navMenu.wbsPopup .popup-container .content > ul li.menu-item-has-children ul ul {
  border-right-color: var(--ts-sheet-border) !important;
  background: transparent !important;
}

body #navProfile.wbsPopup .popup-container,
body #navCart.wbsPopup .popup-container {
  color: var(--ts-sheet-text) !important;
}

body #navProfile .top-panel,
body #navCart .top-panel,
body #navProfile .top-panel span,
body #navCart .top-panel span,
body #navProfile .mini-box,
body #navProfile .mini-box a,
body #navCart .cart-info,
body #navCart .cart-info a,
body #navCart .cart-info p,
body #navCart .cart-info span {
  color: var(--ts-sheet-text) !important;
}

body #navProfile .top-panel,
body #navCart .top-panel {
  background: var(--ts-sheet-raised) !important;
  border-radius: calc(var(--ts-sheet-radius) - 4px) calc(var(--ts-sheet-radius) - 4px) 0 0;
}

body #navProfile .top-panel i,
body #navCart .top-panel i {
  color: var(--theme-accent) !important;
}

/* Profile menu icons stay muted; only header chevron keeps accent. */
body #navProfile .mini-box a.ts-profile-menu__link > i,
body #navProfile .mini-box .ts-profile-menu__link > i {
  color: var(--text-muted) !important;
  opacity: 1 !important;
}

body #navCart .cart-info i {
  color: var(--theme-accent) !important;
}

/* Trash = danger on mobile + desktop (must win over the accent blanket above). */
body #navCart .cart-info i.icon-trush2,
body #navCart .cart-info .wbs-qty i.icon-trush2,
body #navCart .cart-box .wbs-qty i.icon-trush2 {
  color: var(--state-danger) !important;
}

/* Cart sheet checkout CTA must stay readable in light + dark. */
body #navCart.wbsPopup .cart-box .footer.total-box a,
body #navCart.wbsPopup .total-box.footer a {
  background: var(--theme-accent) !important;
  color: var(--text-on-accent) !important;
  border: 1px solid var(--theme-accent) !important;
}

body #navCart.wbsPopup .cart-box .footer.total-box a span,
body #navCart.wbsPopup .cart-box .footer.total-box a .title,
body #navCart.wbsPopup .cart-box .footer.total-box a .cart-total,
body #navCart.wbsPopup .cart-box .footer.total-box a small,
body #navCart.wbsPopup .total-box.footer a span,
body #navCart.wbsPopup .total-box.footer a .title,
body #navCart.wbsPopup .total-box.footer a .cart-total,
body #navCart.wbsPopup .total-box.footer a small {
  color: var(--text-on-accent) !important;
}

body #navCart.wbsPopup .cart-box .top-panel a {
  color: var(--theme-accent) !important;
}

body #navCart.wbsPopup .cart-box .footer:not(.total-box),
body #navCart.wbsPopup .empty-cart .footer {
  color: var(--ts-sheet-text) !important;
  border-top-color: var(--ts-sheet-border) !important;
}

/* ---------- Category detail sheet (speaker / headphone / others) ---------- */
body #navCategorySheet.wbsPopup {
  z-index: 95;
}

body #navCategorySheet.wbsPopup > .popup-container {
  position: relative !important;
  top: auto !important;
  right: 0 !important;
  left: 0 !important;
  bottom: auto !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 42vh !important;
  max-height: min(86dvh, calc(100dvh - var(--ts-sheet-nav-clearance) + 12px)) !important;
  margin: 0 0 var(--ts-sheet-nav-clearance) !important;
  padding: 0 0 max(12px, var(--ts-sheet-safe-bottom)) !important;
  overflow: hidden !important;
  color: var(--ts-sheet-text) !important;
  background: var(--ts-sheet-surface) !important;
  border: 1px solid var(--ts-sheet-border) !important;
  border-bottom: 0 !important;
  border-radius: var(--ts-sheet-radius) var(--ts-sheet-radius) 0 0 !important;
  box-shadow: var(--ts-sheet-shadow) !important;
  transform: translate3d(0, calc(110% + var(--ts-sheet-drag-y)), 0) !important;
  transition: transform var(--ts-sheet-duration-out) var(--ts-sheet-ease-out) !important;
}

body #navCategorySheet.wbsPopup.is-open > .popup-container,
body #navCategorySheet.wbsPopup.is-open > .popup-container.open {
  transform: translate3d(0, var(--ts-sheet-drag-y), 0) !important;
  transition-duration: var(--ts-sheet-duration) !important;
  transition-timing-function: var(--ts-sheet-ease) !important;
}

body #navCategorySheet.wbsPopup.is-dragging > .popup-container {
  transition: none !important;
}

/*
 * Sheet chrome: 3-column grid keeps handle centered and the close
 * button in its own slot — never overlaps title / "مشاهده همه".
 * Beats legacy `.close-dynamic { top/left }` from route CSS.
 */
body #navCategorySheet .ts-category-sheet__chrome {
  /* Geometric chrome: LTR so close stays left + handle center in RTL pages. */
  direction: ltr;
  position: sticky;
  top: 0;
  z-index: 4;
  flex: 0 0 auto;
  display: grid !important;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  justify-items: center;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 10px 12px 6px;
  padding-top: max(10px, env(safe-area-inset-top, 0px));
  background: var(--ts-sheet-surface);
  border-bottom: 1px solid color-mix(in srgb, var(--ts-sheet-border) 70%, transparent);
}

body #navCategorySheet .ts-category-sheet__chrome .ts-sheet-handle {
  grid-column: 2;
  grid-row: 1;
  position: static !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 20px;
  margin: 0 !important;
  padding: 6px 0 !important;
  cursor: grab;
}

body #navCategorySheet .ts-category-sheet__chrome .ts-sheet-handle span {
  width: 40px;
  height: 4px;
}

/* Close sits on the physical left (inline-end in RTL Persian UI). */
body #navCategorySheet .ts-category-sheet__close,
body #navCategorySheet button.ts-category-sheet__close.close-dynamic {
  position: relative !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  inset: auto !important;
  grid-column: 1;
  grid-row: 1;
  z-index: 5;
  display: grid !important;
  place-items: center;
  box-sizing: border-box;
  width: 40px !important;
  height: 40px !important;
  min-width: 40px;
  min-height: 40px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--ts-sheet-border) !important;
  border-radius: 999px !important;
  background: var(--ts-sheet-raised) !important;
  color: var(--ts-sheet-text) !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition:
    background-color 160ms var(--theme-motion-ease, ease),
    border-color 160ms var(--theme-motion-ease, ease),
    color 160ms var(--theme-motion-ease, ease),
    transform 120ms var(--theme-motion-ease, ease);
}

/* Keep a balanced empty slot on the opposite side so the handle stays centered. */
body #navCategorySheet .ts-category-sheet__chrome::after {
  content: "";
  grid-column: 3;
  grid-row: 1;
  width: 40px;
  height: 40px;
  pointer-events: none;
  visibility: hidden;
}

body #navCategorySheet .ts-category-sheet__close:hover,
body #navCategorySheet .ts-category-sheet__close:focus-visible {
  border-color: color-mix(in srgb, var(--theme-accent) 50%, var(--ts-sheet-border)) !important;
  background: color-mix(in srgb, var(--theme-accent) 14%, var(--ts-sheet-raised)) !important;
  color: var(--ts-sheet-text) !important;
  outline: none;
}

body #navCategorySheet .ts-category-sheet__close:active {
  transform: scale(0.94) !important;
}

body #navCategorySheet .ts-category-sheet__close:focus-visible {
  outline: 2px solid var(--focus-ring) !important;
  outline-offset: 2px;
}

body #navCategorySheet .ts-category-sheet__close i,
body #navCategorySheet .ts-category-sheet__close i::before,
body #navCategorySheet .ts-category-sheet__close i::after {
  color: inherit !important;
  font-size: 15px !important;
  line-height: 1 !important;
}

body #navCategorySheet .ts-category-sheet__body,
body #navCategorySheet .container {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 10px 14px 12px !important;
  background: transparent !important;
}

body #navCategorySheet .iland-item {
  position: relative !important;
  display: none !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 0 8px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ts-sheet-text) !important;
}

body #navCategorySheet .iland-item.is-active,
body #navCategorySheet .iland-item.is-active[hidden] {
  display: block !important;
}

/*
 * Title row: category title on the start edge (right in RTL),
 * "مشاهده همه" CTA on the end edge (left in RTL).
 * Do NOT let the title grow+center — that was pushing "هدفون" into the middle.
 */
body #navCategorySheet .iland-item .parent-item,
body #navCategorySheet .iland-item .ts-category-sheet__title-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 52px !important;
  margin: 0 0 14px !important;
  padding-block: 8px !important;
  padding-inline-start: 12px !important;
  padding-inline-end: 8px !important;
  border: 1px solid var(--ts-sheet-border) !important;
  border-radius: 14px !important;
  /* Flat surface — no accent glow / gradient wash */
  background: var(--ts-sheet-raised) !important;
  box-shadow: none !important;
  color: var(--ts-sheet-text) !important;
}

body #navCategorySheet .iland-item .parent-item > span,
body #navCategorySheet .iland-item .ts-category-sheet__title {
  display: inline-flex !important;
  flex: 0 1 auto !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: calc(100% - 7.5rem) !important;
  margin: 0 !important;
  margin-inline-end: auto !important;
  overflow: hidden !important;
  color: var(--ts-sheet-text) !important;
  font-size: clamp(15px, 4vw, 17px) !important;
  font-variation-settings: "wght" 650 !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
  text-align: start !important;
}

/* Title rows without a view-all CTA (e.g. menu) use full width */
body #navCategorySheet .iland-item .ts-category-sheet__title-row:not(:has(.ts-category-sheet__view-all)) .ts-category-sheet__title,
body #navCategorySheet .iland-item .parent-item:not(:has(> a)) > span {
  max-width: 100% !important;
}

body #navCategorySheet .iland-item .ts-category-sheet__title-text {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body #navCategorySheet .iland-item .parent-item > span i,
body #navCategorySheet .iland-item .ts-category-sheet__title i,
body #navCategorySheet .iland-item .parent-item > span i::after,
body #navCategorySheet .iland-item .parent-item > span i:after,
body #navCategorySheet .iland-item .ts-category-sheet__title i::after,
body #navCategorySheet .iland-item .ts-category-sheet__title i:after {
  display: grid !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  box-sizing: border-box !important;
  width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  border: 1px solid var(--ts-sheet-border) !important;
  border-radius: 10px !important;
  background: var(--ts-sheet-surface) !important;
  color: var(--theme-accent) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  box-shadow: none !important;
}

/* CSS hamburger in title chip must not paint as a solid green square */
body #navCategorySheet .iland-item .ts-category-sheet__title i.icon-menu-bars,
body #navCategorySheet .iland-item .ts-category-sheet__title i.icon-menu-bars::before,
body #navCategorySheet .iland-item .ts-category-sheet__title i.icon-menu-bars::after {
  display: none !important;
  content: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

body #navCategorySheet .iland-item .parent-item > a,
body #navCategorySheet .iland-item .ts-category-sheet__view-all {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  min-height: 36px !important;
  max-width: none !important;
  margin: 0 !important;
  margin-inline-start: 0 !important;
  padding: 8px 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--theme-accent) !important;
  /* Soft lift only — not a heavy glow */
  box-shadow: 0 1px 2px color-mix(in srgb, var(--shadow-color) 35%, transparent) !important;
  color: var(--text-on-accent) !important;
  font-size: 12px !important;
  font-variation-settings: "wght" 650 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  text-decoration: none !important;
  transition:
    transform 140ms var(--theme-motion-ease, ease),
    box-shadow 140ms var(--theme-motion-ease, ease),
    background-color 140ms var(--theme-motion-ease, ease) !important;
}

body #navCategorySheet .iland-item .parent-item > a:active,
body #navCategorySheet .iland-item .ts-category-sheet__view-all:active {
  transform: scale(0.97) !important;
}

body #navCategorySheet .iland-item .parent-item > a:focus-visible,
body #navCategorySheet .iland-item .ts-category-sheet__view-all:focus-visible {
  outline: 2px solid var(--focus-ring, var(--theme-accent)) !important;
  outline-offset: 2px !important;
}

/* Compact phones: slightly tighter chrome, still single-row title when possible. */
@media (max-width: 399.98px) {
  body #navCategorySheet .ts-category-sheet__chrome {
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    min-height: 44px;
    padding: 8px 10px 4px;
    padding-top: max(8px, env(safe-area-inset-top, 0px));
  }

  body #navCategorySheet .ts-category-sheet__close,
  body #navCategorySheet button.ts-category-sheet__close.close-dynamic {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px;
    min-height: 36px;
  }

  body #navCategorySheet .ts-category-sheet__chrome::after {
    width: 36px;
    height: 36px;
  }

  body #navCategorySheet .ts-category-sheet__body,
  body #navCategorySheet .container {
    padding: 8px 12px 10px !important;
  }

  body #navCategorySheet .iland-item .parent-item,
  body #navCategorySheet .iland-item .ts-category-sheet__title-row {
    gap: 10px !important;
    min-height: 50px !important;
    margin-bottom: 12px !important;
    padding-block: 7px !important;
    padding-inline-start: 10px !important;
    padding-inline-end: 7px !important;
  }

  body #navCategorySheet .iland-item .parent-item > span,
  body #navCategorySheet .iland-item .ts-category-sheet__title {
    max-width: calc(100% - 6.75rem) !important;
    gap: 8px !important;
    font-size: 15px !important;
  }

  body #navCategorySheet .iland-item .parent-item > span i,
  body #navCategorySheet .iland-item .ts-category-sheet__title i {
    width: 32px !important;
    height: 32px !important;
    border-radius: 10px !important;
    font-size: 15px !important;
  }

  body #navCategorySheet .iland-item .parent-item > a,
  body #navCategorySheet .iland-item .ts-category-sheet__view-all {
    min-height: 36px !important;
    padding: 7px 12px !important;
    font-size: 11px !important;
  }
}

/* Very narrow: stack title + CTA so nothing collides or truncates badly. */
@media (max-width: 339.98px) {
  body #navCategorySheet .iland-item .parent-item,
  body #navCategorySheet .iland-item .ts-category-sheet__title-row {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  body #navCategorySheet .iland-item .parent-item > span,
  body #navCategorySheet .iland-item .ts-category-sheet__title {
    justify-content: flex-start !important;
    width: 100% !important;
    max-width: none !important;
    margin-inline-end: 0 !important;
  }

  body #navCategorySheet .iland-item .parent-item > a,
  body #navCategorySheet .iland-item .ts-category-sheet__view-all {
    width: 100% !important;
    max-width: none !important;
    min-height: 42px !important;
  }
}

/*
 * Category cards — clean modern app tiles.
 * No glow, no neon bars, no fake letter chips. Title + count + CTA only.
 * IMPORTANT: never apply this grid to .sub-items.list-item (desktop menu panel).
 */
body #navCategorySheet .iland-item .sub-items.ts-cat-grid,
body #navCategorySheet .iland-item .sub-items:not(.list-item) {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 0 4px !important;
  overflow: visible !important;
  flex-wrap: unset !important;
}

body #navCategorySheet .iland-item .ts-cat-card,
body #navCategorySheet .iland-item .sub-items:not(.list-item) > a {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 92px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 14px 12px !important;
  overflow: hidden !important;
  border: 1px solid var(--ts-sheet-border) !important;
  border-radius: 14px !important;
  background: var(--ts-sheet-raised) !important;
  box-shadow: none !important;
  color: var(--ts-sheet-text) !important;
  text-decoration: none !important;
  transition:
    border-color 140ms var(--theme-motion-ease, ease),
    background-color 140ms var(--theme-motion-ease, ease);
}

body #navCategorySheet .iland-item .ts-cat-card::before,
body #navCategorySheet .iland-item .ts-cat-card::after {
  content: none !important;
  display: none !important;
}

/* Optional real thumbnail only — never fake initials */
body #navCategorySheet .iland-item .ts-cat-card.has-media {
  display: grid !important;
  grid-template-columns: 40px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 0 !important;
  padding: 12px !important;
}

body #navCategorySheet .iland-item .ts-cat-card__media {
  display: block !important;
  flex: 0 0 auto !important;
  box-sizing: border-box !important;
  width: 40px !important;
  height: 40px !important;
  overflow: hidden !important;
  border: 1px solid var(--ts-sheet-border) !important;
  border-radius: 10px !important;
  background: var(--ts-sheet-surface) !important;
}

body #navCategorySheet .iland-item .ts-cat-card__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body #navCategorySheet .iland-item .ts-cat-card__initial {
  display: none !important;
}

body #navCategorySheet .iland-item .ts-cat-card__body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
  min-height: 100% !important;
}

body #navCategorySheet .iland-item .ts-cat-card__title,
body #navCategorySheet .iland-item .sub-items:not(.list-item) > a p,
body #navCategorySheet .iland-item .sub-items:not(.list-item) > a > p {
  display: -webkit-box !important;
  flex: 0 1 auto !important;
  margin: 0 !important;
  overflow: hidden !important;
  color: var(--ts-sheet-text) !important;
  font-size: 13.5px !important;
  font-variation-settings: "wght" 650 !important;
  line-height: 1.35 !important;
  text-align: start !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
}

body #navCategorySheet .iland-item .ts-cat-card__meta,
body #navCategorySheet .iland-item .sub-items .info {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Count = plain secondary text, not a glowing pill */
body #navCategorySheet .iland-item .ts-cat-card__count,
body #navCategorySheet .iland-item .sub-items .wbs-badge {
  display: inline !important;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ts-sheet-muted) !important;
  font-size: 12px !important;
  font-variation-settings: "wght" 500 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* CTA = simple text action, no neon chip */
body #navCategorySheet .iland-item .ts-cat-card__cta,
body #navCategorySheet .iland-item .sub-items .wbs-button {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 2px !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--theme-accent) !important;
  font-size: 12px !important;
  font-variation-settings: "wght" 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

body #navCategorySheet .iland-item .ts-cat-card__cta i,
body #navCategorySheet .iland-item .sub-items .wbs-button i,
body #navCategorySheet .iland-item .ts-cat-card__cta i::after,
body #navCategorySheet .iland-item .ts-cat-card__cta i:after,
body #navCategorySheet .iland-item .sub-items .wbs-button i::after,
body #navCategorySheet .iland-item .sub-items .wbs-button i:after {
  margin: 0 !important;
  color: inherit !important;
  background: transparent !important;
  font-size: 11px !important;
}

body #navCategorySheet .iland-item .ts-cat-card:hover,
body #navCategorySheet .iland-item .ts-cat-card:focus-visible,
body #navCategorySheet .iland-item .sub-items > a:hover,
body #navCategorySheet .iland-item .sub-items > a:focus-visible {
  border-color: color-mix(in srgb, var(--ts-sheet-text) 22%, var(--ts-sheet-border)) !important;
  background: color-mix(in srgb, var(--ts-sheet-surface) 35%, var(--ts-sheet-raised)) !important;
  box-shadow: none !important;
  outline: none !important;
}

body #navCategorySheet .iland-item .ts-cat-card:focus-visible {
  outline: 2px solid var(--focus-ring, var(--theme-accent)) !important;
  outline-offset: 2px !important;
}

body #navCategorySheet .iland-item .ts-cat-card:active {
  background: color-mix(in srgb, var(--ts-sheet-surface) 55%, var(--ts-sheet-raised)) !important;
  transform: none;
}

/* Very small phones */
@media (max-width: 359.98px) {
  body #navCategorySheet .iland-item .sub-items,
  body #navCategorySheet .iland-item .sub-items.ts-cat-grid {
    gap: 8px !important;
  }

  body #navCategorySheet .iland-item .ts-cat-card,
  body #navCategorySheet .iland-item .sub-items:not(.list-item) > a {
    min-height: 86px !important;
    gap: 10px !important;
    padding: 12px 10px !important;
  }

  body #navCategorySheet .iland-item .ts-cat-card.has-media {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    padding: 10px !important;
  }

  body #navCategorySheet .iland-item .ts-cat-card__media {
    width: 36px !important;
    height: 36px !important;
    border-radius: 9px !important;
  }

  body #navCategorySheet .iland-item .ts-cat-card__title,
  body #navCategorySheet .iland-item .sub-items:not(.list-item) > a p {
    font-size: 12.5px !important;
  }

  body #navCategorySheet .iland-item .ts-cat-card__count,
  body #navCategorySheet .iland-item .sub-items .wbs-badge,
  body #navCategorySheet .iland-item .ts-cat-card__cta,
  body #navCategorySheet .iland-item .sub-items .wbs-button {
    font-size: 11px !important;
  }
}

/* Wider phones */
@media (min-width: 420px) and (max-width: 991.98px) {
  body #navCategorySheet .iland-item .sub-items,
  body #navCategorySheet .iland-item .sub-items.ts-cat-grid {
    gap: 12px !important;
  }

  body #navCategorySheet .iland-item .ts-cat-card,
  body #navCategorySheet .iland-item .sub-items:not(.list-item) > a {
    min-height: 96px !important;
    padding: 16px 14px !important;
  }

  body #navCategorySheet .iland-item .ts-cat-card__title,
  body #navCategorySheet .iland-item .sub-items:not(.list-item) > a p {
    font-size: 14px !important;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body .wbsPopup.navPanel::before,
  body .wbsPopup.ts-mobile-sheet::before,
  body .wbsPopup.full-popup::before,
  body .wbsPopup.mini-popup::before,
  body .wbsPopup.navPanel > .popup-container,
  body .wbsPopup.ts-mobile-sheet > .popup-container,
  body .wbsPopup.full-popup > .popup-container,
  body .wbsPopup.mini-popup > .popup-container {
    transition-duration: 0.01ms !important;
  }
}

/* Larger phones / tablets: keep sheet readable and centered */
@media (min-width: 480px) and (max-width: 991.98px) {
  body .wbsPopup.mini-popup > .popup-container {
    max-width: 480px;
    margin-inline: auto;
    border-inline: 1px solid var(--ts-sheet-border);
  }
}

/*
 * Desktop only: category sheet above the dock + dock layout/hover polish.
 */
@media (min-width: 992px) {
  /*
   * Dock layout: categories on the left, "منو" on the right.
   * In RTL flex, menu is first → sits on the right; auto end-margin
   * pushes speaker/headphone/others to the left group.
   */
  body #dynamic-iland .items-box .items {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }

  /*
   * Physical layout (RTL dock):
   * left  = go-top scroll button
   * mid   = categories (اسپیکر / هدفون / سایر)
   * right = منو
   */
  body #dynamic-iland .items-box .items > .go-top {
    order: 3 !important;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: color-mix(in srgb, #fff 78%, transparent) !important;
    opacity: 1 !important;
    cursor: pointer !important;
    transition:
      background-color 140ms var(--theme-motion-ease, ease),
      color 140ms var(--theme-motion-ease, ease) !important;
  }

  body #dynamic-iland .items-box .items > .go-top i {
    margin: 0 !important;
    font-size: 16px !important;
    color: inherit !important;
    transition: none !important;
    transform: none !important;
  }

  body #dynamic-iland .items-box .items > .go-top:hover,
  body #dynamic-iland .items-box .items > .go-top:focus-visible {
    background: color-mix(in srgb, #fff 14%, transparent) !important;
    color: var(--theme-accent) !important;
    outline: none !important;
  }

  body #dynamic-iland .items-box .items > .go-top:focus-visible {
    outline: 2px solid var(--focus-ring, var(--theme-accent)) !important;
    outline-offset: 2px !important;
  }

  body #dynamic-iland .items-box .items ul {
    display: flex !important;
    flex: 1 1 auto !important;
    order: 1 !important;
    align-items: center !important;
    min-width: 0 !important;
    margin: 0 !important;
  }

  body #dynamic-iland .items ul li[data-target="ilandMenu"] {
    margin-inline-end: auto !important;
  }

  /* Clear, obvious hover for every dock item (including menu) */
  body #dynamic-iland .items ul li {
    border-radius: 999px !important;
    transition:
      background-color 140ms var(--theme-motion-ease, ease),
      color 140ms var(--theme-motion-ease, ease) !important;
  }

  body #dynamic-iland .items ul li > span,
  body #dynamic-iland .items ul li > .ts-iland-menu-item,
  body #dynamic-iland .items ul li > .centered-flex {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 36px !important;
    padding: 6px 12px !important;
    border-radius: 999px !important;
    transition:
      background-color 140ms var(--theme-motion-ease, ease),
      color 140ms var(--theme-motion-ease, ease) !important;
  }

  body #dynamic-iland .items ul li:hover > span,
  body #dynamic-iland .items ul li:hover > .ts-iland-menu-item,
  body #dynamic-iland .items ul li:hover > .centered-flex {
    background: color-mix(in srgb, #fff 14%, transparent) !important;
    color: var(--theme-accent) !important;
  }

  body #dynamic-iland .items ul li:hover i,
  body #dynamic-iland .items ul li:hover .ts-iland-hamburger {
    color: var(--theme-accent) !important;
  }

  body #dynamic-iland .items ul li.active > span,
  body #dynamic-iland .items ul li.active > .ts-iland-menu-item,
  body #dynamic-iland .items ul li.active > .centered-flex {
    background: color-mix(in srgb, var(--theme-accent) 18%, transparent) !important;
    color: var(--theme-accent) !important;
  }

  body #dynamic-iland .items ul li.active i,
  body #dynamic-iland .items ul li.active .ts-iland-hamburger {
    color: var(--theme-accent) !important;
  }

  body #navCategorySheet.wbsPopup {
    z-index: 100050 !important;
  }

  body #navCategorySheet.wbsPopup > .popup-container {
    width: min(860px, calc(100vw - 48px)) !important;
    max-width: min(860px, calc(100vw - 48px)) !important;
    min-height: 0 !important;
    max-height: min(72vh, 720px) !important;
    margin: 0 auto 120px !important;
    border: 1px solid var(--ts-sheet-border) !important;
    border-radius: 20px !important;
  }

  body #navCategorySheet .ts-category-sheet__chrome {
    border-radius: 20px 20px 0 0;
  }

  /* Menu panel: vertical list like a real menu, not chips + logo mashup */
  body #navCategorySheet #ilandMenu .sub-items.list-item {
    display: block !important;
    max-height: none !important;
    padding: 0 0 8px !important;
    overflow: visible !important;
  }

  body #navCategorySheet #ilandMenu .parent-item,
  body #navCategorySheet #ilandMenu .ts-category-sheet__title-row {
    min-height: 44px !important;
    margin-bottom: 10px !important;
    padding: 8px 12px !important;
  }

  body #navCategorySheet #ilandMenu .parent-item > span,
  body #navCategorySheet #ilandMenu .ts-category-sheet__title {
    max-width: 100% !important;
    margin-inline-end: 0 !important;
    font-size: 15px !important;
  }

  body #navCategorySheet #ilandMenu .ts-iland-menu-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body #navCategorySheet #ilandMenu .ts-iland-menu-list a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    border: 1px solid var(--ts-sheet-border) !important;
    border-radius: 12px !important;
    background: var(--ts-sheet-raised) !important;
    color: var(--ts-sheet-text) !important;
    font-size: 14px !important;
    font-variation-settings: "wght" 550 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition:
      border-color 140ms var(--theme-motion-ease, ease),
      background-color 140ms var(--theme-motion-ease, ease),
      color 140ms var(--theme-motion-ease, ease) !important;
  }

  body #navCategorySheet #ilandMenu .ts-iland-menu-list a span {
    min-width: 0 !important;
    text-align: start !important;
  }

  body #navCategorySheet #ilandMenu .ts-iland-menu-list a i {
    flex: 0 0 auto !important;
    margin: 0 !important;
    color: var(--ts-sheet-muted) !important;
    font-size: 12px !important;
    line-height: 1 !important;
  }

  body #navCategorySheet #ilandMenu .ts-iland-menu-list a:hover,
  body #navCategorySheet #ilandMenu .ts-iland-menu-list a:focus-visible {
    border-color: color-mix(in srgb, var(--ts-sheet-text) 20%, var(--ts-sheet-border)) !important;
    background: color-mix(in srgb, var(--ts-sheet-surface) 28%, var(--ts-sheet-raised)) !important;
    color: var(--theme-accent) !important;
    outline: none !important;
  }

  body #navCategorySheet #ilandMenu .ts-iland-menu-list a:hover i,
  body #navCategorySheet #ilandMenu .ts-iland-menu-list a:focus-visible i {
    color: var(--theme-accent) !important;
  }

  /*
   * Dock "منو" item: stable 3-line icon, NO wbs-button hover flip.
   * .wbs-button:hover i { transform: rotateY(180deg) } was breaking the old icon.
   */
  body #dynamic-iland .ts-iland-menu-item {
    gap: 6px !important;
    color: inherit !important;
  }

  body #dynamic-iland .ts-iland-hamburger {
    position: relative !important;
    display: block !important;
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 2px !important;
    margin: 0 0 0 2px !important;
    border-radius: 999px !important;
    background: currentColor !important;
    box-shadow:
      0 -4px 0 currentColor,
      0 4px 0 currentColor !important;
    color: inherit !important;
    font-size: 0 !important;
    line-height: 0 !important;
    transition: none !important;
    transform: none !important;
  }

  body #dynamic-iland .ts-iland-hamburger::before,
  body #dynamic-iland .ts-iland-hamburger::after {
    display: none !important;
    content: none !important;
  }

  body #dynamic-iland li[data-target="ilandMenu"]:hover .ts-iland-hamburger,
  body #dynamic-iland li[data-target="ilandMenu"].active .ts-iland-hamburger {
    transform: none !important;
  }

  body #dynamic-iland li[data-target="ilandMenu"] .wbs-button,
  body #dynamic-iland li[data-target="ilandMenu"] .wbs-button i {
    transform: none !important;
  }
}
