
:root{--bg:#0b1020;--card:rgba(255,255,255,.04);--border:rgba(255,255,255,.10);--text:#e5e7eb;--muted:#9ca3af;--accent:#c62828;--accent-2:#ef4444;}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);}
a{color:inherit;text-decoration:none}
.container{max-width:1180px;margin:0 auto;padding:22px 18px 60px}
.topbar{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:14px;flex-wrap:wrap}
.leftBtns,.rightBtns{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:999px;color:#fff;font-weight:800;cursor:pointer;border:1px solid rgba(198,40,40,.45);background:linear-gradient(180deg, rgba(198,40,40,.18), rgba(198,40,40,.08));box-shadow:0 8px 22px rgba(0,0,0,.25), 0 0 18px rgba(198,40,40,.18);transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .12s ease}
.btn:hover{background:linear-gradient(180deg, rgba(198,40,40,.28), rgba(198,40,40,.14));border-color:rgba(239,68,68,.60);box-shadow:0 12px 28px rgba(0,0,0,.30), 0 0 24px rgba(198,40,40,.28)}
.btn:active{transform:translateY(1px)}

/* Navigation pills (Product Guide style) */
.topbar.navButtons{margin-top:10px;margin-bottom:18px}
.topbar.navButtons .btn.navbtn{
  background:linear-gradient(180deg, rgba(198,40,40,.96), rgba(148,25,25,.96));
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 12px 30px rgba(0,0,0,.28), 0 0 24px rgba(198,40,40,.22);
}
.topbar.navButtons .btn.navbtn:hover{
  background:linear-gradient(180deg, rgba(214,48,48,1), rgba(160,28,28,1));
}

/* Spacer topbar (keeps vertical alignment without showing buttons) */
.topbar.topbarSpacer{min-height:44px}
.brand{font-weight:900;letter-spacing:.2px;margin:4px 0 12px}
.meta{color:var(--muted);font-size:12px;margin-bottom:14px}
.card{background:var(--card);border:1px solid var(--border);border-radius:16px;padding:18px}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
/* Product Guide: force 3-up grid on desktop */
.cards.products{grid-template-columns:repeat(3, minmax(0,1fr));gap:16px}
@media (max-width: 980px){.cards.products{grid-template-columns:repeat(2, minmax(0,1fr));}}
@media (max-width: 640px){.cards.products{grid-template-columns:1fr;}}

h1{margin:0 0 8px;font-size:28px}
h2{margin:18px 0 8px;font-size:16px;color:#f3f4f6}
.subtitle{margin:0 0 18px;color:var(--muted);line-height:1.45}
.search{margin:14px 0 10px}
.search input{width:100%;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:var(--text);outline:none}
.pill{display:inline-block;padding:10px 12px;border-radius:999px;background:rgba(198,40,40,.16);border:1px solid rgba(198,40,40,.35);font-weight:700}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.col{background:rgba(255,255,255,.03);border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:16px}
ul{margin:0 0 10px 18px}
li{margin:6px 0}
.actions{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.smallbtn{padding:8px 12px;border-radius:12px;border:1px solid rgba(198,40,40,.28);background:linear-gradient(180deg, rgba(198,40,40,.12), rgba(198,40,40,.06));font-weight:800;color:var(--text);box-shadow:0 8px 22px rgba(0,0,0,.16), 0 0 16px rgba(198,40,40,.10)}
.smallbtn:hover{background:linear-gradient(180deg, rgba(198,40,40,.18), rgba(198,40,40,.10));border-color:rgba(239,68,68,.40)}
.smallbtn.primary{border-color:rgba(198,40,40,.40);background:linear-gradient(180deg, rgba(198,40,40,.20), rgba(198,40,40,.10))}
.navpair{display:flex;gap:10px;justify-content:space-between;margin-top:18px;flex-wrap:wrap}

/* Product card format */
.productCard{min-height:290px;display:flex;flex-direction:column;justify-content:space-between;padding:18px}
.productTitle{text-align:center;font-weight:950;font-size:18px;margin-top:2px}
.thumbSpace{flex:1;margin:14px 8px 12px;border:0;border-radius:14px;background:transparent}
.productActions{display:flex;gap:12px;justify-content:center;align-items:center;margin-top:8px;flex-wrap:wrap}

/* modal */
.modalBack{position:fixed;inset:0;background:rgba(0,0,0,.55);display:none;align-items:center;justify-content:center;padding:16px;z-index:999}
.modal{max-width:720px;width:100%;background:#0b1220;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:16px}
.modal h3{margin:0 0 8px}
.field{margin:10px 0}
.field label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
.field input,.field textarea,.field select{width:100%;padding:10px 12px;border-radius:12px;border:1px solid rgba(255,255,255,.12);background:rgba(255,255,255,.04);color:var(--text);outline:none}
.field textarea{min-height:120px;resize:vertical}
.row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
@media (max-width: 920px){.two-col{grid-template-columns:1fr}.row{grid-template-columns:1fr}}

/* === v1.23 UI overrides === */
.siteHeader{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding: 18px 0 6px 0;
}
.siteLogo{
  max-width: 520px;
  width: min(520px, 86vw);
  height: auto;
  display:block;
}
/* Center headings */
h1, .pageTitle{
  text-align:center !important;
}
/* Uniform tile sizing */
.productsGrid{
  gap: 14px;
}
.productCard{
  border-radius: 18px;
  padding: 12px 12px 10px 12px;
  min-height: 180px;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
}
.thumbPlaceholder, .thumbImg{
  height: 74px;
  border-radius: 12px;
}
.thumbImg{
  width:100%;
  object-fit: contain;
  padding: 6px;
}
.productTitle{
  font-size: 16px;
  margin: 4px 0 10px 0;
  text-align:center;
}
.productButtons{
  margin-top: 10px;
  justify-content:center;
}
.pillBtn{
  padding: 8px 12px;
  font-size: 13px;
}
/* Bottom-middle placement helpers (3-column layout) */
.productCard.midBottom{
  grid-column: 2;
}
@media (max-width: 1100px){
  .productCard.midBottom{ grid-column: auto; }
}

/* === v1.24: menu icon hubs, borderless tiles === */
.productCard.menuTile{
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  min-height: 170px;
}
.productCard.menuTile:hover{
  background: rgba(255,255,255,0.03) !important;
}
.productCard.menuTile .thumbPlaceholder{
  display:none;
}
.productCard.menuTile .thumbImg{
  height: 96px;
  border-radius: 14px;
  background: transparent;
  padding: 0;
}
.productCard.menuTile .productButtons{
  display:none; /* tiles act as one big link */
}
.menuLink{
  display:block;
  text-decoration:none;
  color: inherit;
  border-radius: 18px;
  padding: 12px 12px 10px 12px;
  transition: transform .08s ease, background .15s ease;
}
.menuLink:hover{ background: rgba(198,40,40,0.10); }
.menuLink:active{ transform: scale(0.99); }
.menuLink:focus-visible{ outline: 2px solid rgba(198,40,40,0.85); outline-offset: 2px; }

/* Unified page title spacing */
.pageTitle{
  font-size: 34px !important;
  margin: 10px 0 6px 0 !important;
}
.pageSubtitle{
  margin: 0 0 16px 0 !important;
  opacity: .85 !important;
}
/* Topbar consistent */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-top: 10px;
}
.leftBtns .btn{
  margin-right: 10px;
}


/* Disabled button state (used when a resource like Photos isn't available) */
.smallbtn.disabled{
  opacity:0.45;
  pointer-events:none;
  cursor:not-allowed;
}



/* Product tile thumbnails (Product Guide page) */
.thumbSpace{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 100%;
  height: 140px; /* tile image area */
}
.productThumb{
  width: 100%;
  height: 100%;
  object-fit: contain; /* preserve aspect ratio */
  object-position: center;
  filter: drop-shadow(0 10px 18px rgba(0,0,0,.35));
}
.productThumb.is-missing{
  opacity: .55;
}


/* menu tiles */
.menuTile .menuLink{display:flex; flex-direction:column; align-items:center; justify-content:center; height:100%;}
.menuTile .thumbImg{width:100%; height:148px; object-fit:contain; display:block; padding:10px;}

.thumbImg.is-missing{opacity:.6;}

/* Menu icon enlarged +75% */
.menuTile .thumbImg{
  height: 260px !important;
  width: 100%;
  object-fit: contain;
}

.menuTile{
  min-height: 320px !important;
}


/* Product page topbar center button */
.topbar{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.topbar .leftBtns{display:flex; gap:10px; align-items:center;}
.topbar .centerBtns{flex:1; display:flex; justify-content:center;}
.topbar .centerBtns .btn{min-width:180px; text-align:center;}

/* Brief card */
.briefCard .lead{font-size:1.05rem; font-weight:700;}


/* Product page topbar button layout */
.topbar{display:flex; align-items:center; justify-content:space-between; gap:12px;}
.topbar .leftBtns{display:flex; gap:10px; align-items:center;}
.topbar .rightBtns{display:flex; gap:10px; align-items:center; justify-content:flex-end;}

/* Brief page image gallery */
.galleryGrid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap:14px;
  margin-top:12px;
}
.galleryGrid a{display:block; border-radius:14px; overflow:hidden;}
.galleryImg{
  width:100%;
  height:160px;
  object-fit:cover;
  display:block;
}

/* Suppliers list */
.supplierList{margin:0; padding-left:18px;}
.supplierItem{display:flex; gap:12px; align-items:flex-start; justify-content:space-between; padding:10px 0; border-bottom:1px solid rgba(255,255,255,.08);}
.supplierMain{min-width:220px; flex:1;}
.supplierName{font-weight:800;}
.supplierNote{opacity:.8; margin-top:4px; font-size:.95rem;}
.supplierActions{display:flex; gap:8px; align-items:center; flex-wrap:wrap; justify-content:flex-end;}
.btn.mini{padding:6px 10px; font-size:.9rem; border-radius:10px;}

/* ===== Store selector compact (Product Guide) ===== */
.siteHeader{ position:relative; }
#storeSelectorCard.storeSelectorCompact{
  position:absolute;
  top:14px;
  right:14px;
  width:360px;
  padding:12px 14px;
  border-radius:14px;
}
#storeSelectorCard.storeSelectorCompact h2{
  font-size:14px;
  margin:0 0 8px 0;
}
#storeSelectorCard.storeSelectorCompact p{ display:none; }
#storeSelectorCard.storeSelectorCompact label{ min-width:auto !important; }
#storeSelectorCard.storeSelectorCompact select{
  max-width:220px;
  height:34px;
  padding:6px 10px;
}
#storeSelectorCard.storeSelectorCompact #storeSelectorStatus{
  font-size:12px;
  opacity:.75;
}

/* On small screens, keep it in flow above tiles */
@media (max-width: 900px){
  #storeSelectorCard.storeSelectorCompact{
    position:static;
    width:auto;
    margin: 0 0 18px 0;
  }
}

/* ===== Topbar 3-column layout (Dashboard left, Store center, Actions right) ===== */
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.topbar .leftBtns,
.topbar .rightBtns{
  display:flex;
  gap:12px;
  align-items:center;
  flex:0 0 auto;
}
.topbar .centerBtns{
  flex:1 1 auto;
  display:flex;
  justify-content:center;
  align-items:center;
  min-width:120px;
}
.topbarCenterLabel{
  padding:10px 16px;
  border-radius:999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  font-weight:800;
  letter-spacing:.3px;
}
@media (max-width: 720px){
  .topbarCenterLabel{ font-size:12px; padding:8px 12px; }
}


/* Interactive browser pages */
.browserLayout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}
.browserNav,.browserContent,.browserHero{position:relative;overflow:hidden;background:linear-gradient(135deg, rgba(198,40,40,.12), transparent 42%),linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));border:1px solid rgba(255,255,255,.10);border-radius:24px;box-shadow:0 18px 55px rgba(0,0,0,.34)}
.browserHero{padding:28px 24px;margin-bottom:18px}
.browserHero::after{content:"";position:absolute;top:-70px;right:-70px;width:220px;height:220px;border-radius:50%;background:radial-gradient(circle, rgba(198,40,40,.22), transparent 70%);pointer-events:none}
.browserHeroTop{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:10px}
.browserHeroIcon{width:58px;height:58px;border-radius:18px;display:grid;place-items:center;font-size:28px;background:rgba(198,40,40,.16);border:1px solid rgba(198,40,40,.34);box-shadow:0 10px 22px rgba(198,40,40,.12)}
.browserNav{padding:14px;position:sticky;top:12px}
.browserContent{padding:26px 24px 22px;min-height:680px}
.browserNavHead{margin-bottom:14px;padding:8px 6px 14px;border-bottom:1px solid rgba(255,255,255,.08)}
.browserNavHead h2{margin:0 0 8px !important}
.typeBlock{margin:10px 0;border:1px solid rgba(255,255,255,.08);border-radius:18px;overflow:hidden;background:rgba(255,255,255,.02)}
.typeButton{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;background:transparent;border:0;color:#fff;padding:16px 16px;font:inherit;font-weight:800;text-align:left;cursor:pointer}
.typeButton:hover{background:rgba(255,255,255,.04)}
.typeLabel{display:flex;align-items:center;gap:10px}
.typeIcon{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:0 0 38px;background:rgba(198,40,40,.16);border:1px solid rgba(198,40,40,.34);font-size:18px}
.typeChevron{opacity:.8;transition:transform .18s ease}
.typeBlock.open .typeChevron{transform:rotate(90deg)}
.subList{display:none;padding:0 10px 12px}
.typeBlock.open .subList{display:block}
.subButton{width:100%;background:rgba(255,255,255,.02);color:#d8dee7;border:1px solid rgba(255,255,255,.06);border-radius:14px;padding:12px 13px;margin:8px 0 0;text-align:left;font:inherit;cursor:pointer;line-height:1.35}
.subButton:hover{background:rgba(255,255,255,.05);color:#fff}
.subButton.active{background:rgba(198,40,40,.16);border-color:rgba(198,40,40,.34);color:#fff}
.contentBadge{display:inline-flex;align-items:center;gap:8px;min-height:38px;padding:0 14px;border-radius:999px;background:rgba(198,40,40,.16);border:1px solid rgba(198,40,40,.34);font-weight:800;margin-bottom:14px}
.contentTitle{margin:0 0 8px !important;text-align:left !important}
.contentLead{margin:0 0 14px;color:#e5d1d1;font-weight:700;line-height:1.55}
.contentList{margin:0;padding-left:18px}
.contentList li{margin:9px 0;line-height:1.6;color:#d8dee7}
.contentHint{margin-top:20px;color:var(--muted);font-size:13px;text-align:center}
@media (max-width:980px){.browserLayout{grid-template-columns:1fr}.browserNav{position:static}.browserContent{min-height:unset}}


/* SOP / FAQ card pages */
.heroPanel{
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  padding:22px 18px 18px;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  margin-bottom:16px;
}
.heroIcon{
  width:68px;height:68px;margin:0 auto 10px;border-radius:18px;
  display:grid;place-items:center;font-size:30px;
  background:linear-gradient(180deg, rgba(198,40,40,.20), rgba(198,40,40,.08));
  border:1px solid rgba(198,40,40,.32);
  box-shadow:0 12px 28px rgba(0,0,0,.24), 0 0 18px rgba(198,40,40,.16);
}
.addBar{display:flex;justify-content:flex-end;align-items:center;margin:0 0 14px;gap:10px;flex-wrap:wrap}
.bubbleGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:14px}
.editBubble{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:18px;
  min-height:160px;
  box-shadow:0 14px 32px rgba(0,0,0,.16);
}
.editBubble h2{margin:0 0 10px;font-size:18px;color:#fff}
.editBubble p{margin:0;color:var(--muted);line-height:1.5}
.bubbleLink{color:#fff;text-decoration:none}
.bubbleLink:hover{color:#fff;text-decoration:underline;text-decoration-color:rgba(239,68,68,.75)}

/* Sales tips browser page */
.browserHero{
  background:linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  padding:18px 18px 16px;
  box-shadow:0 18px 40px rgba(0,0,0,.18);
  margin-bottom:16px;
}
.browserHeroTop{display:flex;justify-content:center;margin-bottom:8px}
.browserHeroIcon{
  width:68px;height:68px;border-radius:18px;display:grid;place-items:center;font-size:30px;
  background:linear-gradient(180deg, rgba(198,40,40,.20), rgba(198,40,40,.08));
  border:1px solid rgba(198,40,40,.32);
}
.browserLayout{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:16px;align-items:start}
.browserNav,.browserContent{
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025));
  border:1px solid rgba(255,255,255,.10);
  border-radius:20px;
  padding:16px;
  box-shadow:0 14px 32px rgba(0,0,0,.16);
}
.browserNavHead h2{margin:0 0 4px;font-size:18px}
.typeBlock{border:1px solid rgba(255,255,255,.08);border-radius:16px;margin:10px 0 0;background:rgba(255,255,255,.02);overflow:hidden}
.typeButton,.subButton{width:100%;text-align:left;border:none;background:none;color:#fff;cursor:pointer}
.typeButton{display:flex;align-items:center;justify-content:space-between;padding:14px 14px;font-weight:900;font-size:15px}
.typeButton:hover{background:rgba(255,255,255,.03)}
.typeLabel{display:flex;gap:10px;align-items:center}
.typeIcon{width:24px;text-align:center}
.typeChevron{font-size:24px;line-height:1;transform:rotate(90deg);transition:transform .18s ease;opacity:.8}
.typeBlock.open .typeChevron{transform:rotate(270deg)}
.subList{display:none;padding:0 10px 10px}
.typeBlock.open .subList{display:block}
.subButton{padding:11px 12px;border-radius:12px;font-weight:700;color:var(--text);margin-top:8px;background:rgba(255,255,255,.02);border:1px solid transparent}
.subButton:hover{background:rgba(255,255,255,.05)}
.subButton.active{background:linear-gradient(180deg, rgba(198,40,40,.18), rgba(198,40,40,.08));border-color:rgba(198,40,40,.35)}
.contentBadge{display:inline-flex;align-items:center;gap:8px;padding:8px 12px;border-radius:999px;background:rgba(198,40,40,.14);border:1px solid rgba(198,40,40,.32);font-weight:800;margin-bottom:12px}
.contentTitle{margin:0 0 8px;font-size:24px}
.contentLead{margin:0 0 14px;color:var(--muted);line-height:1.55}
.contentList{margin:0;padding-left:20px}
.contentList li{margin:8px 0;line-height:1.55}
.contentHint{margin-top:16px;font-size:13px;color:var(--muted)}
@media (max-width: 920px){.browserLayout{grid-template-columns:1fr}}

/* === BW global header/layout standardisation === */
html{width:100%;overflow-x:hidden;}
body{min-width:0;overflow-x:hidden;}
.container{
  width:min(100% - 32px, 1180px);
  max-width:1180px;
  margin-inline:auto;
  padding:22px 0 60px;
}
.siteHeader{
  width:100%;
  max-width:1180px;
  margin:0 auto 10px;
  padding:14px 0 8px;
  display:flex;
  justify-content:center;
  align-items:center;
}
.siteLogo{
  display:block;
  width:min(520px, 86vw);
  max-width:520px;
  height:auto;
}
.topbar.bwUnifiedTopbar,
.container > .topbar{
  width:100%;
  max-width:1180px;
  margin:10px auto 18px;
  padding:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.topbar .leftBtns,
.topbar .rightBtns{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.topbar .rightBtns{margin-left:auto;justify-content:flex-end;}
.topbar .btn{white-space:nowrap;}
.card,.heroPanel,.browserHero,.browserNav,.browserContent,.rackCard,.crm-card,.crm-panel{
  max-width:100%;
}
.browserLayout,.cards,.bubbleGrid,.remindersGrid{max-width:100%;}
img,table,iframe,video{max-width:100%;}
@media (min-width:1500px){
  .container,.siteHeader,.topbar.bwUnifiedTopbar,.container > .topbar{max-width:1180px;}
}
@media (max-width:720px){
  .container{width:min(100% - 22px, 1180px);padding-top:14px;}
  .siteHeader{padding-top:10px;margin-bottom:6px;}
  .topbar.bwUnifiedTopbar,.container > .topbar{justify-content:center;gap:10px;}
  .topbar .leftBtns,.topbar .rightBtns{width:100%;justify-content:center;margin-left:0;}
  .topbar .btn{padding:9px 12px;font-size:14px;}
}


/* === BW MODULAR GLOBAL HEADER === */
#bw-global-header{width:100%;}
.bw-site-header{width:100%;margin:0 auto 18px;}
.bw-header-inner{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;width:100%;max-width:1180px;margin:0 auto;padding:22px 0 10px;}
.bw-header-left,.bw-header-right{display:flex;align-items:center;gap:10px;flex-wrap:wrap;}
.bw-header-left{justify-content:flex-start;}
.bw-header-right{justify-content:flex-end;}
.bw-header-logo{display:flex;align-items:center;justify-content:center;text-decoration:none;min-width:220px;}
.bw-header-logo img,.bw-site-header .siteLogo{display:block;max-width:390px;width:min(390px,42vw);height:auto;object-fit:contain;background:#fff;}
.bw-store-label{display:inline-flex;align-items:center;min-height:34px;padding:8px 14px;border-radius:999px;background:linear-gradient(180deg,#d53b3b,#8f1717);color:#fff;font-weight:900;font-size:13px;box-shadow:0 10px 20px rgba(0,0,0,.25), inset 0 1px 0 rgba(255,255,255,.25);white-space:nowrap;}
.bw-site-header .btn,.bw-site-header a.btn,.bw-site-header button.btn{white-space:nowrap;text-decoration:none;}
.bw-page-actions{display:none!important;}
.container{max-width:1180px;margin-left:auto;margin-right:auto;}
@media (max-width:900px){.bw-header-inner{grid-template-columns:1fr;gap:12px;text-align:center;padding-top:14px}.bw-header-left,.bw-header-right{justify-content:center}.bw-header-logo{order:-1}.bw-header-logo img,.bw-site-header .siteLogo{width:min(360px,86vw)}}
@media (max-width:520px){.bw-header-left,.bw-header-right{gap:8px}.bw-site-header .btn,.bw-store-label{font-size:12px;padding:8px 10px}.bw-header-logo img,.bw-site-header .siteLogo{width:min(320px,90vw)}}

/* === BW modular header v2: logo top, single nav row below === */
.bw-site-header{width:100%;margin:0 auto 22px;}
.bw-header-inner{display:flex !important;flex-direction:column;align-items:center;justify-content:center;gap:14px;width:100%;max-width:1180px;margin:0 auto;padding:22px 0 12px;}
.bw-header-left,.bw-header-right{display:contents;}
.bw-header-logo{display:flex;align-items:center;justify-content:center;text-decoration:none;min-width:0 !important;order:1;}
.bw-header-logo img,.bw-site-header .siteLogo{display:block;max-width:390px;width:min(390px,78vw);height:auto;object-fit:contain;background:#fff;}
.bw-header-nav{display:flex;align-items:center;justify-content:center;gap:10px;flex-wrap:wrap;width:100%;order:2;}
.bw-site-header .btn,.bw-site-header a.btn,.bw-site-header button.btn,.bw-store-label{white-space:nowrap;text-decoration:none;}
@media (max-width:520px){.bw-header-inner{gap:10px;padding-top:14px}.bw-header-nav{gap:8px}.bw-site-header .btn,.bw-store-label{font-size:12px;padding:8px 10px}.bw-header-logo img,.bw-site-header .siteLogo{width:min(320px,90vw)}}
a.productCardLink{display:block;color:inherit;text-decoration:none;}
a.productCardLink:hover{transform:translateY(-2px);border-color:rgba(225,29,46,.75);box-shadow:0 18px 42px rgba(225,29,46,.14);}
.angular-layout{max-width:1280px;margin:0 auto;padding:22px 0 46px;display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px}.angular-side{position:sticky;top:126px;align-self:start;background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:22px;padding:12px}.angular-tab{width:100%;display:block;text-align:left;border:1px solid transparent;background:transparent;color:#fff;padding:13px 14px;border-radius:14px;font-weight:800;cursor:pointer;margin:3px 0}.angular-tab:hover,.angular-tab.active{background:rgba(225,29,46,.18);border-color:rgba(225,29,46,.65)}.angular-content{background:rgba(255,255,255,.05);border:1px solid var(--line);border-radius:24px;min-height:620px;box-shadow:0 16px 38px rgba(0,0,0,.22);overflow:hidden}.angular-section{display:none;padding:24px}.angular-section.active{display:block}.angular-section h2{margin:0 0 14px;color:#fff;font-size:28px}.angular-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}.angular-photo{height:170px;border-radius:16px;border:1px solid var(--line);background:#0d2545;display:grid;place-items:center;overflow:hidden}.angular-photo img{width:100%;height:100%;object-fit:cover}.angular-placeholder{color:var(--muted);text-align:center;padding:18px}.doc-content,.sheet-content{background:#fff;color:#111;border-radius:16px;padding:18px;overflow:auto}.doc-content table,.sheet-content table{border-collapse:collapse;width:100%;margin:12px 0}.doc-content td,.doc-content th,.sheet-content td,.sheet-content th{border:1px solid #ccc;padding:8px;vertical-align:top}.doc-content h1,.doc-content h2,.doc-content h3{color:#111}.loader-row{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:14px}code{background:rgba(255,255,255,.12);padding:2px 6px;border-radius:6px}@media(max-width:820px){.angular-layout{display:block}.angular-side{position:sticky;top:0;z-index:15;display:flex;overflow-x:auto;gap:8px;border-radius:16px;margin:0 0 16px;padding:10px}.angular-tab{white-space:nowrap;width:auto;min-width:max-content}.angular-section{padding:18px}.angular-content{border-radius:20px}}


/* =========================================================
   BW UNIVERSAL TILE + PRODUCT PAGE SYSTEM - 2026-04 polish
   Locks tile behaviour site-wide without changing page links.
========================================================= */
.tileGrid,
.cards.products{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
  align-items:stretch;
}
@media(max-width:1000px){
  .tileGrid,
  .cards.products{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .tileGrid,
  .cards.products{grid-template-columns:1fr;}
}
.tile,
.cards.products > .card,
.cards.products > a.card{
  min-height:238px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
  gap:8px;
}
.tileIconWrap,
.productIcon,
.thumbSpace{
  width:100%;
  min-height:124px;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 0 10px;
}
.tileIcon,
.productIcon img,
.productThumb{
  width:118px;
  height:118px;
  object-fit:contain;
  border-radius:16px;
  filter:drop-shadow(0 14px 24px rgba(0,0,0,.38));
  transition:transform .22s ease, filter .22s ease;
}
.card:hover .productThumb,
.card:hover .productIcon img,
.tile:hover .tileIcon img{
  transform:translateY(-4px) scale(1.08);
  filter:drop-shadow(0 20px 34px rgba(0,0,0,.52));
}
.tileTitle,
.productTitle{
  width:100%;
  text-align:center;
  font-weight:900;
}
.tile .subtitle,
.card.productCard .subtitle,
.cards.products .subtitle{
  text-align:center !important;
  margin-left:auto !important;
  margin-right:auto !important;
  max-width:300px;
}
.productActions{display:none!important;}
a.productCardLink,
a.productCard,
.cards.products > a.card{display:flex;color:inherit;text-decoration:none;}

/* Product detail shell shared by all product pages */
.product-layout{
  max-width:1280px;
  margin:0 auto;
  padding:22px 0 46px;
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
  gap:18px;
}
.product-side{
  position:sticky;
  top:126px;
  align-self:start;
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius:22px;
  padding:12px;
}
.product-tab{
  width:100%;
  display:block;
  text-align:left;
  border:1px solid transparent;
  background:transparent;
  color:#fff;
  padding:13px 14px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
  margin:3px 0;
}
.product-tab:hover,
.product-tab.active{
  background:rgba(225,29,46,.18);
  border-color:rgba(225,29,46,.65);
}
.product-content{
  background:rgba(255,255,255,.05);
  border:1px solid var(--line);
  border-radius:24px;
  min-height:620px;
  box-shadow:0 16px 38px rgba(0,0,0,.22);
  overflow:hidden;
}
.product-section{display:none;padding:24px;}
.product-section.active{display:block;}
.product-section h2{margin:0 0 14px;color:#fff;font-size:28px;}
.product-gallery{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}
.product-photo{
  height:190px;
  border-radius:18px;
  border:1px solid var(--line);
  background:#0d2545;
  display:grid;
  place-items:center;
  overflow:hidden;
  box-shadow:0 14px 28px rgba(0,0,0,.28);
}
.product-photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .25s ease;
}
.product-photo:hover img{transform:scale(2);}
.product-placeholder{color:var(--muted);text-align:center;padding:18px;line-height:1.35;}
.product-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;}
.product-info-card{background:rgba(255,255,255,.045);border:1px solid var(--line);border-radius:18px;padding:18px;}
.product-info-card h3{margin:0 0 8px;color:#fff;}
.source-content,
.doc-content,
.sheet-content{
  background:#fff;
  color:#111;
  border-radius:16px;
  padding:18px;
  overflow:auto;
  max-height:none;
}
.source-content img,
.doc-content img,
.sheet-content img{max-width:100%;height:auto;}
.source-content table,
.doc-content table,
.sheet-content table{border-collapse:collapse;width:100%;margin:12px 0;}
.source-content td,.source-content th,
.doc-content td,.doc-content th,
.sheet-content td,.sheet-content th{border:1px solid #ccc;padding:8px;vertical-align:top;}
.source-content h1,.source-content h2,.source-content h3,
.doc-content h1,.doc-content h2,.doc-content h3,
.sheet-content h1,.sheet-content h2,.sheet-content h3{color:#111;}
.source-note{color:var(--muted);font-size:13px;margin:0 0 12px;}
@media(max-width:900px){
  .product-layout{display:block;}
  .product-side{position:sticky;top:0;z-index:15;display:flex;overflow-x:auto;gap:8px;border-radius:16px;margin:0 0 16px;padding:10px;}
  .product-tab{white-space:nowrap;width:auto;min-width:max-content;}
  .product-section{padding:18px;}
  .product-content{border-radius:20px;}
  .product-gallery,.product-info-grid{grid-template-columns:1fr;}
}


/* =========================================================
   PRODUCT IMAGE SUBMENU + SINGLE IMAGE VIEWER
   Images menu expands into Image 1-6. Selected image fills the main tile.
========================================================= */
.product-image-submenu{
  display:none;
  flex-direction:column;
  gap:6px;
  margin:2px 0 10px 12px;
  padding:0 0 0 10px;
  border-left:1px solid rgba(255,255,255,.14);
}
.product-side.images-open .product-image-submenu{display:flex;}
.product-image-tab{
  width:100%;
  display:block;
  text-align:left;
  border:1px solid transparent;
  background:rgba(255,255,255,.035);
  color:var(--muted);
  padding:10px 12px;
  border-radius:12px;
  font-weight:800;
  cursor:pointer;
}
.product-image-tab:hover,.product-image-tab.active{
  color:#fff;
  background:rgba(225,29,46,.16);
  border-color:rgba(225,29,46,.55);
}
.product-image-viewer{
  min-height:470px;
  width:100%;
  border-radius:20px;
  border:1px solid var(--line);
  background:#0d2545;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  box-shadow:0 16px 34px rgba(0,0,0,.30);
}
.product-image-viewer img{
  width:100%;
  height:100%;
  max-height:70vh;
  object-fit:contain;
  display:block;
}
.product-image-viewer .product-placeholder{
  width:100%;
  min-height:470px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
}
.product-photo:hover img{transform:none!important;}
@media(max-width:900px){
  .product-side.images-open .product-image-submenu{
    display:flex;
    flex-direction:row;
    margin:0;
    padding:0;
    border-left:0;
  }
  .product-image-tab{white-space:nowrap;width:auto;min-width:max-content;}
  .product-image-viewer,.product-image-viewer .product-placeholder{min-height:320px;}
}


/* =========================
   PRODUCT APPLICATION LISTS
========================= */
.appList{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
}
.appList li{
  line-height:1.55;
  color:rgba(255,255,255,.82);
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.035);
  border:1px solid rgba(255,255,255,.07);
}
.appList strong{
  color:#fff;
  font-weight:800;
}
.application-card{
  max-width:980px;
}
html{
  overflow-y:scroll;
}
/* === Final product guide tile polish === */
.cards.products .thumbSpace{
  border:0 !important;
  outline:0 !important;
  background:transparent !important;
  min-height:220px;
  height:220px;
  margin:4px 0 8px;
}
.cards.products .productThumb{
  width:220px;
  height:220px;
  max-width:92%;
  object-fit:contain;
}

/* =========================================================
   Final V1 consistency lock
   - keeps headers/nav/buttons consistent across desktop/mobile
   - locks dashboard/resource/product tile grid behaviour
   - hides editor-only public controls while retaining admin.html for V2
========================================================= */
:root{--line:rgba(255,255,255,.10);}
html,body{max-width:100%;overflow-x:hidden;}
.container{
  width:min(100% - 36px, 1180px) !important;
  max-width:1180px !important;
  margin-inline:auto !important;
  padding-left:0 !important;
  padding-right:0 !important;
}
#bw-global-header,.bw-site-header,.bw-header-inner{max-width:1180px;margin-inline:auto;}
.bw-header-inner{padding-left:0 !important;padding-right:0 !important;}
.bw-header-logo img,.bw-site-header .siteLogo{
  background:#fff;
  max-width:390px !important;
  width:min(390px,78vw) !important;
}
.bw-header-nav{gap:10px !important;}
.btn,.smallbtn,.orderMiniBtn,.orderScanBtn,.tax-btn{
  color:#fff !important;
  border-color:rgba(198,40,40,.45) !important;
  background:linear-gradient(180deg, rgba(198,40,40,.20), rgba(198,40,40,.08)) !important;
  box-shadow:0 8px 22px rgba(0,0,0,.22), 0 0 16px rgba(198,40,40,.12);
}
.btn:hover,.smallbtn:hover,.orderMiniBtn:hover,.orderScanBtn:hover,.tax-btn:hover{
  border-color:rgba(239,68,68,.62) !important;
  background:linear-gradient(180deg, rgba(198,40,40,.30), rgba(198,40,40,.14)) !important;
}
.bw-page-actions,[data-editor-only="1"]{display:none !important;}
.heroPanel,.browserHero,.card,.orderCard,.rackCard,.browserNav,.browserContent{
  max-width:100%;
  border-color:rgba(255,255,255,.10);
}
.heroPanel .subtitle,.browserHero .subtitle,.tileSub{text-align:center;}
.dashboardGrid,.tileGrid,.cards.products,.cards{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:18px;
  align-items:stretch;
}
.dashboardTile,.productCard,.card.tile,.cards > a.card{
  min-width:0;
  border-radius:18px;
}
.dashboardTile .menuLink,.menuTile .menuLink{
  min-height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  text-align:center;
}
.tileLabel,.productTitle{font-weight:950;text-align:center;}
.tileSub{color:var(--muted);line-height:1.45;margin:8px 0 0;}
img,video,canvas,iframe,table{max-width:100%;}
@media(max-width:980px){
  .dashboardGrid,.tileGrid,.cards.products,.cards{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media(max-width:640px){
  .container{width:min(100% - 24px,1180px) !important;}
  .dashboardGrid,.tileGrid,.cards.products,.cards{grid-template-columns:1fr;}
  .bw-header-nav{gap:8px !important;}
  .bw-site-header .btn,.bw-store-label{font-size:12px !important;padding:8px 10px !important;}
}

/* =========================================================
   BW LOGO BANNER — FINAL V1 GLOBAL ROLLOUT
   Applied by bw-header.js to every page using #bw-global-header.
   Outside blends with page, then: white / navy / white / red / logo.
========================================================= */
.bw-site-header .bw-header-logo.logoBanner{
  width:100% !important;
  max-width:1180px !important;
  margin:0 auto 6px !important;
  padding:22px 28px !important;
  box-sizing:border-box !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  background:#ffffff !important;
  border-radius:20px !important;
  text-decoration:none !important;
  box-shadow:
    inset 0 0 0 2px #ffffff,
    inset 0 0 0 5px #0f2f4a,
    inset 0 0 0 7px #ffffff,
    inset 0 0 0 10px #c62828,
    0 10px 24px rgba(0,0,0,.22) !important;
}
.bw-site-header .bw-header-logo.logoBanner img,
.bw-site-header .bw-header-logo.logoBanner .siteLogo{
  display:block !important;
  width:min(620px,72vw) !important;
  max-width:620px !important;
  height:auto !important;
  object-fit:contain !important;
  background:#ffffff !important;
}
@media (max-width:720px){
  .bw-site-header .bw-header-logo.logoBanner{
    padding:18px 20px !important;
    border-radius:18px !important;
  }
  .bw-site-header .bw-header-logo.logoBanner img,
  .bw-site-header .bw-header-logo.logoBanner .siteLogo{
    width:min(520px,78vw) !important;
  }
}
@media (max-width:420px){
  .bw-site-header .bw-header-logo.logoBanner{
    padding:16px 16px !important;
  }
  .bw-site-header .bw-header-logo.logoBanner img,
  .bw-site-header .bw-header-logo.logoBanner .siteLogo{
    width:min(420px,76vw) !important;
  }
}
