/* ==========================================================================
   StoredWatt V4: Portable LiFePO4, Solar, 48V Rack & Overland 12V Storefront
   Palette: Deep Obsidian (#0b141e), Solar Gold (#f59e0b), Emerald LFP (#10b981),
            Silicon Sky (#38bdf8), Warm Off-Grid Stone (#f4f6f8 / #ffffff)
   ========================================================================== */

:root {
  --bg: #f4f6f8;
  --bg-alt: #eaeff4;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --obsidian: #0b141e;
  --obsidian-2: #111e2d;
  --obsidian-3: #18293d;
  --obsidian-line: #233850;
  --ink: #0f172a;
  --ink-2: #2c3a4f;
  --muted: #415063;
  --line: #d8e1ea;
  --line-strong: #b4c2d0;

  --solar: #f59e0b;
  --solar-bright: #fbbf24;
  --solar-deep: #853a08;
  --solar-tint: #fffbeb;
  --solar-border: #fde68a;

  --emerald: #10b981;
  --emerald-deep: #065f46;
  --emerald-tint: #ecfdf5;
  --emerald-border: #a7f3d0;

  --sky: #38bdf8;
  --sky-deep: #075985;
  --sky-tint: #f0f9ff;

  --danger: #dc2626;
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(11, 20, 30, 0.05);
  --shadow-md: 0 10px 28px rgba(11, 20, 30, 0.09);
  --shadow-lg: 0 20px 48px rgba(11, 20, 30, 0.18);

  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Syne", "Plus Jakarta Sans", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  --max-w: 1360px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

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

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

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

button {
  cursor: pointer;
}

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

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

/* Hide Hunter Thomas floating feedback button until requested */
#htfb-btn {
  display: none !important;
}

body.show-feedback #htfb-btn {
  display: inline-flex !important;
}

/* Skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--solar);
  color: var(--obsidian);
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip:focus {
  left: 14px;
}

/* ==========================================================================
   Sticky Header & Brand Identity
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(11, 20, 30, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--obsidian-line);
  color: #f8fafc;
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(245, 158, 11, 0.22));
  transition: transform 0.2s ease;
}

.logo:hover .logo-mark {
  transform: translateY(-1px) scale(1.03);
}

.wordmark-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: #f8fafc;
  text-transform: uppercase;
}

.wordmark b {
  color: var(--solar-bright);
  font-weight: 800;
}

.wordmark-sub {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #b6c4d6;
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  padding: 7px 8px;
  border-radius: var(--radius-xs);
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease;
}

.nav a:hover,
.nav a[aria-current="page"],
.nav a.active {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.nav a[data-nav="shop"] {
  background: rgba(245, 158, 11, 0.16);
  color: var(--solar-bright);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.nav a[data-nav="shop"]:hover,
.nav a[data-nav="shop"].active {
  background: var(--solar);
  color: var(--obsidian);
  border-color: var(--solar);
}

.nav a.nav-accent {
  color: #6ee7b7;
}

.nav a.nav-accent:hover,
.nav a.nav-accent.active {
  background: rgba(16, 185, 129, 0.18);
  color: #a7f3d0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--obsidian-line);
  background: var(--obsidian-2);
  color: #e2e8f0;
  font-size: 0.82rem;
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.icon-pill:hover {
  border-color: var(--solar);
  background: var(--obsidian-3);
}

.icon-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saved-pill em {
  font-style: normal;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--solar);
  color: var(--obsidian);
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--obsidian-line);
  background: var(--obsidian-2);
  color: #f8fafc;
  font-size: 0.84rem;
  font-weight: 600;
}

.menu-ico {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  display: inline-block;
}

.menu-ico::before,
.menu-ico::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.menu-ico::before {
  top: -5px;
}

.menu-ico::after {
  top: 5px;
}

/* Mobile Menu Sheet */
.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(8, 15, 23, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: flex-end;
}

.menu-sheet[hidden] {
  display: none;
}

.menu-panel {
  width: min(360px, 90vw);
  height: 100%;
  background: var(--obsidian);
  color: #f8fafc;
  border-left: 1px solid var(--obsidian-line);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--obsidian-line);
}

.menu-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.menu-body a {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: #e2e8f0;
  background: var(--obsidian-2);
  border: 1px solid transparent;
}

.menu-body a:hover,
.menu-body a.active {
  border-color: var(--solar);
  color: var(--solar-bright);
}

/* ==========================================================================
   Buttons & Badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.15;
  transition: transform 0.14s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn.sm {
  padding: 8px 13px;
  font-size: 0.81rem;
  border-radius: var(--radius-xs);
}

.btn.primary {
  background-color: var(--solar-bright);
  background-image: linear-gradient(135deg, var(--solar-bright) 0%, var(--solar) 100%);
  color: var(--obsidian);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.28);
}

.btn.primary:hover {
  background-color: #fde047;
  background-image: linear-gradient(135deg, #fde047 0%, #fbbf24 100%);
  box-shadow: 0 10px 26px rgba(245, 158, 11, 0.38);
}

.btn.accent {
  background: var(--emerald);
  color: #052e1c;
}

.btn.accent:hover {
  background: #34d399;
}

.btn.dark {
  background: var(--obsidian);
  color: #f8fafc;
  border-color: var(--obsidian-3);
}

.btn.dark:hover {
  background: var(--obsidian-3);
  border-color: var(--solar);
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
  border-color: rgba(148, 163, 184, 0.38);
}

.btn.ghost:hover {
  border-color: var(--solar);
  background: rgba(245, 158, 11, 0.12);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--solar-deep);
}

/* ==========================================================================
   Compact Product-First Off-Grid Storefront Hero (.product-hero)
   ========================================================================== */
.main-view { min-height: calc(100svh - 71px); }
.wall-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: calc(100svh - 71px);
  display: flex;
  align-items: flex-end;
  background: var(--obsidian);
  color: #f8fafc;
}
.photo-wall {
  position: absolute;
  z-index: -2;
  inset: -180px -6%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-7deg);
  pointer-events: none;
}
.wall-col { animation: wall-drift 72s linear infinite; will-change: transform; }
.wall-col.wc1 { animation-duration: 86s; animation-direction: reverse; }
.wall-col.wc2 { animation-duration: 64s; }
.wall-col.wc3 { animation-duration: 90s; 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; flex: none; aspect-ratio: 1; min-height: 32svh; overflow: hidden; border-radius: 16px; background: #fff; }
.wall-cell img { width: 100%; height: 100%; object-fit: contain; }
@keyframes wall-drift { to { transform: translateY(-50%); } }
.wall-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11,20,30,.3), rgba(11,20,30,.74) 38%, rgba(11,20,30,.96) 100%);
}
.wall-hero .wall-inner { padding-top: 150px; padding-bottom: 48px; }
.wall-inner h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(76px, 8.7vw, 132px);
  line-height: .97;
  letter-spacing: -.045em;
}
.wall-inner h1 span { color: var(--solar-bright); }
.wall-sub { max-width: 46ch; margin: 22px 0 24px; font-size: 19px; line-height: 1.6; color: #f8fafc; }
.wall-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.wall-actions .btn { min-height: 48px; padding: 12px 20px; }
.wall-video { color: #f8fafc; background: var(--obsidian); border: 1.5px solid #f8fafc; }
.wall-video:hover { background: var(--obsidian-3); }
.wall-actions .btn:focus-visible, .wall-disclosure a:focus-visible { outline: 3px solid #f8fafc; outline-offset: 4px; }
.wall-disclosure { max-width: 60ch; margin: 18px 0 0; font-size: 12px; line-height: 1.5; }
.wall-disclosure a { text-decoration: underline; }
@media (max-width: 640px) {
  .photo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); inset: -100px -18%; gap: 10px; }
  .wall-col.wc3, .wall-col.wc4 { display: none; }
  .wall-group { gap: 10px; padding-bottom: 10px; }
  .wall-cell { aspect-ratio: 4 / 5; border-radius: 12px; }
  .wall-hero .wall-inner { padding: 160px 16px 28px; }
  .wall-inner h1 { font-size: clamp(47px, 14.5vw, 88px); line-height: 1.02; }
  .wall-sub { font-size: 16px; line-height: 1.5; margin: 18px 0 22px; }
  .wall-actions { gap: 10px; }
  .wall-actions .btn { font-size: 14px; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .wall-col { animation: none; will-change: auto; }
}
.product-hero {
  background-color: #edf2f6;
  background-image: linear-gradient(180deg, #f8fafc 0%, #e7eef5 100%);
  border-bottom: 2px solid var(--line-strong);
  padding: 18px 0 24px;
}

.product-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.product-hero-head {
  min-width: 260px;
  flex: 1 1 360px;
}

.product-hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.hero-niche-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px;
  border-radius: 999px;
  background-color: var(--obsidian);
  color: var(--solar-bright);
  border: 1px solid var(--obsidian-line);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--emerald);
  flex-shrink: 0;
}

.hero-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background-color: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}
.hero-stat-pill a {
  color: var(--sky-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-stat-pill a:hover {
  color: var(--ink);
}

.product-hero-h {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.35vw, 2.1rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-transform: uppercase;
}
.product-hero-h span {
  color: var(--emerald-deep);
}

.product-hero-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1 1 460px;
  justify-content: flex-end;
}

.hero-search-box {
  position: relative;
  flex: 1 1 220px;
  min-width: 190px;
  max-width: 340px;
}
.hero-search-box svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  pointer-events: none;
}
.hero-search-box input[type="search"] {
  width: 100%;
  min-height: 40px;
  padding: 0 12px 0 34px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background-color: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(11, 20, 30, 0.04);
}
.hero-search-box input[type="search"]::placeholder {
  color: var(--muted);
  opacity: 0.85;
}
.hero-search-box input[type="search"]:focus {
  border-color: var(--sky-deep);
  outline: 2px solid rgba(7, 89, 133, 0.18);
}

.hero-tool-btn {
  min-height: 40px;
  padding: 0 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.shop-search-row {
  margin-bottom: 12px;
}

.shop-search-box {
  max-width: 480px;
}

.retail-bar-desktop {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.flt-select {
  -webkit-appearance: none;
  appearance: none;
  min-height: 38px;
  padding: 0 32px 0 13px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background-color: #ffffff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230b141e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  background-size: 12px 12px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  max-width: 100%;
  transition: border-color 0.14s ease, background-color 0.14s ease, color 0.14s ease;
}

.flt-select option {
  background-color: #ffffff;
  color: #0b141e;
}

.flt-select:hover {
  border-color: var(--obsidian);
}

.flt-select:focus {
  border-color: var(--sky-deep);
  outline: 2px solid rgba(7, 89, 133, 0.2);
}

.flt-select.has-val {
  background-color: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--solar-bright);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23fbbf24' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

.flt-sort-desktop {
  margin-left: auto;
}

.flt-sale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1.5px solid #10b981;
  background-color: var(--emerald-tint);
  color: var(--emerald-deep);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.flt-sale-btn:hover {
  background-color: #d1fae5;
}

.flt-sale-btn.active {
  background-color: var(--obsidian);
  border-color: var(--emerald);
  color: #6ee7b7;
}

.flt-reset-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background-color: #ffffff;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.flt-reset-pill:hover {
  background-color: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--solar-bright);
}

.retail-bar-mobile {
  display: none;
}

.flt-trigger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background-color: #ffffff;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  min-width: 0;
}

.flt-trigger-btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.flt-trigger-btn.has-val {
  background-color: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--solar-bright);
}

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

.flt-drawer {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.flt-backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(11, 20, 30, 0.56);
}

.flt-sheet {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  background-color: #f8fafc;
  color: var(--ink);
  border-top: 2px solid var(--obsidian);
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -12px 36px rgba(11, 20, 30, 0.28);
}

.flt-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--line);
  border-radius: 14px 14px 0 0;
}

.flt-drawer-head strong {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ink);
}

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

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

.flt-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.flt-group-label {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.flt-chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background-color: #ffffff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.flt-chip.active {
  background-color: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--solar-bright);
}

.flt-drawer-select {
  width: 100%;
  border-radius: var(--radius-sm);
  min-height: 40px;
}

.flt-drawer-foot {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background-color: #ffffff;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
}

.hero-prod-grid {
  margin-top: 2px;
}

.hero-more-wrap {
  margin-top: 20px;
}

.hero-empty {
  padding: 28px 20px;
  margin: 10px auto;
}

/* ==========================================================================
   Section Layout & Headers
   ========================================================================== */
.sec {
  padding: 58px 0;
}

.sec-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec-dark {
  background: var(--obsidian);
  color: #f8fafc;
  border-top: 1px solid var(--obsidian-line);
  border-bottom: 1px solid var(--obsidian-line);
}

.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.sec-head h2 {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2.05rem);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.14;
}

.sec-head p {
  margin: 6px 0 0;
  color: var(--muted);
  max-width: 640px;
  font-size: 0.95rem;
}

.sec-dark .sec-head p {
  color: #b6c4d6;
}

.sec-dark .eyebrow {
  color: var(--solar-bright);
}

.page-head {
  padding: 38px 0 24px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.page-head h1 {
  margin: 6px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.1;
}

.lede {
  margin: 0;
  font-size: 1.02rem;
  color: var(--ink-2);
  max-width: 740px;
}

/* ==========================================================================
   7-Category Hardware Showroom Grid
   ========================================================================== */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 14px;
}

.cat-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.cat-tile:hover {
  transform: translateY(-3px);
  border-color: var(--solar);
  box-shadow: var(--shadow-md);
}

.cat-tile-thumb {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  background: #ffffff;
  border: 1px solid #eef2f6;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cat-tile-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.cat-tile:hover .cat-tile-thumb img {
  transform: scale(1.05);
}

.cat-tile-meta strong {
  display: block;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.cat-tile-meta span {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

/* ==========================================================================
   3-Tab Off-Grid Power Engineering Workbench
   ========================================================================== */
.workbench {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.wb-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 16px;
  background: var(--obsidian);
  border-bottom: 1px solid var(--obsidian-line);
}

.wb-tab {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  color: #cbd5e1;
  font-weight: 700;
  font-size: 0.87rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.wb-tab:hover {
  background: var(--obsidian-2);
  color: #ffffff;
}

.wb-tab.active,
.wb-tab[aria-selected="true"] {
  background: var(--solar);
  color: var(--obsidian);
  border-color: var(--solar-bright);
}

.wb-body {
  padding: 24px;
}

.wb-grid {
  display: grid;
  grid-template-columns: minmax(290px, 400px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.wb-controls {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px;
}

.wb-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.wb-preset-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color 0.14s ease, background 0.14s ease;
}

.wb-preset-btn:hover,
.wb-preset-btn.active {
  border-color: var(--solar-deep);
  background: var(--solar-tint);
  color: var(--ink);
}

.wb-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.wb-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.wb-field label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-2);
}

.wb-field label output,
.wb-field label span.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--solar-deep);
}

.wb-field input[type="number"],
.wb-field select {
  width: 100%;
  padding: 9px 11px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.88rem;
  font-weight: 600;
}

.wb-field input[type="range"] {
  width: 100%;
  accent-color: var(--solar);
}

.wb-check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  padding-top: 4px;
}

.wb-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--solar);
}

.wb-readout {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wb-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 12px;
}

.wb-kpi {
  background: var(--obsidian);
  color: #f8fafc;
  border: 1px solid var(--obsidian-line);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.wb-kpi span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b6c4d6;
  margin-bottom: 4px;
}

.wb-kpi strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 800;
  color: var(--solar-bright);
  line-height: 1.15;
}

.wb-kpi.ok strong {
  color: #34d399;
}

.wb-kpi small {
  display: block;
  margin-top: 3px;
  font-size: 0.75rem;
  color: #cbd5e1;
}

.wb-svg-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--obsidian-line);
  background: var(--obsidian);
}

.wb-svg-frame svg {
  width: 100%;
  height: auto;
}

.wb-note {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
  background: var(--bg);
  border-left: 3px solid var(--solar);
  padding: 10px 14px;
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
}

/* Rig Builder Slot Output */
.rig-summary-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--obsidian);
  color: #f8fafc;
}

.rig-summary-bar .badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.18);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.rig-summary-bar .badge.warn {
  background: rgba(245, 158, 11, 0.2);
  color: #fde68a;
  border-color: rgba(245, 158, 11, 0.45);
}

.rig-slots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.rig-slot-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.rig-slot-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-deep);
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  padding: 3px 8px;
  border-radius: 999px;
  align-self: flex-start;
}

.rig-slot-media {
  height: 136px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid #eef2f6;
  padding: 8px;
}

.rig-slot-media img {
  max-height: 118px;
  width: auto;
  object-fit: contain;
}

.rig-slot-title {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.32;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rig-slot-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.rig-slot-price {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--ink);
}

/* ==========================================================================
   Filter Bar, Search & Product Catalog Grid
   ========================================================================== */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.filter-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.search-box {
  flex: 1 1 260px;
  position: relative;
}

.search-box input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: 0.92rem;
}

.search-box input:focus {
  outline: 2px solid var(--solar);
  background: var(--surface);
}

.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
}

.sort-select {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  font-size: 0.86rem;
  font-weight: 600;
}

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

.chip {
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.14s ease;
}

.chip:hover {
  border-color: var(--solar);
  color: var(--ink);
}

.chip.active,
.chip[aria-pressed="true"] {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--solar-bright);
}

.results-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.86rem;
  color: var(--muted);
}

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

.pcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.pcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.pcard-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #eef2f6;
}

.pcard-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.22s ease;
}

.pcard:hover .pcard-media img {
  transform: scale(1.04);
}

.pcard-deal {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--emerald-deep);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.pcard-save {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.pcard-save:hover {
  border-color: var(--solar);
  color: var(--ink);
}

.pcard-save.saved {
  background: var(--obsidian);
  border-color: var(--obsidian);
  color: var(--solar-bright);
}

.pcard-save svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.pcard-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.pcard-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pcard-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sky-deep);
}

.pcard-brand:hover {
  text-decoration: underline;
}

.pcard-cat {
  font-size: 0.75rem;
  color: var(--muted);
}

.pcard-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.34;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-title a:hover {
  color: var(--solar-deep);
}

.pcard-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.spec-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

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

.pcard-price-block {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.pcard-price {
  font-family: var(--font-mono);
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--ink);
}

.pcard-was {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-decoration: line-through;
}

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

/* ==========================================================================
   YouTube Solar & Power Creator Hub & Video Cards
   ========================================================================== */
.lane-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.lane-pill {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.15s ease;
}

.sec-dark .lane-pill {
  background: var(--obsidian-2);
  border-color: var(--obsidian-line);
  color: #cbd5e1;
}

.lane-pill:hover {
  border-color: var(--solar);
}

.lane-pill.active {
  background: var(--solar);
  border-color: var(--solar);
  color: var(--obsidian);
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(275px, 1fr));
  gap: 16px;
}

.creator-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.sec-dark .creator-card {
  background: var(--obsidian-2);
  border-color: var(--obsidian-line);
  color: #f8fafc;
}

.creator-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.creator-avatar {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background-color: var(--obsidian-3);
  background-image: linear-gradient(135deg, var(--obsidian-3), var(--obsidian));
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--solar-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.creator-meta {
  min-width: 0;
  flex: 1;
}

.creator-meta h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.creator-handle {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--sky-deep);
  margin-top: 2px;
}

.sec-dark .creator-handle {
  color: var(--sky);
}

.creator-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.creator-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.sec-dark .creator-badge {
  background: var(--obsidian);
  border-color: var(--obsidian-line);
  color: #cbd5e1;
}

.creator-note {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
  flex: 1;
}

.sec-dark .creator-note {
  color: #b6c4d6;
}

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

.sec-dark .creator-actions {
  border-top-color: var(--obsidian-line);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 18px;
}

.video-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.sec-dark .video-card {
  background: var(--obsidian-2);
  border-color: var(--obsidian-line);
}

.video-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #080f17;
  overflow: hidden;
  border: 0;
  padding: 0;
  width: 100%;
  text-align: left;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.24s ease, opacity 0.2s ease;
}

.video-card:hover .video-thumb img {
  transform: scale(1.04);
}

.video-play-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(11, 20, 30, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.55);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.video-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.video-chan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--solar-deep);
}

.sec-dark .video-chan-row {
  color: var(--solar-bright);
}

.video-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

.sec-dark .video-title {
  color: #f8fafc;
}

.video-views {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sec-dark .video-views {
  color: #b6c4d6;
}

/* Privacy-Enhanced YouTube Modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6, 12, 19, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-box {
  width: min(920px, 100%);
  background: var(--obsidian);
  border: 1px solid var(--obsidian-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  color: #f8fafc;
}

.video-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--obsidian-line);
}

.video-modal-head strong {
  font-size: 0.95rem;
  line-height: 1.3;
}

.video-frame-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.video-frame-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   Multi-Brand Curated Power Rigs (.kit-grid)
   ========================================================================== */
.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 20px;
}

.kit-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.kit-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--solar-deep);
  background: var(--solar-tint);
  border: 1px solid var(--solar-border);
  padding: 4px 10px;
  border-radius: 999px;
  align-self: flex-start;
}

.kit-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
}

.kit-summary {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink-2);
}

.kit-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.kit-item-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: var(--radius-sm);
  background: var(--bg);
}

.kit-item-row:hover {
  background: var(--bg-alt);
}

.kit-item-thumb {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.kit-item-info strong {
  display: block;
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kit-item-info span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
}

.kit-item-price {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.kit-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.kit-total span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--muted);
}

.kit-total strong {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
}

/* ==========================================================================
   Brand Directory Cards with 4-Cell Square Product Mosaic (.bcard / .bcard-ph)
   ========================================================================== */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

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

@media (max-width: 640px) {
  .brand-grid {
    grid-template-columns: 1fr;
  }
}

.bcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.bcard:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--solar);
}

.bcard-ph,
.bcard-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 12px;
  background-color: var(--obsidian);
  background-image: linear-gradient(180deg, var(--obsidian) 0%, var(--obsidian-2) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.bcard-cell {
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: var(--radius-sm);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.bcard-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.bcard-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.bcard-monogram {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--obsidian);
  border: 1px solid rgba(245, 158, 11, 0.48);
  color: var(--solar-bright);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.86rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bcard-title-stack {
  min-width: 0;
  flex: 1;
}

.bcard-title-stack h3 {
  margin: 0 0 2px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bcard-domain {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--sky-tint);
  color: var(--sky-deep);
  border: 1px solid #bae6fd;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.bcard-sku-pill,
.bcard-range-pill,
.bcard-deal-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.bcard-sku-pill {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}

.bcard-range-pill {
  background: #f8fafc;
  border: 1px solid var(--line);
  color: var(--muted);
}

.bcard-deal-pill {
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-deep);
}

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

.bcard-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

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

.bcard-foot .btn {
  flex: 1;
  padding: 8px 10px;
}

.wb-matched-gear {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

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

.wb-matched-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 800;
}

.deal-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 780px) {
  .deal-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.deal-kpi-card {
  background: var(--obsidian);
  color: #f8fafc;
  border: 1px solid var(--obsidian-line);
  border-radius: var(--radius-md);
  padding: 12px 15px;
}

.deal-kpi-card span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #b6c4d6;
}

.deal-kpi-card strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.18rem;
  color: var(--solar-bright);
  margin-top: 2px;
}

.pcard-save-usd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald-deep);
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  border-radius: 4px;
  padding: 1px 5px;
  margin-top: 2px;
  align-self: flex-start;
}

/* ==========================================================================
   Trust, Disclosure, FAQ & Removal Pages
   ========================================================================== */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  padding-bottom: 48px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.legal-card h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.legal-card p {
  margin: 0 0 10px;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.legal-card p:last-child {
  margin-bottom: 0;
}

.legal-card a {
  color: var(--sky-deep);
  text-decoration: underline;
}

.partners-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
  gap: 24px;
  padding-bottom: 54px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.faq-list summary {
  font-weight: 700;
  cursor: pointer;
}

.faq-list details p {
  margin: 10px 0 0;
  color: var(--ink-2);
  font-size: 0.92rem;
}

.remove-box {
  background: var(--obsidian);
  color: #f8fafc;
  border: 1px solid var(--obsidian-line);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.remove-box h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  color: var(--solar-bright);
}

.remove-box p {
  margin: 0 0 14px;
  color: #cbd5e1;
  font-size: 0.92rem;
}

.fine {
  font-size: 0.8rem !important;
  color: var(--muted) !important;
}

.remove-box .fine {
  color: #94a3b8 !important;
}

/* Social icon helper */
.soc-row {
  display: inline-flex;
  gap: 6px;
}

.soc-ico-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--soc, #c85a17);
  color: var(--soc-on, #ffffff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.soc-ico-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* Empty State & Toast */
.empty-box {
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 44px 24px;
  text-align: center;
  max-width: 560px;
  margin: 24px auto;
}

.empty-box h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
}

.empty-box p {
  margin: 0 0 18px;
  color: var(--muted);
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 180;
  background: var(--obsidian);
  color: #f8fafc;
  border: 1px solid var(--solar);
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Integrated Shopping & Editorial Stream (#home)
   ========================================================================== */
.home-feed-section {
  padding-bottom: 48px;
}

.home-feed-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.feed-beat-grid {
  margin: 0;
}

.feed-post {
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  min-width: 0;
  box-shadow: var(--shadow-sm);
}

.feed-post-video,
.feed-post-guide {
  background-color: #0b141e;
  border: 1px solid var(--obsidian-line);
  border-bottom: 3px solid var(--solar);
  color: #f8fafc;
}

.feed-post-kit,
.feed-post-deals {
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--obsidian);
  color: var(--ink);
}

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

.feed-eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--solar-bright);
  margin-bottom: 4px;
}
.feed-eyebrow.light {
  color: var(--solar-deep);
}

.feed-post-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
  font-weight: 800;
  line-height: 1.24;
  color: #f8fafc;
}
.feed-post-title.light {
  color: var(--ink);
}

.feed-post-copy {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 68ch;
}
.feed-post-copy.light {
  color: var(--ink-2);
}

.feed-head-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  background-color: #152436;
  border: 1px solid #2b4460;
  color: var(--solar-bright);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
}
.feed-head-link:hover {
  background-color: #1c3148;
  color: #ffffff;
  border-color: var(--solar);
}

/* Video Spotlight Post */
.feed-vid-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.feed-vid-slot {
  background-color: #111e2d;
  border: 1px solid #233850;
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.feed-vid-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #0b141e;
  overflow: hidden;
}

.feed-vid-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background-color: #0b141e;
  cursor: pointer;
  text-align: left;
}
.feed-vid-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}
.feed-vid-cover:hover img {
  transform: scale(1.03);
}

.feed-play-pill {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: var(--radius-xs);
  background-color: #0b141e;
  border: 1px solid var(--solar);
  color: var(--solar-bright);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}
.feed-vid-cover:hover .feed-play-pill {
  background-color: var(--solar);
  color: #0b141e;
}

.feed-dur-pill {
  position: absolute;
  right: 10px;
  bottom: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
  background-color: #0b141e;
  border: 1px solid #2b4460;
  color: #f8fafc;
  font-size: 0.75rem;
  font-weight: 600;
}

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

.feed-vid-meta {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.feed-vid-chan {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--solar-bright);
  text-decoration: none;
}
.feed-vid-chan:hover {
  text-decoration: underline;
}
.feed-vid-title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.35;
  color: #f8fafc;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Interactive Tool / Guide Post */
.feed-post-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) auto;
  gap: 20px;
  align-items: center;
}

.feed-spec-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.feed-spec-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  background-color: #152436;
  border: 1px solid #2b4460;
  color: #7dd3fc;
  font-size: 0.76rem;
  font-weight: 600;
}

.feed-guide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.feed-sec-btn {
  background-color: #152436;
  border: 1px solid #2b4460;
  color: #f8fafc;
}
.feed-sec-btn:hover {
  background-color: #1c3148;
  border-color: var(--solar);
  color: var(--solar-bright);
}

/* Complete Build Kit Post */
.feed-post-kit {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.feed-kit-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background-color: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.feed-kit-thumb {
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feed-kit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.16s ease;
}
.feed-kit-thumb:hover img {
  transform: scale(1.05);
}

.feed-kit-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.feed-kit-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 12px;
  margin-top: 12px;
}

.feed-kit-part {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: var(--radius-xs);
  background-color: #f8fafc;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  min-width: 0;
  text-decoration: none;
}
.feed-kit-part:hover {
  border-color: var(--solar);
  background-color: var(--solar-tint);
}
.feed-kit-part-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.feed-kit-part strong {
  font-size: 0.78rem;
  color: var(--ink);
  flex-shrink: 0;
}

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

.feed-kit-total {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.feed-kit-total span {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
}
.feed-kit-total strong {
  font-size: 1.18rem;
  color: var(--ink);
}

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

/* Deals Spotlight Post (Beat 4+) */
.feed-deals-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feed-deal-tile {
  background-color: #f8fafc;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.feed-deal-tile:hover {
  border-color: var(--solar);
  background-color: #ffffff;
}

.feed-deal-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feed-deal-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feed-deal-pct {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  background-color: var(--emerald-deep);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
}

.feed-deal-brand {
  font-size: 0.75rem;
  color: var(--sky-deep);
  font-weight: 700;
}

.feed-deal-title {
  font-size: 0.84rem;
  line-height: 1.3;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-deal-price {
  margin-top: auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}
.feed-deal-price del {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 500;
}

@media (max-width: 900px) {
  .feed-post-guide,
  .feed-post-kit {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-guide-actions {
    justify-content: flex-start;
  }
  .feed-kit-mosaic {
    max-width: 340px;
  }
  .feed-deals-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .home-feed-stream {
    gap: 18px;
  }
  .feed-post {
    padding: 16px;
  }
  .feed-post-title {
    font-size: 1.08rem;
  }
  .feed-vid-grid,
  .feed-kit-parts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 374px) {
  .feed-post {
    padding: 13px;
  }
  .feed-deals-strip {
    grid-template-columns: minmax(0, 1fr);
  }
  .feed-kit-btns,
  .feed-guide-actions {
    width: 100%;
  }
  .feed-kit-btns .btn,
  .feed-guide-actions .btn {
    width: 100%;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.foot {
  background: var(--obsidian);
  color: #cbd5e1;
  border-top: 1px solid var(--obsidian-line);
  padding: 48px 0 56px;
  margin-top: 40px;
}

.foot-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(0, 1.4fr);
  gap: 36px;
  align-items: start;
}

.foot-tag {
  margin: 12px 0;
  font-size: 0.9rem;
  color: #b6c4d6;
  max-width: 480px;
}

.foot-fee,
.foot-fine {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #b6c4d6;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
}

.foot-nav a,
.foot-link {
  font-size: 0.86rem;
  color: #cbd5e1;
  background: none;
  border: 0;
  padding: 0;
}

.foot-nav a:hover,
.foot-link:hover {
  color: var(--solar-bright);
}

.foot-fb-dot {
  background: none;
  border: 0;
  color: #b6c4d6;
  padding: 0 4px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1120px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .wb-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .product-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .product-hero-head,
  .product-hero-controls {
    flex: 1 1 auto;
    justify-content: flex-start;
  }
  .hero-search-box {
    max-width: none;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .partners-wrap,
  .foot-inner {
    grid-template-columns: 1fr;
  }
  .kit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .retail-bar-desktop,
  .hide-mobile-flt {
    display: none !important;
  }
  .retail-bar-mobile {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 12px;
  }
  .flt-sort-mobile {
    min-height: 40px;
    border-radius: var(--radius-sm);
    width: 100%;
    min-width: 0;
  }
  .product-hero {
    padding: 12px 0 20px;
  }
  .product-hero-top {
    gap: 8px;
    margin-bottom: 8px;
  }
  .product-hero-controls {
    display: block;
    width: 100%;
  }
  .hero-search-box,
  .shop-search-box {
    max-width: none;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 600px) {
  .wrap {
    padding: 0 14px;
  }
  .hide-sm {
    display: none;
  }
  .pcard-cat {
    display: none;
  }
  .product-grid {
    gap: 10px;
  }
  .pcard-media {
    padding: 10px;
  }
  .pcard-body {
    padding: 11px 12px 12px;
    gap: 6px;
  }
  .pcard-foot {
    flex-wrap: wrap;
    gap: 6px;
  }
  .pcard-foot .btn.sm {
    width: 100%;
  }
  .wb-body {
    padding: 16px;
  }
  .wb-row-2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 374px) {
  .wrap {
    padding: 0 12px;
  }
  .product-hero-controls {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-tool-btn {
    width: 100%;
  }
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------------- Mobile fit: no side scroll on phones ---------------- */
@media (max-width: 480px) {
  .top-inner {
    gap: 8px;
  }
  .logo {
    min-width: 0;
    flex-shrink: 1;
    gap: 8px;
  }
  .logo-mark {
    width: 32px;
    height: 32px;
  }
  .wordmark-stack {
    min-width: 0;
  }
  .wordmark {
    font-size: clamp(0.94rem, 4.6vw, 1.2rem);
    white-space: nowrap;
  }
  .wordmark-sub {
    display: none;
  }
  .top-actions {
    gap: 6px;
    flex-shrink: 0;
  }
  .icon-pill,
  .menu-btn {
    min-height: 42px;
    min-width: 42px;
    padding: 0 10px;
    gap: 5px;
    justify-content: center;
  }
  .menu-btn > span:not(.menu-ico) {
    display: none;
  }
  .toast {
    right: 16px;
    max-width: calc(100vw - 32px);
  }
}

/* Mobile fit: legal cards shrink to the screen */
@media (max-width: 760px) {
  .legal-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  }
  .legal-card,
  #wh-video-modal-title {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .video-modal-head button {
    flex-shrink: 0;
    white-space: nowrap;
  }
  #wh-video-modal,
  .video-modal,
  .video-modal-box,
  select,
  input {
    max-width: 100%;
    min-width: 0;
  }
}
html, body { overflow-x: clip; }


@media (max-width: 480px) {
  .top .wordmark-stack { display: none; }
  .top .logo { flex: 0 0 auto; }
}
