/* =========================================================
   THE MAHOHA — HEADER V1
   Clean standalone override for EasyOrders
   Desktop + Mobile
   No drawer/cart z-index overrides.
========================================================= */

:root{
  --mh-h-burgundy:#74162C;
  --mh-h-plum:#2B1028;
  --mh-h-wasabi:#D8F24A;
  --mh-h-blue:#D7EFFF;
  --mh-h-blush:#F7E9EC;
  --mh-h-white:#FFFFFF;
  --mh-h-ease:cubic-bezier(.16,1,.3,1);
}

/* ---------------------------------------------------------
   1) HEADER SHELL
   Keep EasyOrders' native z-index (z-30) so its own drawers,
   menus and overlays remain above the header.
--------------------------------------------------------- */

.app_container > .sticky.top-0.w-full.z-30{
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  isolation:auto !important;
}

.default_header{
  background:transparent !important;
  background-color:transparent !important;
  color:var(--mh-h-white) !important;
  border:0 !important;
  box-shadow:none !important;
}

.default_header_container{
  background:transparent !important;
  background-color:transparent !important;
  border:0 !important;
  box-shadow:none !important;
}

.default_header .bg-white,
.default_header_container.bg-white{
  background:transparent !important;
  background-color:transparent !important;
}

/* ---------------------------------------------------------
   2) LOGO
--------------------------------------------------------- */

.default_header_logo > a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none !important;
}

.default_header_logo > a > div{
  overflow:visible !important;
}

.default_header_logo img{
  width:auto !important;
  object-fit:contain !important;
  filter:drop-shadow(0 5px 12px rgba(43,16,40,.18));
  transition:
    transform .34s var(--mh-h-ease),
    filter .34s var(--mh-h-ease) !important;
}

.default_header_logo a:hover img{
  transform:translateY(-2px) scale(1.025);
  filter:drop-shadow(0 8px 18px rgba(43,16,40,.25));
}

/* ---------------------------------------------------------
   3) ACTION ICONS — SEARCH / CART / MENU
--------------------------------------------------------- */

.default_header a[href="/search"],
.default_header_container > div:first-child > div:last-child > button,
.default_header button.bg-white.lg\:hidden{
  position:relative;
  display:grid !important;
  place-items:center !important;
  flex:0 0 auto;

  background:transparent !important;
  color:var(--mh-h-wasabi) !important;

  border:1px solid rgba(216,242,74,.34) !important;
  border-radius:12px !important;
  box-shadow:none !important;

  padding:0 !important;
  text-decoration:none !important;

  transition:
    transform .24s var(--mh-h-ease),
    color .24s ease,
    background-color .24s ease,
    border-color .24s ease !important;

  -webkit-tap-highlight-color:transparent;
}

.default_header a[href="/search"] svg,
.default_header_container > div:first-child > div:last-child > button svg,
.default_header button.bg-white.lg\:hidden svg{
  color:inherit !important;
  transition:transform .24s var(--mh-h-ease);
}

/* Search SVG ships with hard-coded fills. */
.default_header a[href="/search"] svg path{
  fill:currentColor !important;
}

/* Cart mixes stroke + fill. */
.default_header_container > div:first-child > div:last-child > button svg path{
  stroke:currentColor !important;
}

.default_header_container > div:first-child > div:last-child > button svg path[fill="currentColor"]{
  fill:currentColor !important;
}

/* Burger uses currentColor fill. */
.default_header button.bg-white.lg\:hidden svg path{
  fill:currentColor !important;
}

.default_header a[href="/search"]:hover,
.default_header_container > div:first-child > div:last-child > button:hover,
.default_header button.bg-white.lg\:hidden:hover{
  color:var(--mh-h-plum) !important;
  background:var(--mh-h-wasabi) !important;
  border-color:var(--mh-h-wasabi) !important;
  transform:translateY(-2px);
}

.default_header a[href="/search"]:hover svg,
.default_header_container > div:first-child > div:last-child > button:hover svg,
.default_header button.bg-white.lg\:hidden:hover svg{
  transform:scale(1.06);
}

.default_header a[href="/search"]:focus-visible,
.default_header_container > div:first-child > div:last-child > button:focus-visible,
.default_header button.bg-white.lg\:hidden:focus-visible{
  outline:2px solid var(--mh-h-wasabi) !important;
  outline-offset:3px !important;
}

/* ---------------------------------------------------------
   4) DESKTOP — FLOATING CATEGORY DECK
--------------------------------------------------------- */

@media (min-width:1024px){

  .default_header{
    padding-top:10px !important;
    padding-bottom:11px !important;
  }

  .default_header_container{
    max-width:1440px !important;
    padding-left:32px !important;
    padding-right:32px !important;
  }

  .default_header_container > div:first-child{
    height:58px !important;
    min-height:58px !important;
  }

  .default_header_logo img,
  .default_header_logo > a > div{
    height:50px !important;
  }

  .default_header a[href="/search"],
  .default_header_container > div:first-child > div:last-child > button{
    width:42px !important;
    height:42px !important;
  }

  .default_header a[href="/search"] svg,
  .default_header_container > div:first-child > div:last-child > button svg{
    width:19px !important;
    height:19px !important;
  }

  .default_header_container .hidden.lg\:block{
    margin-top:5px !important;
  }

  .default_header_container .hidden.lg\:block > div{
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:6px !important;

    width:max-content;
    max-width:100%;
    margin-inline:auto;

    padding:5px !important;

    background:transparent !important;
    border:1px solid rgba(255,255,255,.13) !important;
    border-radius:15px !important;
    box-shadow:none !important;

    backdrop-filter:none !important;
    -webkit-backdrop-filter:none !important;
  }

  .default_header_container .hidden.lg\:block a,
  .default_header_container .hidden.lg\:block button{
    position:relative !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;

    min-height:34px !important;
    padding:0 14px !important;

    background:transparent !important;
    border:1px solid transparent !important;
    border-radius:9px !important;

    color:rgba(255,255,255,.82) !important;

    font-family:Tajawal,Cairo,sans-serif !important;
    font-size:12px !important;
    font-weight:600 !important;
    line-height:1 !important;

    text-decoration:none !important;
    white-space:nowrap;

    transition:
      color .22s ease,
      background-color .22s ease,
      border-color .22s ease,
      transform .22s var(--mh-h-ease) !important;
  }

  /* Remove EasyOrders underline behavior completely. */
  .default_header_container .hidden.lg\:block a:hover,
  .default_header_container .hidden.lg\:block button:hover{
    text-decoration:none !important;

    color:var(--mh-h-plum) !important;
    background:var(--mh-h-wasabi) !important;
    border-color:var(--mh-h-wasabi) !important;

    transform:translateY(-1px);
  }

  .default_header_container .hidden.lg\:block a::before,
  .default_header_container .hidden.lg\:block a::after,
  .default_header_container .hidden.lg\:block button::before,
  .default_header_container .hidden.lg\:block button::after{
    display:none !important;
    content:none !important;
  }

  .default_header_container .hidden.lg\:block a:focus-visible,
  .default_header_container .hidden.lg\:block button:focus-visible{
    outline:2px solid var(--mh-h-wasabi) !important;
    outline-offset:2px !important;
  }
}

/* ---------------------------------------------------------
   5) MOBILE
   Compact, transparent and above hero only.
   No stacking overrides on EasyOrders drawers.
--------------------------------------------------------- */

@media (max-width:1023px){

  .default_header{
    padding-top:8px !important;
    padding-bottom:8px !important;
  }

  .default_header_container{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .default_header_container > div:first-child{
    height:52px !important;
    min-height:52px !important;
  }

  .default_header_logo > a > div,
  .default_header_logo img{
    height:42px !important;
  }

  .default_header button.bg-white.lg\:hidden,
  .default_header a[href="/search"],
  .default_header_container > div:first-child > div:last-child > button{
    width:39px !important;
    height:39px !important;
    border-radius:11px !important;
  }

  .default_header button.bg-white.lg\:hidden svg{
    width:22px !important;
    height:22px !important;
  }

  .default_header a[href="/search"] svg,
  .default_header_container > div:first-child > div:last-child > button svg{
    width:18px !important;
    height:18px !important;
  }

  .default_header_container > div:first-child > div:last-child{
    gap:6px !important;
  }

  .default_header button:active,
  .default_header a:active{
    transform:scale(.95);
  }
}

/* ---------------------------------------------------------
   6) DRAWER / CART SAFETY
   Intentionally DO NOT change:
   - body fixed layers
   - HeadlessUI portals
   - dialogs
   - backdrops
   EasyOrders keeps its own native stacking/focus behavior.
--------------------------------------------------------- */

/* Accessibility */
@media (prefers-reduced-motion:reduce){
  .default_header *,
  .default_header *::before,
  .default_header *::after{
    transition:none !important;
    animation:none !important;
  }
}


/* Desktop: burger/menu has no purpose — hide it completely */
@media (min-width:1024px){
  .default_header button.bg-white.lg\:hidden{
    display:none !important;
  }
}


/* Search hover contrast fix */
.default_header a[href="/search"]:hover{
  color:var(--mh-h-plum) !important;
  background:var(--mh-h-wasabi) !important;
  border-color:var(--mh-h-wasabi) !important;
}

.default_header a[href="/search"]:hover svg,
.default_header a[href="/search"]:hover svg *{
  color:var(--mh-h-plum) !important;
}

.default_header a[href="/search"]:hover svg path{
  fill:var(--mh-h-plum) !important;
  stroke:var(--mh-h-plum) !important;
}

/* =========================================================
   V3 — SEARCH ICON HOVER CONTRAST
   EasyOrders search SVG contains hard-coded fills/masks.
   Force the visible SVG artwork to Plum on Wasabi hover.
========================================================= */

.default_header a[href="/search"]:hover{
  background:#D8F24A !important;
  border-color:#D8F24A !important;
  color:#2B1028 !important;
  opacity:1 !important;
}

.default_header a[href="/search"]:hover svg{
  color:#2B1028 !important;
  fill:#2B1028 !important;
  opacity:1 !important;
}

.default_header a[href="/search"]:hover svg g,
.default_header a[href="/search"]:hover svg path{
  color:#2B1028 !important;
  fill:#2B1028 !important;
  stroke:#2B1028 !important;
}

/* Keep mask geometry fully opaque; color itself is irrelevant to the mask. */
.default_header a[href="/search"]:hover svg mask path{
  fill:#FFFFFF !important;
  stroke:none !important;
}

/* Remove EasyOrders hover opacity utility from the search action. */
.default_header a[href="/search"]:hover,
.default_header a[href="/search"]:focus-visible{
  opacity:1 !important;
}


/* =========================================================
   THE MAHOHA — DYNAMIC LIGHT BACKGROUND THEME
   Applied by the companion JS whenever the transparent header
   passes over a white/light section, including SPA route changes.
   Falls back to product / collection / search / pages routes.
========================================================= */

body.mh-light-header .default_header{
  color:#2B1028 !important;
}

/* Desktop nav text */
body.mh-light-header .default_header_container .hidden.lg\:block a,
body.mh-light-header .default_header_container .hidden.lg\:block button{
  color:#2B1028 !important;
}

/* Desktop nav deck outline */
body.mh-light-header .default_header_container .hidden.lg\:block > div{
  border-color:rgba(43,16,40,.14) !important;
}

/* Search / Cart / Burger */
body.mh-light-header .default_header a[href="/search"],
body.mh-light-header .default_header_container > div:first-child > div:last-child > button,
body.mh-light-header .default_header button.bg-white.lg\:hidden{
  color:#74162C !important;
  border-color:rgba(116,22,44,.22) !important;
}

/* Search SVG */
body.mh-light-header .default_header a[href="/search"] svg{
  color:#74162C !important;
}

body.mh-light-header .default_header a[href="/search"] svg path{
  fill:#74162C !important;
}

/* Keep mask paths valid */
body.mh-light-header .default_header a[href="/search"] svg mask path{
  fill:#FFFFFF !important;
  stroke:none !important;
}

/* Cart */
body.mh-light-header
.default_header_container > div:first-child > div:last-child > button svg{
  color:#74162C !important;
}

body.mh-light-header
.default_header_container > div:first-child > div:last-child > button svg path{
  stroke:#74162C !important;
}

body.mh-light-header
.default_header_container > div:first-child > div:last-child > button svg path[fill="currentColor"]{
  fill:#74162C !important;
}

/* Burger */
body.mh-light-header .default_header button.bg-white.lg\:hidden svg{
  color:#74162C !important;
}

body.mh-light-header .default_header button.bg-white.lg\:hidden svg path{
  fill:#74162C !important;
}

/* Hover remains Wasabi with Plum contrast */
body.mh-light-header .default_header a[href="/search"]:hover,
body.mh-light-header .default_header_container > div:first-child > div:last-child > button:hover,
body.mh-light-header .default_header button.bg-white.lg\:hidden:hover,
body.mh-light-header .default_header_container .hidden.lg\:block a:hover,
body.mh-light-header .default_header_container .hidden.lg\:block button:hover{
  background:#D8F24A !important;
  color:#2B1028 !important;
  border-color:#D8F24A !important;
  opacity:1 !important;
}

/* Search icon hover */
body.mh-light-header .default_header a[href="/search"]:hover svg,
body.mh-light-header .default_header a[href="/search"]:hover svg *{
  color:#2B1028 !important;
}

body.mh-light-header .default_header a[href="/search"]:hover svg path{
  fill:#2B1028 !important;
  stroke:#2B1028 !important;
}

body.mh-light-header .default_header a[href="/search"]:hover svg mask path{
  fill:#FFFFFF !important;
  stroke:none !important;
}

/* Cart hover */
body.mh-light-header
.default_header_container > div:first-child > div:last-child > button:hover svg,
body.mh-light-header
.default_header_container > div:first-child > div:last-child > button:hover svg *{
  color:#2B1028 !important;
  stroke:#2B1028 !important;
}

body.mh-light-header
.default_header_container > div:first-child > div:last-child > button:hover svg path[fill="currentColor"]{
  fill:#2B1028 !important;
}

/* Burger hover */
body.mh-light-header .default_header button.bg-white.lg\:hidden:hover svg,
body.mh-light-header .default_header button.bg-white.lg\:hidden:hover svg *{
  color:#2B1028 !important;
  fill:#2B1028 !important;
}

/* Keep header shell truly transparent on light pages too */
body.mh-light-header .app_container > .sticky.top-0.w-full.z-30,
body.mh-light-header .default_header,
body.mh-light-header .default_header_container{
  background:transparent !important;
  background-color:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  box-shadow:none !important;
}


/* =========================================================
   V5 — DYNAMIC BACKGROUND THEME TRANSITION
   Keeps color swaps smooth when the sticky header crosses
   between dark and white/light sections.
========================================================= */

.default_header,
.default_header_container,
.default_header_container .hidden.lg\:block > div,
.default_header_container .hidden.lg\:block a,
.default_header_container .hidden.lg\:block button,
.default_header a[href="/search"],
.default_header_container > div:first-child > div:last-child > button,
.default_header button.bg-white.lg\:hidden{
  transition:
    color .22s ease,
    border-color .22s ease,
    background-color .22s ease,
    box-shadow .22s ease,
    transform .22s var(--mh-h-ease) !important;
}


/* =========================================================
   V6 — SCROLLED GLASS HEADER
   Top of page / over hero: 100% transparent.
   After scroll: nav deck + Search + Cart + Mobile burger become glass.
========================================================= */

/* Keep the shell itself transparent. Only the interactive UI becomes glass. */
body.mh-header-scrolled .app_container > .sticky.top-0.w-full.z-30,
body.mh-header-scrolled .default_header,
body.mh-header-scrolled .default_header_container{
  background:transparent !important;
  background-color:transparent !important;
  box-shadow:none !important;
}

/* Desktop navigation glass deck */
@media (min-width:1024px){
  body.mh-header-scrolled
  .default_header_container .hidden.lg\:block > div{
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,.14),
        rgba(255,255,255,.055) 48%,
        rgba(43,16,40,.075)
      ) !important;

    border-color:rgba(255,255,255,.22) !important;

    box-shadow:
      0 14px 34px rgba(24,3,17,.14),
      inset 0 1px rgba(255,255,255,.16) !important;

    backdrop-filter:blur(18px) saturate(1.18) !important;
    -webkit-backdrop-filter:blur(18px) saturate(1.18) !important;
  }

  body.mh-header-scrolled.mh-light-header
  .default_header_container .hidden.lg\:block > div{
    background:
      linear-gradient(
        135deg,
        rgba(255,255,255,.72),
        rgba(255,255,255,.48) 48%,
        rgba(247,233,236,.30)
      ) !important;

    border-color:rgba(116,22,44,.12) !important;

    box-shadow:
      0 14px 34px rgba(43,16,40,.10),
      inset 0 1px rgba(255,255,255,.70) !important;
  }
}

/* Search / Cart / mobile burger glass */
body.mh-header-scrolled .default_header a[href="/search"],
body.mh-header-scrolled
.default_header_container > div:first-child > div:last-child > button,
body.mh-header-scrolled .default_header button.bg-white.lg\:hidden{
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.15),
      rgba(255,255,255,.055)
    ) !important;

  border-color:rgba(255,255,255,.22) !important;

  box-shadow:
    0 10px 26px rgba(24,3,17,.14),
    inset 0 1px rgba(255,255,255,.14) !important;

  backdrop-filter:blur(18px) saturate(1.18) !important;
  -webkit-backdrop-filter:blur(18px) saturate(1.18) !important;
}

/* Light sections: brighter glass + burgundy icons */
body.mh-header-scrolled.mh-light-header .default_header a[href="/search"],
body.mh-header-scrolled.mh-light-header
.default_header_container > div:first-child > div:last-child > button,
body.mh-header-scrolled.mh-light-header .default_header button.bg-white.lg\:hidden{
  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.78),
      rgba(255,255,255,.50)
    ) !important;

  border-color:rgba(116,22,44,.13) !important;

  box-shadow:
    0 10px 26px rgba(43,16,40,.09),
    inset 0 1px rgba(255,255,255,.76) !important;

  color:#74162C !important;
}

/* Preserve Wasabi hover even while glass is active */
body.mh-header-scrolled .default_header a[href="/search"]:hover,
body.mh-header-scrolled
.default_header_container > div:first-child > div:last-child > button:hover,
body.mh-header-scrolled .default_header button.bg-white.lg\:hidden:hover,
body.mh-header-scrolled
.default_header_container .hidden.lg\:block a:hover,
body.mh-header-scrolled
.default_header_container .hidden.lg\:block button:hover{
  background:#D8F24A !important;
  border-color:#D8F24A !important;
  color:#2B1028 !important;
}

/* TOP / HERO STATE — force original 100% transparent UI */
body:not(.mh-header-scrolled)
.default_header_container .hidden.lg\:block > div,
body:not(.mh-header-scrolled)
.default_header a[href="/search"],
body:not(.mh-header-scrolled)
.default_header_container > div:first-child > div:last-child > button,
body:not(.mh-header-scrolled)
.default_header button.bg-white.lg\:hidden{
  background:transparent !important;
  background-color:transparent !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  box-shadow:none !important;
}

/* At top, keep only the original subtle border treatment. */
body:not(.mh-header-scrolled)
.default_header_container .hidden.lg\:block > div{
  border-color:rgba(255,255,255,.13) !important;
}

body:not(.mh-header-scrolled)
.default_header a[href="/search"],
body:not(.mh-header-scrolled)
.default_header_container > div:first-child > div:last-child > button,
body:not(.mh-header-scrolled)
.default_header button.bg-white.lg\:hidden{
  border-color:rgba(216,242,74,.34) !important;
}

/* If the page starts light at scrollY 0, preserve light icon color but no glass. */
body:not(.mh-header-scrolled).mh-light-header
.default_header_container .hidden.lg\:block > div{
  border-color:rgba(43,16,40,.14) !important;
}

body:not(.mh-header-scrolled).mh-light-header
.default_header a[href="/search"],
body:not(.mh-header-scrolled).mh-light-header
.default_header_container > div:first-child > div:last-child > button,
body:not(.mh-header-scrolled).mh-light-header
.default_header button.bg-white.lg\:hidden{
  border-color:rgba(116,22,44,.22) !important;
}

/* Mobile: slightly stronger glass because there is less visual area */
@media (max-width:1023px){
  body.mh-header-scrolled .default_header a[href="/search"],
  body.mh-header-scrolled
  .default_header_container > div:first-child > div:last-child > button,
  body.mh-header-scrolled .default_header button.bg-white.lg\:hidden{
    backdrop-filter:blur(16px) saturate(1.20) !important;
    -webkit-backdrop-filter:blur(16px) saturate(1.20) !important;
  }
}

