/* Shredgrade V6 Storefront & DIN 66399 / Binding Lab Stylesheet
   Visual World: Swiss Industrial Security-Lab & Print-Shop Precision
   Palette: Technical Paper (#f8fafc), Slate Wash (#eef2f7), Pure White (#ffffff),
            Security Cobalt (#1d4ed8 / #1e40af), DIN-P7 Emerald (#047857),
            Hazard Amber (#b45309 / #f59e0b), Charcoal Ink (#0f172a)
   Fonts: Space Grotesk (600/700), Plus Jakarta Sans (500-800), IBM Plex Mono (500/600)
   WCAG 2.1 Contrast: Ink #0f172a = 17.4:1, Mid #334155 = 10.3:1, Muted #475569 = 7.2:1 (AAA)
*/

:root {
  --paper: #f8fafc;
  --sheet: #ffffff;
  --panel: #eef2f7;
  --panel-deep: #e2e8f0;
  --card: #ffffff;
  --cobalt: #1d4ed8;
  --cobalt-deep: #1e3a8a;
  --cobalt-wash: #dbeafe;
  --emerald: #047857;
  --emerald-deep: #065f46;
  --emerald-wash: #d1fae5;
  --amber: #b45309;
  --amber-bright: #f59e0b;
  --amber-wash: #fef3c7;
  --sale: #be123c;
  --sale-wash: #ffe4e6;
  --navy-dark: #0f172a;

  --ink: #0f172a;
  --ink-mid: #334155;
  --ink-muted: #475569;
  --line: #cbd5e1;
  --line-strong: #94a3b8;
  --stamp: #047857;

  --display: "Space Grotesk", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --max-w: 1360px;
  --gutter: clamp(14px, 2.8vw, 38px);
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 4px 18px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 28px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html,
body {
  overflow-x: clip;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  background: var(--paper);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select {
  font: inherit;
  color: inherit;
}

.mono {
  font-family: var(--mono);
}

.fine, .small {
  font-size: 13px;
  color: var(--ink-muted);
}

.muted {
  color: var(--ink-muted);
}

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 12px 18px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  background: var(--cobalt);
  color: #ffffff;
  font-weight: 700;
}
.skip:focus {
  left: 12px;
}

/* Mandatory Hunter Thomas Feedback button rule: hidden until triggered */
#htfb-btn {
  display: none !important;
}
body.show-feedback #htfb-btn {
  display: inline-flex !important;
}

/* ---------------- Product photo wall ---------------- */
.shred-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: calc(100svh - 70px);
  background: var(--ink);
  color: var(--paper);
}
.photo-wall {
  position: absolute;
  inset: -24% -8%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-7deg);
  z-index: -2;
  pointer-events: none;
}
.wall-col { display: flex; flex-direction: column; animation: wall-drift 72s linear infinite; will-change: transform; }
.wall-col.wc1 { animation-duration: 84s; animation-direction: reverse; }
.wall-col.wc2 { animation-duration: 66s; }
.wall-col.wc3 { animation-duration: 88s; animation-direction: reverse; }
.wall-col.wc4 { animation-duration: 78s; }
.wall-group { display: flex; flex-direction: column; gap: 14px; padding-bottom: 14px; }
.wall-cell { display: block; aspect-ratio: 4 / 5; flex: none; overflow: hidden; border-radius: 12px; background: #fff; }
.wall-cell img { width: 100%; height: 100%; display: block; object-fit: contain; }
@keyframes wall-drift { to { transform: translateY(-50%); } }
.wall-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15,23,42,.68), rgba(15,23,42,.82) 40%, rgba(15,23,42,.96)),
    linear-gradient(110deg, rgba(30,58,138,.35), transparent);
}
.shred-hero .wall-copy { width: 100%; padding-top: 170px; padding-bottom: 42px; }
.shred-hero h1 { margin: 0; max-width: 100%; font-family: var(--display); font-size: clamp(72px, 8.6vw, 138px); line-height: .99; letter-spacing: -.055em; color: var(--paper); }
.shred-hero h1 em { font-style: normal; color: var(--cobalt-wash); }
.wall-sub { max-width: 52ch; font-size: 18px; line-height: 1.6; margin: 24px 0; color: var(--paper); }
.wall-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wall-actions .btn { min-height: 48px; }
.wall-actions .ghost { background: var(--ink); color: var(--paper); border-color: var(--paper); }
.wall-actions .ghost:hover { background: var(--paper); color: var(--ink); }
.wall-disclosure { max-width: 58ch; color: var(--paper); font-size: 12px; margin: 18px 0 0; }
.wall-disclosure a { color: inherit; text-decoration: underline; }
.home-catalog { padding: 20px 0; }
@media (max-width: 640px) {
  .shred-hero { min-height: calc(100svh - 62px); }
  .photo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -16% -22%; gap: 10px; }
  .wall-col.wc3, .wall-col.wc4 { display: none; }
  .wall-group { gap: 10px; padding-bottom: 10px; }
  .shred-hero .wall-copy { padding-top: 170px; padding-bottom: 28px; }
  .shred-hero h1 { font-size: clamp(39px, 12.4vw, 76px); line-height: 1.06; letter-spacing: -.045em; }
  .shred-hero h1 em { display: block; }
  .wall-sub { font-size: 16px; line-height: 1.55; margin: 20px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-col { animation: none; will-change: auto; }
}

/* ---------------- Masthead ---------------- */
.masthead {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1.5px solid var(--line);
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

.masthead-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  flex-shrink: 0;
}
.logo-crest {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(15, 23, 42, 0.16));
  transition: transform 0.18s ease;
}
.logo:hover .logo-crest {
  transform: translateY(-1px) scale(1.03);
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark b {
  color: var(--cobalt);
  font-weight: 700;
}
.wordmark-sub {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--ink-mid);
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover,
.nav a.active {
  background: var(--cobalt-wash);
  color: var(--cobalt-deep);
}
.nav a.nav-shop-pill {
  background: var(--cobalt);
  color: #ffffff;
  padding: 0 15px;
}
.nav a.nav-shop-pill:hover,
.nav a.nav-shop-pill.active {
  background: var(--cobalt-deep);
  color: #ffffff;
}
.nav a.nav-studio {
  color: var(--emerald-deep);
  background: var(--emerald-wash);
}
.nav a.nav-studio:hover,
.nav a.nav-studio.active {
  background: var(--emerald);
  color: #ffffff;
}
.nav a.nav-sale {
  color: var(--sale);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.util-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1.5px solid var(--line);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  transition: border-color 0.16s ease, background 0.16s ease;
}
.util-link:hover,
.util-link.active {
  border-color: var(--cobalt);
  background: var(--cobalt-wash);
  color: var(--cobalt-deep);
}
.util-link svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.saved-link svg {
  color: var(--cobalt);
}
.saved-link em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  background: var(--cobalt);
  color: #ffffff;
  border-radius: 999px;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  border: 0;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
}
.menu-ico {
  width: 16px;
  height: 11px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}
.menu-ico::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 3px;
  height: 2px;
  background: currentColor;
}

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(15, 23, 42, 0.58);
  display: flex;
  justify-content: flex-end;
}
.menu-sheet[hidden] {
  display: none;
}
.menu-panel {
  width: min(380px, 92vw);
  height: 100%;
  background: var(--paper);
  border-left: 2px solid var(--line-strong);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1.5px solid var(--line);
}
.menu-body {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}
.menu-body a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.menu-body a.active {
  color: var(--cobalt);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.14s ease;
}
.btn:hover {
  transform: translateY(-1px);
  border-color: var(--cobalt);
}
.btn.primary,
.btn.cobalt {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}
.btn.primary:hover,
.btn.cobalt:hover {
  background: var(--cobalt-deep);
  border-color: var(--cobalt-deep);
}
.btn.emerald {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}
.btn.emerald:hover {
  background: var(--emerald-deep);
  border-color: var(--emerald-deep);
}
.btn.amber {
  background: var(--amber-wash);
  border-color: #d97706;
  color: var(--ink);
}
.btn.ghost {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}
.btn.ghost:hover {
  background: var(--cobalt-wash);
  border-color: var(--cobalt);
  color: var(--cobalt-deep);
}
.btn.sm {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 13.5px;
}

/* ---------------- Product-First Hero & Integrated Feed (#home) ---------------- */
.shred-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.shred-hero-copy {
  flex: 1 1 320px;
  min-width: 0;
  max-width: 100%;
}

.shred-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.spec-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--emerald-wash);
  border: 1.5px solid var(--emerald);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--emerald-deep);
}

.hero-stat-pill {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-mid);
}
.hero-stat-pill a {
  color: var(--cobalt);
  text-decoration: underline;
}

.shred-hero-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.shred-hero-h em {
  font-style: normal;
  color: var(--cobalt);
}

.shred-hero-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 340px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}

.hero-search-box {
  position: relative;
  flex: 1 1 210px;
  min-width: 0;
  max-width: 100%;
}
.hero-search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--cobalt);
  stroke-width: 2.2;
  stroke-linecap: round;
  pointer-events: none;
}
.hero-search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px 0 38px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.hero-search-box input::placeholder {
  color: var(--ink-muted);
  font-weight: 500;
}
.hero-search-box input:focus {
  outline: 2px solid var(--cobalt);
  border-color: var(--cobalt);
}

#home-sort,
.sort-select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.hero-lab-btn {
  white-space: nowrap;
}

/* Filter Rail */
.shred-filter-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.cat-chip,
.toggle-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 6px 13px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1.5px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.cat-chip em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}
.cat-chip:hover,
.toggle-chip:hover {
  border-color: var(--cobalt);
  background: var(--cobalt-wash);
}
.cat-chip.active,
.cat-chip[aria-pressed="true"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}
.cat-chip.active em,
.cat-chip[aria-pressed="true"] em {
  color: #dbeafe;
}
.toggle-chip.active,
.toggle-chip[aria-pressed="true"] {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}
.toggle-chip.sale-chip.active,
.toggle-chip.sale-chip[aria-pressed="true"] {
  background: var(--sale);
  border-color: var(--sale);
  color: #ffffff;
}

.hero-live-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-muted);
}

/* ---------------- Retail Filter Bar & Slide-Up Drawer ---------------- */
body.flt-drawer-open {
  overflow: hidden;
}

.flt-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 0 14px;
}

.flt-desk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid var(--line);
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}

.flt-mob {
  display: none;
}

.flt-search-wrap {
  position: relative;
  flex: 1 1 210px;
  min-width: 170px;
  max-width: 100%;
}

.flt-search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--cobalt);
  pointer-events: none;
}

.flt-search-wrap input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 36px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.flt-search-wrap input::placeholder {
  color: var(--ink-muted);
  font-weight: 500;
}

.flt-search-wrap input:focus {
  outline: 2px solid var(--cobalt);
  border-color: var(--cobalt);
}

.flt-select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 44px;
  padding: 0 32px 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%230f172a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.flt-select:hover,
.flt-select:focus {
  border-color: var(--cobalt);
}

.flt-select.is-active {
  border-color: var(--cobalt);
  background-color: var(--cobalt-wash);
  color: var(--cobalt-deep);
}

.flt-full-select {
  width: 100%;
  border-radius: var(--radius-sm);
}

.flt-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.flt-toggle:hover {
  border-color: var(--cobalt);
  background: var(--cobalt-wash);
}

.flt-toggle.active {
  background: var(--emerald);
  border-color: var(--emerald);
  color: #ffffff;
}

.flt-toggle.sale-toggle.active {
  background: var(--sale);
  border-color: var(--sale);
  color: #ffffff;
}

.flt-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px dashed var(--cobalt);
  background: transparent;
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.flt-clear:hover {
  background: var(--cobalt-wash);
}

.flt-drawer {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(15, 23, 42, 0.56);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.flt-drawer[hidden] {
  display: none !important;
}

.flt-drawer-panel {
  width: min(560px, 100%);
  max-height: 88vh;
  background: var(--paper);
  border-top: 2px solid var(--cobalt);
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 34px rgba(15, 23, 42, 0.24);
  overflow: hidden;
}

.flt-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--card);
  border-bottom: 1.5px solid var(--line);
}

.flt-drawer-head h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
}

.flt-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
}

.flt-drawer-body {
  padding: 16px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.flt-sec {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flt-sec-lbl {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

.flt-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.flt-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.flt-chip.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}

.flt-chip.sale-chip.active {
  background: var(--sale);
  border-color: var(--sale);
  color: #ffffff;
}

.flt-drawer-foot {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  background: var(--card);
  border-top: 1.5px solid var(--line);
}

/* ---------------- Integrated Editorial & Shopping Feed Posts ---------------- */
.feed-sentinel {
  width: 100%;
  height: 4px;
}

.ifd-post {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-card);
  min-width: 0;
  max-width: 100%;
}

.ifd-post-planner {
  background:
    radial-gradient(circle at 92% 18%, rgba(4, 120, 87, 0.10), transparent 44%),
    linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  border-color: #86efac;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.ifd-planner-copy {
  flex: 1 1 420px;
  min-width: 0;
}

.ifd-planner-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ifd-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.ifd-title {
  margin: 2px 0 0;
  font-family: var(--display);
  font-size: clamp(1.18rem, 1.85vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

.ifd-title a:hover {
  color: var(--cobalt);
}

.ifd-dek {
  margin: 8px 0 12px;
  max-width: 66ch;
  font-size: 14.5px;
  color: var(--ink-mid);
}

.ifd-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ifd-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--emerald-wash);
  border: 1px solid #6ee7b7;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-deep);
}

.ifd-vid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ifd-vid-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}

.ifd-vid-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
}

.ifd-vid-stage iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ifd-vid-trig {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: var(--navy-dark);
  cursor: pointer;
  display: block;
}

.ifd-vid-trig img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ifd-play-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}

.ifd-vid-meta {
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ifd-vid-creator {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--cobalt);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ifd-vid-meta h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 14.5px;
  line-height: 1.3;
  color: var(--ink);
}

.ifd-post-kit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 100%);
  border-color: #93c5fd;
}

.ifd-kit-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.ifd-kit-price {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--ink-mid);
}

.ifd-kit-price b {
  color: var(--ink);
  font-size: 16px;
}

.ifd-cta-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ifd-kit-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.ifd-kit-tile {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.ifd-kit-tile:hover {
  border-color: var(--cobalt);
  transform: translateY(-1px);
}

.ifd-kit-tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.ifd-kit-tile span {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-mid);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ifd-brand-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ifd-brand-mini {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.ifd-brand-mini h3 {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 16.5px;
}

/* ---------------- Product Grid & Cards ---------------- */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.pcard:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--cobalt);
}

.pcard-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 12px;
  border-bottom: 1px solid var(--panel);
  display: flex;
  align-items: center;
  justify-content: center;
}
.pcard-stage > a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
.pcard-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pcard-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  pointer-events: none;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}
.badge-din {
  background: var(--ink);
  color: #ffffff;
}
.badge-nsa {
  background: var(--emerald);
  color: #ffffff;
}
.badge-duty {
  background: var(--cobalt-wash);
  color: var(--cobalt-deep);
  border: 1px solid #93c5fd;
}
.badge-sale {
  background: var(--sale);
  color: #ffffff;
}
.badge-class {
  background: var(--panel);
  color: var(--ink-mid);
  border: 1px solid var(--line);
}

.save-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}
.save-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.save-btn:hover {
  border-color: var(--cobalt);
  color: var(--cobalt);
}
.save-btn.on {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}
.save-btn.on svg {
  fill: currentColor;
}

.pcard-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
}
.pcard-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.pcard-brand {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cobalt);
}
.pcard-cat {
  font-size: 12px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pcard-title {
  margin: 0;
  font-family: var(--display);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.28;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-title a:hover {
  color: var(--cobalt);
}
.pcard-quote {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.42;
  color: var(--ink-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pcard-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.sz-pill {
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--panel);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mid);
}

.pcard-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.price-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.price-now {
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}
.price-was {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
  text-decoration: line-through;
}
.store-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.15s ease;
}
.store-go:hover {
  background: var(--cobalt);
}

/* ---------------- Section Headers & Bands ---------------- */
.sec {
  padding: 36px 0;
}
.sec-alt {
  background: var(--panel);
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cobalt);
  margin-bottom: 4px;
}
.sec-title,
.page-head h1 {
  font-family: var(--display);
  font-size: clamp(1.45rem, 2.3vw, 2.05rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
}
.page-head {
  padding: 28px 0 18px;
}
.lede {
  margin: 8px 0 0;
  max-width: 68ch;
  font-size: 16px;
  color: var(--ink-mid);
}

/* ---------------- Home Interactive DIN & Spine Preview Band ---------------- */
.home-lab-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 20px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.mini-din-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}
.mini-lvl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
}
.mini-lvl-btn span {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
}
.mini-lvl-btn.active {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}
.mini-lvl-btn.active span {
  color: #dbeafe;
}
.home-din-stage {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
}
.home-spine-box {
  background: var(--paper);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

/* ---------------- #compliance-lab (DIN 66399 & Binding Lab) ---------------- */
.lab-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.din-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.lvl-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.lvl-card.on {
  border-color: var(--cobalt);
  box-shadow: 0 0 0 2px var(--cobalt-wash);
}
.lvl-card .p {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--cobalt);
}
.lvl-card .draw {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px;
}
.lvl-card .k {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}
.lvl-card .v {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.lvl-card .ex {
  font-size: 12.5px;
  color: var(--ink-mid);
  margin-top: auto;
}

.lab-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 22px;
  align-items: start;
}
.q-panel,
.ans-panel,
.bind-panel {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.q-step {
  margin-bottom: 18px;
}
.q-step:last-child {
  margin-bottom: 0;
}
.q-step h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--cobalt);
}
.chip[aria-pressed="true"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}
.chip .lv {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.08);
}
.chip[aria-pressed="true"] .lv {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.ans-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.stamp {
  min-width: 84px;
  min-height: 84px;
  padding: 10px;
  border-radius: var(--radius-md);
  border: 2.5px solid var(--emerald);
  background: var(--emerald-wash);
  color: var(--emerald-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-shrink: 0;
}
.stamp .big {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.05;
}
.stamp .sm {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.law-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.law {
  background: var(--paper);
  border-left: 3.5px solid var(--cobalt);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 8px 0;
  font-size: 13.5px;
}
.law b {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
}
.law q {
  display: block;
  font-style: italic;
  color: var(--ink-mid);
  margin-bottom: 4px;
}
.src {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--cobalt-wash);
  color: var(--cobalt-deep);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.cutbox {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  margin: 12px 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.ans-count {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

/* Bench Reference Cards & Sortable Table */
.bench-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 14px;
}
.bench-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bench-card.best {
  border-color: var(--emerald);
  box-shadow: 0 0 0 2px var(--emerald-wash);
}
.bench-flag {
  align-self: flex-start;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.bench-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.bench-head h4 {
  margin: 2px 0;
  font-family: var(--display);
  font-size: 17px;
}
.pbadge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 700;
}
.specs-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
  margin: 0;
  font-size: 13px;
}
.specs-dl dt {
  color: var(--ink-muted);
  font-size: 12px;
}
.specs-dl dd {
  margin: 0;
  font-family: var(--mono);
  font-weight: 600;
}
.fit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tick {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--panel);
  font-size: 12px;
  font-weight: 600;
}
.tick.ok {
  background: var(--emerald-wash);
  color: var(--emerald-deep);
}
.tick.no {
  background: var(--sale-wash);
  color: var(--sale);
}
.bench-price {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--panel);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.bench-price .amt {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
}
.bench-buy {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.bench-buy a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  font-size: 13px;
  font-weight: 700;
}
.bench-buy a.first {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}
.misses-box {
  margin-top: 16px;
  padding: 16px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  font-size: 13.5px;
}

/* Sortable Reference Table */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
}
.spec-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.spec-table th,
.spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--panel-deep);
  text-align: left;
  vertical-align: top;
}
.spec-table th.r,
.spec-table td.r {
  text-align: right;
}
.spec-table td.num {
  font-family: var(--mono);
  font-size: 13px;
}
.spec-table th button {
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}
.spec-table th button[aria-sort="ascending"]::after { content: " \2191"; color: var(--cobalt); }
.spec-table th button[aria-sort="descending"]::after { content: " \2193"; color: var(--cobalt); }

/* Binding Spine Sizer */
.bind-controls {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-mid);
}
.field input,
.field select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-weight: 600;
}
.size-toggle {
  display: flex;
  gap: 6px;
}
.size-toggle button {
  flex: 1;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-weight: 700;
  cursor: pointer;
}
.size-toggle button[aria-pressed="true"] {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
}
.caliper-bar {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--cobalt-wash);
  color: var(--ink);
  font-size: 14.5px;
  margin-bottom: 16px;
}
.style-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.style-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--line);
  background: var(--paper);
}
.style-row h4 {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 16px;
}
.style-row .size {
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--cobalt);
}
.style-row .size.off {
  font-size: 14px;
  color: var(--sale);
}
.meter {
  height: 10px;
  border-radius: 999px;
  background: var(--panel-deep);
  overflow: hidden;
  margin-bottom: 6px;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--emerald);
  border-radius: 999px;
}
.meter span.tight {
  background: var(--amber-bright);
}
.style-traits {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* ---------------- Shop Toolbar, Kits, Brands, Videos, PDP ---------------- */
.shop-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}
.shop-bar input[type="search"] {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
}
.shop-bar select {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--paper);
  font-weight: 600;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.kit-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-card);
}
.kit-mosaic,
.brand-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.kit-mosaic img,
.brand-mosaic img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--panel-deep);
  border-radius: 6px;
  padding: 4px;
}
.kit-card h3,
.brand-card h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 17.5px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.brand-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}
.rc-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.rc-stat {
  padding: 8px 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.rc-stat b {
  display: block;
  font-family: var(--mono);
  font-size: 16px;
  color: var(--cobalt);
}
.rc-stat span {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Videos & Creators */
.player-stage {
  background: var(--navy-dark);
  color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
}
.player-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}
.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.player-meta {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.vcard {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.vthumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-dark);
  border: 0;
  padding: 0;
  width: 100%;
  cursor: pointer;
}
.vthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vplay-pill {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
}
.vbody {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vbody h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 15px;
  line-height: 1.32;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.creator-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.soc-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.soc-ico-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--soc, var(--cobalt));
  color: var(--soc-on, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.soc-ico-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Detail Page */
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 28px;
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.detail-photo {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--panel-deep);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.spec-callout {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--panel);
  border-left: 4px solid var(--cobalt);
}

/* Legal & Trust Pages */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.legal-card {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
}
.legal-card h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 18px;
}
.legal-card a {
  color: var(--cobalt);
  text-decoration: underline;
}
.partners-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 20px;
  align-items: start;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-list details {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}
.faq-list summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
}
.remove-box {
  background: var(--cobalt-wash);
  border: 2px solid var(--cobalt);
  border-radius: var(--radius-md);
  padding: 22px;
}
.remove-box h2 {
  font-family: var(--display);
  margin: 0 0 10px;
}

.empty-box {
  background: var(--card);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: 32px 22px;
  text-align: center;
}
.more-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 150;
  background: var(--ink);
  color: #ffffff;
  border: 2px solid var(--emerald);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------- Footer ---------------- */
.foot {
  margin-top: 56px;
  background: var(--navy-dark);
  color: #f1f5f9;
  border-top: 4px solid var(--cobalt);
  padding: 44px 0 40px;
}
.foot .wordmark {
  color: #ffffff;
}
.foot .wordmark b {
  color: #60a5fa;
}
.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 34px;
}
.foot-tag {
  margin: 12px 0;
  max-width: 52ch;
  color: #cbd5e1;
  font-size: 15px;
}
.foot-fine {
  font-size: 13.5px;
  color: #94a3b8;
  max-width: 56ch;
}
.foot-fee {
  font-size: 13.5px;
  color: #6ee7b7;
  font-weight: 700;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.foot-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.foot-col-title {
  font-family: var(--mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
  font-weight: 600;
  margin-bottom: 6px;
}
.foot-col a,
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #f1f5f9;
  cursor: pointer;
}
.foot-col a:hover,
.foot-link:hover {
  color: #93c5fd;
}
.foot-fb-dot {
  align-self: flex-start;
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  color: #64748b;
  cursor: pointer;
}

/* ---------------- Responsive Breakpoints ---------------- */
@media (max-width: 1140px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .home-lab-band,
  .lab-shell,
  .detail-grid,
  .partners-wrap,
  .foot-inner {
    grid-template-columns: 1fr;
  }
  .din-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .prod-grid,
  .kit-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bench-grid,
  .law-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bind-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .brand-grid,
  .video-grid,
  .creator-grid,
  .legal-grid,
  .bench-grid,
  .law-grid {
    grid-template-columns: 1fr;
  }
  .prod-grid,
  .kit-grid,
  .din-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rc-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .style-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .style-traits {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .hide-sm {
    display: none;
  }
  .shred-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .shred-hero-copy,
  .shred-hero-controls {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
  }
  .hero-search-box {
    flex: 1 1 100%;
    width: 100%;
  }
  .ifd-post-kit,
  .ifd-vid-pair,
  .ifd-brand-pair {
    grid-template-columns: 1fr;
  }
  .ifd-kit-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .flt-desk {
    display: none;
  }
  .flt-mob {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .flt-mob .flt-search-wrap {
    flex: 1 1 auto;
    min-width: 0;
  }
  .flt-mob-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    width: 100%;
  }
  .flt-open-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--line-strong);
    background: var(--card);
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    min-width: 0;
  }
  .flt-open-btn.has-active {
    border-color: var(--cobalt);
    background: var(--cobalt-wash);
    color: var(--cobalt-deep);
  }
  .flt-badge {
    font-style: normal;
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--cobalt);
    color: #ffffff;
  }
  .flt-mob-sort {
    width: 100%;
    border-radius: var(--radius-sm);
  }
  .flt-mob-clear-row {
    display: flex;
    justify-content: flex-end;
  }
  .hero-cta-wrap {
    display: none;
  }
  .pcard-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }
  .store-go {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .pcard-cat {
    display: none;
  }
}

@media (max-width: 640px) {
  .masthead-inner {
    gap: 6px;
    min-height: 60px;
  }
  .logo {
    flex: 0 1 auto;
    min-width: 0;
    gap: 8px;
  }
  .logo-crest {
    width: 36px;
    height: 36px;
  }
  .masthead .wordmark {
    font-size: 19px;
  }
  .wordmark-sub {
    display: none;
  }
  .top-actions {
    gap: 4px;
    flex: none;
  }
  .util-link[href="#search"] {
    display: none;
  }
  .util-link {
    min-width: 44px;
    justify-content: center;
    padding: 0 8px;
    gap: 4px;
  }
  .menu-btn {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .menu-btn > span:not(.menu-ico) {
    display: none;
  }
  select,
  input {
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 540px) {
  .kit-grid,
  .bind-controls,
  .foot-cols {
    grid-template-columns: 1fr;
  }
  .mini-din-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .pcard-stage {
    padding: 8px;
  }
  .pcard-body {
    padding: 10px;
  }
  .pcard-title {
    font-size: 14px;
  }
  .pcard-quote,
  .pcard-sizes {
    display: none;
  }
  .price-now {
    font-size: 15.5px;
  }
  .store-go {
    padding: 0 10px;
    font-size: 12.5px;
  }
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .shred-filter-rail {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
  }
  .hero-live-count {
    display: none;
  }
  .home-din-stage {
    flex-direction: column;
    align-items: flex-start;
  }
  .ifd-post {
    padding: 15px 14px;
  }
}

@media (max-width: 374px) {
  .wrap {
    padding: 0 10px;
  }
  .masthead .wordmark {
    font-size: 17px;
  }
  .logo-crest {
    width: 32px;
    height: 32px;
  }
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .din-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .masthead, .foot, .toast, .save-btn {
    display: none !important;
  }
  body {
    background: #ffffff;
    color: #000000;
  }
}

/* Show complete model names and keep badges below product photos. */
.pcard-title { display: block; -webkit-line-clamp: unset; max-height: none; height: auto; overflow: visible; overflow-wrap: anywhere; }
.pcard-badges { position: static; display: flex; flex-wrap: wrap; margin-bottom: 8px; }
@media (max-width: 640px) {
  .ifd-vid-stage { max-height: 180px; }
  .ifd-vid-trig, .ifd-vid-stage iframe { max-height: 180px; }
  .vcard .vthumb { max-height: 160px; }
}
