/* ==========================================================================
   PedalRail Bespoke Boutique Stompbox Showroom & Studio Rack Stylesheet
   Palette: Amp Tolex (#101012), Brushed Brass Faceplate (#d4a853),
   Tube-Glow Amber (#f59e0b), Tweed Linen (#f5f1e8), Crisp Studio Card (#ffffff),
   Jewel Oxblood (#b91c1c), Headroom Emerald (#1f7a53).
   Typography: Bricolage Grotesque 800, DM Sans, JetBrains Mono.
   ========================================================================== */

:root {
  --tolex: #101012;
  --tolex-raised: #17181c;
  --tolex-panel: #1e2026;
  --tolex-line: #2c2f38;
  --brass: #d4a853;
  --brass-deep: #785312;
  --brass-pale: #edd39c;
  --amber: #f59e0b;
  --tweed: #f5f1e8;
  --tweed-alt: #ebe4d6;
  --card: #ffffff;
  --ink: #121316;
  --ink-soft: #3a3731;
  --ink-muted: #524e46;
  --line: #dcd4c4;
  --line-strong: #c6bba6;
  --oxblood: #a61919;
  --oxblood-dark: #451212;
  --emerald: #186846;
  --emerald-dark: #132e22;
  --radius-sm: 5px;
  --radius-md: 9px;
  --radius-lg: 14px;
  --shadow-card: 0 10px 28px rgba(16, 16, 18, 0.07), 0 2px 6px rgba(16, 16, 18, 0.04);
  --shadow-rack: 0 20px 46px rgba(10, 10, 12, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --font-display: "Bricolage Grotesque", system-ui, -apple-system, sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--tweed);
  color: var(--ink);
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

/* Feedback widget hidden unless explicitly toggled */
#htfb-btn {
  display: none !important;
}
body.show-feedback #htfb-btn {
  display: inline-flex !important;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--brass);
  color: var(--tolex);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  z-index: 400;
}
.skip:focus {
  left: 14px;
}

.wrap {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--brass-deep);
  margin-bottom: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}
.eyebrow.brass {
  color: var(--brass);
}
.eyebrow.amber {
  color: var(--amber);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0 0 10px;
  line-height: 1.06;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.55rem, 2.7vw, 2.25rem);
  font-weight: 800;
}
h3 {
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.25;
}

.lede {
  font-size: 1.06rem;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 66ch;
  margin: 0 0 20px;
}

.fine {
  font-size: 0.84rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Architectural Top Header (Zero Pastel Pills)
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(16, 16, 18, 0.97);
  backdrop-filter: blur(10px);
  color: #f5f1e8;
  border-bottom: 1px solid rgba(212, 168, 83, 0.38);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  min-height: 44px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #f5f1e8;
}
.wordmark b {
  color: var(--brass);
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  position: relative;
  text-decoration: none;
  min-height: 68px;
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #d6d0c4;
  transition: color 0.16s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.nav a:hover,
.nav a.active {
  color: #ffffff;
}
.nav a.active::after,
.nav a:hover::after {
  transform: scaleX(1);
}

.nav a.nav-accent {
  color: var(--brass);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  background: transparent;
  border: 1px solid var(--tolex-line);
  border-radius: var(--radius-sm);
  color: #e8e2d5;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease;
}
.top-demo-btn:hover {
  border-color: var(--brass);
  color: #ffffff;
  background: rgba(212, 168, 83, 0.08);
}

.tube-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 9px var(--amber);
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tolex-line);
  border-radius: var(--radius-sm);
  color: #e8e2d5;
  text-decoration: none;
  transition: border-color 0.16s ease, color 0.16s ease;
}
.icon-btn:hover {
  border-color: var(--brass);
  color: var(--brass);
}
.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.board-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(212, 168, 83, 0.45);
  border-radius: var(--radius-sm);
  background: rgba(212, 168, 83, 0.08);
  color: #f5f1e8;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 0.16s ease, border-color 0.16s ease;
}
.board-link:hover {
  background: rgba(212, 168, 83, 0.18);
  border-color: var(--brass);
}
.board-link em {
  font-style: normal;
  color: var(--brass);
  font-weight: 700;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--tolex-line);
  background: var(--tolex-raised);
  color: #ffffff;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.menu-bars {
  width: 16px;
  height: 2px;
  background: var(--brass);
  position: relative;
  display: inline-block;
}
.menu-bars::before,
.menu-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: var(--brass);
}
.menu-bars::before {
  top: -5px;
}
.menu-bars::after {
  top: 5px;
}

/* ==========================================================================
   Buttons & Inputs
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.btn:active {
  transform: translateY(1px);
}
.btn.sm {
  min-height: 40px;
  padding: 7px 14px;
  font-size: 0.83rem;
}
.btn.brass {
  background-color: #dfb664;
  background-image: linear-gradient(180deg, #dfb664 0%, #c9993e 100%);
  color: #101012;
  border-color: #e4be70;
  box-shadow: 0 4px 16px rgba(212, 168, 83, 0.25);
}
.btn.brass:hover {
  background-color: #e7c276;
  background-image: linear-gradient(180deg, #e7c276 0%, #d4a853 100%);
}
.btn.primary {
  background: var(--tolex);
  color: #f5f1e8;
  border-color: var(--tolex);
}
.btn.primary:hover {
  background: #23252d;
  border-color: var(--brass);
}
.btn.hero-outline {
  background: rgba(16, 16, 18, 0.55);
  color: #f5f1e8;
  border-color: rgba(245, 241, 232, 0.55);
}
.btn.hero-outline:hover {
  border-color: var(--brass);
  color: var(--brass);
  background: rgba(16, 16, 18, 0.85);
}
.btn.ghost {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  border-color: var(--tolex);
}
.btn.ghost-light {
  background: var(--tolex-panel);
  color: #f5f1e8;
  border-color: #383c47;
}
.btn.ghost-light:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.inp {
  min-height: 44px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--card);
  color: var(--ink);
  font-size: 0.9rem;
}
.inp:focus {
  outline: 2px solid var(--brass);
  outline-offset: 1px;
}
.dark-inp {
  background: #14161b;
  color: #f5f1e8;
  border-color: #363a45;
}

/* ==========================================================================
   Full-Bleed Top-Down Boutique Stompbox Wall Hero (1440x960 Flagship)
   ========================================================================== */
.stomp-hero {
  position: relative;
  background: var(--tolex);
  color: #f5f1e8;
  overflow: hidden;
  border-bottom: 3px solid var(--brass);
}

/* Subtle Marshall/Fender amp tolex micro-texture */
.stomp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(rgba(212, 168, 83, 0.08) 1px, transparent 1px),
    radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0, 12px 12px;
  pointer-events: none;
  z-index: 1;
}

.stomp-wall-stage {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
}

/* Tilted Top-Down Stompbox Showroom Wall */
.stomp-wall {
  position: absolute;
  top: -28px;
  right: -34px;
  width: 67%;
  min-width: 820px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 13px;
  transform: rotate(-5deg);
  z-index: 2;
  opacity: 0.98;
}

.wall-tile {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 9px;
  padding: 10px 10px 8px;
  text-decoration: none;
  border: 2px solid rgba(212, 168, 83, 0.48);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.55);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.wall-tile:nth-child(even) {
  transform: translateY(18px);
}
.wall-tile:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: var(--amber);
  box-shadow: 0 22px 42px rgba(0, 0, 0, 0.72), 0 0 0 2px rgba(245, 158, 11, 0.45);
  z-index: 5;
}

.wall-tile::before,
.wall-tile::after {
  content: "";
  position: absolute;
  top: 6px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #c5bba8;
}
.wall-tile::before {
  left: 6px;
}
.wall-tile::after {
  right: 6px;
}

.wall-tile img {
  width: 100%;
  height: auto;
  max-height: 158px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.wall-tile-foot {
  margin-top: 6px;
  padding-top: 5px;
  border-top: 1px solid #ece6da;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #262420;
  white-space: nowrap;
  overflow: hidden;
}
.wall-tile-foot span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.wall-tile-foot b {
  color: var(--brass-deep);
  flex-shrink: 0;
}

/* Crisp Studio Gradient Scrim protecting monumental left typography */
.stomp-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(92deg, #101012 0%, #101012 28%, rgba(16, 16, 18, 0.85) 43%, rgba(16, 16, 18, 0.22) 62%, rgba(16, 16, 18, 0.06) 100%),
    linear-gradient(180deg, rgba(16, 16, 18, 0.28) 0%, rgba(16, 16, 18, 0) 24%, rgba(16, 16, 18, 0.72) 100%);
  pointer-events: none;
  z-index: 3;
}

.stomp-hero-content {
  position: relative;
  z-index: 4;
  width: 100%;
  padding: 64px 0 54px;
}

.hero-copy-box {
  max-width: 650px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  border: 1px solid rgba(212, 168, 83, 0.45);
  background: rgba(24, 25, 30, 0.86);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(3.3rem, 6.6vw, 5.65rem);
  font-weight: 800;
  line-height: 0.93;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: #fbf9f4;
  margin: 0 0 20px;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.hero-headline em {
  font-style: normal;
  display: block;
  color: var(--brass);
}

.hero-subcopy {
  font-size: 1.12rem;
  line-height: 1.58;
  color: #ded8cc;
  max-width: 52ch;
  margin: 0 0 26px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-disclosure {
  font-size: 0.79rem;
  color: #a9a295;
  margin: 0;
}
.hero-disclosure a {
  color: #d6cfc2;
  font-weight: 600;
}

/* Brushed Marshall Faceplate Builder Bar */
.builder-faceplate-bar {
  position: relative;
  z-index: 4;
  background-color: #16171c;
  background-image: linear-gradient(180deg, #1a1b20 0%, #121317 100%);
  border-top: 1px solid rgba(212, 168, 83, 0.35);
  border-bottom: 2px solid var(--brass);
  padding: 11px 0;
}

.builder-bar-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.builder-bar-inner::-webkit-scrollbar {
  display: none;
}

.builder-bar-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brass);
  white-space: nowrap;
  padding-right: 10px;
  border-right: 1px solid #30333d;
}

.builder-pill {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid #2d303a;
  color: #e7e1d5;
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.builder-pill:hover {
  border-color: var(--brass);
  color: var(--brass);
  background: rgba(212, 168, 83, 0.1);
}

/* ==========================================================================
   Editorial Sections & Category Lanes
   ========================================================================== */
.section-block {
  padding: 46px 0;
}
.section-block + .section-block {
  border-top: 1px solid var(--line);
}

.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.sec-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  max-width: 62ch;
}

.cat-lanes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 26px;
}

.cat-lane-btn {
  text-align: left;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--tolex);
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.cat-lane-btn:hover {
  transform: translateY(-2px);
  border-top-color: var(--brass);
  border-color: var(--brass-deep);
}
.cat-lane-btn span.mono {
  display: block;
  font-size: 0.75rem;
  color: var(--brass-deep);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.cat-lane-btn strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
}

/* ==========================================================================
   Boutique Stompbox Product Cards (Crisp White Studio Contrast)
   ========================================================================== */
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.prod-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.prod-card:hover {
  transform: translateY(-3px);
  border-color: var(--brass-deep);
  box-shadow: 0 16px 34px rgba(16, 16, 18, 0.11);
}
.prod-card.is-oos {
  opacity: 0.78;
}

.prod-img-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 14px;
  border-bottom: 1px solid #ece6da;
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-img-link {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.prod-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.24s ease;
}
.prod-card:hover .prod-img-wrap img {
  transform: scale(1.035);
}

.prod-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
  pointer-events: none;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
}
.badge.deal {
  background: var(--oxblood);
  color: #ffffff;
}
.badge.stock {
  background: var(--tolex);
  color: var(--brass-pale);
}
.badge.oos {
  background: #e5dfd3;
  color: #524e46;
}

.save-btn {
  position: absolute;
  bottom: 10px;
  right: 10px;
  min-height: 36px;
  padding: 5px 11px;
  border-radius: 4px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.save-btn:hover {
  border-color: var(--tolex);
}
.save-btn.on {
  background: var(--tolex);
  color: var(--brass);
  border-color: var(--brass);
}

.prod-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.prod-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.prod-meta .draw-pill {
  background: var(--tweed);
  color: var(--ink-soft);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid var(--line);
  text-transform: none;
  flex-shrink: 0;
}

.prod-title {
  font-size: 0.98rem;
  line-height: 1.3;
  margin: 0 0 7px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-title a {
  text-decoration: none;
}
.prod-title a:hover {
  color: var(--brass-deep);
}

.prod-excerpt {
  font-size: 0.85rem;
  line-height: 1.48;
  color: var(--ink-soft);
  margin: 0 0 14px;
}

.prod-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--tweed-alt);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.price-block {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
}
.comp {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ==========================================================================
   Tactile 19-Inch Brushed-Metal Studio Rack Gear (Interactive Tools)
   ========================================================================== */
.rack-suite-banner {
  background-color: #141519;
  background-image: linear-gradient(135deg, #17181d 0%, #101012 100%);
  color: #f5f1e8;
  border: 1px solid #2e313b;
  border-left: 4px solid var(--brass);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  margin-bottom: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.rack-suite-banner h2 {
  color: #ffffff;
  margin-bottom: 4px;
}
.rack-suite-banner p {
  margin: 0;
  color: #c9c3b6;
  max-width: 66ch;
}

.tools-stack {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.tool-card {
  position: relative;
  background: #15161b;
  color: #f5f1e8;
  border: 2px solid #2d303a;
  border-radius: 10px;
  padding: 26px 32px;
  box-shadow: var(--shadow-rack);
}

/* 19-inch Studio Rack Ear Bolts on Left & Right Rails */
.tool-card::before,
.tool-card::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 8px;
  background-image:
    radial-gradient(circle, #6d717d 2.5px, #23262e 3px, transparent 3.5px),
    radial-gradient(circle, #6d717d 2.5px, #23262e 3px, transparent 3.5px);
  background-size: 8px 100%;
  background-position: 0 6px, 0 calc(100% - 6px);
  background-repeat: no-repeat;
  opacity: 0.75;
  pointer-events: none;
}
.tool-card::before {
  left: 9px;
}
.tool-card::after {
  right: 9px;
}

/* Brushed Marshall Gold Faceplate Header Strip inside Rack Units */
.rack-faceplate {
  background-color: #211d16;
  background-image: linear-gradient(90deg, rgba(212, 168, 83, 0.17) 0%, rgba(212, 168, 83, 0.05) 65%, rgba(245, 158, 11, 0.1) 100%);
  border: 1px solid rgba(212, 168, 83, 0.36);
  border-radius: 7px;
  padding: 16px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.rack-faceplate h2 {
  color: #fbf8f1;
  font-size: clamp(1.3rem, 2.2vw, 1.72rem);
  margin: 0 0 4px;
}

.tool-sub {
  margin: 0;
  font-size: 0.91rem;
  color: #cac4b7;
  max-width: 72ch;
}

.tool-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Tool 01: Isolated Power Supply mA & Voltage Budgeter */
.pwr-brick-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 13px 16px;
  background: #1d1f26;
  border: 1px solid #303440;
  border-radius: 7px;
}
.pwr-brick-bar label {
  color: var(--brass);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}
.pwr-brick-bar select {
  flex: 1;
  min-width: 240px;
}

.pwr-meter {
  background: #101115;
  border: 1px solid #2c303b;
  border-radius: 7px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.pwr-meter-top {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 9px;
  color: #e6e0d4;
}
.pwr-meter-top b {
  color: var(--brass);
}

.meter-track {
  height: 14px;
  background: repeating-linear-gradient(
    90deg,
    #23262f 0px,
    #23262f 14px,
    #14161b 14px,
    #14161b 17px
  );
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid #323642;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #1f7a53 0%, #34b37c 100%);
  transition: width 0.22s ease;
}
.meter-fill.tight {
  background: linear-gradient(90deg, #d4a853 0%, #f59e0b 100%);
}
.meter-fill.over {
  background: linear-gradient(90deg, #b91c1c 0%, #ef4444 100%);
}

.alert-box {
  padding: 13px 16px;
  border-radius: 6px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}
.alert-box ul {
  margin: 6px 0 0;
  padding-left: 18px;
}
.oxblood-alert {
  background: var(--oxblood-dark);
  border: 1px solid #dc2626;
  color: #fee2e2;
}
.ok-alert {
  background: var(--emerald-dark);
  border: 1px solid #2b9467;
  color: #d1fae5;
}

.pwr-slots {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pwr-slot {
  display: grid;
  grid-template-columns: 48px 1.7fr 116px 136px 164px 42px;
  gap: 9px;
  align-items: center;
  background: #1c1e25;
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid #2e323e;
}
.pwr-slot.slot-alert {
  border-color: #ef4444;
  background: #2c1517;
}

.slot-idx {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  border-radius: 4px;
  background: rgba(212, 168, 83, 0.14);
  border: 1px solid rgba(212, 168, 83, 0.35);
  color: var(--brass);
  font-weight: 700;
}

.status-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 4px;
  text-align: center;
}
.status-tag.ok {
  background: #153325;
  color: #6ee7b7;
  border: 1px solid #255c42;
}
.status-tag.warn {
  background: #3b2a10;
  color: #fcd34d;
  border: 1px solid #785318;
}
.status-tag.danger {
  background: #4c1515;
  color: #fca5a5;
  border: 1px solid #b91c1c;
  font-weight: 700;
}

/* Tool 02: Impedance Signal-Chain Stompbox Stage Builder */
.chain-rail {
  display: grid;
  grid-template-columns: repeat(9, minmax(115px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chain-node {
  position: relative;
  background: #1e2028;
  border: 1.5px solid #353946;
  border-radius: 8px;
  padding: 10px 9px 9px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.chain-node.active {
  border-color: var(--brass);
  background-color: #23201b;
  background-image: linear-gradient(180deg, #292419 0%, #1d1e24 100%);
  box-shadow: 0 0 0 1px rgba(212, 168, 83, 0.35);
}
.chain-node.amp-node {
  background-color: #231d13;
  background-image: linear-gradient(180deg, #2d2314 0%, #191612 100%);
  border-color: var(--amber);
}

.chain-select {
  background: none;
  border: 0;
  color: #f5f1e8;
  text-align: left;
  padding: 2px;
  cursor: pointer;
  min-height: 62px;
}
.chain-pos {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--brass);
  margin-bottom: 4px;
}
.chain-select strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.92rem;
  color: #ffffff;
  margin-bottom: 2px;
}
.chain-select small {
  display: block;
  font-size: 0.75rem;
  color: #c5bfb2;
  line-height: 1.25;
}

.chain-move {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}
.move-btn {
  flex: 1;
  min-height: 34px;
  border: 1px solid #383d4b;
  background: #14161b;
  color: #e6e0d4;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 700;
}
.move-btn:hover:not(:disabled) {
  border-color: var(--brass);
  color: var(--brass);
}
.move-btn:disabled {
  opacity: 0.3;
  cursor: default;
}

.chain-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
}
.chain-focus {
  background: #1c1e25;
  border: 1px solid #303440;
  padding: 18px;
  border-radius: 8px;
}
.chain-focus h3 {
  color: var(--brass);
  margin-bottom: 8px;
}
.chain-focus p {
  color: #dbd5c8;
  font-size: 0.92rem;
  margin: 0 0 14px;
}
.chain-diags {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.diag-item {
  padding: 11px 14px;
  border-radius: 6px;
  font-size: 0.88rem;
  border-left: 4px solid var(--emerald);
  background: #1a2420;
  color: #e3ece7;
}
.diag-item.warn {
  border-left-color: #ef4444;
  background: #2b191a;
  color: #fee2e2;
}
.diag-item.accent {
  border-left-color: var(--amber);
  background: #282115;
  color: #fef3c7;
}

/* Tool 03: Milled-Aluminum Pedalboard Rail Sizer */
.sizer-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
}
.sizer-selects label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--brass-pale);
}

.sizer-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 18px;
}
.enc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.enc-ctrl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 13px;
  background: #1c1e25;
  border: 1px solid #2e323e;
  border-radius: 6px;
}
.enc-ctrl strong {
  display: block;
  font-size: 0.9rem;
  color: #f5f1e8;
}
.enc-ctrl span.mono {
  font-size: 0.75rem;
  color: #c2bcb0;
}
.qty-box {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.qty-btn {
  width: 38px;
  min-height: 38px;
  border-radius: 4px;
  border: 1px solid #3a3f4d;
  background: #121318;
  color: var(--brass);
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
}
.qty-btn:hover {
  border-color: var(--brass);
}

.fit-banner {
  padding: 13px 15px;
  border-radius: 6px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
}
.fit-banner.ok {
  background: var(--emerald-dark);
  border: 1px solid #2b9467;
  color: #d1fae5;
}
.fit-banner.danger {
  background: var(--oxblood-dark);
  border: 1px solid #dc2626;
  color: #fee2e2;
}

.rail-vis-row {
  margin-bottom: 12px;
}
.rail-vis-label {
  color: #cbc5b8;
  font-size: 0.76rem;
  margin-bottom: 5px;
}
.rail-vis-track {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 52px;
  padding: 7px 9px;
  background-color: #15171d;
  background-image:
    repeating-linear-gradient(
      0deg,
      #101115 0px,
      #101115 10px,
      #1b1d24 10px,
      #1b1d24 16px
    );
  border: 1px solid #383c48;
  border-radius: 6px;
  overflow: hidden;
}
.rail-vis-row.overflow-row .rail-vis-track {
  border: 2px dashed #ef4444;
}
.pedal-chip {
  background-color: #d4a853;
  background-image: linear-gradient(180deg, #dfb664 0%, #b88930 100%);
  color: #101012;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 10px 4px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.45);
}
.pedal-chip.topj {
  background-color: #e2dac8;
  background-image: linear-gradient(180deg, #f3ede0 0%, #cfc5b0 100%);
  color: #121316;
}

/* ==========================================================================
   Catalog Filter Bar, Kits, Builder Cards & Trust Pages
   ========================================================================== */
.page-head {
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filter-bar {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-card);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  min-height: 40px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--tweed);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.chip:hover {
  border-color: var(--tolex);
}
.chip.on {
  background: var(--tolex);
  color: var(--brass);
  border-color: var(--tolex);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filter-controls input[type="search"] {
  flex: 1;
  min-width: 220px;
}

.chk-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.result-count {
  margin: 0 0 16px;
  color: var(--ink-muted);
}

.kit-card {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-top: 4px solid var(--tolex);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-card);
}
.kit-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--tweed-alt);
}
.kit-head p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  max-width: 66ch;
}
.kit-total {
  text-align: right;
  background: var(--tolex);
  color: #f5f1e8;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brass-deep);
}
.kit-total span {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #ccc6b8;
}
.kit-total strong {
  display: block;
  font-size: 1.45rem;
  color: var(--brass);
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 18px;
}
.legal-card,
.remove-box {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.legal-card h2 {
  font-size: 1.3rem;
  margin-top: 4px;
}

.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 10px;
}
.faq-list summary {
  font-weight: 700;
  cursor: pointer;
  min-height: 42px;
  display: flex;
  align-items: center;
}

/* ==========================================================================
   Sound Demos Slide-Over Studio Drawer & Video Player Modal
   ========================================================================== */
.demos-drawer {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  justify-content: flex-end;
}
.demos-drawer[hidden],
.video-modal[hidden],
.menu-sheet[hidden] {
  display: none !important;
}

.demos-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: blur(3px);
}

.demos-drawer-panel {
  position: relative;
  z-index: 2;
  width: min(760px, 94vw);
  height: 100%;
  background: var(--tolex);
  color: #f5f1e8;
  border-left: 2px solid var(--brass);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 24px;
}

.demos-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2b2e38;
}
.demos-drawer-head h2 {
  color: #ffffff;
  margin: 0;
}

.demos-drawer-sub {
  padding: 14px 0;
  border-bottom: 1px solid #2b2e38;
  margin-bottom: 18px;
}
.demos-drawer-sub p {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: #c7c1b4;
}
.demos-drawer-sub .chip {
  background: #1b1d23;
  color: #e4ded1;
  border-color: #343844;
}
.demos-drawer-sub .chip.on {
  background: var(--brass);
  color: var(--tolex);
  border-color: var(--brass);
}

.demos-drawer-grid,
.vid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.vid-card {
  background: #181a20;
  color: #f5f1e8;
  border: 1px solid #2e323d;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.vid-thumb {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000000;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  display: block;
}
.vid-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.play-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(16, 16, 18, 0.9);
  color: var(--brass);
  border: 1px solid rgba(212, 168, 83, 0.5);
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}
.vid-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(10, 10, 12, 0.92);
  color: #ffffff;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.75rem;
}
.vid-body {
  padding: 12px 14px;
}
.vid-channel {
  color: var(--brass-pale);
  font-size: 0.75rem;
  display: block;
  margin-bottom: 4px;
}
.vid-body h3 {
  font-size: 0.93rem;
  margin: 0;
  color: #f5f1e8;
}
.vid-body a {
  text-decoration: none;
}
.vid-body a:hover {
  color: var(--brass);
}

.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 12, 0.88);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.video-modal-box {
  width: min(920px, 100%);
  background: var(--tolex);
  color: #ffffff;
  border: 1px solid var(--brass);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.video-modal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: #17181d;
  border-bottom: 1px solid #2d303a;
}
.video-frame-wrap {
  aspect-ratio: 16 / 9;
  background: #000000;
}
.video-frame-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--tolex);
  color: #f5f1e8;
  padding: 11px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--brass);
  border-left: 4px solid var(--brass);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 260;
}
.toast.on {
  opacity: 1;
}

/* ==========================================================================
   Footer & Responsive Breakpoints
   ========================================================================== */
.foot {
  background: var(--tolex);
  color: #d7d1c5;
  padding: 44px 0;
  margin-top: 48px;
  border-top: 3px solid var(--brass);
}

.foot-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
}

.foot-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.foot-spec-tag {
  font-size: 0.75rem;
  color: var(--brass);
  border: 1px solid rgba(212, 168, 83, 0.4);
  padding: 2px 8px;
  border-radius: 3px;
}

.foot-tag {
  margin: 0 0 10px;
  color: #e4ded2;
  max-width: 56ch;
}

.foot-fine {
  font-size: 0.8rem;
  color: #c2bcb0;
  margin: 0;
  max-width: 60ch;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  align-content: flex-start;
}

.foot-nav a,
.foot-link,
.foot-fb-dot {
  color: #eae4d8;
  text-decoration: none;
  font-size: 0.87rem;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  background: none;
  border: 0;
  padding: 0 2px;
  cursor: pointer;
}
.foot-nav a:hover,
.foot-link:hover {
  color: var(--brass);
}

@media (max-width: 1080px) {
  .stomp-wall {
    width: 82%;
    right: -120px;
    opacity: 0.55;
  }
  .cat-lanes {
    grid-template-columns: repeat(2, 1fr);
  }
  .prod-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .chain-rail {
    grid-template-columns: repeat(3, minmax(130px, 1fr));
  }
}

@media (max-width: 920px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .menu-sheet {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 240;
  }
  .menu-panel {
    background: var(--tolex);
    color: #ffffff;
    width: min(320px, 88vw);
    height: 100%;
    padding: 20px;
    border-right: 2px solid var(--brass);
  }
  .menu-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
  }
  .menu-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .menu-body a {
    color: #f5f1e8;
    text-decoration: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    border-bottom: 1px solid #252831;
    font-weight: 600;
  }
  .chain-detail-grid,
  .sizer-grid,
  .sizer-selects,
  .foot-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .pwr-slot {
    grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1fr);
  }
  .hide-sm {
    display: none;
  }
}

@media (max-width: 820px) {
  .prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 14px;
  }
  .stomp-wall-stage {
    min-height: 520px;
  }
  .stomp-wall {
    width: 130%;
    min-width: 560px;
    right: -90px;
    opacity: 0.34;
  }
  .cat-lanes,
  .pwr-slot {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-card {
    padding: 20px 18px;
  }
}

/* ==========================================================================
   V4 Overhaul: Nav Shop Pill, Creators Directory & YouTube Guitar Hub
   ========================================================================== */

.nav {
  gap: 16px;
}

.nav a.nav-shop {
  min-height: 36px;
  padding: 0 14px;
  background-color: #dfb664;
  background-image: linear-gradient(180deg, #dfb664 0%, #c9993e 100%);
  color: #101012;
  border-radius: var(--radius-sm);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav a.nav-shop::after {
  display: none;
}

.nav a.nav-shop:hover,
.nav a.nav-shop.active {
  background-color: #eed08a;
  background-image: linear-gradient(180deg, #eed08a 0%, #d4a853 100%);
  color: #101012;
}

.hero-shop-btn {
  min-width: 142px;
  font-size: 0.96rem;
}

.demos-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ccard {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.ccard:hover {
  transform: translateY(-2px);
  border-color: var(--tolex);
}

.ccard-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ccard-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: #1a1c24;
  background-image: linear-gradient(145deg, #252832 0%, #101012 100%);
  color: var(--brass);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1.5px rgba(212, 168, 83, 0.55);
}

.ccard-title-wrap {
  min-width: 0;
  flex: 1;
}

.ccard-lane {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-deep);
  margin-bottom: 3px;
}

.ccard-name {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.18rem;
  line-height: 1.18;
  color: var(--ink);
}

.ccard-name a {
  text-decoration: none;
}

.ccard-name a:hover {
  color: var(--brass-deep);
}

.ccard-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.ccard-bio {
  margin: 0;
  font-size: 0.91rem;
  line-height: 1.54;
  color: var(--ink-soft);
  flex: 1;
}

.ccard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1060px) {
  .creator-grid,
  .demos-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .creator-grid,
  .demos-page-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   V5 Showcase Upgrade: Visual Builder Mosaics, Rack Shop Strips & Kit Strips
   ========================================================================== */

.cat-lane-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
}

.cat-lane-thumb {
  width: 60px;
  height: 60px;
  border-radius: 7px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cat-lane-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cat-lane-copy {
  min-width: 0;
  flex: 1;
}

.load-more-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.brand-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bcard {
  background: var(--card);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--brass);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.bcard:hover {
  transform: translateY(-3px);
  border-color: var(--tolex);
  box-shadow: 0 18px 36px rgba(16, 16, 18, 0.12);
}

.brand-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  aspect-ratio: 16 / 9.5;
  background: var(--tweed-alt);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.brand-mosaic-cell {
  position: relative;
  background: #ffffff;
  border: 0;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
}

.brand-mosaic-lead {
  grid-row: 1 / span 2;
  padding: 14px;
}

.brand-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.brand-mosaic-cell:hover img {
  transform: scale(1.04);
}

.mosaic-price {
  position: absolute;
  right: 7px;
  bottom: 6px;
  background: rgba(16, 16, 18, 0.88);
  color: var(--brass-pale);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.bcard-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.bcard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.bpill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.bpill.domain {
  background: var(--tweed);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.bpill.skus {
  background: var(--tolex);
  color: var(--brass);
}

.bpill.sale {
  background: var(--oxblood);
  color: #ffffff;
}

.bcard-head h2 {
  font-size: 1.32rem;
  line-height: 1.15;
  margin: 2px 0 0;
  color: var(--ink);
}

.bcard-hq {
  display: block;
  font-size: 0.75rem;
  color: var(--brass-deep);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.bcard-focus {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcard-policy {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--tweed-alt);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.bcard-policy > span:first-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.bcard-pol-links {
  flex-shrink: 0;
  font-weight: 600;
}

.bcard-pol-links a {
  color: var(--ink);
  text-decoration: none;
}

.bcard-pol-links a:hover {
  color: var(--brass-deep);
  text-decoration: underline;
}

.bcard-actions {
  display: flex;
  gap: 10px;
  padding-top: 4px;
}

.bcard-actions .btn {
  flex: 1;
}

/* Kit Photo Strip & Header Right */
.kit-head-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.kit-photo-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 12px 14px;
  margin-bottom: 18px;
  background: var(--tweed);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.kit-strip-thumb {
  position: relative;
  width: 82px;
  height: 82px;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease;
}

.kit-strip-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--brass-deep);
}

.kit-strip-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kit-strip-thumb span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  background: rgba(16, 16, 18, 0.88);
  color: var(--brass-pale);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

/* Creator Card Video Preview */
.ccard-preview {
  position: relative;
  width: calc(100% + 40px);
  margin: -20px -20px 4px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #0e1014;
  overflow: hidden;
  cursor: pointer;
  display: block;
}

.ccard-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.22s ease;
}

.ccard-preview:hover img {
  transform: scale(1.03);
}

.ccard-play-pill {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(16, 16, 18, 0.9);
  color: var(--brass);
  border: 1px solid rgba(212, 168, 83, 0.55);
  padding: 3px 9px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

/* Interactive Rack Inline Shoppable Stompbox & Power Strips */
.rack-shop-strip {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid #2d313d;
}

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

.rack-shop-kicker {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass);
  margin-bottom: 3px;
}

.rack-shop-head p {
  margin: 0;
  font-size: 0.85rem;
  color: #cbc5b8;
}

.rack-shop-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rack-shop-card {
  background: #1d2028;
  border: 1px solid #323746;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.rack-shop-card:hover {
  border-color: var(--brass);
  transform: translateY(-2px);
}

.rack-shop-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rack-shop-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rack-mini-deal {
  position: absolute;
  top: 7px;
  left: 7px;
  background: var(--oxblood);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
}

.rack-shop-body {
  padding: 11px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.rack-shop-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--brass-pale);
  text-transform: uppercase;
}

.rack-mini-ma {
  background: #13151b;
  color: #dad4c7;
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid #313542;
  text-transform: none;
}

.rack-shop-body h4 {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.28;
  color: #f7f4ec;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rack-shop-body h4 a {
  text-decoration: none;
}

.rack-shop-body h4 a:hover {
  color: var(--brass);
}

.rack-shop-foot {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #2b2f3b;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rack-shop-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.rack-shop-price strong {
  color: #ffffff;
  font-size: 0.96rem;
}

.rack-shop-price del {
  color: #c2bcb0;
  font-size: 0.75rem;
}

.rack-shop-btns {
  display: flex;
  gap: 6px;
}

.rack-shop-btns .btn {
  flex: 1;
  min-height: 36px;
  padding: 5px 8px;
  font-size: 0.75rem;
}

.rack-save-btn.on {
  border-color: var(--brass);
  color: var(--brass);
}

@media (max-width: 1080px) {
  .brand-showcase-grid,
  .rack-shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand-showcase-grid,
  .rack-shop-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .kit-head-right {
    align-items: flex-start;
  }
}

/* ---------- Mobile fit (v6): no side scroll at 320-430px ---------- */
@media (max-width: 680px) {
  .legal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .legal-card,
  .remove-box {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .filter-controls {
    flex-wrap: wrap;
    min-width: 0;
  }
  .inp,
  select,
  input,
  .pwr-slot > *,
  .slot-preset {
    max-width: 100%;
    min-width: 0;
  }
}
@media (max-width: 480px) {
  .top-inner { gap: 8px; }
  .logo { gap: 8px; min-width: 0; flex-shrink: 1; }
  .logo-mark { width: 32px; height: 32px; }
  .wordmark { font-size: 1.08rem; white-space: nowrap; }
  .top-actions { gap: 6px; }
  .top-demo-btn { min-width: 40px; padding: 0 10px; justify-content: center; }
  .board-link { min-width: 42px; padding: 0 10px; justify-content: center; }
  .menu-btn { width: 42px; padding: 0; justify-content: center; }
  .menu-btn > span:not(.menu-bars) { display: none; }
  .toast { right: 16px; max-width: calc(100vw - 32px); }
}
@media (max-width: 359px) {
  .logo-mark { display: none; }
  .wordmark { font-size: 0.98rem; }
  .top-actions { gap: 4px; }
}
html, body { overflow-x: clip; }

/* ==========================================================================
   V6 Compact Product-First Hero & Retail Filter System (.pr-hero.product-hero)
   ========================================================================== */
.pr-hero.product-hero {
  padding: 16px 0 24px;
  background-color: var(--tweed);
  border-bottom: 1px solid var(--line-strong);
}

.pr-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.pr-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pr-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pr-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px;
  border-radius: 4px;
  background-color: var(--tolex);
  color: var(--brass);
  border: 1px solid rgba(212, 168, 83, 0.55);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pr-hero-h {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.48rem, 2.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.pr-hero-h em {
  font-style: normal;
  color: var(--brass-deep);
}

.pr-hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.hero-search-inp {
  width: 300px;
  min-width: 0;
  min-height: 40px;
  padding: 7px 12px;
  background-color: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.81rem;
}

.shop-search-row {
  margin-top: 14px;
}

.shop-search-inp {
  width: 100%;
  max-width: 520px;
}

.hero-search-inp::placeholder {
  color: var(--ink-muted);
}

.hero-search-inp:focus,
.retail-sel:focus,
.flt-trigger:focus {
  outline: 2px solid var(--brass-deep);
  outline-offset: -1px;
}

.pr-hero-controls .btn.sm {
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.78rem;
  white-space: nowrap;
}

/* Desktop Retail Filter Bar (> 768px) */
.retail-bar-desk {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 14px;
  min-width: 0;
}

.retail-sel {
  -webkit-appearance: none;
  appearance: none;
  min-height: 38px;
  padding: 7px 30px 7px 11px;
  background-color: var(--card);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23121316' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 13px 13px;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
}

.retail-sel:hover {
  border-color: var(--tolex);
}

.retail-sort-sel {
  margin-left: auto;
}

.retail-sale-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: #fdf2f2;
  color: #8f1414;
  border: 1px solid #d68b8b;
  font-size: 0.77rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.retail-sale-pill:hover {
  background-color: #fae4e4;
}

.retail-sale-pill.active {
  background-color: var(--oxblood);
  color: #ffffff;
  border-color: var(--oxblood);
}

.retail-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background-color: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.retail-reset-btn:hover {
  background-color: var(--tolex);
  color: var(--brass);
  border-color: var(--tolex);
}

/* Mobile 2-Column Retail Row (<= 768px only) */
.retail-bar-mob {
  display: none;
}

.flt-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background-color: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.flt-trigger.has-active {
  background-color: var(--tolex);
  color: var(--brass);
  border-color: var(--tolex);
}

.flt-trigger.has-active svg circle {
  fill: var(--tolex);
}

.mob-sort-sel {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  text-overflow: ellipsis;
}

/* Slide-Up / Modal Filter Drawer */
.flt-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

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

.flt-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(16, 16, 18, 0.65);
}

.flt-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  max-height: 86vh;
  margin: 0 auto;
  background-color: #ffffff;
  color: var(--ink);
  border-top: 3px solid var(--brass);
  border-left: 1px solid var(--line-strong);
  border-right: 1px solid var(--line-strong);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.flt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--tweed);
  border-bottom: 1px solid var(--line-strong);
}

.flt-head strong {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.flt-close-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

.flt-body {
  padding: 14px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #ffffff;
}

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

.flt-sec-title {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

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

.flt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  background-color: #ffffff;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  font-size: 0.77rem;
  font-weight: 600;
  cursor: pointer;
}

.flt-chip.active {
  background-color: var(--tolex);
  color: var(--brass);
  border-color: var(--tolex);
  font-weight: 700;
}

.flt-chip.sale-chip {
  background-color: #fdf2f2;
  color: #8f1414;
  border-color: #d68b8b;
  font-weight: 700;
}

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

.flt-drawer-sel {
  width: 100%;
  min-height: 42px;
}

.flt-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 10px;
  padding: 12px 16px;
  background-color: var(--tweed);
  border-top: 1px solid var(--line-strong);
}

.hero-prod-grid .prod-img-wrap {
  aspect-ratio: 4 / 3;
  padding: 10px;
}

.hero-prod-grid .prod-body {
  padding: 12px 13px;
}

.hero-prod-grid .prod-excerpt {
  display: none;
}

.hero-more-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.hero-empty-box {
  padding: 28px 18px;
  text-align: center;
  background-color: var(--card);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
}

/* Integrated Shopping & Editorial Content Feed (#home) */
.feed-stream {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.feed-post {
  background-color: var(--card);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.feed-post-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 20px;
  background-color: var(--tweed);
  border-bottom: 1px solid var(--line-strong);
}

.feed-post-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 280px;
}

.feed-post-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6e4b0f;
}

.feed-post-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.26rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.feed-post-title a {
  text-decoration: none;
}

.feed-post-title a:hover {
  color: #6e4b0f;
}

/* Video Spotlight Post */
.feed-vid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background-color: var(--card);
}

.feed-vid-slot {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background-color: var(--card);
  border-right: 1px solid var(--line);
}

.feed-vid-slot:last-child {
  border-right: 0;
}

.feed-vid-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--tolex);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.feed-vid-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.feed-vid-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background-color: var(--tolex);
  cursor: pointer;
  text-align: left;
}

.feed-vid-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feed-vid-badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  background-color: rgba(16, 16, 18, 0.94);
  color: #ffffff;
  border: 1px solid rgba(212, 168, 83, 0.55);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.feed-vid-cover:hover .feed-vid-badge {
  background-color: #dfb664;
  color: #101012;
  border-color: #e4be70;
}

.feed-vid-tri {
  color: var(--brass);
  font-size: 0.75rem;
}

.feed-vid-cover:hover .feed-vid-tri {
  color: #101012;
}

.feed-vid-dur {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 8px;
  background-color: rgba(16, 16, 18, 0.94);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
}

.feed-vid-meta {
  padding: 14px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background-color: var(--card);
}

.feed-vid-byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.75rem;
}

.feed-vid-creator {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6e4b0f;
}

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

.feed-vid-name {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--ink);
}

.feed-vid-name a {
  text-decoration: none;
}

.feed-vid-name a:hover {
  text-decoration: underline;
}

/* Studio Rig Architecture / Power Guide Post */
.feed-post-guide {
  background-color: var(--tolex);
  color: #f5f1e8;
  border-color: var(--tolex-line);
  box-shadow: var(--shadow-rack);
}

.feed-post-head.dark {
  background-color: var(--tolex);
  border-bottom: 1px solid var(--tolex-line);
}

.feed-post-kicker.dark {
  color: var(--brass);
}

.feed-post-title.dark {
  color: #f5f1e8;
}

.feed-guide-copy {
  margin: 4px 0 0;
  max-width: 68ch;
  font-size: 0.88rem;
  line-height: 1.48;
  color: #dcd6c8;
}

.feed-guide-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn.feed-dark-btn {
  background-color: var(--tolex-panel);
  color: #f5f1e8;
  border: 1px solid #444957;
}

.btn.feed-dark-btn:hover {
  border-color: var(--brass);
  color: var(--brass);
}

.feed-spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 16px 20px 20px;
  background-color: var(--tolex);
}

.feed-spec-cell {
  padding: 12px 14px;
  background-color: var(--tolex-raised);
  border: 1px solid var(--tolex-line);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.feed-spec-cell small {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brass);
}

.feed-spec-cell strong {
  font-size: 0.96rem;
  font-weight: 700;
  color: #ffffff;
}

.feed-spec-cell span {
  font-size: 0.78rem;
  line-height: 1.38;
  color: #dcd6c8;
}

/* Curated Signal Chain / Kit Post */
.feed-kit-layout {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  background-color: var(--card);
}

.feed-kit-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--line);
  border-right: 1px solid var(--line-strong);
  text-decoration: none;
}

.feed-kit-cell {
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feed-kit-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feed-kit-info {
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  background-color: var(--card);
}

.feed-kit-sum {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--ink-soft);
}

.feed-kit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.feed-kit-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 0.85rem;
}

.feed-kit-item-name {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.feed-kit-item-name:hover {
  text-decoration: underline;
}

.feed-kit-item-price {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.feed-kit-store {
  font-size: 0.75rem;
  font-weight: 700;
  color: #6e4b0f;
  text-decoration: none;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background-color: var(--tweed);
}

.feed-kit-store:hover {
  background-color: var(--tolex);
  color: #ffffff;
  border-color: var(--tolex);
}

.feed-kit-foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.feed-kit-total {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feed-kit-total small {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.feed-kit-total strong {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--ink);
}

.feed-kit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Maker Markdowns Spotlight Post */
.feed-deals-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background-color: var(--card);
}

.feed-deal-mini {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--line);
  background-color: var(--card);
}

.feed-deal-mini:last-child {
  border-right: 0;
}

.feed-deal-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 12px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.feed-deal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feed-deal-pct {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  background-color: var(--oxblood);
  color: #ffffff;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.feed-deal-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  background-color: var(--card);
}

.feed-deal-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.feed-deal-name {
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-deal-name:hover {
  text-decoration: underline;
}

.feed-deal-prices {
  margin-top: auto;
  padding-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.84rem;
}

.feed-deal-prices strong.sale {
  color: #8f1414;
  font-weight: 800;
}

.feed-deal-prices span {
  color: var(--ink-muted);
  text-decoration: line-through;
  font-size: 0.76rem;
}

.feed-deal-go {
  margin-left: auto;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: underline;
}

@media (max-width: 960px) {
  .feed-spec-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feed-kit-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-kit-mosaic {
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
    max-height: 280px;
  }
  .feed-deals-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .feed-deal-mini:nth-child(2) {
    border-right: 0;
  }
  .feed-deal-mini:nth-child(-n+2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 1120px) {
  .pr-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .pr-hero-controls {
    flex-wrap: wrap;
  }
  .hero-search-inp {
    flex: 1 1 220px;
    width: auto;
  }
  .retail-sort-sel {
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .prod-img-wrap,
  .hero-prod-grid .prod-img-wrap {
    aspect-ratio: 1 / 1;
    padding: 8px;
  }
  .prod-body,
  .hero-prod-grid .prod-body {
    padding: 10px;
  }
  .prod-excerpt {
    display: none;
  }
  .prod-meta {
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 4px;
  }
  .prod-title {
    font-size: 0.86rem;
    line-height: 1.26;
    margin-bottom: 6px;
  }
  .prod-foot {
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
  }
  .price {
    font-size: 0.96rem;
  }
  .prod-foot .btn.sm {
    min-height: 36px;
    padding: 5px 9px;
    font-size: 0.76rem;
    width: 100%;
  }
  .save-btn {
    bottom: 6px;
    right: 6px;
    min-height: 32px;
    padding: 3px 8px;
  }
  .prod-badges {
    top: 6px;
    left: 6px;
    gap: 3px;
  }
}

@media (max-width: 768px) {
  .pr-hero.product-hero {
    padding: 12px 0 18px;
  }
  .pr-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .pr-hero-controls {
    display: flex;
    width: 100%;
  }
  .hero-rack-cta,
  .hero-demo-cta {
    display: none !important;
  }
  .hero-search-inp,
  .shop-search-inp {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
  }
  .retail-bar-desk {
    display: none !important;
  }
  .retail-bar-mob {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin: 8px 0 12px;
  }
  .feed-post-head {
    padding: 14px;
  }
  .feed-post-title {
    font-size: 1.08rem;
  }
  .feed-vid-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-vid-slot {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .feed-vid-slot:last-child {
    border-bottom: 0;
  }
  .feed-vid-meta {
    padding: 12px 14px;
  }
  .feed-spec-grid {
    padding: 12px 14px 16px;
    gap: 10px;
  }
  .feed-kit-mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
  }
  .feed-kit-cell {
    padding: 6px;
  }
  .feed-kit-info {
    padding: 14px;
  }
}

@media (max-width: 600px) {
  .prod-meta .draw-pill {
    display: none;
  }
  .badge.stock {
    display: none;
  }
  .feed-spec-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-kit-list li {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .feed-kit-store {
    display: none;
  }
}

@media (max-width: 374px) {
  .prod-grid,
  .hero-prod-grid,
  .feed-deals-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-deal-mini {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .feed-deal-mini:last-child {
    border-bottom: 0;
  }
}

