/* Theme header — full-width Al-Hilal reference style */
:root {
  --theme-brand: #0756a8;
  --theme-blue: #3f9ae5;
  --theme-cyan: #8dd7ff;
  --theme-text: #0b2340;
  --theme-muted: #6c8198;
  --theme-line: rgba(26, 94, 160, 0.14);
  --theme-glass: rgba(255, 255, 255, 0.68);
  --theme-header-bg: #000d29;
  --theme-header-text: #ffffff;
  --theme-header-icon: #ffffff;
  --theme-header-menu-bg: var(--theme-header-bg);
  --theme-header-menu-text: var(--theme-header-text);
  --theme-header-h: 90px;
  --theme-header-top: 0px;
  --theme-announce-h: 36px;
  --theme-header-pad: clamp(24px, 5.5vw, 100px);
  /* Content shell inset (independent of full-bleed header) */
  --theme-shell-inset: 24px;
}

/* Offset header immediately when announcement exists — no JS delay / jump */
body:has(.announcement-bar:not(.d-none)) {
  --theme-header-top: var(--theme-announce-h);
}

.theme-header-spacer {
  height: calc(var(--theme-header-h) + var(--theme-header-top, 0px));
  flex-shrink: 0;
}

/* Announcement bar sits above the fixed site header (works with legacy + new markup) */
header.theme-header > .announcement-bar,
.theme-announcement-bar.announcement-bar,
.announcement-bar[data-announcement-bar] {
  position: fixed !important;
  top: 0 !important;
  right: 0;
  left: 0;
  z-index: 110 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center;
  width: 100%;
  height: var(--theme-announce-h) !important;
  min-height: var(--theme-announce-h) !important;
  max-height: var(--theme-announce-h) !important;
  margin: 0;
  overflow: hidden;
  box-sizing: border-box;
}

/* Legacy static markup: .container > a > h2 */
header.theme-header > .announcement-bar > .container,
.announcement-bar > .container {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 100% !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

header.theme-header > .announcement-bar > .container > a,
.announcement-bar > .container > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

header.theme-header > .announcement-bar .announcement-text,
header.theme-header > .announcement-bar .announcement-text *,
.theme-announcement-bar .announcement-text,
.announcement-bar[data-announcement-bar] .announcement-text,
.announcement-bar .announcement-text,
.announcement-bar h2.announcement-text {
  font-family: var(--font-body) !important;
  font-size: 1.1rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
}

header.theme-header > .announcement-bar.d-none,
.theme-announcement-bar.d-none,
.announcement-bar[data-announcement-bar].d-none {
  display: none !important;
}

.theme-announcement-bar__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 100%;
  min-height: 100%;
  padding: 0 2.5rem;
  box-sizing: border-box;
}

.theme-announcement-bar__link {
  color: inherit;
  text-decoration: none;
}

.theme-announcement-bar__link:hover {
  text-decoration: underline;
}

.theme-announcement-bar .announcement-text {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  color: inherit;
}

/* No dismiss control on announcement bar */
header.theme-header > .announcement-bar .ab-close,
.announcement-bar .ab-close,
.theme-announcement-bar__close {
  display: none !important;
}

.theme-announcement-bar .announcement-ticker {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
}

.theme-announcement-bar .ticker-wrap {
  display: flex;
  width: fit-content;
  will-change: transform;
}

.theme-announcement-bar .ticker-item {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 100%;
  padding: 0 2rem;
  white-space: nowrap;
}

.theme-announcement-bar .ticker-icon {
  margin-inline-end: 0.5rem;
  font-size: 1.1rem;
}

.theme-announcement-bar .ticker-link {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 768px) {
  .theme-announcement-bar__inner {
    padding: 0 2.25rem;
  }

  header.theme-header > .announcement-bar .announcement-text,
  .theme-announcement-bar .announcement-text,
  .announcement-bar .announcement-text,
  .announcement-bar h2.announcement-text {
    font-size: 1rem !important;
  }

  .theme-announcement-bar .ticker-item {
    padding: 0 1.5rem;
  }
}

.theme-site-header {
  position: fixed;
  z-index: 100;
  top: var(--theme-header-top, 0px);
  right: 0;
  left: 0;
  width: 100%;
  height: var(--theme-header-h);
  padding: 0 var(--theme-header-pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 0;
  background: var(--theme-header-bg);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background 0.25s, color 0.25s;
  font-family: var(--font-body) !important;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  color: var(--theme-header-text);
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
}

.theme-site-header *,
.theme-site-header *::before,
.theme-site-header *::after {
  box-sizing: border-box;
}

/* Keep dark-scroll class harmlessly compatible (colors come from customizer) */
.theme-site-header.is-dark {
  background: var(--theme-header-bg);
  color: var(--theme-header-text);
  border-bottom-color: rgba(255, 255, 255, 0.11);
  box-shadow: none;
}

/* Start block: logo + rule + menus (AR → far right, EN → far left) */
.theme-header-start {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 0 1 auto;
  min-width: 0;
  height: 100%;
  z-index: 2;
}

.theme-brand-rule {
  flex: 0 0 auto;
  align-self: center;
  width: 1px;
  height: 28px;
  margin: 0;
  border: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.55) 18%,
    rgba(255, 255, 255, 0.55) 82%,
    rgba(255, 255, 255, 0)
  );
  opacity: 0.9;
}

/* Brand frame — logos render as uploaded (no color filter) */
.theme-brand {
  display: block;
  position: relative;
  z-index: 2;
  flex: none;
  flex-shrink: 0;
  width: 220px;
  height: var(--theme-logo-h, 76px);
  max-height: calc(var(--theme-header-h) - 12px);
  overflow: visible;
  text-decoration: none;
  color: inherit;
  background: transparent !important;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  mix-blend-mode: normal;
  isolation: auto;
}

.theme-brand:hover,
.theme-brand:focus,
.theme-brand:focus-visible,
.theme-brand:active {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  text-decoration: none;
  color: inherit;
  background: transparent !important;
}

.theme-brand-logo,
.theme-site-header .theme-brand img,
.theme-brand img {
  position: absolute !important;
  inset: 0 !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 100% !important;
  max-height: 100% !important;
  transform: none !important;
  object-fit: contain;
  object-position: center center;
  display: block;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-user-drag: none;
  /* Soft shadow helps wordmark stay readable on dark navy headers */
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  mix-blend-mode: normal;
  image-rendering: auto;
}

.theme-brand-logo--scroll {
  visibility: hidden;
}

.theme-site-header.is-scrolled.has-scroll-logo .theme-brand-logo--default {
  visibility: hidden;
}

.theme-site-header.is-scrolled.has-scroll-logo .theme-brand-logo--scroll {
  visibility: visible;
}

.search-header .image-logo {
  filter: none;
}

.search-header .image-logo--scroll {
  display: none;
}

#fixed-header.sticky .search-header .image-logo--default,
.sticky .search-header .image-logo--default {
  display: none;
}

#fixed-header.sticky .search-header .image-logo--scroll,
.sticky .search-header .image-logo--scroll {
  display: block;
}

/* Wordmark lives inside the logo asset (like reference) — hide separate text label */
.theme-brand-name {
  display: none !important;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  line-height: 16px;
  letter-spacing: 0;
  color: inherit;
}

.theme-brand-name small {
  display: block;
  font-family: inherit;
  font-size: 10.88px;
  font-weight: 300;
  line-height: 10.88px;
  color: inherit;
  opacity: 0.55;
  margin-top: 4px;
}

.theme-nav {
  position: relative;
  left: auto;
  top: auto;
  bottom: auto;
  transform: none;
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  flex-wrap: nowrap;
  z-index: 1;
  height: 100%;
  min-width: 0;
}

.theme-nav a {
  position: relative;
  height: 100%;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: normal;
  opacity: 1;
  transition: opacity 0.2s;
  white-space: nowrap; /* keep each nav label on one line */
  color: var(--theme-header-menu-text, var(--theme-header-text));
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  min-height: 0;
  letter-spacing: 0;
}

/* Reference .desktop-nav a:after — bottom 20px, height 2px, scaleX active */
.theme-nav a::after {
  content: "";
  position: absolute;
  bottom: 20px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--theme-header-menu-text, var(--theme-header-text));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s;
  pointer-events: none;
}

.theme-nav a:hover,
.theme-nav a.is-active,
.theme-nav a[aria-current="page"] {
  opacity: 1;
}

.theme-nav a:hover::after,
.theme-nav a.is-active::after,
.theme-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.theme-nav .theme-nav-store {
  color: var(--theme-header-menu-text, var(--theme-header-text));
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  font-weight: 700 !important;
  font-size: 12px !important;
}

.theme-header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  margin-inline-start: auto;
  height: 100%;
  align-self: stretch;
}

.theme-lang-btn {
  min-width: 0;
  min-height: 44px;
  height: 44px;
  padding: 0 8px;
  border-radius: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--theme-header-icon);
  /* Reference .language-button — Bukra 12px / weight 400 (NOT bold) */
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1;
  letter-spacing: 0 !important;
  text-transform: none !important;
  -webkit-font-smoothing: antialiased;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
  user-select: none;
  width: auto !important;
  flex-direction: row;
  box-sizing: border-box;
}

.theme-lang-btn:hover {
  opacity: 0.8;
  transform: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.theme-lang-btn .theme-globe-icon {
  display: none;
}

.theme-lang-btn .theme-globe-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.theme-lang-btn .theme-lang-code {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 400 !important; /* reference language-button inherits body 400 */
  line-height: 1;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: inherit;
  -webkit-font-smoothing: antialiased;
}

/* Never uppercase Arabic «عربي»; Latin «EN» stays uppercase without tracking */
html[lang="ar"] .theme-lang-btn .theme-lang-code {
  letter-spacing: 0;
  text-transform: uppercase;
}

.theme-site-header.is-dark .theme-lang-btn {
  color: var(--theme-header-icon);
  background: transparent !important;
  border: 0 !important;
}

.theme-site-header.is-dark .theme-lang-btn .theme-globe-icon {
  color: var(--theme-header-icon);
}

.theme-site-header.is-dark .theme-lang-btn:hover {
  background: transparent !important;
  border: 0 !important;
}

.theme-site-header.is-dark .theme-lang-btn:hover .theme-globe-icon {
  color: var(--theme-header-icon);
}

.theme-lang-btn.is-loading,
.theme-mobile-lang-btn.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.theme-icon-btn {
  /* Reference .icon-button — padding 8px, grid center; align with lang + menu */
  position: relative;
  width: 40px;
  height: 44px;
  min-width: 40px;
  min-height: 44px;
  padding: 8px;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--theme-header-icon);
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s;
  flex-shrink: 0;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}

/* Keep circular grid layout when Zid JS toggles display to inline-block */
#login-btn.theme-account-btn[style*="display: none"],
#hello-btn.theme-account-btn[style*="display: none"] {
  display: none !important;
}

#login-btn.theme-account-btn:not([style*="display: none"]),
#hello-btn.theme-account-btn:not([style*="display: none"]) {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.theme-icon-btn:hover {
  transform: none;
  opacity: 0.8;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--theme-header-icon);
  text-decoration: none;
}

.theme-site-header.is-dark .theme-icon-btn {
  background: transparent !important;
  color: var(--theme-header-icon);
  border: 0 !important;
}

.theme-site-header.is-dark .theme-icon-btn:hover {
  transform: none;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--theme-header-icon);
}

.theme-icon-btn svg,
.theme-cart-icon {
  width: 24px;
  height: 24px;
  display: block;
  flex-shrink: 0;
}

/* Account uses sallaicons user; cart uses reference SVG */
.theme-header-sicon {
  display: inline-block;
  font-family: "sallaicons" !important;
  font-style: normal !important;
  font-weight: normal !important;
  font-variant: normal !important;
  text-transform: none !important;
  line-height: 1 !important;
  font-size: 22px !important;
  speak: never;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: currentColor;
}

.theme-header-sicon.sicon-user:before {
  content: "\f078";
}

/* Reference .cart-count — #fff bg, brand blue text, perfect circle */
.theme-cart-btn .cart-badge,
.theme-header-actions .theme-cart-btn .cart-badge,
a.theme-cart-btn .cart-badge {
  position: absolute !important;
  top: 7px !important;
  inset-inline-end: 0 !important;
  left: auto !important;
  right: 0 !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  max-width: 15px !important;
  min-height: 15px !important;
  max-height: 15px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  line-height: 1 !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  font-family: var(--font-body) !important;
  color: #001e7c !important;
  text-align: center !important;
  border-radius: 50% !important;
  background: #fff !important;
  background-color: #fff !important;
  border: 0 !important;
  overflow: hidden !important;
}
.theme-cart-btn .cart-badge:empty,
.theme-header-actions .theme-cart-btn .cart-badge:empty,
a.theme-cart-btn .cart-badge:empty {
  display: none !important;
}

html[dir="rtl"] .theme-cart-btn .cart-badge,
.rtl .theme-cart-btn .cart-badge {
  right: auto !important;
  left: 0 !important;
}

.ltr .theme-cart-btn .cart-badge,
html[lang="en"] .theme-cart-btn .cart-badge {
  left: auto !important;
  right: 0 !important;
}

.theme-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.theme-pill {
  border: 0;
  border-radius: 999px;
  padding: 12px 20px;
  background: var(--theme-brand);
  font-family: inherit;
  font-size: 16px;
  font-weight: 900;
  line-height: normal;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: rgba(7, 86, 168, 0.2) 0 10px 26px;
  transition: 0.25s;
  color: #fff !important;
  white-space: nowrap;
  min-height: 46px;
}

.theme-pill:hover {
  box-shadow: rgba(7, 86, 168, 0.28) 0 14px 32px;
  color: #fff !important;
  text-decoration: none;
}

.theme-pill-arrow {
  font-size: 16px;
  line-height: 1;
  font-weight: 900;
}

.theme-mobile-menu-btn {
  display: none;
  width: 40px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--theme-header-icon);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: opacity 0.2s;
  box-sizing: border-box;
  flex-shrink: 0;
}

.theme-mobile-menu-btn span {
  display: block;
  width: 18px;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}

.theme-site-header.is-dark .theme-mobile-menu-btn {
  background: transparent !important;
  color: var(--theme-header-icon);
  border: 0 !important;
}

.theme-site-header.menu-open .theme-mobile-menu-btn span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

.theme-site-header.menu-open .theme-mobile-menu-btn span:nth-child(2) {
  opacity: 0;
}

.theme-site-header.menu-open .theme-mobile-menu-btn span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/*
 * Mobile menu — exact reference .mobile-nav
 * padding: 20px var(--pad); links: padding 13px 0; border-bottom #ffffff22
 * NO active underline on mobile (desktop only keeps the 2px bar)
 */
.theme-mobile-nav-panel {
  display: none;
  position: absolute;
  z-index: 30;
  top: 100%;
  right: 0;
  left: 0;
  inset-inline: 0;
  padding: 20px var(--theme-header-pad, clamp(24px, 5.5vw, 100px));
  border: 0 !important;
  border-radius: 0;
  background: var(--theme-header-menu-bg, var(--theme-header-bg));
  color: var(--theme-header-menu-text, var(--theme-header-text));
  box-shadow: 0 15px 20px rgba(0, 13, 41, 0.125);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transform: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
  font-family: var(--font-body) !important;
}

.theme-mobile-nav-panel.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Reference .mobile-nav a — only padding + border; weight/size inherit body (400 / 12px @mobile) */
.theme-mobile-nav-panel a,
.theme-mobile-nav-panel a.theme-nav-link {
  min-height: 0 !important;
  margin: 0 !important;
  padding: 13px 0 !important;
  display: block !important;
  align-items: unset !important;
  justify-content: unset !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #ffffff22 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--theme-header-menu-text, var(--theme-header-text)) !important;
  text-decoration: none !important;
  font-family: var(--font-display) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
  position: static !important;
  transition: none;
}

.theme-mobile-nav-panel a + a {
  border-top: 0 !important;
}

.theme-mobile-nav-panel a:hover,
.theme-mobile-nav-panel a:focus,
.theme-mobile-nav-panel a.is-active,
.theme-mobile-nav-panel a[aria-current="page"] {
  background: transparent !important;
  color: #fff !important;
  opacity: 1 !important;
}

/* Kill mobile active bar — not in reference .mobile-nav */
.theme-mobile-nav-panel a::before,
.theme-mobile-nav-panel a::after,
.theme-mobile-nav-panel a.is-active::before,
.theme-mobile-nav-panel a.is-active::after,
.theme-mobile-nav-panel a[aria-current="page"]::before,
.theme-mobile-nav-panel a[aria-current="page"]::after {
  content: none !important;
  display: none !important;
  border: 0 !important;
  background: none !important;
  height: 0 !important;
  width: 0 !important;
  transform: none !important;
}

/* Language row removed from mobile panel */
.theme-mobile-lang-row,
.theme-mobile-lang-btn,
.theme-mobile-lang-tag {
  display: none !important;
}

/* Shop Now removed from header and mobile menu */
.theme-site-header .theme-pill--header,
.theme-mobile-shop-now,
.theme-mobile-nav-panel .theme-mobile-shop-now {
  display: none !important;
}

body.theme-header-active .account-lang-currency.upper-bar,
body.theme-header-active .search-header,
body.theme-header-active .top-main-menu-wrapper,
body.theme-header-active .div-bg-absolute.menu-header-theme-bg-primary,
body.theme-header-active .sm-search-div {
  display: none !important;
}

body.theme-header-active .header {
  position: relative;
  z-index: 100;
}

body.theme-header-active #fixed-header {
  position: static !important;
  height: 0 !important;
  overflow: visible !important;
}

@media (max-width: 1150px) {
  .theme-site-header {
    gap: 22px;
  }

  .theme-nav {
    gap: 22px;
  }

  .theme-nav a,
  .theme-nav .theme-nav-store {
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  .theme-header-actions {
    gap: 15px;
  }

  .theme-lang-btn,
  .theme-lang-btn .theme-lang-code {
    font-size: 11px;
  }
}

@media (max-width: 960px) {
  :root {
    --theme-shell-inset: 12px;
    --theme-header-h: 82px;
    /* Keep announce height in sync with bar — avoids white gap under header */
    --theme-announce-h: 36px;
  }

  .theme-site-header {
    top: var(--theme-header-top, 0px) !important;
    padding: 0 17px;
  }

  .theme-header-spacer {
    height: calc(var(--theme-header-h) + var(--theme-header-top, 0px));
  }

  .theme-header-start {
    flex: 1 1 auto;
    gap: 0;
    min-width: 0;
  }

  .theme-brand-rule,
  .theme-nav {
    display: none !important;
  }

  .theme-brand {
    width: 180px;
    height: var(--theme-logo-h-m, 64px);
  }

  .theme-mobile-menu-btn {
    display: flex;
  }

  .theme-mobile-nav-panel {
    display: block;
    top: 100%;
    /* Reference @760: --pad 24px */
    padding: 20px 24px;
  }

  .theme-header-actions {
    gap: 8px;
    align-items: center;
    height: 100%;
  }

  /* Reference @760: language 11px/padding 8px · icon-button padding 7px — one baseline */
  .theme-lang-btn,
  .theme-lang-btn .theme-lang-code {
    font-size: 11px !important;
  }

  .theme-lang-btn {
    height: 44px;
    min-height: 44px;
    padding: 8px;
  }

  .theme-icon-btn {
    width: 38px;
    height: 44px;
    min-height: 44px;
    padding: 7px;
  }

  .theme-mobile-menu-btn {
    display: inline-flex;
    width: 38px;
    height: 44px;
    min-height: 44px;
  }

  .theme-icon-btn svg,
  .theme-cart-icon {
    width: 24px;
    height: 24px;
  }

  .theme-header-sicon {
    font-size: 22px !important;
  }

  /* Ensure header is positioning context for absolute mobile panel */
  .theme-site-header {
    position: fixed;
  }
}

@media (max-width: 700px) {
  .theme-site-header {
    justify-content: space-between;
  }

  .theme-header-actions {
    margin-inline-start: auto;
    gap: 8px;
  }
}

@media (max-width: 1150px) {
  .theme-header-start {
    gap: 16px;
  }

  .theme-brand {
    width: 170px;
  }

  .theme-nav {
    gap: 20px;
  }

  .theme-brand-rule {
    height: 22px;
  }
}

@media (max-width: 620px) {
  .theme-brand {
    width: 150px;
    height: var(--theme-logo-h-m, 60px);
  }

  .theme-header-actions {
    gap: 8px;
  }

  .theme-mobile-menu-btn {
    width: 38px;
    height: 44px;
    min-height: 44px;
  }

  .theme-icon-btn {
    width: 38px;
    min-width: 38px;
    height: 44px;
    min-height: 44px;
    padding: 7px;
  }

  .theme-icon-btn svg,
  .theme-cart-icon {
    width: 24px;
    height: 24px;
  }

  .theme-header-sicon {
    font-size: 22px !important;
  }

  .theme-lang-btn {
    height: 44px;
    min-height: 44px;
    min-width: 0;
    width: auto;
    padding: 8px;
  }

  .theme-lang-btn .theme-lang-code {
    display: inline;
  }

  .theme-mobile-nav-panel {
    top: 100%;
    right: 0;
    left: 0;
    border-radius: 0;
  }
}

html[lang="en"] .theme-site-header,
html[lang="en"] .theme-header-start,
html[lang="en"] .theme-brand,
html[lang="en"] .theme-nav,
html[lang="en"] .theme-header-actions {
  direction: ltr !important;
}

html[lang="ar"] .theme-site-header,
html[lang="ar"] .theme-header-start {
  direction: rtl !important;
}

/* EN header nav — reference html[lang="en"] .desktop-nav */
/* Reference html[lang="en"] .desktop-nav — 10px / 700 / gap 30px */
html[lang="en"] .theme-nav {
  gap: 30px !important;
}

html[lang="en"] .theme-nav a,
html[lang="en"] .theme-nav .theme-nav-store {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased;
}

/* Reference .language-button — 12px / 400; «عربي» never bold/uppercase */
html[lang="en"] .theme-lang-btn,
html[lang="en"] .theme-lang-btn .theme-lang-code {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  font-style: normal !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  unicode-bidi: isolate;
  direction: rtl;
}

/* Header chrome Bukra; nav labels use Al-Hilal (display) */
.theme-site-header,
.theme-mobile-nav-panel {
  font-family: var(--font-body) !important;
}

.theme-site-header .theme-nav a,
.theme-site-header .theme-nav .theme-nav-store,
.theme-mobile-nav-panel a {
  font-family: var(--font-display) !important;
}

/* Mobile nav — same display bold as desktop */
.theme-mobile-nav-panel a,
.theme-mobile-nav-panel a.theme-nav-link {
  font-size: 12px !important;
  font-weight: 700 !important;
}

html[lang="en"] .theme-mobile-nav-panel {
  direction: ltr !important;
}

html[lang="en"] .theme-mobile-nav-panel a {
  direction: ltr !important;
  text-align: left !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

/* ---------------------------------------------------------------------------
   Store-wide content shell — same horizontal edges as the floating header
--------------------------------------------------------------------------- */
body.theme-header-active .container,
body.theme-header-active .container-sm,
body.theme-header-active .container-md,
body.theme-header-active .container-lg,
body.theme-header-active .container-xl {
  max-width: none !important;
  width: calc(100% - (var(--theme-shell-inset) * 2)) !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  box-sizing: border-box !important;
}

/* Keep full-bleed heroes / edge-to-edge sections untouched */
body.theme-header-active .theme-d01-hero .container,
body.theme-header-active [class*="theme-"][class*="hero"] .container {
  width: 100% !important;
  max-width: none !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 620px) {
  body.theme-header-active .container,
  body.theme-header-active .container-sm,
  body.theme-header-active .container-md,
  body.theme-header-active .container-lg,
  body.theme-header-active .container-xl {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

/* ——— Sticky trust + payment rail (bottom of viewport) ——— */
:root {
  --theme-trust-bottom: 18px;
  --theme-trust-h: 98px;
}

.theme-sticky-trust {
  position: fixed;
  z-index: 95;
  left: 0;
  right: 0;
  bottom: var(--theme-trust-bottom);
  display: flex;
  justify-content: center;
  pointer-events: none;
  padding: 0 max(var(--theme-shell-inset), env(safe-area-inset-left, 0px)) 0 max(var(--theme-shell-inset), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.theme-sticky-trust .theme-sticky-trust-rail {
  position: relative;
  right: auto;
  bottom: auto;
  translate: none;
  width: min(1400px, 100%);
  min-height: var(--theme-trust-h);
  margin: 0;
  padding: 16px 24px;
  display: grid;
  grid-template-columns: repeat(var(--theme-trust-cols, 3), minmax(0, 1fr)) 1.45fr;
  align-items: center;
  pointer-events: auto;
  opacity: 0;
  transform: translateY(16px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 28px;
  background: rgba(7, 17, 29, 0.78);
  backdrop-filter: blur(24px) saturate(120%) brightness(1.04);
  -webkit-backdrop-filter: blur(24px) saturate(120%) brightness(1.04);
  box-shadow:
    rgba(0, 10, 24, 0.28) 0 24px 70px,
    rgba(255, 255, 255, 0.14) 0 1px 0 inset;
}

.theme-sticky-trust .theme-sticky-trust-rail.is-no-payments {
  grid-template-columns: repeat(var(--theme-trust-cols, 3), minmax(0, 1fr));
}

.theme-sticky-trust a.d01-trust-item,
.theme-sticky-trust a.d01-payment-strip {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.theme-sticky-trust a.d01-payment-strip,
.theme-sticky-trust a.d01-payment-strip:hover,
.theme-sticky-trust a.d01-payment-strip:focus {
  color: #fff;
}

.theme-sticky-trust a.d01-trust-item:hover,
.theme-sticky-trust a.d01-payment-strip:hover {
  opacity: 0.85;
}

.theme-sticky-trust a.d01-trust-item:focus-visible,
.theme-sticky-trust a.d01-payment-strip:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 4px;
  border-radius: 12px;
}

.theme-sticky-trust .d01-pay-method {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  direction: rtl;
}

html[lang="en"] .theme-sticky-trust .d01-pay-method,
html[dir="ltr"] .theme-sticky-trust .d01-pay-method {
  direction: ltr;
}

.theme-sticky-trust .d01-pay-method__icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-sticky-trust .d01-pay-img {
  display: block;
  height: 22px;
  width: auto;
}

.theme-sticky-trust.is-ready .theme-sticky-trust-rail {
  animation: themeStickyTrustIn 0.72s cubic-bezier(0.2, 0.78, 0.2, 1) forwards;
}

@keyframes themeStickyTrustIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.theme-has-sticky-trust {
  padding-bottom: calc(var(--theme-trust-bottom) + var(--theme-trust-h) + 20px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 1050px) {
  :root {
    --theme-trust-h: 148px;
  }

  .theme-sticky-trust .theme-sticky-trust-rail,
  .theme-sticky-trust .theme-sticky-trust-rail.is-no-payments {
    grid-template-columns: repeat(var(--theme-trust-cols, 3), 1fr);
    row-gap: 12px;
  }

  .theme-sticky-trust .d01-payment-strip {
    grid-column: 1 / -1;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    padding: 12px 0 0;
    border-right: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --theme-trust-bottom: 12px;
    --theme-trust-h: 132px;
  }

  .theme-sticky-trust {
    padding-left: 12px;
    padding-right: 12px;
  }

  .theme-sticky-trust .theme-sticky-trust-rail {
    min-height: 0;
    padding: 15px 10px;
    border-radius: 23px;
    grid-template-columns: repeat(var(--theme-trust-cols, 3), 1fr);
    row-gap: 12px;
  }

  .theme-sticky-trust .d01-trust-item {
    display: block;
    text-align: center;
    padding: 0 6px;
  }

  .theme-sticky-trust .d01-trust-item + .d01-trust-item {
    border-inline-start: 1px solid rgba(255, 255, 255, 0.14);
    border-right: 0;
    border-left: 0;
  }

  .theme-sticky-trust .d01-trust-icon {
    width: 30px;
    height: 30px;
    margin: 0 auto 4px;
  }

  .theme-sticky-trust .d01-trust-icon svg {
    width: 26px;
    height: 26px;
  }

  .theme-sticky-trust .d01-trust-item strong {
    font-size: 11.2px;
  }

  .theme-sticky-trust .d01-trust-item span {
    white-space: normal;
    font-size: 9.44px;
    line-height: 1.4;
  }

  .theme-sticky-trust .d01-payment-strip {
    grid-column: 1 / -1;
    min-height: 42px;
    padding: 11px 0 0;
    border-inline-start: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    gap: 11px;
  }

  .theme-sticky-trust .d01-pay-logo.visa { font-size: 12.16px; }
  .theme-sticky-trust .d01-pay-logo.mc { font-size: 9.92px; }
  .theme-sticky-trust .d01-pay-logo.mada { font-size: 12.16px; }
  .theme-sticky-trust .d01-pay-logo.apple { font-size: 12.8px; gap: 2px; }
  .theme-sticky-trust .d01-pay-apple-icon { width: 11px; height: 13px; }
  .theme-sticky-trust .d01-pay-logo.tabby { font-size: 12.16px; }
  .theme-sticky-trust .d01-pay-logo.tamara { font-size: 12.16px; }
  .theme-sticky-trust .d01-pay-method { font-size: 11.5px; gap: 5px; }
  .theme-sticky-trust .d01-pay-method__icon { width: 16px; height: 16px; }
  .theme-sticky-trust .d01-pay-img { height: 16px; }
}

@media (max-width: 430px) {
  .theme-sticky-trust .d01-payment-strip {
    gap: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .theme-sticky-trust .theme-sticky-trust-rail,
  .theme-sticky-trust.is-ready .theme-sticky-trust-rail {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
