
/* ============================================================
   TopRatedPick Design System v5 — Pure HTML Edition
   Dark Premium: #0a0a0a + #f0b429 amber + Space Grotesk
   No template language, full CSS control
============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

/* ── Tokens ── */
:root {
  /* surfaces */
  --bg:#0a0a0a; --bg1:#111111; --bg2:#1a1a1a; --bg3:#222222;
  --line:rgba(255,255,255,.07); --line2:rgba(255,255,255,.12);
  /* text */
  --t1:#f2f2f2; --t2:#cfcfcf; --t3:#9a9a9a;
  /* brand */
  --gold:#f0b429; --gold2:#c99522; --gold-h:#ffc94f;
  --gold-s:rgba(240,180,41,.08); --gold-b:rgba(240,180,41,.28);
  --on-gold:#0a0a0a;
  --green:#3dd68c; --red:#f87171;
  /* radius */
  --r1:6px; --r2:10px; --r3:14px; --r4:20px; --rf:999px;
  /* spacing scale (8pt) */
  --s1:.25rem; --s2:.5rem; --s3:.75rem; --s4:1rem; --s5:1.5rem;
  --s6:2rem; --s7:3rem; --s8:4rem;
  /* type scale */
  --fs-xs:.75rem; --fs-sm:.875rem; --fs-base:1rem; --fs-lg:1.125rem;
  --fs-xl:1.375rem; --fs-2xl:1.75rem; --fs-3xl:clamp(2rem,5vw,2.75rem);
  --fs-4xl:clamp(2.4rem,6.5vw,3.75rem);
  /* motion */
  --e:cubic-bezier(.4,0,.2,1); --d1:120ms; --d2:200ms; --d3:320ms;
  --font:'Space Grotesk',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --sh1:0 1px 2px rgba(0,0,0,.4),0 0 0 1px rgba(255,255,255,.06);
  --sh2:0 6px 20px rgba(0,0,0,.35);
  --sh3:0 12px 32px rgba(0,0,0,.45);
}
html.light {
  --bg:#f8f7f4; --bg1:#ffffff; --bg2:#f2f0ec; --bg3:#e8e5df;
  --line:rgba(15,23,42,.09); --line2:rgba(15,23,42,.16);
  --t1:#0f172a; --t2:#3f4a5c; --t3:#64748b;
  --gold:#b47a0a; --gold2:#8f6108; --gold-h:#9c6a09;
  --gold-s:rgba(180,122,10,.09); --gold-b:rgba(180,122,10,.3);
  --on-gold:#ffffff;
  --green:#0f9d58; --red:#dc2626;
  --sh1:0 1px 2px rgba(15,23,42,.06),0 0 0 1px rgba(15,23,42,.05);
  --sh2:0 4px 16px rgba(15,23,42,.08),0 0 0 1px rgba(180,122,10,.12);
  --sh3:0 12px 32px rgba(15,23,42,.12);
}


/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--t1); -webkit-font-smoothing: antialiased; min-height: 100vh; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }

/* ── Site header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.9); backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
html.light .site-header { background: rgba(255,255,255,0.92); border-bottom-color: rgba(15,23,42,0.12); }
.header-inner { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.site-logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 28px; height: 28px; background: var(--gold); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: #000; font-family: monospace; }
.logo-text { font-size: 0.95rem; font-weight: 700; color: var(--t1); letter-spacing: -0.3px; }
.logo-text span { color: var(--gold); }
.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a { font-size: 0.82rem; font-weight: 500; color: var(--t2); padding: 0.375rem 0.75rem; border-radius: var(--r1); transition: color .15s, background .15s; }
.site-nav a:hover { color: var(--t1); background: var(--bg3); }
html.light .site-nav a { color: #4b5563; }
html.light .site-nav a:hover { color: #111827; background: #f0eee9; }
.nav-cta { background: var(--gold) !important; color: var(--on-gold); font-weight: 700 !important; margin-left: .5rem; }
.nav-cta:hover { background: var(--gold-h) !important; }
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin-left: .35rem; border: 1px solid var(--line2); border-radius: var(--r1); background: transparent; color: var(--t2); cursor: pointer; font-size: 1rem; transition: all .15s; }
.theme-toggle:hover { color: var(--gold); background: var(--gold-s); border-color: var(--gold2); }
html.light .theme-toggle { color: #4b5563; border-color: rgba(15,23,42,.18); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line2); color: var(--t2); padding: .4rem .6rem; border-radius: var(--r1); cursor: pointer; font-size: .85rem; }

/* ── Main layout ── */
.site-main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem 5rem; position: relative; z-index: 1; }
.page-container { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }

/* ── Background glow ── */
.bg-glow { position: fixed; inset: 0; background: radial-gradient(ellipse 70% 55% at 18% 8%, rgba(240,180,41,.055) 0%, rgba(240,180,41,.018) 28%, transparent 65%); pointer-events: none; z-index: 0; }

/* ── Buttons ── */
.btn-primary { display: inline-flex; align-items: center; gap: .5rem; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: .9rem; padding: .7rem 1.375rem; border-radius: var(--r2); transition: background .15s, transform .15s; }
.btn-primary:hover { background: var(--gold-h); transform: translateY(-1px); }
.btn-ghost { display: inline-flex; align-items: center; gap: .5rem; background: transparent; color: var(--t2) !important; font-weight: 600; font-size: .9rem; padding: .7rem 1.375rem; border-radius: var(--r2); border: 1px solid var(--line2); transition: all .15s; }
.btn-ghost:hover { background: var(--bg2); color: var(--t1) !important; }

/* ── Hero ── */
.home-hero { padding: 4rem 0 3rem; text-align: center; }
.home-hero .hero-inner { max-width: 700px; margin: 0 auto; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: var(--gold-s); border: 1px solid rgba(240,180,41,.2); border-radius: var(--rf); padding: .3rem .875rem; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: 1.5rem; }
.hero-eyebrow-dot { width: 6px; height: 6px; background: var(--gold); border-radius: 50%;  }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(.8)} }
.hero-title { font-size: clamp(2.6rem,5vw,4.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 1.25rem; color: var(--t1); }
.hero-title .gold-text { color: var(--gold); font-style: italic; }
.hero-sub { font-size: 1.05rem; color: var(--t2); line-height: 1.7; max-width: 540px; margin: 0 auto 2rem; }
.hero-actions { display: flex; justify-content: center; gap: .875rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
.hero-trust { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.trust-pill { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 600; color: var(--t3); background: var(--bg1); border: 1px solid var(--line); padding: .3rem .75rem; border-radius: var(--rf); }
.trust-pill-check { color: var(--green); font-size: .85rem; }

/* ── Stats bar ── */
.stats-bar { display: flex; background: var(--bg1); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 4rem; }
.stat-item { flex: 1; min-width: 100px; display: flex; flex-direction: column; align-items: center; padding: 1.25rem 1rem; gap: .4rem; border-right: 1px solid var(--line); transition: background .15s; }
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg2); }
.stat-icon { font-size: 1.2rem; }
.stat-num { font-size: 1.8rem; font-weight: 700; letter-spacing: -.5px; color: var(--t1); line-height: 1; }
.stat-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); }

/* ── Section headers ── */
.section-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 1.25rem; gap: 1rem; }
.section-title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.3px; color: var(--t1); }
.section-sub { font-size: .85rem; color: var(--t3); margin-top: .2rem; }
.section-link { font-size: .82rem; font-weight: 600; color: var(--gold); display: flex; align-items: center; gap: .25rem; white-space: nowrap; transition: gap .15s; }
.section-link:hover { gap: .5rem; }

/* ── Featured products grid ── */
.featured-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 4rem; }
.featured-card { background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; }
.featured-card:hover { border-color: rgba(240,180,41,.35); box-shadow: var(--sh2); transform: translateY(-2px); }
.featured-img { width: 100%; aspect-ratio: 1/1; object-fit: contain; padding: 1rem; background: #141414; }
.featured-info { padding: .875rem; }
.featured-name { font-size: .875rem; font-weight: 700; color: var(--t1); margin-bottom: .4rem; line-height: 1.35; }
.featured-meta { display: flex; align-items: center; justify-content: space-between; }
.featured-rating { font-size: .8rem; font-weight: 700; color: var(--gold); }
.featured-price { font-size: .8rem; font-weight: 700; color: var(--t2); }

/* ── Article grid ── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 4rem; }
.article-card { background: var(--bg1); padding: 1.5rem; display: flex; flex-direction: column; gap: .75rem; transition: background .15s; position: relative; }
.article-card:hover { background: var(--bg2); }
.article-card-tags { display: flex; gap: .375rem; flex-wrap: wrap; }
.article-card-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); background: var(--gold-s); border: 1px solid rgba(240,180,41,.15); padding: .15rem .45rem; border-radius: var(--rf); }
.article-card-title { font-size: 1.05rem; font-weight: 700; letter-spacing: -.1px; line-height: 1.4; color: var(--t1); }
.article-card:hover .article-card-title { color: #fff; }
.article-card-desc { font-size: .85rem; color: var(--t3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-card-meta { font-size: .75rem; color: var(--t3); margin-top: auto; display: flex; align-items: center; gap: .5rem; }
.article-card-arrow { position: absolute; right: 1.5rem; top: 50%; transform: translateY(-50%); color: var(--t3); opacity: 0; transition: opacity .15s, right .15s; }
.article-card:hover .article-card-arrow { opacity: 1; right: 1.25rem; }

/* ── Cat strip ── */
.cat-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; margin-bottom: 4rem; }
.cat-card { background: var(--bg1); border: 1px solid var(--line); border-radius: 14px; padding: 1.25rem 1rem; display: flex; flex-direction: column; align-items: center; gap: .625rem; text-align: center; transition: border-color .15s, background .15s, transform .15s; }
.cat-card:hover { border-color: var(--gold2); background: var(--bg2); transform: translateY(-2px); }
.cat-icon { font-size: 1.75rem; }
.cat-name { font-size: .8rem; font-weight: 600; color: var(--t2); }
.cat-card:hover .cat-name { color: var(--t1); }

/* ── Trust section ── */
.trust-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; margin-bottom: 4rem; }
.trust-item { background: var(--bg1); padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.trust-icon-box { width: 40px; height: 40px; background: var(--gold-s); border: 1px solid rgba(240,180,41,.2); border-radius: var(--r2); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; }
.trust-title { font-size: .95rem; font-weight: 700; color: var(--t1); }
.trust-desc { font-size: .82rem; color: var(--t3); line-height: 1.55; }

/* ── Catalog page ── */
.cat-page { max-width: 1160px; margin: 0 auto; padding: 2rem 1.25rem 5rem; }
.cat-head { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-bottom: 1.75rem; border-bottom: 1px solid var(--line); margin-bottom: 1.5rem; flex-wrap: wrap; }
.cat-eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); margin-bottom: .5rem; }
.cat-h1 { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 700; letter-spacing: -.5px; color: var(--t1); margin-bottom: .5rem; line-height: 1.1; }
.cat-lead { font-size: .925rem; color: var(--t2); max-width: 480px; line-height: 1.6; }
.cat-trust-box { display: flex; flex-direction: column; gap: .5rem; background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; padding: 1.125rem 1.375rem; flex-shrink: 0; min-width: 185px; }
.ct-item { display: flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600; color: var(--t1); }
.ct-check { color: var(--green); font-weight: 800; }
.cat-controls { display: flex; flex-direction: column; gap: .875rem; margin-bottom: 1.5rem; }
.cat-nav { display: flex; gap: .375rem; flex-wrap: wrap; }
.cat-btn { display: inline-flex; align-items: center; gap: .375rem; padding: .4rem 1rem; border: 1.5px solid var(--line2); border-radius: var(--rf); background: transparent; color: var(--t2); font-family: var(--font); font-size: .82rem; font-weight: 600; cursor: pointer; transition: all .15s; white-space: nowrap; }
.cat-btn:hover { border-color: var(--gold2); color: var(--gold); background: var(--gold-s); }
.cat-btn.active { background: var(--gold); border-color: var(--gold); color: #000; }
.cat-btn .cnt { background: rgba(0,0,0,.18); padding: .1rem .4rem; border-radius: 4px; font-size: .75rem; font-weight: 700; }
.cat-btn:not(.active) .cnt { background: var(--bg3); color: var(--t3); }
.cat-sort-bar { display: flex; gap: .5rem; flex-wrap: wrap; }
.cat-sort { padding: .4rem .875rem; border: 1.5px solid var(--line2); border-radius: var(--rf); background: var(--bg2); color: var(--t2); font-family: var(--font); font-size: .82rem; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s; appearance: none; padding-right: 1.5rem; }
.cat-sort:focus, .cat-sort:hover { border-color: var(--gold); color: var(--gold); outline: none; }
/* Product grid */
.prd-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.prd { background: var(--bg1); border: 1px solid rgba(255,255,255,.09); border-radius: 14px; display: flex; flex-direction: column; overflow: hidden; transition: border-color .18s, box-shadow .18s, transform .18s; box-shadow: var(--sh1); }
.prd:hover { border-color: rgba(240,180,41,.4); box-shadow: var(--sh2); transform: translateY(-2px); }
.prd.hidden { display: none; }
.prd-img-wrap { position: relative; }
.prd-image-link { display: block; }
.prd-image { width: 100%; aspect-ratio: 1/1; object-fit: cover; transition: transform .25s; }
.prd:hover .prd-image { transform: scale(1.03); }
.prd-badge { position: absolute; top: .75rem; right: .75rem; background: var(--gold); color: #000; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: .22rem .55rem; border-radius: var(--rf); }
.prd-top-meta { display: flex; align-items: center; justify-content: space-between; padding: .75rem .875rem 0; }
.prd-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--t3); }
.prd-body { padding: .5rem .875rem 0; flex: 1; }
.prd-name { font-size: .9rem; font-weight: 700; color: var(--t1); line-height: 1.35; margin-bottom: .3rem; }
.prd-name a { color: inherit; }
.prd-name a:hover { color: var(--gold); }
.prd-desc { font-size: .78rem; color: var(--t3); line-height: 1.5; margin-bottom: .625rem; }
.prd-chips { display: flex; flex-wrap: wrap; gap: .275rem; }
.prd-chip { font-size: .75rem; font-weight: 500; color: var(--t2); background: var(--bg2); border: 1px solid rgba(255,255,255,.08); padding: .15rem .4rem; border-radius: 4px; }
.prd-foot { padding: .75rem .875rem 1rem; border-top: 1px solid rgba(255,255,255,.06); margin-top: .75rem; display: flex; flex-direction: column; gap: .5rem; }
.prd-rating-row { display: flex; align-items: center; gap: .35rem; }
.prd-stars { color: var(--gold); font-size: .85rem; letter-spacing: -1px; }
.prd-rating-num { font-size: .8rem; font-weight: 700; color: var(--t1); }
.prd-reviews { font-size: .75rem; color: var(--t3); }
.prd-price-row { display: flex; align-items: baseline; justify-content: space-between; }
.prd-price { font-size: 1.35rem; font-weight: 800; letter-spacing: -.3px; color: var(--t1); line-height: 1; }
.prd-ship { font-size: .75rem; color: var(--green); font-weight: 600; }
.prd-cta { display: block; width: 100%; text-align: center; background: var(--gold); color: var(--on-gold); padding: .6rem 1rem; border-radius: 8px; font-size: .83rem; font-weight: 700; transition: background .15s; }
.prd-cta:hover { background: var(--gold-h); }
.cat-empty { text-align: center; padding: 3rem; color: var(--t3); background: var(--bg1); border: 1px dashed var(--line); border-radius: 12px; }
.cat-disc { font-size: .75rem; color: var(--t3); background: var(--bg1); border: 1px solid var(--line); border-radius: 8px; padding: .875rem 1.125rem; line-height: 1.5; }

/* ── Product page ── */
.pd-page { max-width: 1000px; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }
.pd-crumb { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--t3); margin-bottom: 1.5rem; flex-wrap: wrap; }
.pd-crumb a { color: var(--t3); }
.pd-crumb a:hover { color: var(--gold); }
.pd-grid { display: grid; grid-template-columns: 440px 1fr; gap: 2.5rem; align-items: start; }
.pd-image { width: 100%; aspect-ratio: 1/1; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: #141414; display: flex; align-items: center; justify-content: center; }
.pd-image img { width: 100%; height: 100%; object-fit: cover; loading: eager; }
.pd-label { display: inline-block; background: var(--gold); color: #000; font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; padding: .25rem .65rem; border-radius: var(--rf); margin-bottom: .75rem; }
.pd-cat { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--t3); margin-left: .5rem; }
.pd-title { font-size: clamp(1.5rem,3vw,2.1rem); font-weight: 700; letter-spacing: -.4px; line-height: 1.15; color: var(--t1); margin: 0 0 .75rem; }
.pd-rating { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.pd-stars { color: var(--gold); font-size: 1rem; letter-spacing: -.5px; }
.pd-rating-num { font-size: .95rem; font-weight: 700; color: var(--t1); }
.pd-rating-cnt { font-size: .82rem; color: var(--t3); }
.pd-price { font-size: 2.1rem; font-weight: 800; letter-spacing: -.5px; color: var(--t1); line-height: 1; margin-bottom: .25rem; }
.pd-price-note { font-size: .78rem; color: var(--t3); margin-bottom: 1.25rem; }
.pd-cta { display: flex; align-items: center; justify-content: center; gap: .5rem; background: var(--gold); color: var(--on-gold); padding: .85rem 1.5rem; border-radius: 10px; font-weight: 700; font-size: .95rem; transition: background .15s, transform .15s; margin-bottom: .5rem; }
.pd-cta:hover { background: var(--gold-h); transform: translateY(-1px); }
.pd-cta-sub { font-size: .75rem; color: var(--t3); text-align: center; margin: 0 0 1.5rem; }
.pd-features { margin-top: 1.5rem; }
.pd-features h2 { font-size: 1.05rem; font-weight: 700; color: var(--t1); margin: 0 0 .75rem; }
.pd-features ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.pd-features li { font-size: .82rem; font-weight: 500; color: var(--t2); background: var(--bg2); border: 1px solid var(--line); padding: .35rem .7rem; border-radius: var(--r2); }
.pd-content { margin-top: 2.5rem; line-height: 1.78; color: var(--t2); font-size: .95rem; }
.pd-content h2 { font-size: 1.25rem; font-weight: 700; color: var(--t1); margin: 2rem 0 .75rem; }
.pd-content p { margin-bottom: 1rem; }
/* Related products */
.pd-related { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.pd-related h2 { font-size: 1.05rem; font-weight: 700; color: var(--t1); margin-bottom: 1.25rem; }
.pd-related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .875rem; }
.pd-rel-card { display: block; background: var(--bg1); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; transition: border-color .15s, background .15s; }
.pd-rel-card:hover { border-color: var(--gold2); background: var(--bg2); }
.pd-rel-img { width: 100%; aspect-ratio: 1/1; object-fit: cover; background: #141414; }
.pd-rel-name { font-size: .8rem; font-weight: 600; color: var(--t1); padding: .65rem .75rem .3rem; line-height: 1.35; }
.pd-rel-price { font-size: .8rem; font-weight: 700; color: var(--gold); padding: 0 .75rem .75rem; }
/* Guide links */
.pd-guides { margin-top: 2rem; }
.pd-guide-links { display: flex; flex-wrap: wrap; gap: .65rem; }
.pd-guide-link { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--t2); font-size: .82rem; font-weight: 600; background: var(--bg1); transition: all .15s; }
.pd-guide-link:hover { color: var(--gold); border-color: var(--gold2); transform: translateY(-1px); }
.pd-disc { font-size: .75rem; color: var(--t3); background: var(--bg1); border: 1px solid var(--line); border-radius: 8px; padding: .875rem 1.125rem; margin-top: 2.5rem; line-height: 1.5; }

/* ── Article page ── */
.article-wrap { max-width: 740px; margin: 0 auto; }
.article-header { margin-bottom: 2.5rem; padding-bottom: 2rem; border-bottom: 1px solid var(--line); }
.article-tags { display: flex; gap: .375rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.article-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); background: var(--gold-s); border: 1px solid rgba(240,180,41,.2); padding: .2rem .55rem; border-radius: var(--rf); }
.article-title { font-size: clamp(1.75rem,4vw,2.5rem); font-weight: 700; letter-spacing: -.75px; line-height: 1.15; color: var(--t1); margin-bottom: 1rem; }
.article-desc { font-size: 1.1rem; color: var(--t2); line-height: 1.65; margin-bottom: 1.25rem; }
.article-meta { display: flex; align-items: center; gap: 1.25rem; font-size: .8rem; color: var(--t3); flex-wrap: wrap; }
.article-body { font-size: 1.025rem; line-height: 1.78; color: var(--t2); }
.article-body h2 { font-size: 1.5rem; font-weight: 700; letter-spacing: -.4px; line-height: 1.2; color: var(--t1); margin: 2.75rem 0 1rem; padding-bottom: var(--r1); border-bottom: 2px solid var(--line); }
.article-body h3 { font-size: 1.15rem; font-weight: 700; color: var(--t1); margin: 2.25rem 0 .75rem; line-height: 1.3; }
.article-body p { margin-bottom: 1.25rem; }
.article-body ul { list-style: none; padding: 0; margin: 1rem 0 1.5rem; }
.article-body ul li { padding: .3rem 0 .3rem 1.75rem; position: relative; color: var(--t2); line-height: 1.6; }
.article-body ul li::before { position: absolute; left: 0; }
.article-body hr { border: none; border-top: 1px solid var(--line); margin: 2.5rem 0; }
.article-body a[href*="amazon.com"] { display: inline-flex; align-items: center; gap: .5rem; background: var(--gold); color: var(--on-gold); padding: .65rem 1.25rem; border-radius: var(--r2); font-weight: 700; font-size: .88rem; letter-spacing: -.1px; margin: .875rem 0; transition: background .15s, transform .15s; }
.article-body a[href*="amazon.com"]:hover { background: var(--gold-h); transform: translateY(-1px); }
.article-body a[href^="/products/"] { display: block; margin: 1.25rem 0; border: 1px solid var(--line2); border-radius: var(--r3); overflow: hidden; background: var(--bg1); transition: border-color .15s, box-shadow .15s; max-width: 420px; }
.article-body a[href^="/products/"]:hover { border-color: var(--gold2); box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.article-body a[href^="/products/"] img { display: block; width: 100%; height: 260px; object-fit: contain; padding: 1rem; background: #141414; }
html.light .article-body a[href^="/products/"] img { background: #f0eee9; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .88rem; border: 1px solid var(--line2); border-radius: var(--r2); overflow: hidden; }
.article-body table thead { background: var(--bg2); }
.article-body table thead th { padding: .7rem 1rem; text-align: left; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--t3); border-bottom: 1px solid var(--line2); }
.article-body table tbody tr { border-bottom: 1px solid var(--line); transition: background .1s; }
.article-body table tbody tr:last-child { border-bottom: none; }
.article-body table tbody tr:hover { background: var(--bg2); }
.article-body table tbody td { padding: .7rem 1rem; color: var(--t2); }
/* TOC */
.article-toc { background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r2); padding: 1.25rem 1.5rem; margin: 1.5rem 0; }
.article-toc-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--t3); margin-bottom: .875rem; }
.article-toc ul { list-style: none; padding: 0; margin: 0; }
.article-toc ul li { padding: .2rem 0; }
.article-toc ul li::before { display: none; }
.article-toc a { font-size: .875rem; font-weight: 500; color: var(--t2) !important; transition: color .15s; }
.article-toc a:hover { color: var(--gold) !important; }
/* Related posts */
.related-posts { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-title { font-size: 1.1rem; font-weight: 700; color: var(--t1); margin-bottom: 1.25rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.related-card { display: block; background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r2); padding: 1rem; transition: border-color .15s, background .15s; }
.related-card:hover { border-color: var(--gold2); background: var(--bg2); }
.related-card-tags { display: flex; gap: .3rem; margin-bottom: .5rem; }
.related-card-tag { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--gold); background: var(--gold-s); border: 1px solid rgba(240,180,41,.2); padding: .15rem .4rem; border-radius: var(--rf); }
.related-card-title { font-size: .88rem; font-weight: 600; color: var(--t1); margin-bottom: .3rem; line-height: 1.35; }
.related-card-desc { font-size: .78rem; color: var(--t3); line-height: 1.5; }
.article-disclaimer { font-size: .78rem; font-style: normal; color: var(--t3); background: var(--bg2); border: 1px solid var(--line); border-radius: var(--r1); padding: .875rem 1rem; margin-top: 3rem; line-height: 1.5; }
/* Article nav */
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.article-nav-item { background: var(--bg1); border: 1px solid var(--line); border-radius: var(--r3); padding: 1rem 1.25rem; transition: border-color .15s, background .15s; }
.article-nav-item:hover { border-color: var(--gold2); background: var(--bg2); }
.article-nav-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--t3); margin-bottom: .375rem; }
.article-nav-title { font-size: .875rem; font-weight: 600; color: var(--t1); line-height: 1.4; }

/* ── Single pages (about/disclaimer/etc.) ── */
.single-page { max-width: 740px; margin: 0 auto; padding: 2.5rem 1.25rem 5rem; }
.single-page h1 { font-size: 2rem; font-weight: 700; color: var(--t1); margin-bottom: 1.5rem; }
.single-page h2 { font-size: 1.25rem; font-weight: 700; color: var(--t1); margin: 2rem 0 .75rem; }
.single-page p { font-size: 1rem; color: var(--t2); line-height: 1.75; margin-bottom: 1rem; }
.single-page ul { margin: 1rem 0 1.5rem; padding-left: 1.5rem; }
.single-page ul li { color: var(--t2); line-height: 1.7; margin-bottom: .4rem; }
.single-page a { color: var(--gold); }
.single-page a:hover { text-decoration: underline; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--line); padding: 2.5rem 1.5rem; text-align: center; position: relative; z-index: 1; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.footer-links a { font-size: .8rem; color: var(--t3); transition: color .15s; }
.footer-links a:hover { color: var(--t2); }
.footer-copy { font-size: .75rem; color: var(--t3); line-height: 1.6; }
.footer-copy a { color: var(--gold); }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--t3); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--t3); transition: color .15s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb-sep { color: var(--line2); }

/* ── 404 ── */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 4rem 1rem; }
.notfound-code { font-size: 6rem; font-weight: 700; letter-spacing: -4px; color: var(--gold); line-height: 1; margin-bottom: 1.5rem; }
.notfound-title { font-size: 1.5rem; font-weight: 700; color: var(--t1); margin-bottom: .875rem; }
.notfound-desc { font-size: 1rem; color: var(--t3); max-width: 400px; line-height: 1.6; margin-bottom: 2.5rem; }
.notfound-actions { display: flex; gap: .875rem; flex-wrap: wrap; justify-content: center; }

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .prd-grid { grid-template-columns: repeat(2, 1fr); }
  .pd-grid { grid-template-columns: 1fr; }
  .cat-head { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .cat-trust-box { width: 100%; flex-direction: row; flex-wrap: wrap; }
  .trust-section { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .prd-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
  .article-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .article-nav { grid-template-columns: 1fr; }
  .home-hero { padding: 2.5rem 0 2rem; }
  .hero-title { font-size: 2.2rem; }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 100px; }
  .cat-strip { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-section { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .site-nav { display: none; position: absolute; top: 61px; left: 0; right: 0; background: var(--bg1); border-bottom: 1px solid var(--line); flex-direction: column; padding: 1rem; gap: .25rem; }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: .6rem .75rem; }
}


/* Amazon Associate disclosure note */
.pd-assoc-note {
  background: rgba(240,180,41,0.06);
  border: 1px solid rgba(240,180,41,0.18);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: var(--t2);
  line-height: 1.55;
  margin: 0.5rem 0 1.25rem;
}
.pd-assoc-note strong { color: var(--gold); }

/* ══════════════════════════════════════════════════════════
   v6 — Accessibility, typography & icon system
   ══════════════════════════════════════════════════════════ */

/* ── Base typography ── */
body { font-size: var(--fs-base); line-height: 1.6; letter-spacing: -.005em; }
h1,h2,h3,h4 { line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; }
p { text-wrap: pretty; }

/* ── Focus visible (keyboard nav) ── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: var(--r1);
}
:focus:not(:focus-visible) { outline: none; }

/* ── Skip link ── */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--gold); color: var(--on-gold);
  padding: .75rem 1.25rem; font-weight: 700; font-size: .875rem;
  border-radius: 0 0 var(--r2) 0;
}
.skip-link:focus { left: 0; }

/* ── Icon system ── */
.icon {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -.125em;
  fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-fill { fill: currentColor; stroke: none; }
.icon-sm { width: .875em; height: .875em; }
.icon-lg { width: 1.5em; height: 1.5em; }
.icon-xl { width: 1.75rem; height: 1.75rem; stroke-width: 1.6; }
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* Rating star */
.rating { display: inline-flex; align-items: center; gap: .3em; font-variant-numeric: tabular-nums; }
.rating .icon { color: var(--gold); }

/* Arrow that nudges on hover */
.arrow { transition: transform var(--d2) var(--e); }
a:hover .arrow, button:hover .arrow { transform: translateX(3px); }

/* ── Touch targets: min 44px ── */
.site-nav a, .footer-links a, .nav-toggle, .theme-toggle, .cat-btn {
  min-height: 44px;
  display: inline-flex; align-items: center;
}
.theme-toggle, .nav-toggle { min-width: 44px; justify-content: center; }
.footer-links a { padding: .35rem .5rem; }

/* Small inline links inside prose keep natural size */
.single-page a, .article-body a, .breadcrumb a { min-height: auto; display: inline; }

/* ── Buttons ── */
.btn-primary, .btn-ghost, .hp-btn-primary, .hp-btn-ghost {
  min-height: 46px; cursor: pointer;
  transition: background var(--d2) var(--e), border-color var(--d2) var(--e), transform var(--d1) var(--e);
}
.btn-primary:active, .hp-btn-primary:active { transform: translateY(1px); }

/* ── Cards: consistent lift ── */
.hp-card, .prd, .hp-art-card, .hp-cat-item {
  transition: border-color var(--d2) var(--e), transform var(--d2) var(--e), box-shadow var(--d2) var(--e);
}
.hp-card:hover, .prd:hover { box-shadow: var(--sh2); }

/* ── Light-mode contrast fixes ── */
html.light .site-header { background: rgba(255,255,255,.94); }
html.light .hp-card, html.light .prd, html.light .hp-art-card { box-shadow: var(--sh1); }
html.light .hp-card-img, html.light .prd-image { background: #fbfaf8; }
html.light .logo-mark { color: #fff; }

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── Image CLS guard ── */
img { display: block; }
.hp-card-img img, .prd-image img { aspect-ratio: 1/1; object-fit: contain; }

/* ══════════════════════════════════════════════════════════
   v6 — Article readability (measure, padding, prose rhythm)
   ══════════════════════════════════════════════════════════ */

.article-wrap {
  max-width: 68ch;
  padding-inline: var(--s4);
  padding-bottom: var(--s8);
}
.article-body {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: var(--t2);
}
.article-body p { margin-bottom: 1.35rem; }
.article-body h2 { margin-top: 3rem; }
.article-body h3 { margin-top: 2.4rem; }

/* Bullet: SVG check, bukan karakter emoji */
.article-body ul li::before {
  content: "";
  position: absolute; left: 0; top: .58em;
  width: 13px; height: 8px;
  border-left: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(-45deg);
  border-radius: 1px;
}

/* Affiliate CTA in prose: full-width, thumb-friendly */
.article-body a[href*="amazon.com"] {
  min-height: 48px;
  justify-content: center;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.article-body a[href*="amazon.com"]:hover { background: var(--gold-h); }

/* Inline text links stay text-like */
.article-body p > a:not([href*="amazon.com"]):not([href^="/products/"]) {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

/* Article header rhythm */
.article-title { font-size: clamp(1.85rem, 4.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; }
.article-desc { font-size: 1.075rem; line-height: 1.6; color: var(--t3); margin-top: var(--s3); }
.article-tag { min-height: 32px; display: inline-flex; align-items: center; }

/* Product card embed inside article */
.article-body a[href^="/products/"] {
  max-width: 100%;
  transition: border-color var(--d2) var(--e), box-shadow var(--d2) var(--e), transform var(--d2) var(--e);
}
.article-body a[href^="/products/"]:hover {
  border-color: var(--gold-b); box-shadow: var(--sh2); transform: translateY(-2px);
}

/* Tables inside guides */
.article-body table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: .94rem; }
.article-body th, .article-body td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; }
.article-body th { color: var(--t1); font-weight: 700; background: var(--bg2); }
.article-body tr:hover td { background: var(--bg2); }

@media (max-width: 640px) {
  .article-wrap { padding-inline: var(--s4); }
  .article-body { font-size: 1.0375rem; }
  .article-body a[href*="amazon.com"] { max-width: 100%; }
}

/* Single/static pages get the same treatment */
.single-page { max-width: 68ch; padding-inline: var(--s4); }
.single-page p { color: var(--t2); }


/* Tabel perbandingan: jangan pernah melebar melewati kolom teks (fix overflow HP) */
.article-body table { table-layout: fixed; max-width: 100%; }
.article-body table th,
.article-body table td { overflow-wrap: anywhere; word-break: normal; }
@media (max-width: 640px) {
  .article-body table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .article-body table thead th,
  .article-body table tbody td { padding: .6rem .7rem; font-size: .82rem; }
}


/* ══════════════════════════════════════════════════════════
   Responsif v7 (24 Sep 2026)
   BUG: blok "Touch targets" memberi .nav-toggle { display:inline-flex }
   tanpa media query, menimpa .nav-toggle{display:none} di desktop.
   Akibatnya di 768px tombol hamburger DAN nav penuh tampil bersamaan,
   header meluber (scrollWidth 777 > 768). Diukur di 5 tipe halaman.
   ══════════════════════════════════════════════════════════ */

/* Hamburger hanya ada di mode nav mobile */
.nav-toggle { display: none; }
.header-inner { gap: 1rem; }

/* Nav penuh butuh ~860px agar muat; di bawah itu pakai menu mobile */
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; position: absolute; top: 61px; left: 0; right: 0;
    background: var(--bg1); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 1rem; gap: .25rem; z-index: 60;
  }
  .site-nav.open { display: flex; }
  .site-nav a { width: 100%; padding: .6rem .75rem; }
}

/* Jaring pengaman: tidak ada elemen yang boleh melebar melewati viewport */
html, body { overflow-x: hidden; }
img, svg, video, table, pre { max-width: 100%; }

/* Ukuran teks minimum terbaca (sebelumnya ada yang 8.3px - 9.9px) */
.hp-proof-label, .hp-proof-listlabel, .hp-proof-note, .hp-card-flag,
.pd-cta-sub, .pd-disc, .trust-mark { font-size: .78rem; }
.prd-badge { font-size: .75rem; }
.prd-cat { font-size: .75rem; }
.prd-desc { font-size: .82rem; }

/* Logo tetap target sentuh 44px */
.site-logo { min-height: 44px; display: inline-flex; align-items: center; }

/* Lantai keterbacaan: tidak ada teks isi di bawah 12px (WCAG-friendly, mobile) */
.prd-free, .prd-badge, .prd-cat, .post-item-tag, .catalog-kicker,
.trust-mark, .pd-cta-sub, .pd-disc { font-size: .75rem !important; }
.catalog-content .prd-free,
.catalog-content .prd-badge,
.catalog-content .prd-cat { font-size: .75rem; }

/* Related guides (internal linking) */
.related-guides { margin: 3rem 0 1rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-guides h2 { font-size: 1.25rem; margin: 0 0 1.25rem; }
.rel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rel-item a { display: flex; flex-direction: column; gap: .35rem; height: 100%;
  padding: 1rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg1); text-decoration: none; transition: border-color .2s, transform .2s; }
.rel-item a:hover { border-color: var(--gold); transform: translateY(-2px); }
.rel-title { font-weight: 700; font-size: .95rem; color: var(--t1); line-height: 1.35; }
.rel-desc { font-size: .8rem; color: var(--t3); line-height: 1.5; }
@media (max-width: 520px) { .rel-list { grid-template-columns: 1fr; } }

/* impeccable pass 25 Sep 2026 */
.nav-cta, .nav-cta:hover { color: var(--on-gold) !important; }
h2.prd-name { font-size: .9rem; }
