/**
 * Shared B2C header — whitish bar + hamburger menu.
 * Utility/black top bar is removed; Support / Rides / English / AED / Become supplier live in the ☰ drawer.
 */
:root {
  --header: #f7f9fc;
  --header-mid: #ffffff;
  --header-hover: #eef3f8;
  --header-accent: #ff8a00;
  --header-accent-soft: rgba(255, 138, 0, 0.14);
  --header-text: #16324f;
  --header-muted: #5c738a;
  --header-border: #e4ebf2;
  --header-ink: #0a2540;
}

/* Remove the old black/dark utility strip */
.utility {
  display: none !important;
}

.site-header {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%) !important;
  color: var(--header-ink) !important;
  box-shadow: 0 1px 0 var(--header-border), 0 8px 24px rgba(10, 37, 64, 0.06) !important;
  border-bottom: 1px solid var(--header-border) !important;
}

.site-header__inner {
  max-width: 1240px;
  gap: 0.75rem 1rem;
  min-height: 4.1rem;
}

.brand-logo.logo,
a.brand-logo.logo,
.site-header .brand-logo,
.site-header a.logo.brand-logo {
  flex-shrink: 0;
  text-decoration: none !important;
  color: var(--header-ink) !important;
}

.brand-logo.logo:hover,
a.brand-logo.logo:hover {
  opacity: 0.92;
  text-decoration: none !important;
}

/* Keep logo readable on white */
.site-header .brand-logo__img {
  filter: none;
}

.nav-main {
  display: none;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  flex-wrap: wrap;
  gap: 0.15rem;
  min-width: 0;
}

@media (min-width: 980px) {
  .nav-main {
    display: flex !important;
  }
}

.nav-main a {
  color: var(--header-text) !important;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  padding: 0.48rem 0.72rem !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.nav-main a:hover {
  background: var(--header-hover) !important;
  color: var(--header-ink) !important;
  text-decoration: none !important;
  border-color: var(--header-border);
}

.nav-main a[aria-current="page"] {
  background: var(--header-accent-soft) !important;
  color: var(--header-ink) !important;
  border-color: rgba(255, 138, 0, 0.35);
  box-shadow: inset 0 -2px 0 var(--header-accent);
}

.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-signin {
  color: var(--header-ink) !important;
  border-color: rgba(10, 37, 64, 0.22) !important;
}

.btn-signin:hover {
  background: var(--header-hover) !important;
  border-color: rgba(10, 37, 64, 0.4) !important;
  text-decoration: none !important;
}

.btn-header-cart,
.btn-header-saves {
  color: var(--header-ink) !important;
}

/* Always show the 3-line menu button */
.menu-toggle {
  display: inline-flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--header-border) !important;
  background: #fff !important;
  color: var(--header-ink) !important;
  cursor: pointer;
}

.menu-toggle:hover {
  background: var(--header-hover) !important;
  border-color: rgba(10, 37, 64, 0.22) !important;
}

.menu-toggle span,
.menu-toggle span[aria-hidden="true"] {
  display: block !important;
  width: 18px;
  height: 2px;
  background: currentColor !important;
  border-radius: 2px;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: inline-flex !important;
  }
}

/* Light slide-out menu */
.mobile-drawer__panel {
  background: #ffffff !important;
  color: var(--header-ink) !important;
  box-shadow: -12px 0 40px rgba(10, 37, 64, 0.18) !important;
}

.mobile-drawer__panel > a,
.mobile-drawer__panel .drawer-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 0.35rem;
  color: var(--header-ink) !important;
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none !important;
  border-bottom: 1px solid var(--header-border) !important;
  border-radius: 0;
  background: transparent !important;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.mobile-drawer__panel > a:hover,
.mobile-drawer__panel .drawer-link:hover {
  color: #00754f !important;
  background: #f4f8f6 !important;
}

.mobile-drawer__panel > a[aria-current="page"] {
  color: #00754f !important;
  box-shadow: inset 3px 0 0 var(--header-accent);
  padding-left: 0.55rem;
  background: rgba(255, 138, 0, 0.06) !important;
}

.mobile-drawer__panel .drawer-sep {
  margin: 1rem 0 0.35rem;
  padding: 0.35rem 0.35rem 0;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--header-muted) !important;
  border-bottom: none !important;
  font-weight: 700;
}

/* Info pages */
.info-header {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%) !important;
  border-bottom: 1px solid var(--header-border) !important;
  color: var(--header-ink);
}

.info-header__nav a {
  color: var(--header-text) !important;
  font-weight: 600;
  font-size: 0.84rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  text-decoration: none !important;
  border: 1px solid transparent;
}

.info-header__nav a:hover {
  background: var(--header-hover);
  color: var(--header-ink) !important;
}

.info-header__nav a[aria-current="page"] {
  background: var(--header-accent-soft);
  border-color: rgba(255, 138, 0, 0.35);
  box-shadow: inset 0 -2px 0 var(--header-accent);
  color: var(--header-ink) !important;
}

.info-header__menu {
  display: inline-flex !important;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--header-border);
  background: #fff;
  color: var(--header-ink);
}

.info-mobile-nav {
  background: #fff !important;
  border-bottom: 1px solid var(--header-border);
}

.info-mobile-nav a {
  color: var(--header-ink) !important;
  border-bottom: 1px solid var(--header-border);
}

.info-mobile-nav a[aria-current="page"] {
  color: #00754f !important;
}

@media (max-width: 979px) {
  .nav-main {
    display: none !important;
  }
}
