/* =========================================================================
   Zalagora — Amazon affiliate store
   Design system: deep indigo + warm gold, Mesopotamian geometric accents.
   Single stylesheet, no framework. Mobile-first.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
  /* Brand — indigo */
  --indigo-900: #141034;
  --indigo-800: #1b1650;
  --indigo-700: #241d63;
  --indigo-600: #2f2680;   /* primary */
  --indigo-500: #453aa6;
  --indigo-400: #6a5fca;
  --indigo-100: #e3e0f4;
  --indigo-050: #f0eef9;

  /* Accent — warm gold */
  --gold-600: #a9822a;
  --gold-500: #c8a13c;     /* primary gold */
  --gold-400: #e0be5f;
  --gold-300: #eed593;
  --gold-050: #fbf5e4;

  /* Call-to-action — Amazon orange */
  --cta-500: #f7941d;
  --cta-600: #e67e0a;
  --cta-700: #c96a05;

  /* Neutrals */
  --bg: #faf9fc;
  --surface: #ffffff;
  --surface-2: #f6f4fb;
  --ink: #1a1738;
  --ink-2: #3a3660;
  --muted: #6b6790;
  --line: #e9e6f3;
  --line-2: #ded9ee;

  /* Feedback */
  --star: #f5a623;
  --good: #1f9d6b;
  --good-bg: #e8f7f0;
  --bad: #e0574b;
  --bad-bg: #fdeceb;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(20,16,52,.06), 0 1px 3px rgba(20,16,52,.05);
  --shadow-md: 0 6px 22px -8px rgba(31,30,110,.20), 0 2px 6px rgba(20,16,52,.05);
  --shadow-lg: 0 22px 55px -18px rgba(31,30,110,.35);
  --shadow-cta: 0 10px 22px -8px rgba(247,148,29,.55);

  /* Shape */
  --r-sm: 9px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Type */
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Motion */
  --ease: cubic-bezier(.22,.61,.36,1);
  --t-fast: .18s var(--ease);
  --t: .28s var(--ease);

  --container: 1200px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { max-width: 100%; display: block; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); font-weight: 800; }
p { margin: 0 0 1rem; }
a { color: var(--indigo-600); text-decoration: none; }
a:hover { color: var(--indigo-500); }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--indigo-400); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1rem, 4vw, 2rem); }
.section { padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.section--tight { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section--alt { background: var(--surface-2); }
.section--indigo { background: var(--indigo-800); color: #eceafb; }
.section--indigo h1, .section--indigo h2, .section--indigo h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-600); margin-bottom: .85rem;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); }
.section--indigo .eyebrow { color: var(--gold-400); }

.section-head { max-width: 640px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section--indigo .section-head p { color: #c3bfe6; }

.lead { font-size: 1.15rem; color: var(--ink-2); }

/* ---------- Decorative geometry ---------- */
.pattern-bg { position: relative; }
.pattern-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("../img/pattern-stars.svg");
  background-size: 46px 46px; opacity: .5; pointer-events: none; z-index: 0;
}
.pattern-bg > * { position: relative; z-index: 1; }

.divider-band {
  height: 16px; width: 100%;
  background: url("../img/pattern-band.svg") repeat-x center / auto 16px;
  opacity: .9;
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--indigo-600);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-weight: 700; font-size: .98rem; line-height: 1;
  padding: .85rem 1.4rem; border-radius: var(--r-full); border: 1px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); color: var(--btn-fg); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.05em; height: 1.05em; }

.btn--primary { --btn-bg: var(--indigo-600); box-shadow: var(--shadow-md); }
.btn--primary:hover { --btn-bg: var(--indigo-500); box-shadow: var(--shadow-lg); }

.btn--gold { --btn-bg: linear-gradient(135deg, var(--gold-500), var(--gold-400)); --btn-fg: #2a2008; box-shadow: 0 8px 20px -8px rgba(200,161,60,.6); }
.btn--gold:hover { --btn-fg: #2a2008; filter: brightness(1.04); }

/* Amazon CTA */
.btn--amazon {
  --btn-bg: linear-gradient(135deg, var(--cta-500), var(--cta-600));
  --btn-fg: #fff; box-shadow: var(--shadow-cta); font-weight: 800;
}
.btn--amazon:hover { filter: brightness(1.05); box-shadow: 0 14px 28px -8px rgba(247,148,29,.65); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--indigo-600); border-color: var(--line-2); }
.btn--ghost:hover { --btn-bg: var(--indigo-050); --btn-fg: var(--indigo-600); }
.section--indigo .btn--ghost { --btn-fg: #fff; border-color: rgba(255,255,255,.28); }
.section--indigo .btn--ghost:hover { --btn-bg: rgba(255,255,255,.10); --btn-fg:#fff; }

.btn--sm { padding: .6rem 1rem; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 200;
  background: var(--indigo-600); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm);
  transition: top var(--t-fast);
}
.skip-link:focus { top: 1rem; color:#fff; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t), background var(--t);
}
.site-header.is-scrolled { box-shadow: var(--shadow-md); background: rgba(255,255,255,.94); }
.header-inner {
  min-height: var(--header-h);
  display: flex; align-items: center; gap: 1rem;
}

.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--indigo-700); }
.brand:hover { color: var(--indigo-700); }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__name { font-weight: 800; font-size: 1.34rem; letter-spacing: -.01em; }
.brand__name b { color: var(--gold-600); font-weight: 800; }

.header-spacer { flex: 1; }

/* Nav + search cluster */
.header-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: .25rem; list-style: none; }
.primary-nav a {
  display: inline-block; padding: .5rem .7rem; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 600; font-size: .95rem; position: relative;
  transition: color var(--t-fast), background var(--t-fast);
}
.primary-nav a:hover { color: var(--indigo-600); background: var(--indigo-050); }
.primary-nav a[aria-current="page"] { color: var(--indigo-700); }
.primary-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .22rem; height: 2px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-400)); border-radius: 2px;
}

/* Search */
.search { display: flex; align-items: center; position: relative; }
.search input {
  width: 190px; max-width: 42vw;
  padding: .58rem .9rem .58rem 2.3rem;
  border: 1px solid var(--line-2); border-radius: var(--r-full);
  background: var(--surface-2); color: var(--ink); font-size: .9rem;
  transition: box-shadow var(--t-fast), width var(--t), border-color var(--t-fast), background var(--t-fast);
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--indigo-400); background: #fff; box-shadow: 0 0 0 4px rgba(106,95,202,.15); width: 230px; }
.search__icon { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); pointer-events: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line-2);
  background: var(--surface); border-radius: var(--r-sm); padding: 0; margin-left: auto;
  align-items: center; justify-content: center; color: var(--indigo-700);
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(200,161,60,.14), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(69,58,166,.14), transparent 55%),
    linear-gradient(180deg, #fff, var(--bg));
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-block: clamp(3rem, 7vw, 5.5rem); }
.hero__title { font-size: clamp(2.3rem, 5.4vw, 3.9rem); line-height: 1.05; letter-spacing: -.03em; }
.hero__title .shine {
  background: linear-gradient(100deg, var(--gold-600), var(--gold-400) 45%, var(--indigo-500));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-2); max-width: 40ch; margin-top: .4rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 1.2rem 1.6rem; margin-top: 2.2rem; color: var(--muted); font-size: .9rem; }
.hero__trust span { display: inline-flex; align-items: center; gap: .45rem; }
.hero__trust svg { width: 18px; height: 18px; color: var(--good); }

/* Hero visual: layered star + floating pick cards */
.hero__art { position: relative; aspect-ratio: 1/1; }
.hero__star {
  position: absolute; inset: 6% ; margin: auto; width: 88%; height: 88%;
  color: var(--indigo-100); filter: drop-shadow(0 30px 50px rgba(47,38,128,.18));
  animation: spin-slow 60s linear infinite;
}
@keyframes spin-slow { to { transform: rotate(360deg); } }
.hero__badge {
  position: absolute; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: .7rem .9rem;
  display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .85rem;
}
.hero__badge small { display:block; color: var(--muted); font-weight: 600; font-size: .74rem; }
.hero__badge .dot { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color:#fff; flex:none; }
.hero__badge--1 { top: 8%; left: -4%; }
.hero__badge--2 { bottom: 12%; right: -6%; }
.hero__badge--3 { bottom: 34%; left: -8%; }

/* ---------- Value props strip ---------- */
.valueprops { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.valueprop { display: flex; gap: .8rem; align-items: flex-start; padding: 1.1rem 1.15rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.valueprop svg { width: 26px; height: 26px; color: var(--gold-600); flex: none; }
.valueprop h3 { font-size: .98rem; margin: 0 0 .15rem; }
.valueprop p { font-size: .85rem; color: var(--muted); margin: 0; }

/* ---------- Category grid ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.cat-card {
  position: relative; overflow: hidden; border-radius: var(--r-lg);
  padding: 1.6rem; min-height: 190px; color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-md); isolation: isolate;
  transition: transform var(--t), box-shadow var(--t);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.cat-card::before { /* gradient wash */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(150deg, var(--c1, var(--indigo-600)), var(--c2, var(--indigo-800)));
}
.cat-card::after { /* geometric overlay */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background: url("../img/pattern-stars.svg") repeat; background-size: 40px 40px;
  mix-blend-mode: screen;
}
.cat-card__icon { width: 42px; height: 42px; margin-bottom: auto; color: rgba(255,255,255,.92); }
.cat-card h3 { color: #fff; font-size: 1.3rem; margin: .6rem 0 .2rem; }
.cat-card p { color: rgba(255,255,255,.82); font-size: .88rem; margin: 0 0 .3rem; }
.cat-card__count { font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--gold-300); }
.cat-card__go { position: absolute; top: 1.2rem; right: 1.2rem; width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast); }
.cat-card:hover .cat-card__go { background: rgba(255,255,255,.28); transform: translateX(2px); }
.cat-card__go svg { width: 16px; height: 16px; color: #fff; }

/* ---------- Product card ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }

.product-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform var(--t), box-shadow var(--t), border-color var(--t);
}
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-2); }
.product-card__media { position: relative; aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__tag {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: var(--r-full);
  background: rgba(20,16,52,.72); color: #fff; backdrop-filter: blur(4px);
}
.product-card__tag--deal { background: linear-gradient(135deg, var(--cta-500), var(--cta-600)); }
.product-card__fav {
  position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 32px; height: 32px;
  border-radius: 50%; border: none; background: rgba(255,255,255,.85); color: var(--muted);
  display: grid; place-items: center; box-shadow: var(--shadow-sm); transition: color var(--t-fast), transform var(--t-fast);
}
.product-card__fav:hover { color: var(--bad); transform: scale(1.08); }
.product-card__fav svg { width: 16px; height: 16px; }

.product-card__body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem 1.05rem 1.15rem; flex: 1; }
.product-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-600); }
.product-card__title { font-size: 1rem; font-weight: 700; line-height: 1.3; margin: 0; }
.product-card__title a { color: var(--ink); }
.product-card__title a:hover { color: var(--indigo-600); }
.product-card__benefit { font-size: .86rem; color: var(--muted); margin: 0; flex: 1; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .2rem; }
.product-card__price { font-weight: 800; color: var(--ink); font-size: 1.02rem; }
.product-card__price small { color: var(--muted); font-weight: 600; font-size: .78rem; text-decoration: line-through; margin-left: .25rem; }
.product-card .btn--amazon { margin-top: .35rem; }

/* ---------- Star rating ---------- */
.rating { display: inline-flex; align-items: center; gap: .4rem; }
.stars { --pct: 100%; position: relative; display: inline-block; font-size: .95rem; line-height: 1; }
.stars::before { content: "★★★★★"; letter-spacing: 2px; color: var(--line-2); }
.stars::after {
  content: "★★★★★"; letter-spacing: 2px; color: var(--star);
  position: absolute; inset: 0; width: var(--pct); overflow: hidden; white-space: nowrap;
}
.rating__num { font-size: .8rem; font-weight: 700; color: var(--ink-2); }
.rating__count { font-size: .78rem; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter { position: relative; overflow: hidden; border-radius: var(--r-xl); background: linear-gradient(135deg, var(--indigo-700), var(--indigo-900)); color: #fff; padding: clamp(2rem, 5vw, 3.5rem); }
.newsletter::after { content: ""; position: absolute; inset: 0; background: url("../img/pattern-stars.svg") repeat; background-size: 44px 44px; opacity: .12; pointer-events: none; }
.newsletter__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; }
.newsletter h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.newsletter p { color: #c9c5ec; margin: 0; }
.newsletter__form { display: flex; gap: .6rem; flex-wrap: wrap; }
.newsletter__form input {
  flex: 1; min-width: 200px; padding: .95rem 1.15rem; border-radius: var(--r-full);
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1); color: #fff; font-size: .98rem;
}
.newsletter__form input::placeholder { color: rgba(255,255,255,.65); }
.newsletter__form input:focus { outline: none; border-color: var(--gold-400); box-shadow: 0 0 0 4px rgba(224,190,95,.2); background: rgba(255,255,255,.16); }
.newsletter__note { font-size: .8rem; color: #a9a4d6; margin-top: .9rem; }
.newsletter__ok { display: none; margin-top: .9rem; color: var(--gold-300); font-weight: 700; }
.newsletter.is-done .newsletter__ok { display: block; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: .85rem; color: var(--muted); padding-top: 1.4rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--line-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--indigo-600); }
.breadcrumb [aria-current="page"] { color: var(--ink-2); font-weight: 600; }

/* ---------- Category header ---------- */
.cat-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--line); }
.cat-hero__inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding-block: clamp(1.5rem, 4vw, 2.6rem); }
.cat-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: .4rem 0 .5rem; }
.cat-hero p { color: var(--muted); max-width: 60ch; margin: 0; }
.cat-hero__emblem { width: 92px; height: 92px; color: var(--indigo-100); }
@media (max-width: 720px){ .cat-hero__emblem { display: none; } }

.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: space-between; margin-bottom: 1.8rem; }
.toolbar__count { color: var(--muted); font-size: .9rem; }
.toolbar__count b { color: var(--ink); }
.chip-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: .82rem; font-weight: 600; padding: .45rem .85rem; border-radius: var(--r-full); transition: all var(--t-fast); }
.chip:hover, .chip.is-active { background: var(--indigo-600); color: #fff; border-color: var(--indigo-600); }
select.sort { border: 1px solid var(--line-2); background: var(--surface); border-radius: var(--r-full); padding: .5rem .9rem; font: inherit; font-size: .85rem; color: var(--ink-2); }

/* ---------- Pagination ---------- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: 2.6rem; }
.pagination[hidden] { display: none; }
.pagination a, .pagination span, .pagination button { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: .9rem; }
.pagination button { cursor: pointer; font-family: inherit; padding: 0; -webkit-appearance: none; appearance: none; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.pagination a:hover, .pagination button:not([disabled]):hover { border-color: var(--indigo-400); color: var(--indigo-600); }
.pagination .is-current { background: var(--indigo-600); color: #fff; border-color: var(--indigo-600); }
.pagination .is-disabled, .pagination button[disabled] { opacity: .45; pointer-events: none; }
.pagination__gap { border: 0 !important; background: none !important; letter-spacing: .1em; }

/* Cross-fade the grid when the page changes */
.product-grid { transition: opacity .2s var(--ease); }
.product-grid.is-paging { opacity: 0; }

/* ---------- Roundup / review article ---------- */
.article { padding-block: clamp(1.5rem, 4vw, 2.5rem) clamp(3rem, 7vw, 5rem); }
.article__layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.article__body { min-width: 0; }
.article__head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: .6rem; }
.article__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; color: var(--muted); font-size: .88rem; align-items: center; margin-bottom: 1.3rem; }
.article__meta .avatar { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--indigo-500), var(--gold-500)); display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: .8rem; }
.article__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.article__body :is(h2) { font-size: clamp(1.4rem, 3vw, 1.9rem); margin-top: 2.4rem; scroll-margin-top: calc(var(--header-h) + 1rem); }
.article__body :is(h3) { font-size: 1.2rem; margin-top: 1.6rem; }
.article__body p { color: var(--ink-2); }
.article__body > p:first-of-type { font-size: 1.12rem; color: var(--ink-2); }

.disclosure-inline {
  display: flex; gap: .7rem; align-items: flex-start;
  background: var(--gold-050); border: 1px solid var(--gold-300); border-left: 4px solid var(--gold-500);
  border-radius: var(--r); padding: .85rem 1rem; font-size: .86rem; color: #6a5417; margin: 1.4rem 0;
}
.disclosure-inline svg { width: 18px; height: 18px; color: var(--gold-600); flex: none; margin-top: .1rem; }

/* Quick picks cards */
.quickpicks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.6rem 0 .5rem; }
.quickpick { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem; background: var(--surface); box-shadow: var(--shadow-sm); }
.quickpick .label { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--gold-600); }
.quickpick h3 { font-size: 1rem; margin: .35rem 0 .5rem; }
.quickpick a.jump { font-size: .82rem; font-weight: 700; }

/* Comparison table */
.table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--line); border-radius: var(--r); -webkit-overflow-scrolling: touch; }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9rem; }
table.compare thead th { background: var(--indigo-700); color: #fff; text-align: left; font-weight: 700; padding: .85rem 1rem; font-size: .82rem; letter-spacing: .02em; }
table.compare tbody td { padding: .8rem 1rem; border-top: 1px solid var(--line); color: var(--ink-2); vertical-align: middle; }
table.compare tbody tr:nth-child(even) { background: var(--surface-2); }
table.compare .rank { font-weight: 800; color: var(--indigo-600); }
table.compare .prod { font-weight: 700; color: var(--ink); }

/* Roundup entry */
.entry { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); padding: clamp(1.1rem, 3vw, 1.8rem); margin: 1.5rem 0; scroll-margin-top: calc(var(--header-h) + 1rem); }
.entry__top { display: grid; grid-template-columns: 220px 1fr; gap: 1.5rem; }
.entry__media { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface-2); aspect-ratio: 1/1; }
.entry__media img { width: 100%; height: 100%; object-fit: cover; }
.entry__rank { position: absolute; top: 0; left: 0; background: linear-gradient(135deg, var(--indigo-600), var(--indigo-800)); color: #fff; font-weight: 800; font-size: 1.1rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 0 0 var(--r) 0; }
.entry__head { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; justify-content: space-between; }
.entry__besttag { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-700, var(--gold-600)); background: var(--gold-050); border: 1px solid var(--gold-300); padding: .28rem .6rem; border-radius: var(--r-full); }
.entry h3 { font-size: 1.35rem; margin: .5rem 0 .3rem; }
.entry__desc { color: var(--ink-2); font-size: .95rem; }
.entry__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--line-2); }
.entry__price { font-weight: 800; font-size: 1.15rem; }
.entry__price small { color: var(--muted); font-weight: 600; text-decoration: line-through; font-size: .82rem; margin-left: .3rem; }

/* Pros / cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.1rem; }
.pc { border-radius: var(--r); padding: .9rem 1.05rem; border: 1px solid; }
.pc h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 .5rem; display: flex; align-items: center; gap: .4rem; }
.pc ul { list-style: none; display: flex; flex-direction: column; gap: .4rem; }
.pc li { position: relative; padding-left: 1.5rem; font-size: .88rem; color: var(--ink-2); }
.pc li::before { position: absolute; left: 0; top: .05rem; font-weight: 800; }
.pc--pro { background: var(--good-bg); border-color: #bfe9d5; }
.pc--pro h4 { color: var(--good); }
.pc--pro li::before { content: "✓"; color: var(--good); }
.pc--con { background: var(--bad-bg); border-color: #f6cdc9; }
.pc--con h4 { color: var(--bad); }
.pc--con li::before { content: "✕"; color: var(--bad); }

.specs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.spec { font-size: .8rem; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: .35rem .7rem; color: var(--ink-2); }
.spec b { color: var(--ink); }

/* Sidebar / TOC */
.article__aside { position: sticky; top: calc(var(--header-h) + 1rem); display: flex; flex-direction: column; gap: 1.2rem; }
.toc, .aside-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem; }
.toc h4, .aside-card h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .7rem; }
.toc ol { list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: .1rem; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: .6rem; padding: .4rem .3rem; border-radius: var(--r-sm); font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.toc a::before { content: counter(toc); color: var(--gold-600); font-weight: 800; font-size: .82rem; min-width: 1.1rem; }
.toc a:hover { background: var(--indigo-050); color: var(--indigo-600); }
.aside-card--cta { background: linear-gradient(150deg, var(--indigo-700), var(--indigo-900)); color: #fff; border: none; }
.aside-card--cta h4 { color: var(--gold-300); }
.aside-card--cta p { color: #c9c5ec; font-size: .88rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.2rem; }
.faq details { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1rem 1.15rem; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--indigo-500); font-weight: 400; transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 1.15rem 1.1rem; color: var(--ink-2); font-size: .92rem; }

/* ---------- About page ---------- */
.about-hero { background: linear-gradient(180deg, var(--surface-2), var(--bg)); border-bottom: 1px solid var(--line); }
.prose { max-width: 720px; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 2.2rem; }
.prose p, .prose li { color: var(--ink-2); font-size: 1.02rem; }
.prose ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: .5rem; }
.values { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.1rem; margin: 1.5rem 0; }
.value { padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.value svg { width: 30px; height: 30px; color: var(--gold-600); margin-bottom: .6rem; }
.value h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.value p { font-size: .9rem; color: var(--muted); margin: 0; }

.disclosure-box { border: 1px solid var(--gold-300); background: var(--gold-050); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem); margin: 1.4rem 0; }
.disclosure-box h2 { margin-top: 0; }
.disclosure-box .stmt { font-size: 1.12rem; font-weight: 700; color: #6a5417; border-left: 4px solid var(--gold-500); padding-left: 1rem; margin: 1rem 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--indigo-900); color: #b9b4e0; margin-top: 0; }
.footer-disclosure { background: var(--indigo-800); border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-disclosure .container { display: flex; gap: 1rem; align-items: center; justify-content: center; padding-block: 1rem; text-align: center; flex-wrap: wrap; }
.footer-disclosure p { margin: 0; font-size: .9rem; color: #d7d3f2; }
.footer-disclosure svg { width: 20px; height: 20px; color: var(--gold-400); flex: none; }
.footer-disclosure a { color: var(--gold-300); font-weight: 700; text-decoration: underline; }

.footer-main { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand .brand { color: #fff; margin-bottom: .8rem; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { font-size: .9rem; color: #a5a0cf; max-width: 34ch; }
.footer-col h4 { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .09em; margin: 0 0 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: #b9b4e0; font-size: .92rem; }
.footer-col a:hover { color: var(--gold-300); }
.socials { display: flex; gap: .6rem; margin-top: 1.1rem; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); display: grid; place-items: center; color: #cfcbee; transition: all var(--t-fast); }
.socials a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--indigo-900); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; padding-block: 1.2rem; }
.footer-bottom p { margin: 0; font-size: .82rem; color: #8f8ac0; }
.footer-bottom nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-bottom a { color: #8f8ac0; font-size: .82rem; }
.footer-bottom a:hover { color: var(--gold-300); }

/* ---------- Reveal animation (default-visible; JS/observer only enhances) ---------- */
.reveal { opacity: 1; }
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); will-change: opacity, transform; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.reveal-all .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero__star { animation: none; }
}

/* stagger helper */
.stagger > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.flex-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.badge-pill { display: inline-flex; align-items: center; gap: .4rem; background: var(--indigo-050); color: var(--indigo-600); font-weight: 700; font-size: .78rem; padding: .35rem .75rem; border-radius: var(--r-full); }

.no-results { text-align: center; padding: 3rem 1rem; color: var(--muted); grid-column: 1 / -1; display: none; }
.no-results svg { width: 48px; height: 48px; color: var(--line-2); margin: 0 auto 1rem; }

/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .hero__inner { grid-template-columns: 1.1fr .9fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }
  /* Mobile nav drawer */
  .nav-toggle { display: inline-flex; }
  .header-nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1rem;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 1.2rem clamp(1rem,4vw,2rem) 1.6rem; margin: 0;
    box-shadow: var(--shadow-lg);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
  }
  .header-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: .1rem; }
  .primary-nav a { padding: .75rem .6rem; font-size: 1.02rem; border-radius: var(--r-sm); }
  .primary-nav a[aria-current="page"]::after { display: none; }
  .primary-nav a[aria-current="page"] { background: var(--indigo-050); }
  .search { order: -1; }
  .search input, .search input:focus { width: 100%; max-width: none; }

  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__art { max-width: 360px; margin-inline: auto; order: -1; }
  .hero__badge--3 { display: none; }

  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid, .product-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .quickpicks { grid-template-columns: 1fr; }
  .valueprops { grid-template-columns: repeat(2, 1fr); }
  .newsletter__grid { grid-template-columns: 1fr; }
  .article__layout { grid-template-columns: 1fr; }
  .article__aside { position: static; order: 2; }
  .entry__top { grid-template-columns: 1fr; }
  .entry__media { max-width: 280px; }
  .values, .quickpicks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .valueprops { grid-template-columns: 1fr 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .product-grid, .product-grid--3 { grid-template-columns: 1fr 1fr; gap: .9rem; }
  .proscons { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
  .hero__badge--1 { left: 0; } .hero__badge--2 { right: 0; }
  .product-card__body { padding: .85rem .85rem 1rem; }
}

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