@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "YekanBakhFaNum";
  src: url("../test/font/YekanBakhFaNum-ExtraBlack.woff2") format("woff2");
  font-weight: 950;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  src: url("../test/font/material-symbols-v39-latin-regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  --brand-primary: #13369d;
  --text-primary: #1f2937;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border-light: #e2e8f0;
  --header-bg: #ffffff;
  --search-bg: #f1f5f9;
  --danger: #b90041;
  /*
   * ارتفاع تقریبی سربرگ چسبان تا پایین سرچ (موبایل) — برای sticky آرشیو.
   * کم = نوار فیلتر می‌رود زیر هدر؛ زیاد = فاصلهٔ سفید زیر سرچ.
   */
  --ps-sticky-below-header: 7.3125rem;
}

@media (min-width: 768px) {
  :root {
    --ps-sticky-below-header: 7.8125rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --ps-sticky-below-header: 8.8125rem;
  }
}

* {
  box-sizing: border-box;
}

.ps-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid #f1f5f9;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  font-family: "YekanBakhFaNum", sans-serif;
  padding-bottom: 8px;
}

.ps-header *,
.ps-header *::before,
.ps-header *::after {
  box-sizing: border-box;
}

body.header-page {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
  font-family: "YekanBakhFaNum", sans-serif;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: "liga";
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "liga";
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.ps-header-wrapper {
  max-width: 1536px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

.ps-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 16px 0;
}

.ps-brand-block {
  flex-shrink: 0;
}

.ps-mobile-brand-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ps-mobile-menu-trigger {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid #dbe4f3;
  border-radius: 10px;
  background: #f7faff;
  color: #13369d;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
}

/* غلبه بر reset تم (button:hover → color:#fff) */
button.ps-mobile-menu-trigger:hover,
button.ps-mobile-menu-trigger:focus-visible,
button.ps-mobile-menu-trigger:active {
  color: #13369d;
  background: #eef3fb;
  border-color: #b8c9ea;
}

.ps-mobile-menu-trigger .material-symbols-outlined {
  font-size: 22px;
  color: inherit;
}

.ps-brand-title {
  display: inline-flex;
  align-items: center;
  font-family: "YekanBakhFaNum", sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--brand-primary);
  text-decoration: none;
}

/* Scoped under .ps-header so .woocommerce img { height:auto } cannot override (same specificity, WC loads later on shop/archive). */
.ps-header .ps-brand-logo {
  display: block;
  width: auto;
  height: 32px;
  max-height: 32px;
  object-fit: contain;
}

.ps-search-block {
  flex: 1;
  max-width: 768px;
  display: none;
}

.ps-search-block .live-search-container {
  width: 100%;
}

.ps-search-block .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.ps-search-block #live-search-input {
  width: 100%;
  height: 44px;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  background: #f8fbff;
  color: #0f172a !important;
  padding: 10px 52px 10px 16px;
  font-size: 0.9rem;
  font-family: "YekanBakhFaNum", sans-serif;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.ps-search-block #live-search-input::placeholder {
  color: #64748b;
}

.ps-search-block #live-search-input:focus {
  outline: none;
  border-color: #13369d;
  box-shadow: 0 0 0 4px rgba(19, 54, 157, 0.14);
  background: #ffffff;
}

.ps-search-block .search-submit {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #5b6b8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 24px;
  height: 24px;
}

.ps-search-block .search-submit:hover {
  color: #13369d;
}

.ps-search-block .search-submit svg {
  width: 20px;
  height: 20px;
}

.ps-search-block #live-search-results {
  margin-top: 8px;
  border: 1px solid #dbe3f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  background: #ffffff;
}

.ps-search-block .search-results-inner {
  max-height: 420px;
  overflow-y: auto;
  padding: 6px;
}

.ps-search-block .search-result-item {
  padding: 12px;
  margin-bottom: 6px;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  background: #ffffff;
  gap: 12px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ps-search-block .search-result-item:last-child {
  margin-bottom: 0;
}

.ps-search-block .search-result-item:hover {
  border-color: #cfdaf0;
  box-shadow: 0 8px 20px rgba(19, 54, 157, 0.08);
  transform: translateY(-1px);
}

.ps-search-block .search-result-image {
  width: 74px;
  height: 74px;
  border-radius: 10px;
  border: 1px solid #eef2f7;
  background: #fff;
  object-fit: cover;
}

.ps-search-block .search-result-content {
  min-width: 0;
}

.ps-search-block .search-result-header {
  align-items: flex-start;
  gap: 12px;
}

.ps-search-block .search-result-title {
  font-family: "YekanBakhFaNum", sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ps-search-block .search-result-price {
  font-family: "YekanBakhFaNum", sans-serif;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  direction: rtl;
  unicode-bidi: plaintext;
  white-space: nowrap;
  font-size: 0.82rem;
  font-weight: 700;
  color: #13369d;
  line-height: 1.35;
}

.ps-search-block .search-result-price del,
.ps-search-block .search-result-price ins {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.ps-search-block .search-result-price del .woocommerce-Price-amount {
  color: #9aa7bb;
  font-size: 0.72rem;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  font-weight: 500;
  opacity: 0.95;
}

.ps-search-block .search-result-price ins .woocommerce-Price-amount,
.ps-search-block .search-result-price > .woocommerce-Price-amount {
  color: #13369d;
  font-size: 0.84rem;
  font-weight: 700;
}

.ps-search-block .search-result-price .woocommerce-Price-amount {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
  line-height: 1.35;
}

.ps-search-block .search-result-price .woocommerce-Price-currencySymbol,
.ps-search-block .search-result-price .toman-icon {
  color: #7b879c;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}

.ps-search-block .search-result-price .toman-icon svg,
.ps-search-block .search-result-price .toman-icon img {
  width: 12px;
  height: 12px;
  display: block;
}

.ps-search-block .search-result-attributes {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.ps-search-block .search-result-attribute {
  margin-left: 0;
  padding: 3px 7px;
  border-radius: 999px;
  background: #f3f6fc;
  border: 1px solid #e6edf9;
  font-size: 0.7rem;
  color: #4b5563;
}

.ps-search-block .attr-label,
.ps-search-block .attr-value {
  color: inherit;
}

.ps-search-block .no-results {
  padding: 16px;
  border-radius: 10px;
  text-align: center;
  color: #64748b;
  background: #f8fbff;
  border: 1px dashed #d8e3f5;
}

@media (max-width: 767px) {
  .ps-header {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .ps-header-wrapper {
    padding: 0 12px;
    position: relative;
  }

  .ps-header-top {
    gap: 10px;
    padding: 6px 0;
    flex-wrap: wrap;
    align-items: center;
  }

  .ps-mobile-brand-side,
  .ps-header-actions {
    min-height: 36px;
    align-items: center;
  }

  .ps-header .ps-brand-logo {
    height: 24px;
    max-height: 24px;
  }

  .ps-header-actions {
    margin-inline-start: auto;
    gap: 8px;
  }

  .ps-login-button {
    display: inline-flex;
    width: 34px;
    height: 34px;
    padding: 0;
    border-radius: 10px;
    justify-content: center;
    align-items: center;
  }

  .ps-login-label {
    display: none;
  }

  .ps-vertical-divider {
    display: none !important;
  }

  .ps-cart-button {
    padding: 6px;
  }

  .ps-search-block {
    display: block;
    flex: 0 0 100%;
    max-width: 100%;
    order: 3;
    margin-bottom: 8px;
  }

  .ps-search-block #live-search-input {
    height: 40px;
    border-radius: 12px;
    font-size: 0.95rem;
    padding: 8px 44px 8px 14px;
  }

  .ps-search-block #live-search-input::placeholder {
    font-size: 0.9rem;
  }

  .ps-search-block .search-submit {
    right: 12px;
  }

  .ps-search-block #live-search-results {
    margin-top: 6px;
    border-radius: 12px;
  }

  .ps-search-block .search-results-inner {
    max-height: 360px;
    padding: 4px;
  }

  .ps-search-block .search-result-item {
    padding: 10px;
    gap: 10px;
  }

  .ps-search-block .search-result-image {
    width: 62px;
    height: 62px;
  }

  .ps-search-block .search-result-title {
    font-size: 0.82rem;
  }

  .ps-header-nav {
    display: flex;
    position: absolute;
    top: 8px;
    right: 116px;
    width: auto;
    padding: 0;
    border-top: 0;
    overflow: visible;
    z-index: 2;
  }

  .ps-nav-left {
    width: auto;
    min-width: 0;
  }

  .ps-nav-left .header-navigation {
    width: auto;
    justify-content: flex-start;
    gap: 0;
  }

  .ps-nav-left .desktop-menu {
    display: none;
  }

  .ps-nav-left .mega-menu-container .menu-text {
    display: none;
  }

  .ps-nav-left .mega-menu-button {
    padding: 0;
    gap: 0;
  }

  .ps-nav-left .mega-menu-button .menu-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .ps-location-picker {
    display: none;
  }
}

.ps-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.ps-login-button {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.ps-login-button:hover {
  background: #f8fafc;
}

.ps-login-label {
  font-size: 0.875rem;
  font-weight: 500;
}

.ps-vertical-divider {
  display: none;
  width: 1px;
  height: 32px;
  background: var(--border-light);
}

.ps-cart-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--text-primary);
  border-radius: 999px;
  padding: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.ps-cart-button:hover {
  background: #f8fafc;
}

.ps-cart-badge {
  position: absolute;
  top: 0;
  right: 0;
  border-radius: 999px;
  background: var(--brand-primary);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  line-height: 1;
}

.ps-header-nav {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  border-top: 1px solid #f8fafc;
  overflow-x: auto;
  white-space: nowrap;
}

.ps-nav-left {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
}

.ps-nav-left .header-navigation {
  display: flex;
  align-items: center;
  gap: 24px;
}

.ps-category-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
  cursor: pointer;
  font-weight: 600;
}

.ps-category-menu:hover {
  color: var(--brand-primary);
}

.ps-category-menu-label {
  font-size: 0.875rem;
}

.ps-nav-divider {
  width: 1px;
  height: 16px;
  background: var(--border-light);
}

.ps-nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: "YekanBakhFaNum", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
}

.ps-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.ps-nav-link:hover {
  color: var(--brand-primary);
}

.ps-location-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  border-bottom: 0;
  white-space: nowrap;
  line-height: 1;
}

.ps-location-picker:hover {
  color: var(--brand-primary);
}

.ps-location-label {
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.2;
}

.ps-location-icon {
  color: var(--brand-primary);
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ps-icon-md {
  font-size: 18px;
}

.ps-icon-lg {
  font-size: 20px;
}

.ps-icon-xl {
  font-size: 24px;
}

@media (min-width: 768px) {
  .ps-header-wrapper {
    padding: 0 48px;
  }

  .ps-search-block {
    display: block;
  }

  .ps-login-button,
  .ps-vertical-divider,
  .ps-header-nav {
    display: flex;
  }

  .ps-header .ps-brand-logo {
    height: 38px;
    max-height: 38px;
  }

  /* Prevent clipping/scrolling of opened mega menu */
  .ps-header-nav {
    overflow: visible;
  }

  .ps-nav-left,
  .ps-nav-left .header-navigation,
  .ps-nav-left .mega-menu-container {
    overflow: visible !important;
  }
}

/* Keep mobile header rules at file end to prevent override */
@media (max-width: 767px) {
  .ps-header {
    padding-bottom: 0;
  }

  .ps-header-wrapper {
    padding: 0 12px;
    position: relative;
  }

  .ps-header-top {
    gap: 10px;
    padding: 10px 0 6px;
    flex-wrap: wrap;
    align-items: center;
  }

  .ps-header .ps-brand-logo {
    height: 24px;
    max-height: 24px;
  }

  .ps-header-actions {
    margin-inline-start: auto;
    gap: 8px;
  }

  .ps-mobile-menu-trigger {
    display: inline-flex !important;
  }

  .ps-login-button {
    display: inline-flex;
    padding: 6px;
    border-radius: 999px;
  }

  .ps-login-label {
    display: none;
  }

  .ps-vertical-divider {
    display: none !important;
  }

  .ps-cart-button {
    padding: 6px;
  }

  .ps-search-block {
    display: block;
    flex: 0 0 100%;
    max-width: 100%;
    order: 3;
  }

  .ps-search-block #live-search-input {
    height: 40px;
    border-radius: 12px;
    font-size: 0.84rem;
    padding: 8px 44px 8px 14px;
  }

  .ps-search-block .search-submit {
    right: 12px;
  }

  .ps-search-block #live-search-results {
    margin-top: 6px;
    border-radius: 12px;
  }

  .ps-search-block .search-results-inner {
    max-height: 360px;
    padding: 4px;
  }

  .ps-search-block .search-result-item {
    padding: 10px;
    gap: 10px;
  }

  .ps-search-block .search-result-image {
    width: 62px;
    height: 62px;
  }

  .ps-search-block .search-result-title {
    font-size: 0.82rem;
  }

  .ps-header-nav {
    display: block;
    position: static;
    width: 0;
    height: 0;
    padding: 0;
    border-top: 0;
    overflow: visible;
    z-index: 0;
  }

  .ps-nav-left {
    width: 0;
    min-width: 0;
  }

  .ps-nav-left .header-navigation {
    width: 0;
    justify-content: flex-start;
    gap: 0;
  }

  .ps-nav-left .desktop-menu {
    display: none;
  }

  .ps-nav-left .mega-menu-container .menu-text {
    display: none;
  }

  .ps-nav-left .mega-menu-button {
    padding: 0;
    gap: 0;
    opacity: 0;
    pointer-events: none;
  }

  .ps-nav-left .mega-menu-button .menu-icon {
    width: 28px !important;
    height: 28px !important;
  }

  .ps-location-picker {
    display: none;
  }
}

/* پنل تمام‌صفحه موبایل (دو ستون، همان منوی mega_menu) */
.ps-mobile-nav {
  display: none !important;
}

@media (max-width: 767px) {
  .ps-mobile-nav {
    display: block !important;
    position: fixed;
    inset: 0;
    z-index: 1005;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.22s ease, visibility 0s linear 0.22s;
  }

  .ps-mobile-nav.is-open {
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.22s ease, visibility 0s linear 0s;
  }

  body.ps-mobile-nav-open {
    overflow: hidden;
    touch-action: none;
  }

  .ps-mobile-nav__sheet {
    position: absolute;
    inset: 0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateY(-8px);
    transition: transform 0.26s cubic-bezier(0.22, 0.61, 0.36, 1);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
    -webkit-tap-highlight-color: rgba(19, 54, 157, 0.12);
  }

  .ps-mobile-nav.is-open .ps-mobile-nav__sheet {
    transform: translateY(0);
  }

  .ps-mobile-nav__header {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    padding: 10px 6px;
    border-bottom: 1px solid #e8edf5;
    flex-shrink: 0;
  }

  .ps-mobile-nav__close {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 10px;
  }

  .ps-mobile-nav__close:hover {
    color: var(--brand-primary);
    background: #eef3fb;
  }

  .ps-mobile-nav__close .material-symbols-outlined {
    font-size: 26px;
  }

  .ps-mobile-nav__close:focus-visible {
    outline: 2px solid #13369d;
    outline-offset: 2px;
  }

  .ps-mobile-nav__brand {
    justify-self: center;
    display: inline-flex;
    align-items: center;
  }

  .ps-mobile-nav__brand img {
    height: 30px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    display: block;
  }

  .ps-mobile-nav__header-spacer {
    width: 44px;
    height: 1px;
  }

  .ps-mobile-nav__body {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: row;
    align-items: stretch;
  }

  .ps-mobile-nav__roots {
    flex: 0 0 102px;
    max-width: 30vw;
    border-inline-start: 1px solid #e8edf5;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fafbfd;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ps-mobile-nav__roots::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .ps-mobile-nav__root {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px 6px;
    margin: 0;
    border: none;
    border-inline-end: 3px solid transparent;
    border-bottom: 1px solid #e8edf5;
    background: transparent;
    cursor: pointer;
    font-family: "YekanBakhFaNum", sans-serif;
    font-size: 0.68rem;
    line-height: 1.25;
    font-weight: 600;
    color: #334155;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease;
  }

  .ps-mobile-nav__roots .ps-mobile-nav__root:last-child {
    border-bottom: none;
  }

  .ps-mobile-nav__root.is-active {
    background: #eef2f7;
    border-inline-end-color: #13369d;
    color: #0f172a;
  }

  .ps-mobile-nav__root:focus-visible {
    outline: 2px solid #13369d;
    outline-offset: -2px;
  }

  .ps-mobile-nav__root-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
  }

  .ps-mobile-nav__root.is-active .ps-mobile-nav__root-icon {
    background: transparent;
    box-shadow: none;
  }

  .ps-mobile-nav__root-icon .menu-item-image {
    width: 30px;
    height: 30px;
    display: block;
  }

  .ps-mobile-nav__root-icon .menu-item-image image {
    width: 100%;
    height: 100%;
  }

  .ps-mobile-nav__root-fallback {
    display: block;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cbd5e1, #e2e8f0);
  }

  .ps-mobile-nav__panes {
    flex: 1;
    min-width: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 14px 20px;
    background: #ffffff;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .ps-mobile-nav__panes::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }

  .ps-mobile-nav__pane[hidden] {
    display: none !important;
  }

  .ps-mobile-nav__pane-title {
    margin: 0 0 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8edf5;
    font-family: "YekanBakhFaNum", sans-serif;
    font-size: 0.95rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.35;
  }

  .ps-mobile-nav__view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 24px;
    font-family: "YekanBakhFaNum", sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #13369d;
    text-decoration: none;
  }

  .ps-mobile-nav__view-all .ps-mobile-nav__chevron {
    font-size: 18px;
  }

  .ps-mobile-nav__sublist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .ps-mobile-nav__sublist-empty {
    font-size: 0.85rem;
    color: #64748b;
    padding: 12px 4px;
  }

  .ps-mobile-nav ::selection {
    background: #d4e0fb;
    color: #0f172a;
  }

  .ps-mobile-nav__sub-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 52px;
    padding: 14px 16px;
    background: #f4f6fa;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    font-family: "YekanBakhFaNum", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    transition: background-color 0.15s ease, color 0.15s ease;
  }

  /* غلبه بر reset تم (رنگ پیش‌فرض لینک‌ها) */
  #ps-mobile-nav a.ps-mobile-nav__sub-link,
  #ps-mobile-nav a.ps-mobile-nav__sub-link:visited {
    color: #0f172a;
  }

  #ps-mobile-nav a.ps-mobile-nav__sub-link:hover,
  #ps-mobile-nav a.ps-mobile-nav__sub-link:focus,
  #ps-mobile-nav a.ps-mobile-nav__sub-link:focus-visible,
  #ps-mobile-nav a.ps-mobile-nav__sub-link:active {
    color: #0a0a0a;
  }

  .ps-mobile-nav__sub-link:hover .ps-mobile-nav__sub-chevron,
  .ps-mobile-nav__sub-link:focus-visible .ps-mobile-nav__sub-chevron,
  .ps-mobile-nav__sub-link:active .ps-mobile-nav__sub-chevron {
    color: #64748b;
  }

  .ps-mobile-nav__root:hover:not(.is-active) {
    background: #f3f6fc;
  }

  .ps-mobile-nav__sub-link:hover {
    background: #e8effb;
  }

  .ps-mobile-nav__sub-link:active {
    background: #e8ecf3;
  }

  .ps-mobile-nav__sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    margin: 0;
    border: none;
    border-radius: 12px;
    background: #f4f6fa;
    cursor: pointer;
    font: inherit;
    font-family: "YekanBakhFaNum", sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
    transition: background-color 0.15s ease;
  }

  .ps-mobile-nav__sub-toggle:hover {
    background: #e8effb;
    color: #0a0a0a;
  }

  .ps-mobile-nav__sub-toggle:active {
    background: #e8ecf3;
    color: #0a0a0a;
  }

  .ps-mobile-nav__sub-toggle:focus-visible {
    outline: 2px solid #13369d;
    outline-offset: 2px;
  }

  .ps-mobile-nav__sub-chevron--expand {
    font-size: 22px;
    color: #64748b;
    transition: transform 0.2s ease;
    flex-shrink: 0;
  }

  .ps-mobile-nav__sub-toggle[aria-expanded="true"] .ps-mobile-nav__sub-chevron--expand {
    transform: rotate(180deg);
  }

  .ps-mobile-nav__nest {
    padding: 8px 0 6px;
    margin: 0;
    padding-inline-start: 10px;
  }

  .ps-mobile-nav__nest[hidden] {
    display: none !important;
  }

  .ps-mobile-nav__nest-archive {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 0 10px;
    padding: 2px 0;
    font-family: "YekanBakhFaNum", sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #13369d;
    text-decoration: none;
    line-height: 1.4;
  }

  .ps-mobile-nav__nest-archive-icon {
    font-size: 16px;
  }

  #ps-mobile-nav a.ps-mobile-nav__nest-archive,
  #ps-mobile-nav a.ps-mobile-nav__nest-archive:visited {
    color: #13369d;
  }

  #ps-mobile-nav a.ps-mobile-nav__nest-archive:hover,
  #ps-mobile-nav a.ps-mobile-nav__nest-archive:focus-visible,
  #ps-mobile-nav a.ps-mobile-nav__nest-archive:active {
    color: #0f2d7a;
  }

  .ps-mobile-nav__sublist--nested {
    gap: 6px;
  }

  .ps-mobile-nav__sublist--nested .ps-mobile-nav__sub-link,
  .ps-mobile-nav__sublist--nested .ps-mobile-nav__sub-toggle {
    font-size: 0.84rem;
    min-height: 48px;
    padding: 12px 14px;
  }

  .ps-mobile-nav__sub-text {
    text-align: right;
    flex: 1;
    min-width: 0;
  }

  .ps-mobile-nav__sub-chevron {
    font-size: 20px;
    color: #94a3b8;
    flex-shrink: 0;
  }

  /*
   * reset.css: button:focus/hover → پس‌زمینه #c36 و متن سفید؛ بعد از لمس موبایل :focus می‌ماند.
 */
  #ps-mobile-nav button.ps-mobile-nav__root,
  #ps-mobile-nav button.ps-mobile-nav__root:focus,
  #ps-mobile-nav button.ps-mobile-nav__root:focus-visible,
  #ps-mobile-nav button.ps-mobile-nav__root:hover,
  #ps-mobile-nav button.ps-mobile-nav__root:active {
    background-color: transparent;
    color: #334155;
    border: none;
    border-bottom: 1px solid #e8edf5;
    border-inline-end: 3px solid transparent;
  }

  #ps-mobile-nav .ps-mobile-nav__roots > button.ps-mobile-nav__root:last-child {
    border-bottom: none;
  }

  #ps-mobile-nav button.ps-mobile-nav__root.is-active,
  #ps-mobile-nav button.ps-mobile-nav__root.is-active:focus,
  #ps-mobile-nav button.ps-mobile-nav__root.is-active:focus-visible,
  #ps-mobile-nav button.ps-mobile-nav__root.is-active:hover {
    background-color: #eef2f7;
    color: #0f172a;
    border-inline-end-color: #13369d;
  }

  #ps-mobile-nav button.ps-mobile-nav__close,
  #ps-mobile-nav button.ps-mobile-nav__close:focus,
  #ps-mobile-nav button.ps-mobile-nav__close:focus-visible,
  #ps-mobile-nav button.ps-mobile-nav__close:active {
    background-color: transparent;
    color: #0f172a;
  }

  #ps-mobile-nav button.ps-mobile-nav__close:hover {
    background-color: #eef3fb;
    color: #13369d;
  }

  #ps-mobile-nav button.ps-mobile-nav__sub-toggle,
  #ps-mobile-nav button.ps-mobile-nav__sub-toggle:focus,
  #ps-mobile-nav button.ps-mobile-nav__sub-toggle:focus-visible,
  #ps-mobile-nav button.ps-mobile-nav__sub-toggle:active {
    background-color: #f4f6fa;
    color: #0f172a;
    border: none;
    box-shadow: none;
  }

  #ps-mobile-nav button.ps-mobile-nav__sub-toggle:hover {
    background-color: #e8effb;
    color: #0a0a0a;
  }

  #ps-mobile-nav button.ps-mobile-nav__sub-toggle:active {
    background-color: #e8ecf3;
  }

  #ps-mobile-nav button.ps-mobile-nav__sub-toggle[aria-expanded="true"],
  #ps-mobile-nav button.ps-mobile-nav__sub-toggle[aria-expanded="true"]:focus,
  #ps-mobile-nav button.ps-mobile-nav__sub-toggle[aria-expanded="true"]:focus-visible,
  #ps-mobile-nav button.ps-mobile-nav__sub-toggle[aria-expanded="true"]:hover {
    background-color: #e8effb;
    color: #0a0a0a;
  }

  #ps-mobile-nav button.ps-mobile-nav__sub-toggle:focus-visible {
    outline: 2px solid #13369d;
    outline-offset: 2px;
  }

  #ps-mobile-nav button.ps-mobile-nav__sub-toggle .ps-mobile-nav__sub-chevron--expand,
  #ps-mobile-nav button.ps-mobile-nav__sub-toggle:focus .ps-mobile-nav__sub-chevron--expand,
  #ps-mobile-nav button.ps-mobile-nav__sub-toggle[aria-expanded="true"] .ps-mobile-nav__sub-chevron--expand {
    color: #64748b;
  }

  /* بعد از قوانین عمومی sub-toggle: زیرسطح با پس‌زمینه متفاوت از والد */
  #ps-mobile-nav .ps-mobile-nav__sublist--nested a.ps-mobile-nav__sub-link,
  #ps-mobile-nav .ps-mobile-nav__sublist--nested a.ps-mobile-nav__sub-link:visited {
    background-color: #ffffff;
    border: 1px solid #e8ecf3;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  #ps-mobile-nav .ps-mobile-nav__sublist--nested a.ps-mobile-nav__sub-link:hover {
    background-color: #f5f8fc;
    border-color: #dde5f0;
  }

  #ps-mobile-nav .ps-mobile-nav__sublist--nested a.ps-mobile-nav__sub-link:active {
    background-color: #eef2f8;
  }

  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle,
  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle:focus,
  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle:focus-visible,
  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle:active {
    background-color: #ffffff;
    color: #0f172a;
    border: 1px solid #e8ecf3;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle:hover {
    background-color: #f5f8fc;
    border-color: #dde5f0;
    color: #0a0a0a;
  }

  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle:active {
    background-color: #eef2f8;
  }

  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle[aria-expanded="true"],
  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle[aria-expanded="true"]:focus,
  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle[aria-expanded="true"]:focus-visible,
  #ps-mobile-nav .ps-mobile-nav__sublist--nested button.ps-mobile-nav__sub-toggle[aria-expanded="true"]:hover {
    background-color: #eef3fb;
    border-color: #c7d4ef;
    color: #0a0a0a;
  }
}
