/* ==========================================================
   KIAN DEZH - INNER PAGES MOBILE MENU FIX
   اصلاح نمایش منوی صفحات داخلی در موبایل

   هدف:
   - منوی صفحات داخلی در موبایل نمایش داده شود.
   - منو دوخطی و شلوغ نشود.
   - اگر آیتم‌ها جا نشدند، افقی اسکرول شوند.
   - فارسی و انگلیسی هر دو پوشش داده شوند.
   - صفحه اصلی دست‌نخورده بماند.
   ========================================================== */

@media (max-width: 640px) {

  html body>header.inner-hero-header>.inner-top-nav,
  html body>header.inner-hero-header.inner-hero-header>.inner-top-nav {
    top: 0 !important;
    right: 12px !important;
    left: 12px !important;

    width: auto !important;
    max-width: none !important;

    padding-top: 14px !important;
    padding-bottom: 10px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden !important;

    border-top: 1px solid rgba(255, 255, 255, .64) !important;
  }

  html body>header.inner-hero-header .inner-menu,
  html body>header.inner-hero-header.inner-hero-header .inner-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;

    align-items: center !important;
    justify-content: flex-start !important;

    width: 100% !important;
    max-width: 100% !important;

    gap: 14px !important;

    margin: 0 !important;
    padding: 0 2px 8px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    white-space: nowrap !important;

    scrollbar-width: none !important;
    -ms-overflow-style: none !important;

    -webkit-overflow-scrolling: touch !important;

    direction: inherit !important;
    text-align: start !important;
  }

  html body>header.inner-hero-header .inner-menu::-webkit-scrollbar,
  html body>header.inner-hero-header.inner-hero-header .inner-menu::-webkit-scrollbar {
    display: none !important;
  }

  html body>header.inner-hero-header .inner-menu a,
  html body>header.inner-hero-header.inner-hero-header .inner-menu a {
    flex: 0 0 auto !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    min-width: max-content !important;
    max-width: none !important;

    margin: 0 !important;
    padding: 0 0 6px !important;

    color: rgba(255, 255, 255, .92) !important;

    font-size: 10.6px !important;
    line-height: 1.35 !important;
    font-weight: 900 !important;

    white-space: nowrap !important;
    text-align: center !important;
    text-decoration: none !important;

    text-shadow: 0 8px 22px rgba(0, 0, 0, .52) !important;

    transform: none !important;
  }

  html body>header.inner-hero-header .inner-menu a:hover,
  html body>header.inner-hero-header .inner-menu a:focus-visible,
  html body>header.inner-hero-header .inner-menu a.active,
  html body>header.inner-hero-header .inner-menu a[aria-current="page"] {
    color: #d9a842 !important;
    transform: none !important;
  }

  html[dir="rtl"] body>header.inner-hero-header .inner-menu,
  html[lang="fa"] body>header.inner-hero-header .inner-menu,
  html[lang="fa-IR"] body>header.inner-hero-header .inner-menu {
    direction: rtl !important;
    text-align: right !important;
  }

  html[dir="ltr"] body>header.inner-hero-header .inner-menu,
  html[lang="en"] body>header.inner-hero-header .inner-menu,
  html[lang="en-US"] body>header.inner-hero-header .inner-menu,
  html[lang="en-GB"] body>header.inner-hero-header .inner-menu {
    direction: ltr !important;
    text-align: left !important;
  }

  html[dir="ltr"] body>header.inner-hero-header .inner-menu a,
  html[lang="en"] body>header.inner-hero-header .inner-menu a,
  html[lang="en-US"] body>header.inner-hero-header .inner-menu a,
  html[lang="en-GB"] body>header.inner-hero-header .inner-menu a {
    font-size: 10px !important;
    letter-spacing: -.02em !important;
  }
}

@media (max-width: 390px) {

  html body>header.inner-hero-header>.inner-top-nav,
  html body>header.inner-hero-header.inner-hero-header>.inner-top-nav {
    right: 10px !important;
    left: 10px !important;
    padding-top: 12px !important;
  }

  html body>header.inner-hero-header .inner-menu,
  html body>header.inner-hero-header.inner-hero-header .inner-menu {
    gap: 12px !important;
  }

  html body>header.inner-hero-header .inner-menu a,
  html body>header.inner-hero-header.inner-hero-header .inner-menu a {
    font-size: 10px !important;
  }

  html[dir="ltr"] body>header.inner-hero-header .inner-menu a,
  html[lang="en"] body>header.inner-hero-header .inner-menu a {
    font-size: 9.4px !important;
  }
}