/**
 * 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;
  position: sticky !important;
  top: 0 !important;
  z-index: 100 !important;
  padding: 0 0.85rem !important;
}

.site-header__inner {
  max-width: 1240px;
  margin: 0 auto !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem 1rem;
  flex-wrap: nowrap !important;
  min-height: 4.1rem;
}

.brand-logo.logo,
a.brand-logo.logo,
.site-header .brand-logo,
.site-header a.logo.brand-logo,
.site-header .logo {
  flex-shrink: 0 !important;
  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;
}

/* Match mobile-b2c logo sizing in blocking CSS so late mobile-b2c.css can't shrink the header (CLS). */
@media (max-width: 767px) {
  .site-header .brand-logo,
  .site-header a.logo.brand-logo {
    min-width: 0;
    max-width: min(52%, 12rem);
    flex-shrink: 1;
  }
  .site-header .brand-logo__img {
    height: 1.75rem;
    width: auto;
  }
  .site-header .brand-logo__holidays {
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    height: 0.9rem;
  }
}

.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 !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.35rem !important;
  margin-left: auto !important;
}

.btn-signin {
  color: var(--header-ink) !important;
  border-color: rgba(10, 37, 64, 0.22) !important;
  background: transparent !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;
  text-shadow: none !important;
  background: transparent !important;
}
.btn-header-cart:hover,
.btn-header-saves:hover {
  background: var(--header-hover) !important;
  color: var(--header-ink) !important;
}

.btn-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 13000;
  pointer-events: none;
}
.mobile-drawer.is-open {
  display: block;
  pointer-events: auto;
}
.mobile-drawer[hidden] {
  display: none !important;
}
.mobile-drawer.is-open:not([hidden]) {
  display: block !important;
}
.mobile-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 37, 64, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.mobile-drawer.is-open .mobile-drawer__backdrop {
  opacity: 1;
}
.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 92vw);
  height: 100%;
  padding: 1.15rem 1.1rem 1.5rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
}

@media (max-width: 767px) {
  .header-actions .btn-signin {
    display: none !important;
  }
}

/* Hamburger on mobile/tablet only; desktop uses .nav-main */
.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: 980px) {
  .menu-toggle {
    display: none !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:visited {
  color: var(--header-text) !important;
}

.info-header__nav a[aria-current="page"],
.info-header__nav a[aria-current="page"]:visited {
  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: none !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);
  cursor: pointer;
}

.info-header__menu svg {
  display: block;
}

.info-mobile-nav {
  background: #fff !important;
  border-bottom: 1px solid var(--header-border);
}

.info-mobile-nav a {
  display: block;
  padding: 0.85rem 1rem;
  color: var(--header-ink) !important;
  border-bottom: 1px solid var(--header-border);
  text-decoration: none !important;
  font-weight: 600;
}

.info-mobile-nav a[aria-current="page"] {
  color: var(--header-ink) !important;
  box-shadow: inset 3px 0 0 var(--header-accent);
  background: var(--header-accent-soft);
}

@media (max-width: 979px) {
  .nav-main,
  .info-header__nav {
    display: none !important;
  }
  .info-header__menu {
    display: inline-flex !important;
  }
}
