.gstore-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: #f8fafc;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-family: system-ui, sans-serif;
  font-size: 0.9rem;
}
.gstore-label {
  color: #334155;
  font-weight: 500;
}
.gstore-change-btn {
  background: #e2e8f0;
  color: #0f172a;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.2s;
}
.gstore-change-btn:hover {
  background: #cbd5e1;
}

.gstore-clear-btn {
  background: transparent;
  color: #ef4444;
  border: 1px solid #fca5a5;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}
.gstore-clear-btn:hover {
  background: #fef2f2;
}

.gstore-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none; /* Prevents invisible blocking */
}
.gstore-modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.gstore-modal {
  background: #ffffff;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 20px 25px -5px rgba(100, 60, 20, 0.08);
  font-family: system-ui, sans-serif;
  transform: translateY(10px);
  transition: transform 0.2s ease;
}
.gstore-modal-overlay.open .gstore-modal {
  transform: translateY(0);
}

.gstore-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}
.gstore-modal-header h3 {
  margin: 0;
  color: #0f172a;
  font-size: 1.25rem;
}
.gstore-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #64748b;
  line-height: 1;
}
.gstore-close-btn:hover {
  color: #0f172a;
}

.gstore-modal-body {
  padding: 1.5rem;
}
.gstore-modal-body p {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #475569;
  font-size: 0.95rem;
}

.gstore-country-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.75rem;
}
.gstore-country-btn {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #334155;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.gstore-country-btn:hover {
  border-color: #3b82f6;
  color: #1d4ed8;
}
.gstore-country-btn.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #1d4ed8;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px #3b82f6;
}

/* ════════════════════════════════════════════
   DESIGN TOKENS — accessibility theme system
   ════════════════════════════════════════════
   Slate  = Default dark navy/indigo
   Cream  = Dyslexia-friendly (warm tones, increased spacing)
   Focus  = High Contrast (visual impairment, WCAG AAA)
   Calm   = Sensory-friendly (autism, muted desaturated tones)
   Dusk   = Low eye-strain (photosensitivity, warm tint)
   ════════════════════════════════════════════ */
:root,
[data-theme="slate"] {
  --c-primary: #1e293b;
  --c-primary-dark: #0f172a;
  --c-accent: #a8451a;
  --c-accent2: #6366f1;
  --c-gold: #f59e0b;
  --c-hero-from: #0f172a;
  --c-hero-to: #1e293b;
  --c-tag: #e0f2fe;
  --c-tag-text: #0369a1;
  --c-bg: #ffffff;
  --c-text: #1a1a2e;
  --c-text-muted: #4a4a6a;
  --c-surface: #f8f7f4;
  --c-surface-hover: #ffffff;
  --c-border: #ece9e3;
  --c-footer-bg: #0f172a;
  --body-line-height: 1.6;
  --body-letter-spacing: normal;
  --body-word-spacing: normal;
  --heading-font: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --card-radius: 14px 4px 14px 4px;
  --card-radius-sm: 10px 3px 10px 3px;
  --featured-gradient: linear-gradient(90deg, #f7f0e8, #ffe4cc);
  --texture-opacity: 0.035;
  --card-accent-border: 3px solid var(--c-accent);
  --section-accent-line: 2px solid var(--c-accent);
  --featured-border: 3px solid var(--c-accent);
}

/* Dyslexia-friendly: cream backgrounds, warm text, increased spacing.
   Based on British Dyslexia Association guidelines &
   Rello/Baeza-Yates readability research. */
[data-theme="cream"] {
  --c-primary: #5b4636;
  --c-primary-dark: #3c2a1e;
  --c-accent: #b8621b;
  --c-accent2: #7b5b3a;
  --c-gold: #d4a017;
  --c-hero-from: #3c2a1e;
  --c-hero-to: #5b4636;
  --c-tag: #fff3e0;
  --c-tag-text: #5d4037;
  --c-bg: #fdf6e3;
  --c-text: #433422;
  --c-text-muted: #6d5d4b;
  --c-surface: #fff8ed;
  --c-surface-hover: #fffdf7;
  --c-border: #e0d5c1;
  --c-footer-bg: #3c2a1e;
  --body-line-height: 1.8;
  --body-letter-spacing: 0.03em;
  --body-word-spacing: 0.08em;
  --heading-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --card-radius: 10px;
  --card-radius-sm: 8px;
  --featured-gradient: linear-gradient(90deg, #fff8ed, #ffe8cc);
  --texture-opacity: 0;
  --card-accent-border: none;
  --section-accent-line: none;
  --featured-border: none;
}

/* High Contrast: maximum readability for low vision.
   WCAG AAA compliant, strong borders, bold accents. */
[data-theme="focus"] {
  --c-primary: #000000;
  --c-primary-dark: #000000;
  --c-accent: #0050b3;
  --c-accent2: #b30050;
  --c-gold: #cc8800;
  --c-hero-from: #000000;
  --c-hero-to: #111111;
  --c-tag: #ffd200;
  --c-tag-text: #000000;
  --c-bg: #ffffff;
  --c-text: #000000;
  --c-text-muted: #1a1a1a;
  --c-surface: #f0f0f0;
  --c-surface-hover: #ffffff;
  --c-border: #333333;
  --c-footer-bg: #000000;
  --body-line-height: 1.7;
  --body-letter-spacing: 0.01em;
  --body-word-spacing: normal;
  --heading-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --card-radius: 4px;
  --card-radius-sm: 4px;
  --featured-gradient: #f0f0f0;
  --texture-opacity: 0;
  --card-accent-border: none;
  --section-accent-line: 3px solid #000000;
  --featured-border: 3px solid #000000;
}

/* Sensory-friendly: muted, desaturated tones for autism.
   Based on National Autistic Society guidance —
   low-saturation palette reduces visual overload. */
[data-theme="calm"] {
  --c-primary: #4a6b5d;
  --c-primary-dark: #344e41;
  --c-accent: #6b8f71;
  --c-accent2: #5e8b8a;
  --c-gold: #b8a04a;
  --c-hero-from: #344e41;
  --c-hero-to: #4a6b5d;
  --c-tag: #e3eddf;
  --c-tag-text: #3b5445;
  --c-bg: #f4f6f3;
  --c-text: #2c3830;
  --c-text-muted: #5a6b5e;
  --c-surface: #ebf0ea;
  --c-surface-hover: #f4f6f3;
  --c-border: #cdd9c8;
  --c-footer-bg: #344e41;
  --body-line-height: 1.7;
  --body-letter-spacing: normal;
  --body-word-spacing: normal;
  --heading-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --card-radius: 8px;
  --card-radius-sm: 6px;
  --featured-gradient: #ebf0ea;
  --texture-opacity: 0;
  --card-accent-border: none;
  --section-accent-line: none;
  --featured-border: none;
}

/* Low eye-strain: warm-tinted backgrounds reduce blue light.
   Designed for photosensitivity, migraines & prolonged reading. */
[data-theme="dusk"] {
  --c-primary: #2d2438;
  --c-primary-dark: #1a1525;
  --c-accent: #9b6b4a;
  --c-accent2: #7b6b9e;
  --c-gold: #c4a05a;
  --c-hero-from: #1a1525;
  --c-hero-to: #2d2438;
  --c-tag: #ede5d8;
  --c-tag-text: #5b4a38;
  --c-bg: #f5f0e8;
  --c-text: #000;
  --c-text-muted: #4f4759;
  --c-surface: #ede6dc;
  --c-surface-hover: #f5f0e8;
  --c-border: #d5ccbf;
  --c-footer-bg: #1a1525;
  --body-line-height: 1.65;
  --body-letter-spacing: normal;
  --body-word-spacing: normal;
  --heading-font: Georgia, "Palatino Linotype", Palatino, "Times New Roman", serif;
  --card-radius: 12px 4px 12px 4px;
  --card-radius-sm: 8px 3px 8px 3px;
  --featured-gradient: linear-gradient(90deg, #ede6dc, #e5d8c8);
  --texture-opacity: 0;
  --card-accent-border: 3px solid var(--c-accent);
  --section-accent-line: 2px solid var(--c-accent);
  --featured-border: 2px solid var(--c-accent);
}

/* Theme-specific enhancements */
[data-theme="focus"] a:focus-visible,
[data-theme="focus"] button:focus-visible {
  outline-width: 4px;
}

[data-theme="focus"] .product-card,
[data-theme="focus"] .cat-card,
[data-theme="focus"] .article-card {
  border-width: 2px;
}

[data-theme="calm"] *,
[data-theme="calm"] *::before,
[data-theme="calm"] *::after {
  transition-duration: 0.08s !important;
}

/* Focus: crisp shadows, clear boundaries */
[data-theme="focus"] .feat-card,
[data-theme="focus"] .cat-card,
[data-theme="focus"] .article-card,
[data-theme="focus"] .product-card,
[data-theme="focus"] .subcat-card {
  box-shadow: 0 2px 0 #000;
}

[data-theme="focus"] .feat-card:hover,
[data-theme="focus"] .cat-card:hover,
[data-theme="focus"] .article-card:hover,
[data-theme="focus"] .product-card:hover,
[data-theme="focus"] .subcat-card:hover {
  box-shadow: 0 4px 0 #000;
}

/* Calm: minimal shadows, reduced visual noise */
[data-theme="calm"] .feat-card,
[data-theme="calm"] .cat-card,
[data-theme="calm"] .article-card,
[data-theme="calm"] .product-card,
[data-theme="calm"] .subcat-card {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

[data-theme="calm"] .feat-card:hover,
[data-theme="calm"] .cat-card:hover,
[data-theme="calm"] .article-card:hover,
[data-theme="calm"] .product-card:hover,
[data-theme="calm"] .subcat-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* Remove paper texture on all accessibility themes */
[data-theme="cream"] .featured-strip::after,
[data-theme="focus"] .featured-strip::after,
[data-theme="calm"] .featured-strip::after,
[data-theme="dusk"] .featured-strip::after {
  display: none;
}

/* ════════════════════════════════════════════
   RESET & BASE
   ════════════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--c-text);
  background: var(--c-bg);
  line-height: var(--body-line-height);
  letter-spacing: var(--body-letter-spacing);
  word-spacing: var(--body-word-spacing);
  min-height: 100vh;
}

h1, h2, h3 {
  font-family: var(--heading-font, inherit);
}

img {
  max-width: 100%; height:auto;
  display: block;
}

a {
  color: var(--c-accent2);
}

a:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

button:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--c-accent);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 0;
}

/* Screen reader only - visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ════════════════════════════════════════════
   NAVIGATION & HEADER
   ════════════════════════════════════════════ */
.site-nav {
  position: relative;
  z-index: 250;
  background: var(--c-primary-dark);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  gap: 1rem;
}

.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  white-space: nowrap;
}

.logo {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 900;
  text-decoration: none;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo em,
.logo span {
  color: var(--c-accent);
  font-style: normal;
}

.logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--c-gold);
  border-radius: 50%;
  margin: 0 1px 2px;
  vertical-align: middle;
}

.search-form {
  flex: 1;
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}

.search-form input {
  width: 100%;
  padding: 0.5rem 2.8rem 0.5rem 1rem;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.875rem;
  outline: none;
  transition: background 0.2s, border-color 0.2s;
}

.search-form input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-form input:focus {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

.search-form button {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

/* ── Search block ── */
.search-block {
  display: flex;
  align-items: center;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.search-block .search-form {
  display: flex;
  align-items: center;
  flex: 1;
  margin: 0;
  max-width: none;
  position: static;
  min-width: 0;
}

.search-category {
  border: none;
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.6rem;
  border-right: 1px solid var(--c-border);
  border-radius: 10px 0 0 10px;
  cursor: pointer;
  outline: none;
  flex-shrink: 0;
  min-width: 140px;
}

.search-category:focus {
  background: var(--c-surface);
}

.search-block .search-form input {
  border: none;
  background: var(--c-bg);
  color: var(--c-text);
  padding: 0.5rem 0.75rem;
  border-radius: 0;
  font-size: 0.85rem;
  flex: 1;
  min-width: 0;
}

.search-block .search-form input::placeholder {
  color: var(--c-text-muted);
}

.search-block .search-form input:focus {
  background: var(--c-bg);
  border-color: transparent;
}

.search-block .search-form button {
  position: static;
  transform: none;
  background: var(--c-accent);
  color: #fff;
  width: 150px;
  padding: 0.5rem 0.75rem;
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  border-radius: 0 10px 10px 0;
  border: none;
  cursor: pointer;
  transition: background 0.18s;
}

.search-block .search-form button:hover {
  background: var(--c-primary-dark);
  color: #fff;
}

/* ── Store selector block ── */
.store-block {
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.store-block .gstore-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.35rem 0.5rem 0.35rem 0.7rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.store-block .gstore-label {
  color: rgba(255, 255, 255, 0.85);
}

.store-block .gstore-change-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
}

.store-block .gstore-change-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.gstore-short {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-shrink: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  transition: background 0.18s, color 0.18s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a.active {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* Mega menu */
.mega-parent {
  position: relative;
}

.mega-parent > a::after {
  content: " ▾";
  font-size: 0.6rem;
  opacity: 0.7;
}

.mega-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 50%;
  transform: translateX(-50%);
  background: var(--c-bg);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(100, 60, 20, 0.15);
  width: 540px;
  padding: 1.5rem;
  z-index: 300;
}

.mega-menu[aria-hidden="false"] {
  display: block;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.35rem;
}

.mega-head {
  grid-column: 1 / -1;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.mega-menu a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--c-text);
  text-decoration: none;
  font-size: 0.85rem;
  padding: 0.4rem 0.5rem;
  border-radius: 7px;
  transition: background 0.15s;
}

.mega-menu a:hover {
  background: var(--c-accent);
  color: #fff;
}

.mega-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Theme swatches in nav */
.nav-theme-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Hamburger */
.hamburger {
  display: flex;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  padding: 0.3rem;
  flex-shrink: 0;
  flex-direction: column;
  gap: 5px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: background 0.18s;
}

.hamburger:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 400;
  pointer-events: none;
  visibility: hidden;
}

.drawer.open {
  pointer-events: all;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  transition: opacity 0.25s;
  backdrop-filter: blur(2px);
}

.drawer.open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(300px, 88vw);
  height: 100%;
  background: var(--c-bg);
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.drawer.open .drawer-panel {
  transform: translateX(0);
}

.drawer-head {
  background: var(--c-primary-dark);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.drawer-close {
  background: rgba(255, 255, 255, 0.12);
  border: none;
  cursor: pointer;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.drawer-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

.drawer-body {
  padding: 1rem 1.25rem;
  flex: 1;
}

.drawer-section {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
}

.drawer-body a {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.5rem;
  color: var(--c-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: background 0.15s;
}

.drawer-body a:hover,
.drawer-body a[aria-current="page"] {
  background: var(--c-surface);
  font-weight: 600;
}

.drawer-body .sub {
  padding-left: 2rem;
  font-size: 0.85rem;
  color: var(--c-text-muted);
}

/* Theme Switcher */
.theme-bar {
  background: var(--c-primary);
  padding: 0.4rem 1.25rem;
  position: sticky;
  top: 0;
  z-index: 200;
}

.theme-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
}

.theme-swatches {
  display: flex;
  gap: 0.4rem;
}

.theme-btn {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
  position: relative;
}

.theme-btn:hover {
  transform: scale(1.2);
}

.theme-btn[aria-pressed="true"] {
  border-color: #fff;
  transform: scale(1.25);
}

.theme-btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.tb-slate {
  background: #6366f1;
}

.tb-cream {
  background: #c8a87c;
}

.tb-focus {
  background: #ffd200;
}

.tb-calm {
  background: #8baf92;
}

.tb-dusk {
  background: #9b7b8e;
}

/* Breadcrumb row — breadcrumb + disclosure on one line */
.breadcrumb-row {
  grid-column: 1 / -1;
  margin-bottom: 0.75rem;
}

.breadcrumb {
  display: inline;
  font-size: 0.72rem;
}

.breadcrumb a {
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: rgba(0, 0, 0, 0.65);
}

.breadcrumb .sep,
.breadcrumb span {
  color: rgba(0, 0, 0, 0.3);
}

.breadcrumb [aria-current="page"] {
  color: rgba(0, 0, 0, 0.45);
}

/* ════════════════════════════════════════════
   HERO SECTIONS
   ════════════════════════════════════════════ */
.hero {
  background: linear-gradient(
    135deg,
    var(--c-hero-from) 0%,
    var(--c-hero-to) 100%
  );
  color: #fff;
  padding: 1.0rem 1rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-block;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  max-width: 1200px;
  margin: 0.5rem auto 1rem;
}

.hero h1 em {
  color: var(--c-gold);
  font-style: normal;
}

.hero p {
  max-width: 520px;
  margin: 0 auto 2rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.05rem;
}

.cat-hero {
  background: linear-gradient(
    135deg,
    var(--c-hero-from) 0%,
    var(--c-hero-to) 100%
  );
  position: relative;
  overflow: hidden;
  padding: 3.5rem 1.25rem 3rem;
}

.cat-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.04) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

.cat-hero-inner {
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.ch-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.cat-hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.cat-hero h1 span {
  color: var(--c-gold);
}

.cat-hero-desc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  max-width: 540px;
  margin-bottom: 1.75rem;
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hs-item {
  text-align: center;
}

.hs-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1;
  margin-bottom: 0.15rem;
}

.hs-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.hero-visual {
  font-size: 7rem;
  line-height: 1;
  opacity: 0.75;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.5rem;
}

/* Standalone hero-buttons (outside hero section) */
main > .hero-buttons {
  margin-top: 0;
  padding: 1.25rem 1rem;
  background: var(--c-surface-alt, #f5f5f5);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.6rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.22s, box-shadow 0.22s;
}

.btn-primary {
  background: var(--c-accent);
  color: #fff;
  box-shadow: 0 4px 18px rgba(168, 69, 26, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ════════════════════════════════════════════
   TRUST STRIPS & FEATURED STRIPS
   ════════════════════════════════════════════ */
.trust-strip,
.trust-bar {
  background: var(--c-primary);
  padding: 0.85rem 1.25rem;
  color: rgba(255, 255, 255, 0.8);
}

.trust-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  font-size: 0.82rem;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.trust-item strong {
  color: #fff;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.featured-strip {
  background: var(--featured-gradient, linear-gradient(90deg, #f7f0e8, #ffe8d6));
  position: relative;
  overflow: hidden;
  border-top: var(--featured-border, none);
}

.featured-strip::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: var(--texture-opacity, 0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: repeat;
  pointer-events: none;
}

.featured-inner {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 1rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.featured-text .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--c-accent);
  margin-bottom: 0.5rem;
}

.featured-text h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.featured-text p {
  color: var(--c-text-muted);
  margin-bottom: 1.2rem;
}

.featured-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.feat-card {
  background: var(--c-bg);
  border-radius: var(--card-radius-sm, 10px);
  padding: 1rem;
  box-shadow: 0 2px 12px rgba(100, 60, 20, 0.06);
  text-decoration: none;
  color: var(--c-text);
  border-top: var(--card-accent-border, none);
}

.feat-card:hover {
  box-shadow: 0 6px 20px rgba(100, 60, 20, 0.1);
}

.feat-card .ico {
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
}

.feat-card h4 {
  font-size: 0.875rem;
  font-weight: 700;
}

.feat-card p {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-top: 0.2rem;
}

/* ════════════════════════════════════════════
   GRIDS & CONTENT SECTIONS
   ════════════════════════════════════════════ */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.section-head,
.section-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-head h2,
.section-hd h2 {
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--c-text);
}

.section-head a {
  color: var(--c-accent2);
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 600;
}

/* ── Search grid & buttons (category pages) ── */
.search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.search-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  background: var(--c-surface);
  color: var(--c-text);
  border: 2px solid var(--c-border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.search-btn:hover {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: var(--c-surface);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(100, 60, 20, 0.08);
}

.search-btn-icon {
  font-size: 1.2rem;
}

/* ── Two-column content area (category pages) ── */
.content-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  max-width: 1280px;
}

.content-col h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--c-text);
  margin-bottom: 0.75rem;
}

.content-col p {
  color: var(--c-text-muted);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.content-col p:last-child {
  margin-bottom: 0;
}

/* ── Article sections — long-form editorial content (category pages) ── */
.article-section {
  padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 5vw, 2rem);
  background: var(--c-surface, #fff);
  border-top: var(--section-accent-line, none);
}

.article-section:nth-of-type(even) {
  background: var(--c-surface-alt, #f8f7f4);
}

.article-inner {
  max-width: 900px;
  margin: 0 auto;
}

.article-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 600;
  color: var(--c-heading, var(--c-text));
  margin: 0 0 1.25rem 0;
  line-height: 1.25;
}

.article-section h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  font-weight: 600;
  color: var(--c-heading, var(--c-text));
  margin: 1.75rem 0 0.75rem 0;
  line-height: 1.3;
}

.article-section p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  line-height: 1.7;
  color: var(--c-text, #333);
  margin: 0 0 1.25rem 0;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-section .lead {
  font-size: clamp(1.1rem, 2.8vw, 1.25rem);
  color: var(--c-text-muted, #555);
  line-height: 1.6;
}

.article-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent, #b8860b);
  margin-bottom: 0.5rem;
}

/* ── Sub-category navigation strip ── */

/* Button reset */
button.subcat-link {
  appearance: none;
  -webkit-appearance: none;
}


.subcat-strip {margin-top:10px;
  max-width: 1250px;
  margin-left: auto;
  margin-right: auto;
  padding: 1.25rem clamp(1rem, 3vw, 2rem);
 /* background: #2d3640; gggg */
  background: #f3efe7;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
  border-radius:9px;
}

.subcat-strip::-webkit-scrollbar {
  height: 6px;
}

.subcat-strip::-webkit-scrollbar-track {
  background: transparent;
}

.subcat-strip::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
}

.subcat-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
}
.subcat-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem;
 /* background: rgba(255, 255, 255, 0.08); gggg */
 background: #264d89;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.5rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-text-inverse, #fff);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.subcat-link:hover,
.subcat-link:focus {
  background: var(--c-accent, #0ea5e9);
  border-color: var(--c-accent, #0ea5e9);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.subcat-link:focus {
  outline: 2px solid var(--c-focus, #fff);
  outline-offset: 2px;
}

.subcat-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.subcat-strip.light {
  background: var(--c-surface-alt, #f5f4f0);
}

.subcat-strip.light .subcat-link {
  background: var(--c-surface, #fff);
  border-color: var(--c-border, #ddd);
  color: var(--c-text, #333);
}

.subcat-strip.light .subcat-link:hover,
.subcat-strip.light .subcat-link:focus {
  background: var(--c-accent, #b8860b);
  border-color: var(--c-accent, #b8860b);
  color: #fff;
}



/* ── Sub-category cards — visual navigation tiles ── */
.subcat-group-heading {
  max-width: 1200px;
  margin: 2rem auto 1rem auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--c-text-muted, #666);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.subcat-group-heading:first-of-type {
  margin-top: 0;
}

.subcat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

.subcat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.75rem 1.25rem;
  background: var(--c-surface, #fff);
  border: 1px solid var(--c-border, #e5e5e5);
  border-radius: var(--card-radius-sm, 0.5rem);
  text-decoration: none;
  text-align: center;
  transition: all 0.25s ease;
}

.subcat-card:hover,
.subcat-card:focus {
  border-color: var(--c-accent, #b8860b);
  box-shadow: 0 8px 24px rgba(100, 60, 20, 0.07);
  transform: translateY(-4px);
}

.subcat-card:focus {
  outline: 2px solid var(--c-accent, #b8860b);
  outline-offset: 2px;
}

.subcat-card-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.subcat-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--c-heading, var(--c-text));
  margin: 0 0 0.35rem 0;
}

.subcat-card .subcat-card-desc {
  font-size: 0.85rem;
  color: var(--c-text-muted, #666);
  margin: 0;
}

.subcat-card .subcat-card-cta {
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--c-accent, #b8860b);
}


/* ── Product section — contextual button groups ── */

.product-section {
  padding: 0.5rem clamp(1rem, 5vw, 2rem) 2rem;
  background: var(--c-surface-alt, #f8f7f4);
}

.product-section-head {
  max-width: 1200px;
  margin: 0 auto 1.5rem auto;
}

.product-section-head h2 {
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 600;
  color: var(--c-heading, var(--c-text));
  margin: 1rem 0 0.25rem 0;
}

.product-section-head p {
  font-size: 0.95rem;
  color: var(--c-text-muted, #666);
  margin: 0;
}

.product-section .search-grid {
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Shop preview — collapsible master grid with scroll ──
   Wraps the top product-section content on category index pages.
   Collapsed: fixed height with scrollbar. Expanded: full height.
   Adjust --shop-preview-height to change the collapsed viewport. */

.shop-preview {
  --shop-preview-height: 450px;
  position: relative;
}

.shop-preview[data-collapsed="true"] {
  max-height: var(--shop-preview-height);
  overflow-y: auto;
  scrollbar-width: auto;
  scrollbar-color: var(--c-accent, #b8860b) var(--c-surface, #f0ede6);
}

.shop-preview[data-collapsed="true"]::-webkit-scrollbar {
  width: 14px;
}

.shop-preview[data-collapsed="true"]::-webkit-scrollbar-track {
  background: var(--c-surface, #f0ede6);
  border-radius: 7px;
}

.shop-preview[data-collapsed="true"]::-webkit-scrollbar-thumb {
  background: var(--c-accent, #b8860b);
  border-radius: 7px;
  border: 2px solid var(--c-surface, #f0ede6);
}

.shop-preview[data-collapsed="false"] {
  max-height: none;
  overflow: visible;
}

/* Fade hint at bottom of collapsed viewport */
.shop-preview-fade {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: linear-gradient(to bottom, transparent, var(--c-surface-alt, #f8f7f4));
  pointer-events: none;
  z-index: 2;
}

.shop-preview[data-collapsed="false"] .shop-preview-fade {
  display: none;
}

/* Toggle button */
.shop-preview-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  width: 100%;
  max-width: 320px;
  margin: 0.75rem auto 0;
  padding: 0.55rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--c-accent, #b8860b);
  background: var(--c-surface, #fff);
  border: 1.5px solid var(--c-border, #ddd);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.shop-preview-toggle:hover {
  border-color: var(--c-accent, #b8860b);
  background: var(--c-bg, #f8f7f4);
  color: var(--c-accent, #b8860b);
}

.shop-preview-toggle:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
}

/* Chevron arrow */
.shop-preview-toggle::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -0.15em;
  transition: transform 0.25s;
}

.shop-preview[data-collapsed="false"] ~ .shop-preview-toggle::after {
  transform: rotate(-135deg);
  margin-top: 0.15em;
}

/* ── Section divider ── */
.section-divider {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

.section-divider hr {
  border: none;
  border-top: 1px solid var(--c-border, #e5e5e5);
  margin: 0;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: 1rem;
}

.cat-card {
  background: var(--c-surface);
  border-radius: var(--card-radius-sm, 10px);
  padding: 1.4rem 1rem;
  text-align: center;
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.22s, box-shadow 0.22s;
  border: 1px solid transparent;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(100, 60, 20, 0.08);
  border-color: var(--c-accent);
  background: var(--c-bg);
}

.cat-icon {
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  display: block;
}

.cat-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.cat-card span {
  font-size: 0.78rem;
  color: var(--c-text-muted);
}

.cat-group-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: var(--section-accent-line, 2px solid var(--c-accent));
}

.cat-group-title:first-of-type {
  margin-top: 0;
}

.cat-group-desc {
  font-size: 0.92rem;
  color: var(--c-text-muted, #666);
  margin: -0.25rem 0 0.75rem;
  line-height: 1.5;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.article-card {
  border-radius: var(--card-radius-sm, 10px);
  overflow: hidden;
  border: 1px solid var(--c-border);
  transition: box-shadow 0.22s;
  text-decoration: none;
  color: var(--c-text);
  display: flex;
  flex-direction: column;
}

.article-card:hover {
  box-shadow: 0 6px 22px rgba(100, 60, 20, 0.08);
}

.article-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.article-img.tech {
  background: linear-gradient(135deg, #e0e7ff, #bfdbfe);
}

.article-img.home {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
}

.article-img.fit {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
}

.article-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.art-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-accent);
  margin-bottom: 0.35rem;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.article-body p {
  font-size: 0.85rem;
  color: var(--c-text-muted);
  flex: 1;
}

.art-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: #9ca3af;
}

.page-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  align-items: start;
}

.page-outer {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2.5rem;
  align-items: start;
}

/* ════════════════════════════════════════════
   SIDEBARS
   ════════════════════════════════════════════ */
.sidebar {
  position: sticky;
  top: 100px;
}

.sb-block {
  background: var(--c-surface);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.sb-block-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #9ca3af;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.sb-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  color: var(--c-text);
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.875rem;
  transition: background 0.15s;
  gap: 0.4rem;
}

.sb-link:hover,
.sb-link[aria-current="page"] {
  background: var(--c-bg);
  font-weight: 600;
}

.sb-link[aria-current="page"] {
  color: var(--c-accent);
}

.sb-link-icon {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.sb-link-count {
  font-size: 0.72rem;
  color: #9ca3af;
  background: var(--c-border);
  padding: 0.1rem 0.45rem;
  border-radius: 50px;
  flex-shrink: 0;
}

.sb-divider {
  height: 1px;
  background: var(--c-border);
  margin: 0.5rem 0;
}

.sb-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.sb-check-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  border-radius: 7px;
  transition: background 0.15s;
}

.sb-check-label:hover {
  background: var(--c-bg);
}

.sb-check-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--c-accent);
  cursor: pointer;
  flex-shrink: 0;
}

.sb-clear {
  display: block;
  margin-top: 0.65rem;
  text-align: center;
  font-size: 0.78rem;
  color: var(--c-accent2);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: underline;
  width: 100%;
}

/* ════════════════════════════════════════════
   PRODUCT COMPONENTS (Category)
   ════════════════════════════════════════════ */

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.product-card {
  background: var(--c-bg);
  border-radius: var(--card-radius, 14px);
  border: 1px solid var(--c-border);
  text-decoration: none;
  color: var(--c-text);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.22s, transform 0.22s;
  overflow: hidden;
  position: relative;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(100, 60, 20, 0.1);
  transform: translateY(-4px);
}

.pc-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  z-index: 2;
}

.badge-top {
  background: #fef9c3;
  color: #854d0e;
}

.badge-new {
  background: #dcfce7;
  color: #166534;
}

.badge-sale {
  background: #fee2e2;
  color: #991b1b;
}

.badge-guide {
  background: var(--c-tag);
  color: var(--c-tag-text);
}

.pc-visual {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  flex-shrink: 0;
  position: relative;
}

.pc-visual::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.04));
}

.pc-body {
  padding: 1rem 1.1rem 1.1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.pc-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-accent);
}

.pc-title {
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--c-text);
}

.pc-desc {
  font-size: 0.83rem;
  color: var(--c-text-muted);
  line-height: 1.5;
  flex: 1;
}

.pc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--c-border);
}

.pc-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  gap: 0.65rem;
}

.pc-cta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-accent2);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  white-space: nowrap;
}

.pc-cta::after {
  content: " →";
}

.grad-blue {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
}

.grad-teal {
  background: linear-gradient(135deg, #ccfbf1, #a7f3d0);
}

.grad-amber {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
}

.grad-pink {
  background: linear-gradient(135deg, #fce7f3, #f3e8ff);
}

.grad-red {
  background: linear-gradient(135deg, #fee2e2, #ffedd5);
}

.grad-slate {
  background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

/* ════════════════════════════════════════════
   PRODUCT COMPONENTS (Article & Review)
   ════════════════════════════════════════════ */
.product-header {
  margin-bottom: 2rem;
}

.ph-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 0.2rem 0.65rem;
  border-radius: 50px;
}

.tag-cat {
  background: #e0e7ff;
  color: #3730a3;
}

.tag-new {
  background: #fef9c3;
  color: #854d0e;
}

.tag-updated {
  background: #dcfce7;
  color: #166534;
}

.product-header h1 {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.ph-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.83rem;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border);
}

.ph-meta .author {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.author-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e0e7ff, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.verdict-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--c-surface);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.verdict-score {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1;
  flex-shrink: 0;
}

.verdict-divider {
  width: 1px;
  height: 40px;
  background: #ddd;
  flex-shrink: 0;
}

.stars {
  color: var(--c-gold);
  font-size: 1.1rem;
  letter-spacing: 0.05rem;
}

.product-image-wrap {
  background: linear-gradient(135deg, #e0e7ff 0%, #dbeafe 100%);
  border-radius: var(--card-radius, 14px);
  padding: 3rem 2rem;
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.product-image-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 70% 30%,
    rgba(255, 255, 255, 0.4),
    transparent 60%
  );
}

.product-emoji {
  font-size: 8rem;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.15));
}

.product-image-caption {
  font-size: 0.78rem;
  color: var(--c-text-muted);
  margin-top: 1rem;
  position: relative;
}

.quick-specs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.7rem;
  margin-bottom: 2rem;
}

.qs-item {
  background: var(--c-surface);
  border-radius: 8px;
  padding: 0.8rem 0.9rem;
  text-align: center;
}

.qs-item .qs-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.qs-item .qs-value {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--c-text);
}

.article-content {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
}

.article-content h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
}

.article-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--c-text);
}

.article-content p {
  margin-bottom: 1rem;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}

.pc-box {
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}

.pc-box.pros {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.pc-box.cons {
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.pc-box h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.7rem;
}

.pc-box.pros h4 {
  color: #16a34a;
}

.pc-box.cons h4 {
  color: #dc2626;
}

.pc-list {
  list-style: none;
}

.pc-list li {
  font-size: 0.875rem;
  padding: 0.3rem 0;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  line-height: 1.4;
}

.pc-list li::before {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.pros .pc-list li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 700;
}

.cons .pc-list li::before {
  content: "✗";
  color: #dc2626;
  font-weight: 700;
}

.score-breakdown {
  background: var(--c-surface);
  border-radius: 12px;
  padding: 1.4rem;
  margin: 1.5rem 0;
}

.score-breakdown h3 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: 1rem;
  font-weight: 700;
}

.score-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.7rem;
}

.score-name {
  font-size: 0.875rem;
  font-weight: 600;
  width: 120px;
  flex-shrink: 0;
}

.score-bar-wrap {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 50px;
  overflow: hidden;
}

.score-bar {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-gold));
  transition: width 0.6s ease;
}

.score-num {
  font-size: 0.875rem;
  font-weight: 800;
  width: 34px;
  text-align: right;
  flex-shrink: 0;
  color: var(--c-text);
}

.callout {
  border-left: 4px solid var(--c-accent);
  background: #fff8f5;
  border-radius: 0 10px 10px 0;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}

.callout strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--c-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.875rem;
}

.compare-table th {
  background: var(--c-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  text-align: left;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-table th:first-child {
  border-radius: 8px 0 0 0;
}

.compare-table th:last-child {
  border-radius: 0 8px 0 0;
}

.compare-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

.compare-table tr:nth-child(even) td {
  background: #fafafa;
}

.compare-table tr.highlight td {
  background: #fff8f5;
  font-weight: 600;
}

.compare-table .check {
  color: #16a34a;
  font-weight: 700;
}

.compare-table .cross {
  color: #dc2626;
}

/* ── Buy Box Sidebar ── */
.buy-box {
  background: var(--c-primary-dark);
  color: #fff;
  border-radius: 14px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
  position: sticky;
  top: 90px;
}

.buy-box-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.6rem;
  font-weight: 700;
}

.buy-box-name {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.buy-box-score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.bbs-num {
  font-size: 2rem;
  font-weight: 900;
  color: var(--c-gold);
  line-height: 1;
}

.bbs-info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

.bbs-stars {
  color: var(--c-gold);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.1rem;
}

.buy-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--c-gold);
  color: var(--c-text);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.22s, transform 0.22s;
  margin-bottom: 0.6rem;
  border: none;
  cursor: pointer;
}

.buy-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.buy-btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.22s;
  margin-bottom: 1rem;
  cursor: pointer;
  border: none;
}

.buy-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.buy-trust {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
}

.buy-trust span {
  margin: 0 0.4rem;
}

.mini-specs {
  background: var(--c-surface);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 1.2rem;
}

.mini-specs h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.ms-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.83rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--c-border);
}

.ms-row:last-child {
  border-bottom: none;
}

.ms-row .ms-label {
  color: var(--c-text-muted);
}

.ms-row .ms-val {
  font-weight: 700;
  color: var(--c-text);
  text-align: right;
  max-width: 55%;
}

.related-box {
  background: var(--c-surface);
  border-radius: 12px;
  padding: 1.1rem;
  margin-bottom: 1.2rem;
}

.related-box h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-muted);
  margin-bottom: 0.8rem;
  font-weight: 700;
}

.related-link {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  text-decoration: none;
  color: var(--c-text);
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: opacity 0.22s;
}

.related-link:hover {
  opacity: 0.75;
}

.related-thumb {
  width: 52px;
  height: 40px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, #e0e7ff, #bfdbfe);
}

.related-text {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
}

.related-cat {
  font-size: 0.72rem;
  color: var(--c-text-muted);
  margin-top: 0.15rem;
}

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
footer {
  background: var(--c-footer-bg);
  color: rgba(255, 255, 255, 0.7);
  padding: 1.25rem 1.25rem;
  margin-top: 0;
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 2.5rem;
}

.footer-brand-name {
  font-size: 1.15rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 0.6rem;
  display: inline-block;
  text-decoration: none;
}

.footer-brand-name em,
.footer-brand-name span {
  color: var(--c-accent);
  font-style: normal;
}

.footer-desc {
  font-size: 0.84rem;
  line-height: 1.65;
  max-width: 260px;
  margin-bottom: 1rem;
}

footer h4 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.9rem;
  font-weight: 700;
}

footer ul {
  list-style: none;
}

footer ul li {
  margin-bottom: 0.45rem;
}

footer ul li a,
footer ul li a:visited {
  color: #b3b3b3;
  text-decoration: none;
  font-size: 0.84rem;
  transition: color 0.18s;
}

footer ul li a:hover {
  color: #fff;
}

.affiliate-notice {
  max-width: 1200px;
  margin: 0 auto 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-size: 0.78rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

.affiliate-notice strong {
  color: rgba(255, 255, 255, 0.85);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
}

.footer-bottom-links a,
.footer-bottom-links a:visited {
  color: #b3b3b3;
  text-decoration: none;
}

.footer-bottom-links a:hover,
.footer-bottom-links button:hover {
  color: #fff;
}

.footer-bottom-links button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: #b3b3b3;
  font: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-bottom span a,
.footer-bottom span a:visited {
  color: #b3b3b3;
  text-decoration: none;
  transition: color 0.18s;
}

.footer-bottom span a:hover {
  color: #fff;
}

/* ── Privacy Modal ── */
.privacy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: none;
  z-index: 10000;
  justify-content: center;
  align-items: center;
}

.privacy-overlay[aria-hidden="false"] {
  display: flex;
}

.privacy-modal {
  background: var(--c-primary-dark, #0f2340);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: min(520px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.privacy-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.privacy-modal-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.privacy-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: rgba(255, 255, 255, 0.6);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
}

.privacy-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.privacy-modal-body {
  padding: 1rem 1.4rem 1.4rem;
}

.privacy-modal-body p {
  font-size: 0.84rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 0.8rem;
}

.privacy-modal-body p strong {
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.86rem;
}

.privacy-modal-body p:last-child {
  margin-bottom: 0;
}

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

  .page-outer {
    grid-template-columns: 1fr;
  }

  .buy-box {
    position: static;
  }

  .sidebar {
    order: -1;
  }

  .buy-box,
  .mini-specs,
  .related-box {
    max-width: 480px;
  }
}

@media (max-width: 860px) {
  .page-wrap {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  /* Featured strip stack on tablets */
  .featured-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    text-align: center;
  }

  .featured-text {
    order: 1;
  }

  .featured-cards {
    order: 2;
  }

  /* Subcat strip - tighter grid on tablets */
  .subcat-inner {
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
  }

  .subcat-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.78rem;
  }

  .subcat-icon {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  /* Subcat grid - 3 columns on smaller tablets */
  .subcat-inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .subcat-link {
    padding: 0.5rem 0.4rem;
    font-size: 0.75rem;
  }
}

@media (max-width: 700px) {
  .content-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .pros-cons {
    grid-template-columns: 1fr;
  }

  .quick-specs {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Search bar adjustments for medium screens */
  .theme-bar {
    padding: 0.4rem 1rem;
  }

  .search-block .search-form button {
    width: auto;
    min-width: 80px;
  }

  .search-category {
    max-width: 130px;
  }
}

@media (max-width: 640px) {
  .subcat-strip {
    padding: 1rem 0.75rem;
  }

  .subcat-link {
    padding: 0.5rem 0.7rem;
    font-size: 0.78rem;
    border-radius: 0.4rem;
  }

  .subcat-icon {
    font-size: 0.9rem;
  }

  .subcat-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .subcat-card {
    padding: 1.25rem 0.75rem;
  }

  .subcat-card-icon {
    font-size: 2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
  }

  .nav-theme-group .theme-label {
    display: none;
  }

  /* ── Search bar mobile improvements ── */
  .theme-bar {
    padding: 0.5rem 0.75rem;
  }

  .theme-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .search-form {
    max-width: 100%;
  }

  .search-block {
    flex: 1 1 auto;
    min-width: 0;
  }

  .search-block .search-form button {
    width: auto;
    min-width: 60px;
    padding: 0.45rem 0.5rem;
    font-size: 0.75rem;
  }

  .search-category {
    max-width: 115px;
    font-size: 0.7rem;
    padding: 0.4rem 0.3rem;
  }

  .search-block .search-form input {
    font-size: 0.8rem;
    padding: 0.4rem 0.5rem;
  }

  .store-block {
    margin-left: 0;
    flex-shrink: 0;
  }

  .store-block .gstore-indicator {
    gap: 0.3rem;
    padding: 0.3rem 0.4rem 0.3rem 0.5rem;
    font-size: 0.72rem;
  }

  .store-block .gstore-change-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
  }

  .gstore-full {
    display: none;
  }

  .gstore-short {
    display: inline;
  }

  .hero {
    padding: 1.8rem 1rem 2rem;
  }

  .hero h1 {
    font-size: 1.5rem;
    margin: 0 auto 0.8rem;
  }

  .hero-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    max-width: 340px;
    margin: 0.5rem auto 0;
  }

  .hero-buttons .btn {
    padding: 0.55rem 0.6rem;
    font-size: 0.78rem;
    gap: 0.3rem;
    justify-content: center;
    border-radius: 8px;
  }

  .hero-buttons .btn-primary {
    box-shadow: 0 2px 10px rgba(168, 69, 26, 0.3);
  }

  .subcat-strip {
    grid-template-columns: repeat(3, 1fr);
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .inline-banner {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .article-grid {
    grid-template-columns: 1fr;
  }

  .featured-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem 1rem;
  }

  .featured-cards {
    grid-template-columns: 1fr 1fr;
  }

  .compare-table {
    font-size: 0.78rem;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.5rem 0.6rem;
  }
}

/* Extra small devices - stacked search bar */
@media (max-width: 480px) {
  .theme-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .search-block {
    width: 100%;
  }

  .store-block {
    width: 100%;
  }

  .store-block .gstore-indicator {
    justify-content: center;
    width: 100%;
  }

  .search-block .search-form button {
    min-width: 55px;
    font-size: 0.72rem;
  }

  .search-category {
    max-width: 100px;
    font-size: 0.68rem;
  }

  .hero-buttons {
    grid-template-columns: 1fr;
    max-width: 280px;
  }

  .featured-cards {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Subcat grid - 2 columns on phones */
  .subcat-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }

  .subcat-link {
    padding: 0.45rem 0.35rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    gap: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Back to Top Button ── */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border: none;
  border-radius: 100px;
  background: var(--c-accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s, visibility 0.25s, transform 0.25s,
              box-shadow 0.25s;
  white-space: nowrap;
}

.back-to-top svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--c-focus, #4A90D9);
  outline-offset: 2px;
}

/* ── Print styles for category pages ── */
@media print {
  .subcat-strip,
  .product-section,
  .hero-buttons,
  .search-block {
    display: none;
  }

  .article-section {
    padding: 1rem 0;
    background: #fff !important;
  }
}

/* ── Disclosure Component ── */
.disclosure {
  display: inline;
  text-align: left;
}

.disclosure-panel {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-top: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 0 0.75rem;
}

.disclosure-msg {
  flex: 1;
  font-size: 0.78rem;
  line-height: 1.6;
  color: #555;
}

.disclosure-msg strong {
  color: #000;
}

.disclosure-msg a,
.disclosure-msg a:visited {
  color: #555;
  text-decoration: underline;
}

.disclosure-msg a:hover {
  color: #000;
}

.disclosure-dismiss {
  flex-shrink: 0;
  align-self: center;
  background: none;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 6px;
  padding: 0.4rem 1rem;
  font-size: 0.72rem;
  color: #595959;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.disclosure-dismiss:hover {
  color: #333;
  border-color: rgba(0, 0, 0, 0.35);
}

.disclosure-collapsed {
  display: none;
}

.disclosure-show {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.72rem;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  text-decoration: underline;
  transition: color 0.15s;
}

.disclosure-show:hover {
  color: rgba(0, 0, 0, 0.65);
}

.disclosure .disclosure-collapsed {
  display: none;
}

.disclosure.is-collapsed .disclosure-panel {
  display: none;
}

.disclosure.is-collapsed .disclosure-collapsed {
  display: inline;
}

/* ── Bottom CTA Banner ── */
.cta-banner {
  background: linear-gradient(135deg, var(--c-footer-bg) 0%, rgba(0,0,0,0.85) 100%);
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.25rem, 5vw, 2rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, var(--c-accent), transparent 70%);
  opacity: 0.12;
  pointer-events: none;
}

.cta-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.cta-banner-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--c-accent);
  margin-bottom: 1rem;
}

.cta-banner h2 {
  color: #fff;
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 900;
  line-height: 1.2;
  margin: 0 0 0.75rem;
}

.cta-banner h2 em {
  color: var(--c-accent);
  font-style: normal;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.75);
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.6;
  margin: 0 0 2rem;
}

.cta-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--c-accent);
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.9rem 2.25rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.cta-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(0,0,0,0.4);
}

.cta-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin-top: 2rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}

.cta-trust span::before {
  content: '\2713\00a0';
  color: var(--c-accent);
  font-weight: 700;
}


.attractive-list {
  max-width: 850px;
  margin: 1.25rem 0 1.25rem 0.25rem;
  padding: 1.25rem 1.5rem 1.25rem 2.2rem;
  background: #f8fafc;
  border: 1px solid #dbe3ea;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.attractive-list li {
  margin: 0 0 0.8rem 0;
  padding-left: 0.35rem;
  line-height: 1.6;
  list-style:none;
}

.attractive-list li:last-child {
  margin-bottom: 0;
}

.attractive-list li::marker {
  color: #c2410c;
  font-size: 1.05em;
  font-weight: bold;
}

@media (max-width: 900px) {
  .attractive-list {
    margin-left: 5px;
  }
}


.product-section-head p {
  margin: 0;
}

.product-section-head p a {
  display: inline-block;
  color: #1e293b;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
  border-bottom: 1px solid rgba(30, 41, 59, 0.22);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.product-section-head p a:hover,
.product-section-head p a:focus {
  color: #c2410c;
  border-bottom-color: #c2410c;
  text-decoration: none;
}

.product-section-head p a:focus {
  outline: 2px solid rgba(194, 65, 12, 0.2);
  outline-offset: 2px;
}

.comparison-table thead th {
  background: #f5f5f5;
  font-weight: 700;
  color: #222;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 1rem;
  line-height: 1.4;
  background: #fff;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid #dcdcdc;
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: #f5f5f5;
  font-weight: 700;
}

.comparison-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.comparison-table tbody td:first-child {
  font-weight: 600;
  white-space: nowrap;
}

.comparison-table-wrapper {
  overflow-x: auto;
}

<style>
.a-checklist {
  max-width: 900px;
  margin: 2rem auto;
  padding: 1.5rem;
  background: #ffffff;
  border: 1px solid #d9d9d9;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  font-family: Arial, sans-serif;
  color: #222;
}

.a-checklist h2 {
  margin: 0 0 0.5rem;
  font-size: 1.8rem;
  line-height: 1.2;
  color: #111;
}

.a-checklist p.intro {
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #555;
}

.a-checklist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.a-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1rem 0;
  border-top: 1px solid #ececec;
}

.a-checklist li:first-child {
  border-top: 0;
}

.a-checklist .check-icon {
  flex: 0 0 1.3rem;
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.15rem;
  border: 2px solid #2f6f4f;
  border-radius: 4px;
  background: #f6fbf8;
  box-sizing: border-box;
}

.a-checklist .check-text {
  flex: 1;
  font-size: 1rem;
  line-height: 1.6;
}

.a-checklist .check-text strong {
  color: #111;
}

@media (max-width: 640px) {
  .a-checklist {
    padding: 1.1rem;
    border-radius: 10px;
  }

  .a-checklist h2 {
    font-size: 1.45rem;
  }

  .a-checklist .check-text {
    font-size: 0.96rem;
  }
}
</style>