/* =====================================================
   A1 Mobile Bottom Navigation - Clean Redesign
   ===================================================== */

@font-face {
  font-family: 'A1-Peyda-Nav';
  src: url('../fonts/Peyda-Bold.woff2') format('woff2'),
       url('../fonts/Peyda-Bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+FB50-FDFF, U+FE70-FEFF;
}

@media (max-width: 820px) {

  /* Main navigation */
  body > nav.bottom-nav {
    display: flex !important;
    flex-direction: row !important;
    direction: rtl !important;
    align-items: stretch !important;
  }

  /* All five navigation items */
  body > nav.bottom-nav > a {
    position: relative !important;
    isolation: isolate !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: 'A1-Peyda-Nav', Peyda, Tahoma, sans-serif !important;
    font-weight: 600 !important;
  }

  /* Icons */
  body > nav.bottom-nav > a .nav-icon {
    display: block !important;
    width: 21px !important;
    height: 21px !important;
    flex: 0 0 21px !important;
  }

  body > nav.bottom-nav > a .nav-icon svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
  }

  /* Labels */
  body > nav.bottom-nav > a small {
    font-family: 'A1-Peyda-Nav', Peyda, Tahoma, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
  }

  /* Active indicator for normal items */
  body > nav.bottom-nav > a.is-active::before {
    content: none !important;
    display: none !important;
  }

  body > nav.bottom-nav > a.is-active::after {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    left: 50% !important;
    bottom: 3px !important;
    transform: translateX(-50%) !important;
    width: 24px !important;
    height: 2px !important;
    border: 0 !important;
    border-radius: 99px !important;
    background: currentColor !important;
    pointer-events: none !important;
  }

  /* Price list: permanent rounded tile, active or inactive */
  body > nav.bottom-nav > a.price-list-nav-item,
  body > nav.bottom-nav > a.price-list-nav-item.is-active {
    color: var(--muted, #53617c) !important;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
  }

  body > nav.bottom-nav > a.price-list-nav-item::before,
  body > nav.bottom-nav > a.price-list-nav-item.is-active::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    inset: 7px 3px !important;
    z-index: -1 !important;
    background: #f0f1f3 !important;
    border: 0 !important;
    outline: none !important;
    border-radius: 13px !important;
    box-shadow: none !important;
    pointer-events: none !important;
  }

  /* No active underline on price list */
  body > nav.bottom-nav > a.price-list-nav-item::after,
  body > nav.bottom-nav > a.price-list-nav-item.is-active::after {
    content: none !important;
    display: none !important;
  }

  /* Dark theme */
  html[data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item,
  body[data-theme="dark"] > nav.bottom-nav > a.price-list-nav-item,
  [data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item {
    color: var(--muted, #dce6ff) !important;
  }

  html[data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item::before,
  body[data-theme="dark"] > nav.bottom-nav > a.price-list-nav-item::before,
  [data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item::before {
    background: rgba(148, 163, 184, 0.14) !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 13px !important;
  }
}

/* Improve price-list item contrast */
@media (max-width: 820px) {
  body > nav.bottom-nav > a.price-list-nav-item,
  body > nav.bottom-nav > a.price-list-nav-item small,
  body > nav.bottom-nav > a.price-list-nav-item .nav-icon {
    color: #26344D !important;
  }

  html[data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item,
  html[data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item small,
  html[data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item .nav-icon,
  body[data-theme="dark"] > nav.bottom-nav > a.price-list-nav-item,
  body[data-theme="dark"] > nav.bottom-nav > a.price-list-nav-item small,
  body[data-theme="dark"] > nav.bottom-nav > a.price-list-nav-item .nav-icon,
  [data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item,
  [data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item small,
  [data-theme="dark"] body > nav.bottom-nav > a.price-list-nav-item .nav-icon {
    color: #F1F5F9 !important;
  }
}

/* Arabic mobile navigation labels only */
@media (max-width: 820px) {
  html[lang="ar"] body > nav.bottom-nav > a {
    white-space: normal !important;
  }

  html[lang="ar"] body > nav.bottom-nav > a small {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline: 1px !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }
}
