/* ============================================================
   Kumite Lifestyle — Universal brand strip
   Renders the exact same "logo centered + tagline flush-left +
   cart + hamburger flush-right" black bar on EVERY viewport —
   desktop, tablet, phone — per Nicholas (July 2026).

   Pairs with:
     /assets/js/kl-mobile-brand-strip.js  (injects the logo, docks title)
     /assets/css/kl-top-strip.css         (base strip visibility)
     /assets/js/kl-cart-widget.js         (injects the cart button)
     /assets/js/kl-member-nav.js          (clones #mobileNavToggle
                                            into the strip as hamburger)
   ============================================================ */

/* ── Docked LOGO (centered over the bar) — every screen ── */
.kl-strip-logo-dock {
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  z-index: 2;
  margin: 0 !important;
  pointer-events: auto;
}
.kl-strip-logo-dock img {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

/* Slightly bigger logo on desktop where there's room. */
@media (min-width: 901px) {
  .kl-strip-logo-dock img { width: 42px; height: 42px; }
}

/* ── Docked tagline (flush-left) ── */
.kl-page-title.is-in-strip {
  position: static !important;
  order: -3 !important;
  margin: 0 auto 0 0 !important;
  padding: 0 !important;
  font-family: 'Bebas Neue', Impact, sans-serif !important;
  font-size: clamp(9px, 1.4vw, 13px) !important;
  letter-spacing: 0.09em !important;
  line-height: 1 !important;
  color: #fff !important;
  font-weight: 400 !important;
  max-width: 34vw !important;
  display: inline-flex !important;
  flex: 0 0 auto !important;
  column-gap: 0.20em !important;
  white-space: nowrap !important;
  text-transform: uppercase;
  opacity: 0.92;
  text-align: left;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  text-overflow: clip;
  transform: none !important;
}
.kl-page-title.is-in-strip .kpt-mic { display: none !important; }
.kl-page-title.is-in-strip::after { display: none !important; }
.kl-page-title.is-in-strip .kpt-word {
  color: #fff !important;
  font-weight: 400 !important;
}

/* Widen tagline max on desktop where there's room. */
@media (min-width: 901px) {
  .kl-page-title.is-in-strip { max-width: 42vw !important; }
}

/* ── Hide the auto-marquee everywhere once the tagline is docked ── */
body.kl-mobile-strip-branding .kl-strip-marquee {
  display: none !important;
}

/* ── Strip layout: tighter, no-wrap, relative so absolute-centered
      logo has an anchor; flex-start so tagline actually anchors LEFT. ── */
body.kl-mobile-strip-branding .nav-top-strip-inner,
body.kl-mobile-strip-branding .nav-top-strip.kl-top-strip-active .nav-top-strip-inner {
  flex-wrap: nowrap !important;
  gap: 8px !important;
  padding: 6px 14px !important;
  align-items: center !important;
  position: relative !important;
  justify-content: flex-start !important;
}
body.kl-mobile-strip-branding .nav-top-strip-link,
body.kl-mobile-strip-branding .kl-cwg-home {
  white-space: nowrap !important;
  font-size: 10.5px !important;
  letter-spacing: 0.06em !important;
  flex: 0 0 auto !important;
  order: 10;
}

/* Push cart + hamburger to the right edge. */
body.kl-mobile-strip-branding .kl-cwg-btn,
body.kl-mobile-strip-branding .kl-strip-hamburger {
  order: 20;
  margin-left: 0;
  z-index: 3;
}
body.kl-mobile-strip-branding .kl-cwg-btn { order: 20; }
body.kl-mobile-strip-branding .kl-strip-hamburger { order: 21; margin-left: 6px; }

/* ── Hamburger styling — apply at EVERY viewport (kl-member-nav.js
      only styles it under @media <=900px, so on desktop it renders
      unstyled. This ensures the burger looks identical everywhere). ── */
.kl-strip-hamburger {
  all: unset;
  order: 99;
  width: 36px !important;
  height: 36px !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  border-radius: 6px;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-left: 6px;
  z-index: 3;
}
.kl-strip-hamburger:active { background: rgba(255,255,255,0.10) !important; }
.kl-strip-hamburger-svg { width: 22px; height: 22px; display: block; }
.kl-strip-hamburger-svg rect { fill: #ffffff !important; }

/* Hide the ORIGINAL page hamburger on every viewport (its clone lives
   in the strip). Without this, some pages show TWO burgers on desktop. */
#mobileNavToggle.nav-hamburger:not(.kl-strip-hamburger) {
  display: none !important;
}

/* Very narrow screens — shrink logo + tagline further. */
@media (max-width: 380px) {
  .kl-strip-logo-dock img { width: 30px; height: 30px; }
  .kl-page-title.is-in-strip {
    font-size: 8.5px !important;
    letter-spacing: 0.04em !important;
    max-width: 35vw !important;
  }
  body.kl-mobile-strip-branding .nav-top-strip-link,
  body.kl-mobile-strip-branding .kl-cwg-home {
    font-size: 9.5px !important;
    letter-spacing: 0.04em !important;
  }
}
