/* Approved hat and lettering are displayed from original artwork without rewriting pixels. */
body.v5-storefront{margin:0;padding:0;background:#0b0c0e;color:#f1ede3;min-height:100svh;--bh-gold:#c6a45b;--home-gold:#c6a45b;--bh-font:Arial,Helvetica,sans-serif!important}
body.v5-storefront *,body.v5-storefront *::before,body.v5-storefront *::after{box-sizing:border-box}
body.v5-storefront{background:#0b0c0e url('/assets/images/home/storyboard-industrial-texture.webp') center top/1440px auto repeat-y!important}
body.v5-storefront::before{display:none!important}
body.v5-storefront .site-copyright{display:none}
/* Preserve reward eligibility and motion while presenting the current hat identity. */
body.v5-storefront #visitorRewardNotice .reward-emblem,body.v5-storefront .bh-locked-emblem{background:url('/assets/images/home/black-hat-sublevel-storyboard-logo.webp') left center/333.33% auto no-repeat;clip-path:polygon(0 0,78% 0,78% 65%,100% 65%,100% 100%,0 100%)}
body.v5-storefront :is(#submitOrder,.add-cart:enabled,.category-button,.steps-button){background:#c6a45b!important;border-color:#c6a45b!important;color:#0b0c0e!important;box-shadow:none}
body.v5-storefront :is(.checkout-step label,.customer-form label,.card-kicker,.footer-kicker,.eyebrow){color:#d9bb7c}
body.v5-storefront :is(main,section,article,aside,form,fieldset){min-width:0}
body.v5-storefront :is(p,label,td,dd,#signed-in,#message){overflow-wrap:anywhere}
body.v5-storefront :is(.catalog-highlights,.catalog-order-terms){min-width:0;max-width:100%;flex-wrap:wrap}
body.v5-storefront :is(.catalog-highlights,.catalog-order-terms) span{min-width:0;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
body.v5-storefront .v5-site-header{position:relative;z-index:100;display:flex;align-items:center;gap:20px;width:100%;max-width:1440px;min-height:100px;margin:auto;padding:8px max(24px,env(safe-area-inset-left));background:#0b0c0e;border-bottom:1px solid var(--bh-v5-line)}
.v5-brand{position:relative;display:block;flex:0 0 260px;width:260px;height:92px;line-height:1;text-decoration:none}
.v5-brand-art{display:block;width:100%;height:100%;background:url('/assets/images/home/black-hat-sublevel-storyboard-logo.webp') left top/100% auto no-repeat;clip-path:polygon(0 0,100% 0,100% 72%,30% 72%,30% 100%,0 100%)}
.v5-brand-company{position:absolute;left:32%;right:0;top:79%;color:var(--bh-v5-ivory);font:700 10px/1 Arial,Helvetica,sans-serif!important;letter-spacing:.22em;text-align:center}
body.v5-storefront .v5-site-header .top-nav{position:static!important;inset:auto!important;transform:none!important;display:flex;flex:1;align-items:center;justify-content:flex-end;gap:16px!important;width:auto!important;max-width:none!important;overflow:visible;padding:0!important;margin:0;background:none;white-space:nowrap}
body.v5-storefront .v5-site-header :is(.top-nav>a,.top-nav button){display:inline-flex;align-items:center;min-height:44px;padding:0;border:0;background:none;color:#f1ede3;font:700 12px/1.4 Arial,Helvetica,sans-serif!important;letter-spacing:.025em!important;cursor:pointer;text-decoration:none}
body.v5-storefront .v5-site-header :is(.products-menu,.legal-menu){position:relative}
body.v5-storefront .v5-site-header :is(.products-dropdown,.legal-dropdown){display:none;position:absolute;inset:44px auto auto 0;z-index:200;min-width:210px;background:#101215;border:1px solid var(--bh-v5-line);padding:8px 14px}
body.v5-storefront .v5-site-header .legal-dropdown{left:auto;right:0}
body.v5-storefront .v5-site-header :is(.products-menu.open .products-dropdown,.legal-menu.open .legal-dropdown){display:grid}
body.v5-storefront .v5-site-header :is(.products-dropdown a,.legal-dropdown a){display:flex;align-items:center;min-height:44px;color:#f1ede3}
body.v5-storefront .v5-site-header .products-toggle svg{width:14px;height:14px;fill:none;stroke:currentColor}
body.v5-storefront .v5-sign-in{flex-shrink:0;display:flex;align-items:center;min-height:44px;color:#f1ede3;font-size:13px!important;white-space:nowrap;text-decoration:none}
body.v5-storefront .v5-site-header .cart{position:relative!important;inset:auto!important;display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;background:none!important;border:0!important;color:#c6a45b;cursor:pointer}
body.v5-storefront .v5-site-header .cart svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5}
body.v5-storefront .v5-site-header .cart-count{position:absolute;inset:0 -2px auto auto;min-width:18px;width:auto;height:auto;border-radius:50%;padding:2px;background:#c6a45b;color:#0b0c0e;font:700 11px/1 Arial,sans-serif}
body.v5-storefront .v5-site-header .cart{min-width:44px!important;max-width:44px!important;flex:0 0 44px!important;margin:0!important}
body.v5-storefront .v5-site-header .mobile-nav-toggle{display:none}
body.v5-storefront .v5-site-header .mobile-nav-toggle b{display:block!important;position:static!important;width:auto;height:auto;font:700 11px/1 Arial,sans-serif!important;color:#f1ede3;opacity:1;visibility:visible}
body.v5-storefront :is(.about-shell,.faq-shell,.contact-shell,.shipping-shell,.order-shell,.order-form-shell,.legal-shell,.supplies-shell){margin-top:0!important;padding-top:28px!important;background:transparent!important;min-height:0}
body.v5-storefront :is(.about-content,.faq-content,.contact-content,.shipping-content,.order-content,.order-form-content,.legal-content){padding-top:20px!important}
body.v5-storefront .v5-site-footer{max-width:1440px;margin:auto;padding:32px max(24px,env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom));background:#08090a;color:#c8c3b9;border-top:1px solid var(--bh-v5-line);text-align:center;font-size:13px}
.v5-site-footer .v5-brand{margin:0 auto 18px}
.v5-site-footer nav{display:flex;flex-wrap:wrap;justify-content:center;gap:0 24px;max-width:1000px;margin:auto}
.v5-site-footer nav a{display:flex;align-items:center;min-height:44px;color:#f1ede3;font-size:13px!important}
.v5-site-footer p{line-height:1.7;margin:12px 0 0}
.v5-site-footer .v5-payment-methods{color:#d9bb7c}
.v5-hat-art{display:block;width:220px;max-width:100%;aspect-ratio:600/787;background:url('/assets/images/home/black-hat-sublevel-storyboard-logo.webp') left center/333.33% auto no-repeat;margin:auto;clip-path:polygon(0 0,78% 0,78% 65%,100% 65%,100% 100%,0 100%)}
body.v5-storefront :is(.hero-mark,.faq-contact-art) img{display:none}
body.v5-storefront:has(#auth-form) main.v5-account-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:min(1100px,100% - 40px);max-width:1100px;margin:48px auto;padding:0;background:#141619;border:1px solid var(--bh-v5-line);border-radius:3px;overflow:hidden}
.v5-account-intro{padding:36px;background:#0e1012 url('/assets/images/home/storyboard-industrial-texture.webp') center/cover}
.v5-account-intro h2{font-size:38px!important;line-height:1.15}
.v5-account-intro p{line-height:1.7;color:#d5cfc3}
.v5-account-panel{padding:40px;align-self:center}
body.v5-storefront :is(button,a,[role=button]){touch-action:manipulation;-webkit-tap-highlight-color:transparent}
body.v5-storefront button{user-select:none}
body.v5-storefront :is(button,.hero-button,.add-cart):active{transform:scale(.98)}
body.storyboard-home .home-page{max-width:1440px;background:#0b0c0e;border:0}
body.storyboard-home .home-hero-stage{height:auto;min-height:520px;padding:0;isolation:isolate;background:#101113 url('/assets/images/home/storyboard-industrial-texture.webp') center/cover;border-bottom:1px solid var(--bh-v5-line)}
body.storyboard-home .home-hero-stage::after{background:linear-gradient(90deg,#0b0c0e 2%,#0b0c0ed9 34%,transparent 72%);z-index:-1}
body.storyboard-home .v5-hero-hat{position:absolute;right:3%;top:0;width:46%;height:100%;background:url('/assets/images/home/black-hat-sublevel-storyboard-logo.webp') left center/333.33% auto no-repeat;z-index:-1;clip-path:polygon(0 0,78% 0,78% 65%,100% 65%,100% 100%,0 100%)}
body.storyboard-home .home-hero{position:relative;inset:auto;width:53%;max-width:760px;padding:62px 0 62px 40px;box-sizing:border-box}
body.storyboard-home .home-hero .hero-title{max-width:none;margin:0 0 26px}
body.storyboard-home .hero-actions{margin:0!important;justify-content:center}
body.storyboard-home .storyboard-trust{padding:24px 40px;background:#111315;border-bottom:1px solid var(--bh-v5-line)}
body.storyboard-home .popular-section{padding:40px;background:#0b0c0e}
body.storyboard-home .popular-grid{gap:20px}
body.storyboard-home .popular-card{background:#15171a;border:1px solid var(--bh-v5-line);border-radius:3px;min-width:0}
body.storyboard-home .popular-card>img{height:230px;background:#111315;border-color:var(--bh-v5-line)}
body.storyboard-home .section-heading{color:var(--bh-v5-ivory);font-size:30px!important}
body.storyboard-home .reviews-section{padding:40px;background:#141619;border-top:1px solid var(--bh-v5-line)}
body.storyboard-home .hero-button,body.storyboard-home .category-button,body.storyboard-home .steps-button,body.storyboard-home .popular-add:enabled{background:var(--bh-v5-gold);border-color:var(--bh-v5-gold);color:#0b0c0e;box-shadow:none}
body.storyboard-home .hero-button-secondary{background:transparent;color:var(--bh-v5-gold)}
@media(hover:hover) and (pointer:fine){body.v5-storefront .v5-site-header a:hover,body.v5-storefront .v5-site-footer a:hover{color:#d9bb7c}}
@media(max-width:1240px){
 body.v5-storefront .v5-site-header{gap:12px}
 body.v5-storefront .v5-site-header .mobile-nav-toggle{position:static!important;display:flex!important;align-items:center;justify-content:center;gap:4px;margin-left:auto;width:64px;min-height:44px;background:none;color:#f1ede3;border:1px solid var(--bh-v5-line)}
 body.v5-storefront .v5-site-header .mobile-nav-toggle span{display:none}
 body.v5-storefront .v5-site-header .top-nav{display:none!important;position:absolute!important;inset:100% 0 auto!important;max-height:75dvh;overflow-y:auto;background:#0b0c0e!important;padding:16px 24px!important;border-bottom:1px solid var(--bh-v5-line)}
 body.v5-storefront .v5-site-header .top-nav.mobile-open{display:flex!important;align-items:stretch;flex-direction:column;gap:0!important}
 body.v5-storefront .v5-site-header :is(.products-dropdown,.legal-dropdown){position:static;min-width:0;padding-left:16px}
}
@media(max-width:760px){
 body.v5-storefront .catalog-toolbar{grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px;width:100%;max-width:100%}
 body.v5-storefront .catalog-toolbar .product-count{min-width:0;overflow-wrap:anywhere}
 body.v5-storefront .catalog-toolbar :is(.catalog-reset,.mobile-filter-toggle){padding-inline:10px}
 body.v5-storefront .v5-site-header{min-height:88px;padding:4px max(12px,env(safe-area-inset-left));gap:8px;flex-wrap:wrap}
 body.v5-storefront .v5-brand{flex-basis:180px;width:180px;height:72px}
 body.v5-storefront .v5-brand-company{font-size:8px!important;top:74%;letter-spacing:.13em}
 body.v5-storefront .v5-site-header .mobile-nav-toggle{width:54px!important;min-width:54px!important;max-width:54px!important;flex:0 0 54px!important;padding:0!important}
 body.v5-storefront .v5-sign-in{min-height:44px}
 body.v5-storefront .v5-site-header .v5-sign-in{order:2;margin-left:auto}
 body.v5-storefront .v5-site-header .cart{order:3}
 body.v5-storefront:has(#auth-form) main.v5-account-layout{grid-template-columns:minmax(0,1fr);width:calc(100% - 24px);margin:24px auto}
 .v5-account-intro,.v5-account-panel{padding:24px}
 .v5-account-intro .v5-hat-art{width:100px;float:right;margin-left:16px}
 .v5-account-intro h2{font-size:28px!important}
 body.storyboard-home .home-hero-stage{min-height:600px;display:flex;align-items:flex-end}
 body.storyboard-home .v5-hero-hat{width:75%;height:350px;right:9%;top:0;opacity:.85}
 body.storyboard-home .home-hero-stage::after{background:linear-gradient(0deg,#0b0c0e 0%,#0b0c0eeb 22%,transparent 60%)}
 body.storyboard-home .home-hero{width:100%;max-width:520px;padding:240px 24px 34px;margin:auto}
 body.storyboard-home .home-hero .hero-title{max-width:440px;margin:0 auto 20px}
 body.storyboard-home .storyboard-trust{grid-template-columns:repeat(2,minmax(0,1fr));padding:22px 16px;gap:20px 12px}
 body.storyboard-home .popular-section,body.storyboard-home .reviews-section{padding:30px 18px}
 body.storyboard-home .popular-grid{gap:14px}
 body.storyboard-home .popular-card>img{height:190px}
}
@media(max-width:380px){body.v5-storefront .v5-site-header .v5-brand{flex-basis:160px;width:160px;height:64px}body.v5-storefront .v5-site-header{gap:6px}body.storyboard-home .popular-grid{grid-template-columns:minmax(0,1fr)}body.storyboard-home .home-hero-stage{min-height:540px}}
@media print{
 body.v5-storefront{background:#fff!important;color:#111!important}
 body.v5-storefront :is(h1,h2,h3,p,a,li,label){color:#111!important}
 body.v5-storefront :is(.v5-site-header,.v5-site-footer){display:none!important}
}


/* PHASE 3 — CATALOG SHOWCASE V5
   Catalog-only presentation overrides. Preserve all cart, inventory,
   search/filter, documentation, and checkout behavior. */
body.v5-storefront.products-page .products-shell {
  padding-top: 24px;
  min-height: 0;
}
body.v5-storefront.products-page .catalog {
  width: min(1220px, calc(100% - 48px));
  padding: 22px 0 76px;
}
body.v5-storefront.products-page .catalog-header {
  max-width: 1040px;
  margin: 0 auto 30px;
}
body.v5-storefront.products-page .catalog-header h1.catalog-title-v23 {
  width: min(510px, 78vw);
}
body.v5-storefront.products-page .catalog-intro {
  max-width: 700px;
  margin: 0 auto;
  color: #e5dfd1;
  line-height: 1.65;
}
body.v5-storefront.products-page .catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px 20px;
  margin: 24px 0 16px;
  padding: 16px 18px;
  border: 1px solid rgba(198,164,91,.36);
  background: rgba(12,13,15,.88);
}
body.v5-storefront.products-page .catalog-toolbar .product-count {
  margin-right: auto;
}
body.v5-storefront.products-page .catalog-toolbar .search-box input,
body.v5-storefront.products-page .catalog-toolbar select {
  min-height: 44px;
  border: 1px solid rgba(198,164,91,.48);
  border-radius: 2px;
  background: #111315;
  color: #f1ede3;
}
body.v5-storefront.products-page .catalog-toolbar :is(button,select,input):focus-visible,
body.v5-storefront.products-page .product-card :is(a,button):focus-visible {
  outline: 2px solid #d9bb7c;
  outline-offset: 3px;
}
body.v5-storefront.products-page .catalog-guidance {
  margin: 8px 2px 20px;
}
body.v5-storefront.products-page .product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 20px;
}
body.v5-storefront.products-page .product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid rgba(198,164,91,.50);
  border-radius: 3px;
  background: #141619;
  box-shadow: 0 12px 30px rgba(0,0,0,.23);
}
body.v5-storefront.products-page .product-card:hover {
  border-color: #d9bb7c;
  box-shadow: 0 16px 36px rgba(0,0,0,.4);
}
body.v5-storefront.products-page .product-card .product-art {
  min-height: 220px;
  background: radial-gradient(ellipse at 50% 78%, rgba(198,164,91,.16), transparent 56%), #0e1012;
  border-bottom: 1px solid rgba(198,164,91,.28);
}
body.v5-storefront.products-page .product-card .product-art img {
  height: 210px;
  max-width: 76%;
}
body.v5-storefront.products-page .product-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}
body.v5-storefront.products-page .product-info h2 {
  color: #d9bb7c;
  font-size: clamp(18px, 1.7vw, 23px);
  line-height: 1.2;
}
body.v5-storefront.products-page .product-info .product-buy {
  margin-top: auto;
  padding-top: 14px;
}
body.v5-storefront.products-page .product-info :is(.manufacturer-documentation,.black-hat-verified) {
  flex-wrap: wrap;
  gap: 8px;
  overflow-wrap: anywhere;
}
body.v5-storefront.products-page .product-info :is(.manufacturer-documentation,.black-hat-verified) a {
  white-space: normal;
}
body.v5-storefront.products-page .product-buy strong {
  font-size: 24px;
}
body.v5-storefront.products-page .add-cart {
  min-height: 44px;
}
@media (max-width: 980px) {
  body.v5-storefront.products-page .product-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 16px;
  }
  body.v5-storefront.products-page .catalog {
    width: calc(100% - 32px);
  }
}
@media (max-width: 620px) {
  body.v5-storefront.products-page .products-shell {
    padding-top: 12px;
  }
  body.v5-storefront.products-page .catalog {
    width: calc(100% - 24px);
    padding-top: 10px;
  }
  body.v5-storefront.products-page .catalog-header {
    margin-bottom: 14px;
  }
  body.v5-storefront.products-page .catalog-toolbar {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    padding: 12px;
  }
  body.v5-storefront.products-page .catalog-toolbar > .search-box:first-of-type {
    grid-column: 1 / -1;
  }
  body.v5-storefront.products-page .catalog-toolbar .catalog-secondary-filter {
    display: none;
    grid-column: 1 / -1;
  }
  body.v5-storefront.products-page .catalog-toolbar.mobile-filters-open .catalog-secondary-filter {
    display: flex;
  }
  body.v5-storefront.products-page .catalog-toolbar .search-box input {
    width: 100%;
  }
  body.v5-storefront.products-page .product-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }
  body.v5-storefront.products-page .product-card .product-art {
    min-height: 174px;
  }
  body.v5-storefront.products-page .product-card .product-art img {
    height: 170px;
  }
  body.v5-storefront.products-page .product-info {
    padding: 14px 16px 18px;
  }
  body.v5-storefront.products-page .product-info h2 {
    font-size: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  body.v5-storefront.products-page .product-card {
    transition: none;
  }
}

/* Phase 3 mobile toolbar placement: override legacy row assignments. */
@media (max-width: 620px) {
  body.v5-storefront.products-page .catalog-toolbar > .product-count {
    grid-column: 1;
    grid-row: 1;
  }
  body.v5-storefront.products-page .catalog-toolbar > .mobile-filter-toggle {
    grid-column: 2;
    grid-row: 1;
  }
  body.v5-storefront.products-page .catalog-toolbar > .search-box:first-of-type {
    grid-column: 1 / -1;
    grid-row: 2;
  }
  body.v5-storefront.products-page .catalog-toolbar > .catalog-secondary-filter {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  body.v5-storefront.products-page .catalog-toolbar > .catalog-reset {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: start;
  }
}
