/* Shoptimizer Centered Header (SCH) */

/* OGCBD brand preset ------------------------------------------------------ */
body.sch-brand-refresh{
  --sch-bg:var(--sch-brand-bg,#050505);
  --sch-text:#fff;
  --sch-muted:rgba(255,255,255,.88);
  --sch-hover:var(--sch-gold,#f2c300);
  --sch-accent:var(--sch-gold,#f2c300);
  --sch-border:color-mix(in srgb,var(--sch-gold,#f2c300) 58%,transparent);
  --sch-logo-bg:transparent;
  --sch-badge-bg:var(--sch-gold,#f2c300);
  --sch-badge-text:#050505;
}

body.sch-brand-refresh .sch-header{
  height:var(--sch-brand-height,65px);
  background:linear-gradient(180deg,#090909 0%,var(--sch-brand-bg,#050505) 100%);
  border-bottom:0;
  box-shadow:0 6px 18px rgba(0,0,0,.22);
}

body.sch-brand-refresh .sch-header:after{
  content:none;
}

body.sch-brand-refresh .sch-inner{
  max-width:1440px;
  height:var(--sch-brand-height,65px);
  grid-template-rows:var(--sch-brand-height,65px);
  position:relative;
  z-index:4;
}

body.sch-brand-refresh .sch-logo{
  transform:translateY(var(--sch-logo-scroll-y,var(--sch-brand-logo-overlap,36px)));
  height:var(--sch-brand-height,65px);
  display:flex;
  align-items:center;
  position:relative;
  z-index:5;
  will-change:transform;
}

body.sch-brand-refresh .sch-brand-outline{
  position:absolute;
  top:0;
  left:0;
  z-index:3;
  width:100%;
  height:170px;
  overflow:visible;
  pointer-events:none;
}

body.sch-brand-refresh .sch-brand-outline path{
  fill:none;
  stroke:var(--sch-gold,#f2c300);
  stroke-width:1.15;
  stroke-linecap:round;
  stroke-linejoin:round;
  vector-effect:non-scaling-stroke;
}

body.sch-brand-refresh .sch-logo .sch-brand-logo-link{
  width:var(--sch-brand-logo-width,112px);
  height:auto;
  padding:0;
  overflow:visible;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  filter:
    drop-shadow(0 0 1px var(--sch-gold,#f2c300))
    drop-shadow(
      0
      var(--sch-logo-scroll-shadow-y,12px)
      var(--sch-logo-scroll-shadow-blur,16px)
      rgba(0,0,0,var(--sch-logo-scroll-shadow-alpha,.56))
    );
  position:relative;
  z-index:1;
  opacity:var(--sch-logo-scroll-opacity,1);
  transform:scale(var(--sch-logo-scroll-scale,1));
  transform-origin:50% 50%;
  will-change:transform,opacity,filter;
}

body.sch-brand-refresh .sch-logo .sch-brand-logo-image{
  width:100%;
  height:auto;
  object-fit:contain;
}

body.sch-brand-refresh .sch-nav a{
  font-weight:700;
  letter-spacing:.005em;
}

body.sch-brand-refresh .sch-nav .sub-menu{
  background:#090909;
  border-color:var(--sch-gold,#f2c300);
  border-radius:8px;
}

body.sch-brand-refresh .sch-icon:hover,
body.sch-brand-refresh .sch-icon:focus,
body.sch-brand-refresh .sch-burger:hover,
body.sch-brand-refresh .sch-burger:focus{
  color:var(--sch-gold,#f2c300);
  border-color:var(--sch-gold,#f2c300);
}

body.sch-brand-refresh .sch-cart--shortcode .shoptimizer-cart a.cart-contents{
  border-color:color-mix(in srgb,var(--sch-gold,#f2c300) 45%,transparent);
  background:#070707;
}

body.sch-brand-refresh .sch-cart--shortcode .shoptimizer-cart a.cart-contents:hover,
body.sch-brand-refresh .sch-cart--shortcode .shoptimizer-cart a.cart-contents:focus{
  border-color:var(--sch-gold,#f2c300);
}

body.sch-brand-refresh .sch-drawer__panel{
  background:#070707;
  border-right-color:var(--sch-gold,#f2c300);
}

@media (max-width:1099px){
  body.sch-brand-refresh .sch-logo{
    transform:translateY(var(--sch-logo-scroll-y,clamp(14px,var(--sch-brand-logo-overlap,36px),24px)));
  }

  body.sch-brand-refresh .sch-logo .sch-brand-logo-link{
    width:var(--sch-brand-logo-mobile-width,82px);
  }

  body.sch-brand-refresh .sch-inner{padding-inline:10px; gap:8px;}
  body.sch-brand-refresh .sch-quick{gap:5px;}
  body.sch-brand-refresh .sch-icon,
  body.sch-brand-refresh .sch-burger{width:36px; height:36px;}
  body.sch-brand-refresh .sch-cart--shortcode .shoptimizer-cart a.cart-contents{min-width:42px; padding-inline:8px;}
  body.sch-brand-refresh .sch-cart--shortcode .shoptimizer-cart a.cart-contents .amount{display:none;}
}

@media (prefers-reduced-motion:reduce){
  body.sch-brand-refresh .sch-logo,
  body.sch-brand-refresh .sch-logo .sch-brand-logo-link{
    will-change:auto;
  }
}

.sch-header{
  display: block;
  position: sticky;
  top: 0;
  z-index: 9999;
  background: var(--sch-bg);
  border-bottom: 1px solid var(--sch-border);
  height: var(--sch-height);
  overflow: visible;
}

/* Variants (breakpoint-controlled via inline CSS) */
.sch-header--desktop{ display: none; }
.sch-header--mobile{ display: block; }

body.admin-bar .sch-header{
  top: 32px;
}

@media (max-width: 782px){
  body.admin-bar .sch-header{ top: 46px; }
}

.sch-inner{
  max-width: var(--sch-container);
  margin: 0 auto;
  padding: 0 18px;
  height: var(--sch-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sch-gap);
}

.sch-nav ul{
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 18px;
}

.sch-nav--right ul{
  justify-content: flex-end;
}

.sch-nav li{
  position: relative;
}

.sch-nav a{
  color: var(--sch-text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
  height: var(--sch-item-h, 44px);
  padding: 0 6px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.sch-nav a:hover,
.sch-nav a:focus{
  color: var(--sch-hover);
}

.sch-nav .sub-menu{
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--sch-bg);
  border: 1px solid var(--sch-border);
  border-radius: 14px;
  padding: 10px 0;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.sch-nav li:hover > .sub-menu,
.sch-nav li:focus-within > .sub-menu{
  display: block;
}

.sch-nav .sub-menu a{
  padding: 10px 14px;
  width: 100%;
  color: var(--sch-text);
}

.sch-nav .sub-menu a:hover,
.sch-nav .sub-menu a:focus{
  background: rgba(255,255,255,0.06);
}

.sch-logo{
  transform: translateY(var(--sch-logo-pop));
  justify-self: center;
  z-index: 2;
}

.sch-logo .custom-logo-link,
.sch-logo .sch-logo__text{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--sch-logo-bg);
  border: 1px solid var(--sch-border);
  padding: var(--sch-logo-pad);
  border-radius: var(--sch-logo-radius);
  box-shadow: var(--sch-logo-shadow);
  text-decoration: none;
  overflow: hidden;
}

/* Image logo: remove padding so the image fills the circle edge-to-edge */
.sch-logo .custom-logo-link{
  padding: 0;
  width: calc(46px + 2 * var(--sch-logo-pad));
  height: calc(46px + 2 * var(--sch-logo-pad));
}

.sch-logo .custom-logo{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sch-logo .sch-logo__text{
  color: var(--sch-text);
  font-weight: 800;
  padding: 12px 14px;
}

.sch-right{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.sch-icons{
  display: flex;
  align-items: center;
  gap: 10px;
}

.sch-icon,
.sch-burger{
  position: relative;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sch-muted);
  border: 1px solid transparent;
  border-radius: 14px;
  text-decoration: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.sch-icon:hover,
.sch-icon:focus,
.sch-burger:hover,
.sch-burger:focus{
  color: var(--sch-text);
  border-color: var(--sch-border);
  background: rgba(255,255,255,0.04);
}

.sch-icon svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.sch-burger svg{
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.sch-badge{
  position: absolute;
  top: 3px;
  right: 3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--sch-badge-bg);
  color: var(--sch-badge-text);
  font-size: 11px;
  line-height: 18px;
  font-weight: 700;
  text-align: center;
}

.sch-cart--shortcode{
  display: inline-flex;
}

/* Shoptimizer cart shortcode overrides (avoid 40x40 icon constraint) */
.sch-cart--shortcode .shoptimizer-cart,
.sch-cart--shortcode .shoptimizer-cart-total{
  margin: 0;
}

.sch-cart--shortcode .shoptimizer-cart a.cart-contents{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  width: auto;
  min-width: 92px;
  max-width: 220px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--sch-text);
  text-decoration: none;
  background: rgba(255,255,255,0.02);
  white-space: nowrap;
}

.sch-cart--shortcode .shoptimizer-cart a.cart-contents:hover,
.sch-cart--shortcode .shoptimizer-cart a.cart-contents:focus{
  border-color: var(--sch-border);
  background: rgba(255,255,255,0.04);
}

.sch-cart--shortcode .shoptimizer-cart a.cart-contents .amount{
  display: inline-flex;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 700;
}

.sch-cart--shortcode .shoptimizer-cart a.cart-contents .count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--sch-badge-bg);
  color: var(--sch-badge-text);
  font-size: 12px;
  line-height: 20px;
  font-weight: 800;
}


/* Mobile layout */
.sch-inner--mobile{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.sch-mobile-left,
.sch-mobile-right{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sch-mobile-right{
  justify-content: flex-end;
}

.sch-quick{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sch-quick a{
  height: 36px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--sch-border);
  background: rgba(255,255,255,0.02);
  color: var(--sch-text);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sch-quick a:hover,
.sch-quick a:focus{
  background: rgba(255,255,255,0.04);
}

.sch-quick__link--icon{
  width: 36px;
  padding: 0;
  justify-content: center;
  max-width: none;
}

.sch-quick__link--icon svg{
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* Drawer */
.sch-drawer{
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

body.sch-drawer-open .sch-drawer{ display: block; }

.sch-drawer__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.sch-drawer__panel{
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(92vw, 380px);
  background: var(--sch-bg);
  border-right: 1px solid var(--sch-border);
  transform: translateX(-102%);
  transition: transform 220ms ease;
  overflow-y: auto;
  padding: 16px;
}

body.sch-drawer-open .sch-drawer__panel{ transform: translateX(0); }

body.admin-bar .sch-drawer__panel{
  top: 32px;
  height: calc(100% - 32px);
}

@media (max-width: 782px){
  body.admin-bar .sch-drawer__panel{
    top: 46px;
    height: calc(100% - 46px);
  }
}

.sch-drawer__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--sch-border);
}

.sch-drawer__close{
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--sch-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sch-drawer__close:hover,
.sch-drawer__close:focus{
  color: var(--sch-text);
  border-color: var(--sch-border);
  background: rgba(255,255,255,0.04);
}

.sch-drawer__close svg{ width: 22px; height: 22px; fill: currentColor; }

.sch-drawer__nav{
  padding-top: 14px;
}

.sch-drawer__nav ul{
  list-style: none;
  margin: 0;
  padding: 0;
}

.sch-drawer__nav li{ margin: 0; }

.sch-drawer__nav a{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 14px;
  color: var(--sch-text);
  text-decoration: none;
  font-weight: 700;
}

.sch-drawer__nav a:hover,
.sch-drawer__nav a:focus{
  background: rgba(255,255,255,0.04);
}

.sch-drawer__nav .sub-menu{
  display: block;
  position: static;
  border: 0;
  box-shadow: none;
  background: transparent;
  padding: 0 0 0 12px;
}
