/* =====================================================
   ARAB UT — CUSTOM HEADER
   ===================================================== */

:root {
  --ah-bg:       #0A0A0A;
  --ah-bg-nav:   #0F0D0A;
  --ah-gold:     #D4A843;
  --ah-gold-dim: rgba(212,168,67,0.15);
  --ah-border:   rgba(212,168,67,0.12);
  --ah-text:     #EDE4D0;
  --ah-text-2:   #9A8A72;
  --ah-font:     "Thmanyah Sans", sans-serif;
  --ah-font-heading: "Thmanyah Serif Display", "Thmanyah Sans", sans-serif;
  --ah-h:        60px;   /* topbar height */
  --ah-nav-h:    48px;   /* nav bar height */
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Reset Astra header since we override header.php ── */
#masthead, .ast-desktop-header, .ast-mobile-header-wrap { display: none !important; }

/* ── Skip-to-content link: keyboard-only (hidden visually until focused)
   Lives in header.php so it must be styled here too; account.css has the
   same rule but only loads on account pages, so without this, the link
   renders as visible Arabic text at the top of every non-account page. */
.ut-skip-link {
  position: absolute !important;
  inset-inline-start: 0 !important;
  top: -100px !important;
  z-index: 10000;
  padding: 12px 18px;
  background: var(--ah-gold);
  color: #1A0F00 !important;
  font-weight: 700;
  text-decoration: none !important;
  border-radius: 0 0 10px 0;
  transition: top 0.15s ease;
}
.ut-skip-link:focus { top: 0 !important; outline: 3px solid #fff; }

/* ── Shared ── */
#arabut-header {
  font-family: var(--ah-font);
  direction: rtl;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 0 var(--ah-border);
  max-width: 100vw;
}
#arabut-header,
#arabut-header * { box-sizing: border-box; }
body.admin-bar #arabut-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar #arabut-header { top: 46px; } }

.ah-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  width: 100%;
  min-width: 0;
}

/* ══ TOP BAR ══ */
.ah-topbar {
  background: var(--ah-bg);
  height: var(--ah-h);
  border-bottom: 1px solid var(--ah-border);
}
.ah-topbar .ah-container {
  justify-content: space-between;
  height: 100%;
}

/* Brand */
.ah-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none !important;
  flex: 0 1 auto;
  min-width: 0;
}
.ah-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}
.ah-brand-name {
  font-family: var(--ah-font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ah-text) !important;
  letter-spacing: 0;
  word-spacing: 0.06em;
  line-height: 1;
  font-kerning: normal;
  font-feature-settings: "liga" 1, "calt" 1, "kern" 1, "ss01" 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ah-brand-accent { color: var(--ah-gold) !important; }

/* Utilities row */
.ah-utils {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.ah-currency {
  position: relative;
  z-index: 3;
}
.ah-currency-toggle {
  min-height: 38px;
  border: 1px solid rgba(212,168,67,0.22);
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.07), rgba(212,168,67,0.12)),
    rgba(12,12,14,0.74);
  color: var(--ah-text);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  font-family: var(--ah-font);
  cursor: pointer;
  box-shadow:
    0 8px 22px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.ah-currency-toggle::after {
  content: "⌄";
  color: rgba(237,228,208,0.62);
  font-size: 0.72rem;
  line-height: 1;
  transform: translateY(-1px);
}
.ah-currency-toggle:hover,
.ah-currency.is-open .ah-currency-toggle {
  border-color: rgba(212,168,67,0.46);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(212,168,67,0.18)),
    rgba(16,16,18,0.84);
}
.ah-currency-label {
  font-size: 0.74rem;
  color: var(--ah-text-2);
  white-space: nowrap;
}
.ah-currency-toggle strong {
  color: var(--ah-gold);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.01em;
}
.ah-currency-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: 172px;
  max-height: min(360px, calc(100vh - 92px));
  overflow-y: auto;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(212,168,67,0.22);
  background:
    linear-gradient(145deg, rgba(28,24,20,0.96), rgba(10,10,10,0.96)),
    rgba(12,10,8,0.96);
  box-shadow: 0 22px 54px rgba(0,0,0,0.52), inset 0 1px 0 rgba(255,255,255,0.05);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.ah-currency-menu[hidden] { display: none !important; }
.ah-currency-menu button {
  width: 100%;
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: var(--ah-text);
  font-family: var(--ah-font);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
  padding: 8px 10px;
}
.ah-currency-menu button:hover,
.ah-currency-menu button.is-selected {
  border-color: rgba(212,168,67,0.2);
  background: rgba(212,168,67,0.13);
  color: var(--ah-gold);
}

/* Icon buttons */
.ah-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ah-border);
  background: transparent;
  color: var(--ah-text) !important;
  text-decoration: none !important;
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  flex-shrink: 0;
}
.ah-icon-btn:hover {
  border-color: var(--ah-gold);
  background: var(--ah-gold-dim);
  color: var(--ah-gold) !important;
}

/* Cart badge */
.ah-badge {
  position: absolute;
  top: -6px;
  inset-inline-end: -6px;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  background: var(--ah-gold);
  color: #0A0A0A !important;
  font-size: 0.62rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
  border: 2px solid var(--ah-bg);
}
.ah-badge[data-count="0"] { display: none; }

/* Hamburger */
.ah-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--ah-border);
  background: transparent;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
  transform: translateZ(0);
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ah-hamburger:hover,
.ah-hamburger.is-open {
  border-color: var(--ah-gold);
  background: var(--ah-gold-dim);
}

/* Toggle icons are drawn with CSS so they stay optically centered. */
.ah-menu-icon,
.ah-close-icon {
  position: absolute;
  inset-block-start: 50%;
  inset-inline-start: 50%;
  color: currentColor;
  font-size: 0;
  line-height: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  will-change: opacity, transform;
}
.ah-menu-icon {
  display: block;
  width: 18px;
  height: 14px;
  border-block: 2px solid currentColor;
  border-radius: 2px;
  opacity: 1;
  transform: translate(-50%, -50%);
}
.ah-menu-icon::before,
.ah-close-icon::before,
.ah-close-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  block-size: 2px;
  border-radius: 999px;
  background: currentColor;
}
.ah-menu-icon::before {
  inset-block-start: 50%;
  transform: translateY(-50%);
}
.ah-close-icon {
  display: block;
  width: 18px;
  height: 18px;
  opacity: 0;
  transform: translate(-50%, -50%) rotate(-45deg) scale(0.9);
}
.ah-close-icon::before,
.ah-close-icon::after {
  inset-block-start: 50%;
}
.ah-close-icon::before {
  transform: translateY(-50%) rotate(45deg);
}
.ah-close-icon::after {
  transform: translateY(-50%) rotate(-45deg);
}

.ah-hamburger.is-open .ah-menu-icon {
  opacity: 0;
  transform: translate(-50%, -50%) rotate(45deg) scale(0.88);
}
.ah-hamburger.is-open .ah-close-icon {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
}

/* ══ BOTTOM NAV BAR ══ */
.ah-nav {
  background: var(--ah-bg-nav);
  height: var(--ah-nav-h);
  border-bottom: 1px solid var(--ah-border);
}
.ah-nav .ah-container { height: 100%; }

.ah-nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
  height: 100%;
}
.ah-nav-item { height: 100%; display: flex; align-items: center; }

.ah-nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ah-text-2) !important;
  text-decoration: none !important;
  position: relative;
  transition: color 0.18s;
  white-space: nowrap;
}
.ah-nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 14px;
  inset-inline-end: 14px;
  height: 2px;
  background: var(--ah-gold);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.ah-nav-link:hover { color: var(--ah-text) !important; }
.ah-nav-link:hover::after { transform: scaleX(0.5); }
.ah-nav-link.is-active { color: var(--ah-gold) !important; font-weight: 600; }
.ah-nav-link.is-active::after { transform: scaleX(1); }

/* Icon leading each category label — small and subtle, lifts on hover */
.ah-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.78;
  transition: opacity 0.18s, transform 0.18s;
}
.ah-nav-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.ah-nav-link:hover .ah-nav-icon,
.ah-nav-link.is-active .ah-nav-icon {
  opacity: 1;
  transform: translateY(-1px);
}

/* Small "bestseller" badge next to SBC — subtle gold pill */
.ah-nav-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--ah-gold-dim);
  color: var(--ah-gold);
  border: 1px solid rgba(212,168,67,0.25);
  letter-spacing: 0;
  margin-inline-start: 2px;
}

/* Coins item gets a constant gold tint — it's the revenue engine */
.ah-nav-item.is-coins .ah-nav-link {
  color: var(--ah-gold) !important;
  font-weight: 600;
}
.ah-nav-item.is-coins .ah-nav-icon { opacity: 1; }

/* ── Persistent WhatsApp CTA — lives on the leading (leftmost in RTL) edge ── */
.ah-nav-item--cta {
  margin-inline-start: auto;   /* push to leading edge (left in RTL) */
  padding-inline-end: 4px;
}
.ah-nav-wa {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none !important;
  font-family: var(--ah-font);
  box-shadow: 0 2px 8px rgba(37,211,102,0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  white-space: nowrap;
  border: 1px solid rgba(255,255,255,0.08);
}
.ah-nav-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,211,102,0.45);
  filter: brightness(1.06);
  color: #ffffff !important;
}
.ah-nav-wa-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
}

/* ══ MOBILE MENU ══ */
.ah-mobile-menu {
  display: none;                   /* hidden by default — class-based toggle */
  position: fixed;
  inset-inline-start: 0;
  inset-inline-end: 0;
  top: calc(var(--ah-h) + var(--ah-nav-h));
  bottom: 0;
  background: #0D0B08;
  z-index: 999;
  overflow-y: auto;
  border-top: 1px solid var(--ah-border);
}
.ah-mobile-menu.is-open {
  display: block;
  animation: ah-slide-in 0.22s ease;
}
body.admin-bar .ah-mobile-menu { top: calc(var(--ah-h) + var(--ah-nav-h) + 32px); }
@media (max-width: 782px) {
  body.admin-bar .ah-mobile-menu { top: calc(var(--ah-h) + var(--ah-nav-h) + 46px); }
}
@keyframes ah-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ah-mobile-inner {
  padding: 8px 0 40px;
}
.ah-mobile-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ah-mobile-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--ah-text) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(212,168,67,0.07);
  transition: background 0.15s, color 0.15s, padding-inline-end 0.15s;
  font-family: var(--ah-font);
}
.ah-mobile-link:hover,
.ah-mobile-link.is-active {
  color: var(--ah-gold) !important;
  background: rgba(212,168,67,0.05) !important;
  padding-inline-end: 32px;
}
.ah-mobile-link.is-active { font-weight: 700; }

/* Mobile icon leading each category */
.ah-mobile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}
.ah-mobile-icon img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ah-mobile-label { flex: 1; }
.ah-mobile-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ah-gold-dim);
  color: var(--ah-gold);
  border: 1px solid rgba(212,168,67,0.25);
  flex-shrink: 0;
}

/* Mobile WhatsApp CTA — big pill, impossible to miss */
.ah-mobile-cta-wrap {
  padding: 20px 24px 0;
}
.ah-mobile-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  height: 50px;
  border-radius: 999px;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: #ffffff !important;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none !important;
  font-family: var(--ah-font);
  box-shadow: 0 6px 18px rgba(37,211,102,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.ah-mobile-wa:hover,
.ah-mobile-wa:active {
  transform: translateY(-1px);
  color: #ffffff !important;
  box-shadow: 0 10px 24px rgba(37,211,102,0.5);
}

.ah-mobile-utils {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px 0;
}
.ah-mobile-account {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid var(--ah-border);
  color: var(--ah-text) !important;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none !important;
  font-family: var(--ah-font);
  transition: border-color 0.18s, color 0.18s;
}
.ah-mobile-account:hover { border-color: var(--ah-gold); color: var(--ah-gold) !important; }

/* ══ RESPONSIVE ══ */

/* Tight tablet widths: shrink category labels gracefully before mobile menu kicks in */
@media (max-width: 960px) {
  .ah-nav-link { padding: 0 10px; font-size: 0.85rem; gap: 6px; }
  .ah-nav-badge { display: none; }         /* badge moves to mobile menu only */
  .ah-nav-wa { padding: 0 12px; font-size: 0.78rem; }
  .ah-currency-label { display: none; }
  .ah-currency-toggle {
    min-width: 58px;
    justify-content: center;
    padding-inline: 9px;
  }
  .ah-currency-menu {
    width: 154px;
  }
}

@media (max-width: 768px) {
  :root { --ah-h: 58px; --ah-nav-h: 0px; }
  .ah-topbar .ah-container {
    gap: 7px;
    justify-content: flex-start;
    padding-inline: 10px;
  }
  .ah-brand {
    flex: 1 1 auto;
    gap: 7px;
  }
  .ah-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }
  .ah-brand-name {
    max-width: 116px;
    font-size: 0.94rem;
  }
  .ah-utils { gap: 5px; }
  .ah-hamburger { display: flex; }
  .ah-icon-btn,
  .ah-hamburger {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .ah-icon-btn svg {
    width: 18px;
    height: 18px;
  }
  .ah-currency { position: static; }
  .ah-currency-toggle {
    width: 54px;
    min-width: 54px;
    min-height: 40px;
    height: 40px;
    justify-content: center;
    gap: 3px;
    padding: 0 5px;
    border-radius: 13px;
    background:
      linear-gradient(145deg, rgba(255,255,255,0.07), rgba(212,168,67,0.13)),
      rgba(15,16,19,0.78);
  }
  .ah-currency-toggle strong {
    font-size: 0.69rem;
    letter-spacing: 0;
  }
  .ah-currency-toggle::after { font-size: 0.62rem; }
  .ah-currency-menu {
    position: fixed;
    inset: calc(var(--ah-h) + env(safe-area-inset-top) + 8px) 10px auto 10px;
    width: auto;
    max-width: none;
    max-height: min(360px, calc(100dvh - var(--ah-h) - 20px));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
    border-radius: 18px;
    border-color: rgba(212,168,67,0.24);
    background:
      radial-gradient(circle at 20% 0%, rgba(212,168,67,0.18), transparent 34%),
      linear-gradient(145deg, rgba(25,27,33,0.94), rgba(8,8,10,0.96));
    box-shadow:
      0 22px 60px rgba(0,0,0,0.58),
      inset 0 1px 0 rgba(255,255,255,0.08);
    overflow-y: auto;
    z-index: 1200;
  }
  body.admin-bar .ah-currency-menu {
    top: calc(var(--ah-h) + 46px + env(safe-area-inset-top) + 8px);
  }
  .ah-currency-menu[hidden] { display: none !important; }
  .ah-currency-menu button {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 13px;
    background: rgba(255,255,255,0.035);
    border-color: rgba(255,255,255,0.055);
  }
  .ah-currency-menu button.is-selected::after {
    content: "✓";
    color: #0A0A0A;
    background: var(--ah-gold);
    width: 18px;
    height: 18px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    line-height: 1;
  }
  .ah-nav { display: none; }
  .ah-mobile-menu { top: var(--ah-h); }
  body.admin-bar .ah-mobile-menu { top: calc(var(--ah-h) + 32px); }
}
@media (max-width: 380px) {
  .ah-topbar .ah-container { padding-inline: 8px; gap: 5px; }
  .ah-brand-name { max-width: 98px; font-size: 0.9rem; }
  .ah-utils { gap: 4px; }
  .ah-icon-btn,
  .ah-hamburger {
    width: 38px;
    height: 38px;
  }
  .ah-currency-toggle {
    width: 50px;
    min-width: 50px;
    height: 38px;
    min-height: 38px;
  }
}
@media (max-width: 782px) {
  body.admin-bar .ah-mobile-menu { top: calc(var(--ah-h) + 46px); }
}

/* Impeccable mobile pass: compact, premium, and no clipped brand text. */
@media (max-width: 768px) {
  .ah-topbar .ah-container {
    padding-inline: 8px 10px;
    gap: 6px;
  }
  .ah-brand {
    flex: 1 1 auto;
    min-width: 128px;
    gap: 7px;
  }
  .ah-logo {
    width: 36px;
    height: 36px;
  }
  .ah-brand-name {
    max-width: none;
    font-size: 0.93rem;
    line-height: 1.05;
  }
  .ah-utils {
    gap: 5px;
  }
  .ah-icon-btn,
  .ah-hamburger,
  .ah-currency-toggle {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(212,168,67,0.14);
    background: rgba(8,10,13,0.64);
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,0.055),
      0 8px 18px rgba(0,0,0,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
  .ah-currency-toggle {
    padding: 0;
    color: var(--ah-text);
  }
  .ah-currency-toggle::after {
    display: none;
  }
  .ah-currency-toggle strong {
    color: #EDE4D0;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.02em;
  }
  .ah-icon-btn:hover,
  .ah-hamburger:hover,
  .ah-hamburger.is-open,
  .ah-currency.is-open .ah-currency-toggle {
    border-color: rgba(212,168,67,0.44);
    background: rgba(212,168,67,0.11);
    color: var(--ah-gold) !important;
  }
  .ah-currency-menu {
    inset: calc(var(--ah-h) + env(safe-area-inset-top) + 8px) 10px auto 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
    border-radius: 18px;
    background:
      radial-gradient(circle at 18% 0%, rgba(212,168,67,0.12), transparent 36%),
      linear-gradient(145deg, rgba(19,22,28,0.94), rgba(7,8,10,0.98));
    border: 1px solid rgba(212,168,67,0.18);
  }
  .ah-currency-menu::before {
    content: "عرض الأسعار";
    grid-column: 1 / -1;
    color: rgba(237,228,208,0.68);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 2px 2px 4px;
  }
  .ah-currency-menu button {
    min-height: 42px;
    justify-content: center;
    gap: 6px;
    border-color: rgba(255,255,255,0.065);
    background: rgba(255,255,255,0.035);
    color: #EDE4D0;
    font-size: 0.78rem;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  }
  .ah-currency-menu button:hover,
  .ah-currency-menu button.is-selected {
    color: var(--ah-gold);
    border-color: rgba(212,168,67,0.42);
    background:
      linear-gradient(145deg, rgba(212,168,67,0.14), rgba(255,255,255,0.035)),
      rgba(14,16,20,0.82);
  }
  .ah-currency-menu button.is-selected::after {
    width: 16px;
    height: 16px;
    font-size: 0.68rem;
    margin-inline-start: 2px;
  }
}

@media (max-width: 380px) {
  .ah-brand {
    min-width: 122px;
  }
  .ah-brand-name {
    max-width: none;
    font-size: 0.88rem;
  }
  .ah-utils > .ah-icon-btn:nth-of-type(2) {
    display: none;
  }
}

/* Strong override against global button styles: currency must match header icons. */
#arabut-header .ah-currency-toggle {
  background:
    linear-gradient(145deg, rgba(255,255,255,0.035), rgba(255,255,255,0.006)),
    rgba(4,5,7,0.62) !important;
  border: 1px solid var(--ah-border) !important;
  color: var(--ah-text) !important;
  padding: 0 !important;
  box-shadow: none !important;
}
#arabut-header .ah-currency-toggle:hover,
#arabut-header .ah-currency.is-open .ah-currency-toggle {
  background: var(--ah-gold-dim) !important;
  border-color: var(--ah-gold) !important;
  color: var(--ah-gold) !important;
}
#arabut-header .ah-currency-toggle strong {
  color: inherit !important;
}

/* Final mobile header polish: keep the brand readable and unclipped. */
@media (max-width: 768px) {
  #arabut-header,
  #arabut-header .ah-topbar,
  #arabut-header .ah-container,
  #arabut-header .ah-brand,
  #arabut-header .ah-brand-name {
    overflow: visible !important;
  }
  #arabut-header .ah-topbar {
    height: 62px;
  }
  #arabut-header .ah-topbar .ah-container {
    min-height: 62px;
    align-items: center;
  }
  #arabut-header .ah-brand {
    min-height: 46px;
    padding-block: 4px 6px;
  }
  #arabut-header .ah-brand-name {
    line-height: 1.32 !important;
    padding-block: 3px 5px;
    transform: translateY(1px);
  }
}

/* Currency/language preferences popover. */
#arabut-header .ah-currency-menu {
  width: min(320px, calc(100vw - 22px)) !important;
  padding: 16px !important;
  border-radius: 22px !important;
  z-index: 99999 !important;
  display: block;
  background:
    radial-gradient(circle at 20% 0%, rgba(212,168,67,0.16), transparent 38%),
    linear-gradient(145deg, rgba(24,27,33,0.94), rgba(7,8,10,0.98)) !important;
  border: 1px solid rgba(212,168,67,0.22) !important;
}
#arabut-header .ah-currency-menu:not([hidden]) {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}
#arabut-header .ah-currency-menu::before {
  display: none !important;
}
#arabut-header .ah-pref-head {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  text-align: right;
}
#arabut-header .ah-pref-head strong {
  color: #F6EFE1;
  font-family: var(--ah-font-heading);
  font-size: 1.08rem;
  font-weight: 950;
  line-height: 1.35;
}
#arabut-header .ah-pref-head span {
  color: rgba(237,228,208,0.62);
  font-size: 0.78rem;
  font-weight: 800;
}
#arabut-header .ah-pref-field {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  color: rgba(237,228,208,0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: right;
}
#arabut-header .ah-pref-field select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(212,168,67,0.22);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    rgba(8,10,13,0.72);
  color: #F6EFE1;
  font-family: var(--ah-font);
  font-size: 0.92rem;
  font-weight: 900;
  padding: 0 12px;
  outline: none;
}
#arabut-header .ah-pref-field select:focus {
  border-color: rgba(212,168,67,0.68);
  box-shadow: 0 0 0 3px rgba(212,168,67,0.14);
}
#arabut-header .ah-pref-field option {
  background: #101114;
  color: #F6EFE1;
}
#arabut-header .ah-pref-apply {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #F0C85B, #C99727);
  color: #100B02;
  font-family: var(--ah-font);
  font-size: 0.94rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(212,168,67,0.20);
}

@media (max-width: 768px) {
  #arabut-header .ah-currency-menu {
    position: fixed;
    inset: calc(var(--ah-h) + env(safe-area-inset-top) + 8px) 10px auto 10px !important;
    width: auto !important;
    max-height: min(420px, calc(100dvh - var(--ah-h) - 20px));
  }
}
/* Display settings dialog: keep one intentional select arrow and reuse the same
   polished dialog on desktop and mobile. */
#arabut-header .ah-pref-field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-inline: 12px 38px !important;
  background-image:
    linear-gradient(145deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23D4A843' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-position: center, left 14px center !important;
  background-repeat: no-repeat !important;
  background-size: auto, 14px 14px !important;
}

#arabut-header .ah-currency-menu button:not(.ah-pref-apply)::after {
  content: none !important;
}

@media (min-width: 769px) {
  #arabut-header .ah-currency-menu {
    width: min(420px, calc(100vw - 32px)) !important;
    padding: 16px !important;
    border-radius: 22px !important;
    background:
      radial-gradient(circle at 50% 8%, rgba(212,168,67,0.13), transparent 34%),
      linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
      rgba(13,22,30,0.94) !important;
    border: 1px solid rgba(212,168,67,0.20) !important;
    box-shadow: 0 24px 60px rgba(0,0,0,0.44), inset 0 1px 0 rgba(255,255,255,0.08) !important;
    backdrop-filter: blur(18px) saturate(1.15);
    -webkit-backdrop-filter: blur(18px) saturate(1.15);
  }
}

/* Mobile menu lives inside the blurred sticky header. Backdrop-filter creates a
   containing block in mobile Chromium, so give the opened panel an explicit
   viewport height instead of relying on bottom:0. */
@media (max-width: 768px) {
  #arabut-header .ah-mobile-menu {
    top: var(--ah-h) !important;
    bottom: auto !important;
    height: calc(100dvh - var(--ah-h)) !important;
    min-height: calc(100dvh - var(--ah-h)) !important;
    max-height: calc(100dvh - var(--ah-h)) !important;
    overflow-y: auto !important;
    opacity: 1 !important;
    transform: none !important;
  }

  #arabut-header .ah-mobile-menu.is-open {
    display: block !important;
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  body.admin-bar #arabut-header .ah-mobile-menu {
    top: calc(var(--ah-h) + 46px) !important;
    height: calc(100dvh - var(--ah-h) - 46px) !important;
    min-height: calc(100dvh - var(--ah-h) - 46px) !important;
    max-height: calc(100dvh - var(--ah-h) - 46px) !important;
  }
}

/* Real mobile drawer: JS moves #ah-mobile-menu to <body> so sticky/header
   backdrop filters cannot trap it. The drawer top is measured from the live
   header bottom, which also handles the WordPress admin bar cleanly. */
@media (max-width: 768px) {
  body.ah-menu-open {
    overflow: hidden !important;
    touch-action: none;
  }

  body > #ah-mobile-menu {
    display: block !important;
    position: fixed !important;
    inset-inline: 0 !important;
    top: var(--ah-drawer-top, var(--ah-h)) !important;
    bottom: auto !important;
    width: 100vw !important;
    height: calc(100dvh - var(--ah-drawer-top, var(--ah-h))) !important;
    min-height: calc(100dvh - var(--ah-drawer-top, var(--ah-h))) !important;
    max-height: calc(100dvh - var(--ah-drawer-top, var(--ah-h))) !important;
    z-index: 9998 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 50% 0%, rgba(212,168,67,0.10), transparent 34%),
      linear-gradient(180deg, rgba(9,10,13,0.98), rgba(5,6,8,0.995)) !important;
    border-top: 1px solid rgba(212,168,67,0.18) !important;
    box-shadow: 0 28px 70px rgba(0,0,0,0.58) !important;
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0,-8px,0);
    transition:
      opacity 0.16s ease,
      transform 0.16s ease,
      visibility 0s linear 0.16s;
    will-change: opacity, transform;
    contain: layout paint;
  }

  body > #ah-mobile-menu.is-open {
    display: block !important;
    visibility: visible;
    pointer-events: auto;
    opacity: 1 !important;
    transform: translate3d(0,0,0) !important;
    transition-delay: 0s;
    animation: none !important;
  }
}
@media (max-width: 768px) {
  body > #ah-mobile-menu {
    left: 0 !important;
    right: 0 !important;
    inset-inline: 0 !important;
    inset-inline-start: 0 !important;
    inset-inline-end: 0 !important;
    width: auto !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
  }

  body > #ah-mobile-menu .ah-mobile-inner {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  #arabut-header .ah-logo {
    width: 46px !important;
    height: 46px !important;
    border-radius: 12px !important;
  }

  #arabut-header .ah-brand {
    gap: 8px !important;
  }
}
