/* AZHLHA_SHARED_HEADER_V1
 * The approved homepage header, shared by every storefront route.
 * The header ID isolates these overrides from page and checkout controls.
 * Existing account URLs, language POST and theme handlers remain in use.
 */
#azhlha-site-header.header-main-azhlha {
  background: #101729 !important;
  border-bottom: 1px solid #ffffff25 !important;
  padding: 9px 0 !important;
}

#azhlha-site-header > .container {
  width: 100% !important;
  max-width: 1320px !important;
  padding-inline: 12px !important;
  overflow: visible !important;
}

#azhlha-site-header .header-layout {
  direction: rtl !important;
  display: flex !important;
  flex-flow: row nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 8px !important;
  overflow: visible !important;
}

#azhlha-site-header .right-block {
  order: 0 !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
}

#azhlha-site-header .left-block {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  order: 2 !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  align-items: center !important;
  overflow: visible !important;
}

#azhlha-site-header .logo-wrapper {
  margin: 0 !important;
}

#azhlha-site-header .logo-azhlha {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 190px !important;
  max-height: 56px !important;
  object-fit: contain !important;
}

#azhlha-site-header .account-buttons {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  direction: rtl !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  overflow: visible !important;
}

#azhlha-site-header .az-account-text-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  order: 0 !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

#azhlha-site-header .language-wrapper-azhlha {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  order: 1 !important;
  flex-shrink: 0 !important;
}

#azhlha-site-header #theme-toggle-btn {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  order: 2 !important;
  flex-shrink: 0 !important;
  align-items: center !important;
  justify-content: center !important;
}

#azhlha-site-header .az-language-modern,
#azhlha-site-header #form-language,
#azhlha-site-header #form-language > .btn-group {
  display: inline-flex !important;
  visibility: visible !important;
  margin: 0 !important;
  position: relative !important;
  overflow: visible !important;
}

#azhlha-site-header .az-language-dropdown {
  right: auto !important;
  left: 0 !important;
  z-index: 1001 !important;
}

#azhlha-site-header .account-buttons a:focus-visible,
#azhlha-site-header .account-buttons button:focus-visible {
  outline: 2px solid #c084fc !important;
  outline-offset: 3px !important;
}

html.light-theme #azhlha-site-header {
  background: #fff !important;
  border-color: #e7def4 !important;
}

@media (max-width: 768px) {
  #azhlha-site-header > .container {
    padding-inline: 9px !important;
  }

  #azhlha-site-header .main-menu-azhlha,
  #azhlha-site-header .left-block .wishlist-wrapper-azhlha,
  #azhlha-site-header .left-block .cart-wrapper-azhlha,
  #azhlha-site-header .btn-logout-azhlha-header {
    display: none !important;
  }

  #azhlha-site-header .logo-azhlha {
    max-width: min(31vw, 138px) !important;
    max-height: 42px !important;
  }

  #azhlha-site-header .account-buttons {
    gap: 5px !important;
  }

  #azhlha-site-header .az-account-text-btn {
    width: auto !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 8px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
    border-radius: 12px !important;
  }

  #azhlha-site-header #theme-toggle-btn {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 12px !important;
  }

  #azhlha-site-header .az-language-trigger {
    display: inline-flex !important;
    visibility: visible !important;
    width: auto !important;
    min-width: 47px !important;
    height: 42px !important;
    min-height: 42px !important;
    padding: 0 7px !important;
    gap: 4px !important;
    border-radius: 12px !important;
  }

  #azhlha-site-header .az-language-label {
    display: inline !important;
    font-size: 11px !important;
  }

  #azhlha-site-header .az-language-chevron {
    display: none !important;
  }
}

@media (max-width: 359px) {
  #azhlha-site-header .logo-azhlha {
    max-width: 98px !important;
  }

  #azhlha-site-header .az-account-text-btn {
    padding: 0 5px !important;
    font-size: 10px !important;
  }
}

/* OPS-106 (D-037 §9): readability fixes found by the iPhone audit (light theme). */
html.light-theme .mobile-bottom-nav .mobile-nav-item span,
html.light-theme .mobile-bottom-nav a span { color: #475569 !important; }
html.light-theme .mobile-bottom-nav .mobile-nav-item.active span,
html.light-theme .mobile-bottom-nav a.active span { color: #6d28d9 !important; }
html.light-theme .az-results,
html.light-theme .orders-results { color: #475569 !important; }
html.light-theme .az-oi-total { color: #475569 !important; }

/* Home (light theme): the hero label, the secondary button, the "all brands" link and
   the brand chips were near-white on white. */
html.light-theme .az-ih-label { color: #6d28d9 !important; background: #f3e8ff !important; border-color: #ddd6fe !important; }
html.light-theme .az-ih-secondary { color: #6d28d9 !important; background: #ffffff !important; border-color: #c4b5fd !important; }
html.light-theme .az-home-catalog-all { color: #6d28d9 !important; }
html.light-theme a.az-chip { color: #1e1b4b !important; background: #f3e8ff !important; border-color: #ddd6fe !important; }
/* Footer (light theme): the phone number was white on white. */
html.light-theme footer a[href^="tel:"], html.light-theme .footer a[href^="tel:"], html.light-theme a[href^="tel:"] { color: #475569 !important; }
/* Generic OpenCart pages (offers, 404): the primary button keeps white text on the gradient. */
html.light-theme a.btn.btn-primary, html.light-theme button.btn.btn-primary { color: #fff !important; background: linear-gradient(90deg, #ec4899, #7c3aed) !important; border: 0 !important; }
/* eSIM landing (light theme): the travel hero stays dark, so its text stays white. */
html.light-theme .az-travel-hero h2, html.light-theme .az-travel-hero p { color: #ffffff !important; -webkit-text-fill-color: #ffffff !important; }
html.light-theme .az-travel-hero p { opacity: .85; }
/* Order page (light theme): the date under the order number. */
html.light-theme .az-oi-head time, html.light-theme .az-oi-header time, html.light-theme #account-order-info time { color: #64748b !important; }

/* Travel insurance: readable in both themes (labels and titles were grey on dark). */
#insurance-travel h1 { color: #fff; font-weight: 800; }
#insurance-travel p { color: #c8cdea; }
#insurance-travel legend { color: #e9e5f5; border-bottom-color: rgba(255,255,255,.15); font-weight: 700; }
#insurance-travel .control-label { color: #d6d9e6; }
html.light-theme #insurance-travel h1, html.light-theme #insurance-travel legend { color: #1e1b4b !important; }
html.light-theme #insurance-travel p { color: #475569 !important; }
html.light-theme #insurance-travel .control-label { color: #334155 !important; }
html.light-theme #insurance-travel legend { border-bottom-color: #e2e8f0 !important; }
/* Muted texts just under WCAG AA in the light theme. */
html.light-theme .az-oi-head time { color: #475569 !important; }
html.light-theme .az-cat-description, html.light-theme .az-empty-cart__hint, html.light-theme p.az-muted { color: #475569 !important; }
html.light-theme #information-information p, html.light-theme #product-search p { color: #334155 !important; }
