/* Clean white storefront header. This file loads after the shared storefront
   stylesheet, so these rules stay scoped to the branded header. */
html body header.begad-brand-header {
  background: #fff !important;
  color: #171311;
}

html body header.begad-brand-header :is(.header-top, .header-middle, .header-bottom, .sticky-header) {
  background: #fff !important;
  box-shadow: none !important;
  border-color: #e7ebef !important;
}

html body header.begad-brand-header img[data-begad-header-logo] {
  filter: none !important;
}

html body header.begad-brand-header .main-menu > ul > li > a,
html body header.begad-brand-header .main-menu > li > a,
html body header.begad-brand-header .main-menu > ul > li > a i,
html body header.begad-brand-header .header-middle .shrink-0 > ul > li > p,
html body header.begad-brand-header .header-middle .shrink-0 > ul > li > p > span,
html body header.begad-brand-header .cart-sidebar-btn > span,
html body header.begad-brand-header [data-storefront-cart-count],
html body header.begad-brand-header .storefront-mobile-delivery-strip :is(span, i, button) {
  color: #171311 !important;
}

html body header.begad-brand-header .main-menu > ul > li > a:hover,
html body header.begad-brand-header .main-menu > ul > li > a.active {
  color: #d94b13 !important;
}

html body header.begad-brand-header .search-input-container .input-group,
html body header.begad-brand-header .sticky-header .search-input-container .input-group {
  background: #fff !important;
  border: 1px solid #dbe3ea !important;
  border-radius: 12px !important;
  box-shadow: none !important;
}

html body header.begad-brand-header .search-input-container label {
  background: #fff !important;
  color: #746c64 !important;
}

html body header.begad-brand-header .search-input-container input {
  background: transparent !important;
  color: #20242a !important;
}

html body header.begad-brand-header .storefront-language-segmented {
  background: #f7f5f2 !important;
  border-color: #e3ddd6 !important;
  box-shadow: none !important;
}

html body header.begad-brand-header .storefront-language-segmented__option:not(.is-active) {
  color: #51463f !important;
}

html body header.begad-brand-header .storefront-language-segmented__option.is-active {
  background: #ed5a16 !important;
  color: #fff !important;
}

html body header.begad-brand-header .storefront-header-account-icon,
html body header.begad-brand-header .storefront-header-cart-icon,
html body header.begad-brand-header .storefront-mobile-join,
html body header.begad-brand-header #sidebar-menu-btn {
  background: #fff7f0 !important;
  border: 1px solid #f2a274 !important;
  color: #d94b13 !important;
  box-shadow: none !important;
}

html body header.begad-brand-header :is(
  .storefront-header-account-icon,
  .storefront-header-cart-icon,
  .storefront-mobile-join,
  #sidebar-menu-btn
) :is(span, i) {
  color: #d94b13 !important;
}

html body header.begad-brand-header #sidebar-menu-btn svg path {
  stroke: currentColor !important;
}

html body header.begad-brand-header .storefront-mobile-delivery-strip {
  background: #fff !important;
}

/* Keep category discovery at the far-left edge of the desktop navigation and
   make it compact, leaving more room for admin-managed header links. */
@media (min-width: 1200px) {
  html body header.begad-brand-header .header-bottom > .container {
    width: 100% !important;
    max-width: none !important;
    padding-inline: 16px !important;
  }

  html body header.begad-brand-header #dropdownButton {
    min-height: 36px !important;
    padding: 7px 12px !important;
    gap: 6px !important;
    border: 1px solid #ed5a16 !important;
    border-radius: 8px !important;
    background: #ed5a16 !important;
    color: #fff !important;
    box-shadow: none !important;
    font-size: 13px !important;
    line-height: 20px !important;
    white-space: nowrap;
  }

  html body header.begad-brand-header #dropdownButton :is(span, i) {
    color: #fff !important;
  }

  html body header.begad-brand-header #dropdownButton i {
    font-size: 15px !important;
  }
}

/* Requested 2026-09-11: "make this bar background begad color gradient
   instead of white but this bar only not the header that have the logo".
   "This bar" is .header-bottom -- the row with "Explore All Categories"
   and the category nav links, directly below .header-middle (logo/
   search/account/cart), which stays on the white rule near the top of
   this file, untouched. Deliberately placed at the very end of this file
   (after every other rule above, including the original white-text/
   orange-button rules further up) rather than right next to the rule it
   overrides -- every selector here already exists once above with the
   same specificity (!important, same ancestor chain), so with a tied
   specificity the *later* rule in source order wins; putting this
   anywhere earlier than the end got silently undone by those later
   rules, caught by re-reading the file after a first attempt landed
   these rules mid-file.
   .header-bottom and .sticky-header are two classes on that one element
   (see header.php), but .sticky-header *alone* is also a completely
   different element (the mobile hamburger-menu bar, block xl:hidden)
   that must stay white -- scoping to .header-bottom specifically (never
   bare .sticky-header) keeps that mobile bar untouched.
   Reuses --market-premium-gradient (defined in begad-marketplace.css,
   the same orange-to-red gradient already used on the marketplace hero)
   rather than inventing a second "Begad gradient", with the literal
   value repeated as a fallback since this stylesheet loads on every
   customer route, including ones where begad-marketplace.css (and so
   that variable) was never loaded at all. */
html body header.begad-brand-header .header-bottom {
  background: var(--market-premium-gradient, linear-gradient(135deg, #ffa90c 0%, #f45a05 58%, #c93405 100%)) !important;
  border-color: transparent !important;
}

/* Nav text/icons were styled for a white bar (#171311 near-black, #d94b13
   hover) -- unreadable against the new gradient, so both flip to white.
   .main-menu only ever renders inside .header-bottom, so this can't leak
   into .header-top/.header-middle. */
html body header.begad-brand-header .main-menu > ul > li > a,
html body header.begad-brand-header .main-menu > li > a,
html body header.begad-brand-header .main-menu > ul > li > a i {
  color: #fff !important;
}

html body header.begad-brand-header .main-menu > ul > li > a:hover,
html body header.begad-brand-header .main-menu > ul > li > a.active {
  color: #fff !important;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* The solid-orange "Explore All Categories" pill would nearly vanish
   against a same-hue gradient bar -- flipped to a white pill with
   brand-colored text/icon so it still stands out, same idea noon/amazon-
   style marketplaces use for a category trigger sitting on a colored bar.
   Scoped to the same min-width:1200px breakpoint as the original rule
   it overrides (that rule only applies there; #dropdownButton is hidden
   entirely below it, part of the mobile menu instead). */
@media (min-width: 1200px) {
  html body header.begad-brand-header #dropdownButton {
    background: #fff !important;
    border-color: #fff !important;
    color: #c9420c !important;
  }

  html body header.begad-brand-header #dropdownButton :is(span, i) {
    color: #c9420c !important;
  }
}
