:root {
  color-scheme: light;
  --bg: #0a0b10;
  --surface: #151720;
  --surface-soft: #1d202b;
  --ink: #f8fafc;
  --muted: #9ca3af;
  --line: #2b2f3d;
  --brand: #ff9900;
  --brand-dark: #232f3e;
  --accent: #0f766e;
  --danger: #c2410c;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 153, 0, 0.16), transparent 28%),
    linear-gradient(180deg, #0b0d13 0%, #0a0b10 54%, #11131b 100%);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 16px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid rgba(217, 222, 232, 0.8);
  background: rgba(10, 11, 16, 0.9);
  backdrop-filter: blur(16px);
}

.theme-button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 850;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 280px;
}

.brand-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-dark);
  box-shadow: 0 10px 24px rgba(35, 47, 62, 0.2);
  font-size: 24px;
}

.brand strong {
  display: block;
  font-size: 20px;
  line-height: 1.1;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: #d6deea;
  font-size: 14px;
  font-weight: 750;
}

.nav a:hover,
.nav a.active {
  background: #fff3d6;
  color: #7a4b00;
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.toolbar {
  position: sticky;
  top: 81px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px auto;
  gap: 12px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 11, 16, 0.9);
  backdrop-filter: blur(14px);
}

.search-box input,
.toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.search-box input {
  padding: 0 14px;
}

.toolbar select {
  padding: 0 10px;
}

.primary-button,
.secondary-button,
.buy-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
}

.primary-button {
  padding: 0 18px;
  border: 1px solid var(--brand-dark);
  background: var(--brand-dark);
  color: #ffffff;
}

.secondary-button {
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.buy-button {
  padding: 0 16px;
  border: 1px solid #f0b429;
  background: linear-gradient(180deg, #ffd56a, var(--brand));
  color: #301d00;
  box-shadow: 0 10px 20px rgba(255, 153, 0, 0.22);
}

.page {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 34px clamp(18px, 4vw, 48px) 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.76fr);
  gap: 18px;
  align-items: stretch;
}

.editorial-hero {
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 1.05fr);
}

.magazine-hero {
  background:
    linear-gradient(135deg, rgba(21, 23, 32, 0.96) 0%, rgba(28, 30, 42, 0.94) 58%, rgba(255, 153, 0, 0.18) 100%),
    linear-gradient(90deg, rgba(255, 153, 0, 0.08), transparent);
}

.hero-card,
.trust-card,
.section,
.product-card,
.stat-card,
.empty-state,
.guide-card,
.disclosure-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
  padding: 40px;
  background:
    linear-gradient(135deg, rgba(21, 23, 32, 0.98) 0%, rgba(30, 33, 44, 0.95) 62%, rgba(255, 153, 0, 0.13) 100%);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 30px;
  width: 180px;
  height: 126px;
  border: 1px solid rgba(35, 47, 62, 0.14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.28)),
    repeating-linear-gradient(0deg, rgba(255, 153, 0, 0.16) 0 1px, transparent 1px 30px),
    repeating-linear-gradient(90deg, rgba(35, 47, 62, 0.12) 0 1px, transparent 1px 45px);
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-bottom: 14px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-card p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.62;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-card {
  padding: 24px;
  background: #111827;
  color: #ffffff;
}

.editor-pick {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.editor-layout {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.editor-image,
.detail-media {
  display: grid;
  min-height: 240px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 20px;
}

.editor-image img,
.detail-media img {
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.editor-layout h2 {
  margin-top: 12px;
  font-size: 30px;
  line-height: 1.08;
}

.editor-layout p {
  color: var(--muted);
  line-height: 1.58;
}

.editor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  color: var(--muted);
}

.editor-meta strong {
  color: var(--ink);
  font-size: 20px;
}

.trust-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.trust-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  color: #e5e7eb;
  line-height: 1.45;
}

.trust-list span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 153, 0, 0.18);
  color: #ffd56a;
  font-weight: 900;
}

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

.stat-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand);
}

.stat-card small {
  color: var(--muted);
  font-weight: 760;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 28px;
}

.section {
  margin-top: 18px;
  padding: 22px;
}

.page-heading {
  background:
    linear-gradient(135deg, rgba(21, 23, 32, 0.98), rgba(255, 153, 0, 0.12));
}

.page-heading h1 {
  max-width: 900px;
}

.category-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.category-tile {
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, var(--surface), var(--surface-soft));
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.07);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 153, 0, 0.5);
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.category-tile strong {
  display: block;
  font-size: 17px;
  line-height: 1.2;
}

.category-tile span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

.split-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.section-header {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-header p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.product-card {
  display: grid;
  grid-template-rows: 330px auto auto;
  gap: 0;
  min-height: 620px;
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.compact-card {
  min-height: 560px;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 153, 0, 0.38);
  box-shadow: 0 24px 62px rgba(15, 23, 42, 0.16);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  margin: 20px 20px 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #1c1e29;
}

.product-media img {
  max-width: 100%;
  max-height: 285px;
  object-fit: contain;
}

.best-seller-badge,
.rank-badge {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.best-seller-badge {
  top: 12px;
  left: 12px;
  padding: 0 12px;
  background: #ffc739;
  color: #080a0f;
}

.rank-badge {
  top: 12px;
  right: 12px;
  min-width: 32px;
  background: #07080c;
  color: #9ca3af;
}

.image-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  align-content: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 199, 57, 0.22), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--ink);
  font-weight: 800;
  text-align: center;
}

.image-fallback strong {
  display: block;
  padding: 8px 10px;
  border-radius: 999px;
  background: #fff3d6;
  color: #7a4b00;
  font-size: 13px;
  text-transform: uppercase;
}

.image-fallback small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fallback-art {
  display: grid;
  width: min(170px, 72%);
  min-height: 122px;
  place-items: center;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04));
}

.fallback-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffc739, #ff9900);
  color: #090a10;
  font-size: 30px;
  font-weight: 950;
}

.fallback-line {
  display: block;
  width: 54%;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.fallback-line.wide {
  width: 78%;
}

.product-body {
  padding: 22px 20px 10px;
}

.product-kicker {
  display: block;
  color: #8d93a1;
  font-size: 12px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.category-badge {
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff3d6;
  color: #7a4b00;
  font-size: 12px;
  font-weight: 850;
}

.product-title {
  display: -webkit-box;
  min-height: 74px;
  margin-top: 10px;
  overflow: hidden;
  color: var(--ink);
  font-weight: 850;
  line-height: 1.32;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.product-scoreline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: end;
  padding: 12px 20px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.product-price {
  color: #ffc739;
  font-size: 26px;
  line-height: 1;
}

.product-rating {
  color: #ffc739;
  font-weight: 850;
  white-space: nowrap;
}

.product-scoreline a {
  grid-column: 2;
  color: #6f8bc2;
  font-size: 12px;
  text-decoration: underline;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 0 16px;
}

.meta-box {
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  background: #f8fafc;
}

.meta-box small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.meta-box strong {
  display: block;
  margin-top: 4px;
  font-size: 14px;
}

.product-actions {
  display: grid;
  gap: 8px;
  padding: 0;
}

.product-actions .buy-button {
  min-height: 52px;
  border-radius: 0 0 var(--radius) var(--radius);
  text-transform: uppercase;
}

.affiliate-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-copy .affiliate-note {
  margin: 14px 0 0;
}

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

.guide-card {
  padding: 18px;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 0.76fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.detail-media {
  min-height: 520px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.detail-copy {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 30px;
}

.detail-copy h1 {
  margin-top: 14px;
  font-size: clamp(32px, 4vw, 56px);
}

.detail-note {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.detail-grid div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.detail-grid small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-grid strong {
  display: block;
  margin-top: 6px;
  font-size: 18px;
}

.guide-card p,
.disclosure-card p,
.empty-state p {
  color: var(--muted);
  line-height: 1.62;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  background: #ffffff;
}

th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.empty-state,
.loading-state,
.disclosure-card {
  padding: 26px;
}

.loading-state {
  display: grid;
  min-height: 300px;
  place-items: center;
  color: var(--muted);
}

.loader {
  width: 48px;
  height: 48px;
  border: 4px solid #fff3d6;
  border-top-color: var(--brand-dark);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer a {
  font-weight: 800;
}

[data-theme="dark"] {
  --bg: #0f172a;
  --surface: #172033;
  --surface-soft: #111827;
  --ink: #f8fafc;
  --muted: #b6c2d1;
  --line: #2b3548;
  --brand-dark: #0b1220;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

[data-theme="light"] {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --ink: #172033;
  --muted: #667085;
  --line: #d9dee8;
  --brand-dark: #232f3e;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.11);
}

[data-theme="light"] body {
  background:
    linear-gradient(135deg, rgba(255, 153, 0, 0.16), transparent 30%),
    linear-gradient(180deg, #fffaf2 0%, #f8fafc 46%, #eef2f7 100%);
}

[data-theme="light"] .site-header,
[data-theme="light"] .toolbar {
  background: rgba(255, 255, 255, 0.9);
}

[data-theme="light"] .nav a {
  color: #344054;
}

[data-theme="light"] .hero-card,
[data-theme="light"] .page-heading {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 243, 214, 0.84));
}

[data-theme="light"] .search-box input,
[data-theme="light"] .toolbar select,
[data-theme="light"] .secondary-button,
[data-theme="light"] .theme-button {
  background: #ffffff;
  color: var(--ink);
}

[data-theme="light"] .product-media,
[data-theme="light"] .meta-box,
[data-theme="light"] th,
[data-theme="light"] .category-tile,
[data-theme="light"] .detail-grid div {
  background: #f8fafc;
}

[data-theme="light"] .product-kicker {
  color: #667085;
}

[data-theme="dark"] body {
  background:
    linear-gradient(135deg, rgba(255, 153, 0, 0.12), transparent 30%),
    linear-gradient(180deg, #0b1220 0%, #111827 55%, #0f172a 100%);
}

[data-theme="dark"] .site-header,
[data-theme="dark"] .toolbar {
  background: rgba(15, 23, 42, 0.9);
}

[data-theme="dark"] .nav a {
  color: #d6deea;
}

[data-theme="dark"] .nav a:hover,
[data-theme="dark"] .nav a.active {
  background: rgba(255, 153, 0, 0.16);
  color: #ffcf75;
}

[data-theme="dark"] .hero-card,
[data-theme="dark"] .page-heading {
  background:
    linear-gradient(135deg, rgba(23, 32, 51, 0.98), rgba(35, 47, 62, 0.95) 58%, rgba(255, 153, 0, 0.14));
}

[data-theme="dark"] .search-box input,
[data-theme="dark"] .toolbar select,
[data-theme="dark"] .secondary-button,
[data-theme="dark"] .theme-button {
  background: #111827;
  color: var(--ink);
}

[data-theme="dark"] .meta-box,
[data-theme="dark"] th,
[data-theme="dark"] .product-media,
[data-theme="dark"] .category-tile,
[data-theme="dark"] .detail-grid div {
  background: #111827;
}

[data-theme="dark"] table {
  background: var(--surface);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1200px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .nav {
    display: none;
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  body.menu-open .nav {
    display: grid;
  }

  .toolbar {
    top: 81px;
    grid-template-columns: 1fr;
  }

  .hero,
  .guide-grid,
  .editorial-hero,
  .editor-layout,
  .split-sections,
  .product-detail {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-header {
    grid-template-columns: 1fr auto auto;
  }
}

@media (max-width: 640px) {
  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .page {
    padding: 22px 14px 46px;
  }

  .hero-card {
    padding: 24px;
  }

  .hero-card::after {
    display: none;
  }

  .stats-grid,
  .product-grid,
  .category-strip,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    display: block;
  }

  .site-footer {
    display: grid;
    text-align: center;
  }
}
