/* AOM Traders V41 — Header Solid Layer + Stacking Context Fix */
:root{--v41-header-bg:#061722;--v41-header-bg2:#071d29;}

/*
 * V37 put .site-shell and #main in sibling stacking contexts at z-index:1.
 * A huge z-index on the fixed header cannot escape an ancestor stacking context.
 * V41 raises the header's ancestor itself, so page cards/text can never paint over it.
 */
body>.site-shell{
  position:relative!important;
  z-index:2147483400!important;
  isolation:isolate!important;
}
body>#main,
body>main,
body>.footer{
  position:relative!important;
  z-index:1!important;
}

/* The fixed navigation is intentionally OPAQUE — no wallpaper or page copy should show through. */
.header-shell.v40-fixed-header,
.site-header.v40-fixed-header{
  position:fixed!important;
  top:14px!important;
  left:14px!important;
  right:14px!important;
  bottom:auto!important;
  width:auto!important;
  margin:0!important;
  z-index:2147483600!important;
  isolation:isolate!important;
  opacity:1!important;
  background-color:var(--v41-header-bg)!important;
  background-image:linear-gradient(180deg,var(--v41-header-bg2) 0%,var(--v41-header-bg) 100%)!important;
  border:1px solid rgba(64,211,240,.24)!important;
  box-shadow:0 12px 34px rgba(0,0,0,.34),0 1px 0 rgba(255,255,255,.025) inset!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transform:none!important;
  overflow:visible!important;
}
.header-shell.v40-fixed-header::before,
.site-header.v40-fixed-header::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:inherit;
  z-index:-1;
  pointer-events:none;
  background:linear-gradient(180deg,var(--v41-header-bg2),var(--v41-header-bg));
  opacity:1;
}

/* When header-shell owns the fixed layer, keep its inner header neutral and above the underlay. */
.header-shell.v40-fixed-header>.site-header,
.header-shell.v40-fixed-header .site-header{
  position:relative!important;
  z-index:2!important;
  background:transparent!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  opacity:1!important;
}
.header-shell.v40-fixed-header>*{
  position:relative;
  z-index:2;
}

/* Explicitly prevent first-page hero/product shells from creating a layer above navigation. */
#main>.section-first,
#main>.product-detail-hero,
#main>.section,
main>.section-first,
main>.product-detail-hero,
main>.section{
  z-index:auto!important;
}

@media(max-width:700px){
  .header-shell.v40-fixed-header,
  .site-header.v40-fixed-header{
    top:8px!important;
    left:8px!important;
    right:8px!important;
  }
}
