/*
Theme Name: AmPainSoc
Theme URI: https://ampainsoc.org
Author: AmPainSoc Editorial
Author URI: https://ampainsoc.org
Description: Wellness editorial "fake-ecom" theme — teal accent on cream, navy footer, multi-vertical gear reviews (sleep, recovery, running, nutrition, home-gym). Serif editorial typography, affiliate-first product templates, hybrid category pages.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ampainsoc
Tags: editorial, magazine, affiliate, custom-colors, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
Requires at least: 5.8
Requires PHP: 7.4
*/

/* ============================================================
   DESIGN TOKENS — AmPainSoc wellness palette
   Teal accent on cream, navy footer, coral used sparingly.
   ============================================================ */
:root {
  --bg: #f8f6f1;
  --bg-soft: #f1ede3;
  --bg-card: #ffffff;
  --ink: #12201f;
  --ink-soft: #2a3c3b;
  --ink-muted: #6c7a79;
  --line: #e4ddd0;
  --line-soft: #efe9dc;

  --teal: #2fa193;
  --teal-deep: #1e6e67;
  --teal-soft: #c9e5df;
  --teal-wash: #e9f4f1;

  --coral: #e24c3a;
  --navy: #0e1d26;

  --accent: var(--teal);
  --accent-soft: var(--teal-soft);

  --font-serif: "Fraunces", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --dens: 1;
  --s1: calc(4px * var(--dens));
  --s2: calc(8px * var(--dens));
  --s3: calc(12px * var(--dens));
  --s4: calc(16px * var(--dens));
  --s5: calc(24px * var(--dens));
  --s6: calc(32px * var(--dens));
  --s7: calc(48px * var(--dens));
  --s8: calc(64px * var(--dens));
  --s9: calc(96px * var(--dens));

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --nav-h: 69px;
}

[data-mode="blog"] { --hero-ratio: 1.2; }
[data-mode="ecom"] { --hero-ratio: 0.9; }

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; padding: 0; }
input, select, textarea { font-family: inherit; color: inherit; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.serif { font-family: var(--font-serif); font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
h1 { font-family: var(--font-serif); font-size: clamp(44px, 5.2vw, 80px); line-height: 1.02; font-weight: 400; }
h2 { font-family: var(--font-serif); font-size: clamp(32px, 3.4vw, 50px); line-height: 1.08; font-weight: 400; }
h3 { font-family: var(--font-serif); font-size: 22px; line-height: 1.25; font-weight: 500; }
h4 { font-family: var(--font-serif); font-size: 18px; line-height: 1.3; font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--teal);
}

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--s5); }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 var(--s5); }

section { padding: var(--s9) 0; }
section.tight { padding: var(--s7) 0; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s5); }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   HELPERS
   ============================================================ */
.muted { color: var(--ink-muted); }
.text-sm { font-size: 13.5px; }
.text-center { text-align: center; }
.hr { height: 1px; background: var(--line); border: 0; margin: 0; }

.sec-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s5); margin-bottom: var(--s6);
}
.sec-head .lead { max-width: 520px; color: var(--ink-muted); font-size: 15px; }
.sec-head h2 { max-width: 640px; }

.block-warm { background: var(--bg-soft); }
.block-teal { background: var(--teal-wash); }
.block-ink { background: var(--navy); color: #dfe6e9; }
.block-teal-deep { background: var(--teal-deep); color: #fff; }
.block-teal-deep .eyebrow { color: var(--teal-soft); }
.block-teal-deep .eyebrow::before { background: var(--teal-soft); }

.ghost-tag {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 4px;
  background: var(--teal-wash);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--teal-deep);
  font-family: var(--font-mono);
  text-transform: uppercase;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary, .btn-accent { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn-primary:hover, .btn-accent:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-coral { background: var(--coral); color: #fff; border-color: var(--coral); }
.btn-coral:hover { background: #c53b2a; border-color: #c53b2a; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--bg-card); border-color: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-ink:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.btn-lg { padding: 18px 30px; font-size: 14.5px; }

.hero-btn-white { background: #fff; color: var(--teal-deep); border-color: #fff; }
.hero-btn-white:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ============================================================
   BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
}
.badge-promo { background: var(--coral); color: #fff; }
.badge-bestseller { background: var(--ink); color: var(--bg); }
.badge-choice { background: var(--teal); color: #fff; }
.badge-new { background: var(--teal-wash); color: var(--teal-deep); border: 1px solid var(--teal-soft); }
.badge-cat {
  background: var(--teal); color: #fff;
  padding: 4px 10px; border-radius: 4px;
  font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
}

/* ============================================================
   STARS
   ============================================================ */
.stars { display: inline-flex; gap: 2px; color: var(--teal); font-size: 13px; letter-spacing: 1px; }
.stars.small { font-size: 11px; }

/* ============================================================
   IMAGE PLACEHOLDERS (colored blocks for missing thumbnails)
   ============================================================ */
.ph {
  position: relative;
  background: var(--teal-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,0.035) 14px 15px);
}
.ph-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.55);
  background: rgba(255,255,255,0.75);
  padding: 5px 10px;
  border-radius: 3px;
  backdrop-filter: blur(4px);
}
.ph-teal { background: color-mix(in oklch, var(--teal) 45%, var(--teal-wash)); }
.ph-deep { background: var(--teal-deep); }
.ph-deep .ph-label { background: rgba(255,255,255,0.85); }
.ph-warm { background: color-mix(in oklch, var(--coral) 25%, var(--bg-soft)); }
.ph-cream { background: var(--bg-soft); }
.ph-ink { background: var(--navy); }
.ph-ink .ph-label { background: rgba(255,255,255,0.85); }
.ph-sage { background: color-mix(in oklch, var(--teal-deep) 55%, #d7e6dc); }

.media-cover { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; z-index: 1; }
.media-wrap { position: relative; overflow: hidden; }

/* ============================================================
   NAV / HEADER
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklch, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; gap: var(--s5);
}
.nav-logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-deep);
}
.nav-logo-mark { width: 28px; height: 28px; display: inline-block; flex-shrink: 0; }
.nav-logo img,
.nav-logo .custom-logo,
.custom-logo-link .custom-logo {
  max-height: 44px !important;
  max-width: 220px !important;
  width: auto !important;
  height: auto !important;
  display: block;
}
.nav-logo .custom-logo-link { display: inline-flex; align-items: center; }
.nav-links {
  display: flex;
  gap: var(--s4);
  font-size: 13.5px;
  color: var(--ink-soft);
  list-style: none;
  margin: 0; padding: 0;
}
.nav-link {
  position: relative;
  padding: 8px 4px;
  display: inline-block;
  cursor: pointer;
  transition: color 0.2s;
  font-weight: 500;
}
.nav-link:hover, .nav-link.active,
.nav-links .current-menu-item > a,
.nav-links .current_page_item > a,
.nav-links .current-cat > a {
  color: var(--teal-deep);
}
.nav-link.active::after,
.nav-links .current-menu-item > a::after,
.nav-links .current-cat > a::after {
  content: "";
  position: absolute;
  left: 4px; right: 4px; bottom: -1px;
  height: 2px;
  background: var(--teal);
}
.nav-right { display: flex; align-items: center; gap: var(--s3); }

.icon-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--teal-wash); border-color: var(--teal); color: var(--teal-deep); }

.lang-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-muted);
  display: inline-flex;
  gap: 4px;
  align-items: center;
  background: transparent;
}
.lang-pill .on { color: var(--coral); }

.burger {
  display: none;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  align-items: center;
  justify-content: center;
}
.burger span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
}
.burger span::before, .burger span::after {
  content: "";
  position: absolute;
  left: 0; width: 16px; height: 1.5px;
  background: var(--ink);
}
.burger span::before { top: -5px; }
.burger span::after { top: 5px; }

/* ============================================================
   FOOTER — navy AmPainSoc
   ============================================================ */
.footer {
  background: var(--navy);
  color: #dfe6e9;
  padding: var(--s8) 0 var(--s5);
}
.footer a { color: color-mix(in oklch, #fff 75%, transparent); transition: color 0.2s; }
.footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1.2fr;
  gap: var(--s6);
  padding-bottom: var(--s6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-soft);
  margin: 0 0 var(--s4);
  font-weight: 500;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px; font-size: 13.5px;
}
.footer-bot {
  padding-top: var(--s4);
  display: flex; justify-content: space-between;
  gap: var(--s4);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.footer-brand-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255,255,255,0.7);
  max-width: 300px;
  margin-top: 16px;
}
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social .icon-btn {
  border-color: rgba(255,255,255,0.15);
  color: #fff;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer-social .icon-btn:hover { background: rgba(255,255,255,0.1); border-color: #fff; color: #fff; }
.footer-newsletter p {
  font-size: 13px; line-height: 1.55;
  color: rgba(255,255,255,0.7);
  margin: 0 0 12px;
}
.footer-newsletter-form { display: flex; gap: 6px; }
.footer-newsletter-form input {
  flex: 1; padding: 10px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: #fff; font-size: 13px;
}
.footer-newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.footer-newsletter-form .btn { padding: 10px 16px; font-size: 12.5px; }

/* ============================================================
   PRODUCT CARD
   ============================================================ */
.pcard {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  color: inherit;
}
.pcard:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px -24px rgba(18, 32, 31, 0.25);
  border-color: var(--teal-soft);
}
.pcard-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg-soft); }
.pcard-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.pcard-heart {
  position: absolute; top: 12px; right: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-muted); z-index: 2;
  transition: color 0.2s;
}
.pcard-heart:hover { color: var(--coral); }
.pcard-body {
  padding: var(--s4) var(--s4) var(--s5);
  display: flex; flex-direction: column; gap: 8px; flex: 1;
}
.pcard-cat {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-deep);
}
.pcard-title {
  font-family: var(--font-serif);
  font-size: 19px; line-height: 1.2;
  font-weight: 500; color: var(--ink);
  margin: -2px 0 0;
}
.pcard-rating {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-muted);
}
.pcard-foot {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--s3); margin-top: auto; padding-top: var(--s3);
}

/* ============================================================
   PRICE
   ============================================================ */
.price { display: inline-flex; align-items: baseline; gap: 8px; }
.price-now { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.price-old { font-size: 14px; color: var(--ink-muted); text-decoration: line-through; }
.price-save { font-size: 11px; color: var(--coral); font-weight: 600; }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--teal-wash);
}
.marquee-track {
  display: flex; gap: 48px; padding: 14px 0;
  white-space: nowrap;
  animation: marquee 40s linear infinite;
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--teal-deep);
  width: max-content;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; }
.marquee-track span::before { content: "✦"; color: var(--coral); font-size: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   CHIPS + FILTERS
   ============================================================ */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  font-size: 12.5px; color: var(--ink-soft);
  cursor: pointer; transition: all 0.2s;
}
.chip:hover { border-color: var(--teal); color: var(--teal-deep); }
.chip.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.chip-row { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-bar {
  position: sticky; top: var(--nav-h); z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--s3) 0;
}
.filter-bar-inner {
  display: flex; justify-content: space-between;
  align-items: center; gap: var(--s4);
  flex-wrap: wrap;
}
.filter-sort {
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  border-radius: 6px;
  font-size: 13px;
}

.sidebar-filters-group {
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.sidebar-filters-group h4 {
  font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0;
}
.sidebar-filters-group label {
  display: flex; align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 10px;
}
.sidebar-filters-group input[type=checkbox] { accent-color: var(--teal); }

/* ============================================================
   HERO (teal gradient card)
   ============================================================ */
.hero-teal {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-l);
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 70%);
  color: #fff;
  padding: var(--s8) var(--s7);
  min-height: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hero-teal::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.12), transparent 40%),
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08), transparent 50%);
  pointer-events: none;
}
.hero-teal > * { position: relative; z-index: 1; }
.hero-teal .eyebrow { color: rgba(255,255,255,0.85); }
.hero-teal .eyebrow::before { background: rgba(255,255,255,0.6); }
.hero-teal h1 { color: #fff; max-width: 900px; margin: 20px 0 0; }
.hero-teal .lead {
  color: rgba(255,255,255,0.9);
  max-width: 580px;
  font-size: 17px;
  line-height: 1.55;
  margin: 20px auto 0;
}
.hero-teal-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; justify-content: center; }
.hero-teal-cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.hero-teal-cta .btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: #fff; }

/* ============================================================
   ARTICLE CARD (editorial)
   ============================================================ */
.acard {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: inherit;
}
.acard-media {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius-m);
  overflow: hidden;
}
.acard-cat { position: absolute; bottom: 12px; left: 12px; z-index: 2; }
.acard-title {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.25;
  color: var(--ink);
}
.acard-excerpt { font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.acard-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
  padding-top: 8px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.acard-meta .read-time { margin-left: auto; font-family: var(--font-mono); letter-spacing: 0.06em; }

.avatar {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 10px;
  overflow: hidden;
}
.avatar.avatar-lg { width: 40px; height: 40px; font-size: 14px; }
.avatar.avatar-xl { width: 72px; height: 72px; font-size: 24px; background: var(--teal-deep); }

/* ============================================================
   PARTNER CARD (editorial: quote + logo)
   ============================================================ */
.partner-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 220px;
}
.partner-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.partner-quote {
  font-family: var(--font-serif);
  font-size: 17px;
  line-height: 1.45;
  color: var(--ink);
  font-style: italic;
  margin: 0;
}

/* ============================================================
   TESTIMONIAL CARD
   ============================================================ */
.tcard {
  background: var(--bg-card);
  padding: var(--s5);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
.tcard-mark {
  font-family: var(--font-serif);
  font-size: 42px; line-height: 0.5;
  color: var(--teal);
  margin-bottom: 12px;
}
.tcard-quote { font-size: 15.5px; line-height: 1.6; color: var(--ink-soft); margin-bottom: 20px; }
.tcard-foot {
  display: flex; justify-content: space-between;
  margin-top: 16px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.tcard-name { font-weight: 500; font-size: 13.5px; }
.tcard-city { font-size: 12px; color: var(--ink-muted); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.crumb {
  padding: var(--s4) 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.crumb a { transition: color 0.2s; }
.crumb a:hover { color: var(--teal-deep); }
.crumb .sep { margin: 0 10px; }
.crumb .here { color: var(--ink); }

/* ============================================================
   PRODUCT SINGLE
   ============================================================ */
.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--s7);
}
.product-gallery { display: flex; flex-direction: column; gap: 12px; }
.product-hero {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-hero-badges {
  position: absolute; top: 20px; left: 20px;
  display: flex; gap: 8px; z-index: 2;
}
.product-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.product-thumbs .ph,
.product-thumbs .media-wrap {
  aspect-ratio: 1/1;
  border-radius: var(--radius-s);
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.product-thumbs [aria-pressed="true"] { border-color: var(--teal); }

.product-title { font-size: clamp(34px, 3vw, 46px); margin-bottom: 14px; line-height: 1.05; }
.product-tagline { font-size: 16px; color: var(--ink-soft); margin-bottom: 20px; line-height: 1.6; }

.product-rating-line { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.product-rating-line .rating-val { font-size: 13px; color: var(--ink-soft); }

.product-score {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  padding: 18px 22px;
  background: var(--teal-wash);
  border-radius: var(--radius-m);
  margin-bottom: 28px;
  align-items: center;
  border: 1px solid var(--teal-soft);
}
.product-score-val { font-family: var(--font-serif); font-size: 42px; line-height: 1; color: var(--teal-deep); }
.product-score-val small { font-size: 16px; color: var(--ink-muted); font-weight: normal; }
.product-score-label { font-size: 13px; font-weight: 500; margin-bottom: 3px; }
.product-score-sub { font-size: 12px; color: var(--ink-muted); }

.product-price {
  display: flex; align-items: baseline;
  gap: 14px; margin-bottom: 8px;
}
.product-price-now { font-family: var(--font-serif); font-size: 42px; font-weight: 500; color: var(--ink); }
.product-price-old { font-size: 18px; color: var(--ink-muted); text-decoration: line-through; }
.product-price-save {
  font-size: 13px; color: var(--coral); font-weight: 600;
  padding: 4px 10px;
  background: color-mix(in oklch, var(--coral) 15%, var(--bg));
  border-radius: 999px;
}
.product-partner-line { font-size: 13px; color: var(--ink-muted); margin-bottom: 28px; }
.product-partner-line strong { color: var(--ink); }

.affiliate-note {
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.product-specs .spec {
  font-size: 12.5px;
  text-align: center;
}
.product-specs .spec strong { display: block; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.product-specs .spec small { display: block; color: var(--ink-muted); font-size: 11px; }

.verdict {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s6);
  align-items: start;
  max-width: 900px;
  margin: 0 auto;
}
.verdict-quote {
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.45;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

/* ============================================================
   COMPARE
   ============================================================ */
.compare-slots {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s3);
}
.compare-slot {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--s3);
  background: var(--bg-card);
}
.compare-slot select {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg);
  font-family: inherit;
}

.compare-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--bg-card);
}
.compare-row {
  display: grid;
  border-bottom: 1px solid var(--line-soft);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row.compare-head { border-bottom: 1px solid var(--line); }
.compare-row .compare-label {
  padding: 18px var(--s5);
  background: var(--teal-wash);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-soft);
}
.compare-row .compare-cell {
  padding: 18px var(--s5);
  border-left: 1px solid var(--line);
  font-size: 14px;
}
.compare-row.compare-head .compare-cell { padding: var(--s5); }
.compare-row .compare-cell.highlight { font-weight: 600; }

/* ============================================================
   ABOUT / METHOD
   ============================================================ */
.method-steps .step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.method-steps .step:last-child { border-bottom: 0; }
.step-num { font-family: var(--font-serif); font-size: 32px; color: var(--teal); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s5);
}
.stats-grid .stat-n {
  font-family: var(--font-serif);
  font-size: clamp(48px, 4.5vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--teal-deep);
}
.stats-grid .stat-l {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin-top: 10px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.block-teal-deep .stats-grid .stat-n { color: #fff; }
.block-teal-deep .stats-grid .stat-l { color: rgba(255,255,255,0.7); }

.method-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  align-items: center;
}

/* ============================================================
   MAGAZINE / POST
   ============================================================ */
.featured-article {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s6);
  align-items: center;
  cursor: pointer;
}
.featured-media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.featured-media .badge-cat {
  position: absolute; top: 20px; left: 20px; z-index: 2;
}
.featured-title { font-size: clamp(32px, 3vw, 44px); margin-bottom: 18px; }

.post-content {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17.5px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.post-content > p:first-of-type { font-size: 19px; color: var(--ink); }
.post-content h2 { margin: var(--s6) 0 var(--s3); color: var(--ink); }
.post-content h3 { margin: var(--s5) 0 var(--s2); color: var(--ink); }
.post-content a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.post-content a:hover { color: var(--coral); }
.post-content ul, .post-content ol { margin: 0 0 1em 1.2em; padding: 0; }
.post-content li { margin-bottom: 0.4em; }
.post-content img { border-radius: var(--radius-m); margin: var(--s5) 0; }

.post-content blockquote,
.post-content .te-pullquote {
  margin: var(--s6) 0;
  padding: var(--s5) var(--s4);
  border-left: 3px solid var(--teal);
  background: var(--teal-wash);
  font-family: var(--font-serif);
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
  font-style: normal;
}
.post-content blockquote cite,
.post-content .te-pullquote cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-style: normal;
}

/* Drop cap on the first paragraph */
.post-content .dropcap::first-letter,
.post-content > p:first-of-type::first-letter {
  font-family: var(--font-serif);
  font-size: 68px;
  float: left;
  line-height: 0.85;
  margin: 6px 12px 0 0;
  color: var(--teal);
}

/* Affiliate inline card inside a post */
.inline-affiliate {
  margin: var(--s7) 0;
  padding: var(--s5);
  background: var(--teal-wash);
  border-radius: var(--radius-l);
  display: grid;
  grid-template-columns: 160px 1fr auto;
  gap: var(--s5);
  align-items: center;
}
.inline-affiliate .media-wrap {
  aspect-ratio: 1/1;
  border-radius: var(--radius-m);
  overflow: hidden;
}

.post-meta-line {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.post-meta-line .meta-name { font-size: 13.5px; font-weight: 500; }
.post-meta-line .meta-date { font-size: 12px; color: var(--ink-muted); }

.post-excerpt-lead {
  font-family: var(--font-serif);
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-bottom: 36px;
}

.post-tags {
  margin-top: var(--s7);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* ============================================================
   CATEGORY HYBRID (articles + products sidebar)
   ============================================================ */
.cat-hybrid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s7);
}
.cat-article-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--s5);
  align-items: center;
  padding-bottom: var(--s5);
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  color: inherit;
}
.cat-article-row:last-child { border-bottom: 0; }
.cat-article-row .media-wrap,
.cat-article-row .ph { aspect-ratio: 4/3; border-radius: var(--radius-m); overflow: hidden; }
.cat-article-row h3 { margin-bottom: 10px; font-size: 22px; }
.cat-article-row p { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 14px; }
.cat-article-row .row-meta { font-size: 12px; color: var(--ink-muted); }

.side-gear { display: flex; flex-direction: column; gap: var(--s4); }
.side-gear-card {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 14px;
  align-items: center;
  padding: var(--s3);
  background: var(--bg-card);
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  cursor: pointer;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
}
.side-gear-card:hover { border-color: var(--teal-soft); transform: translateY(-1px); }
.side-gear-card .media-wrap,
.side-gear-card .ph { aspect-ratio: 1/1; border-radius: var(--radius-s); overflow: hidden; }
.side-gear-card .name { font-family: var(--font-serif); font-size: 16px; line-height: 1.2; margin-bottom: 4px; }
.side-gear-card .p { font-size: 13px; color: var(--teal-deep); font-weight: 500; }

.newsletter-side {
  margin-top: var(--s5);
  padding: var(--s4);
  background: var(--teal-wash);
  border-radius: var(--radius-m);
  border: 1px solid var(--teal-soft);
}
.newsletter-side input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--teal-soft);
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
}
.newsletter-side .btn { width: 100%; justify-content: center; margin-top: 8px; font-size: 13px; }

/* ============================================================
   FAQ (for product / category pages)
   ============================================================ */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s4) 0;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  text-align: left;
  gap: var(--s4);
}
.faq-q .chev { transition: transform 0.2s; color: var(--teal); flex-shrink: 0; }
.faq-item[aria-expanded="true"] .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item[aria-expanded="true"] .faq-a {
  max-height: 1200px;
  padding-bottom: var(--s5);
}

/* ============================================================
   FORMS
   ============================================================ */
input[type="text"],
input[type="email"],
input[type="search"],
input[type="number"],
input[type="url"],
textarea,
select {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.2s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--teal);
}

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--s7);
}
.pagination a, .pagination span {
  min-width: 40px; padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13px;
  text-align: center;
  color: var(--ink-soft);
  background: var(--bg-card);
  transition: all 0.2s;
}
.pagination a:hover { border-color: var(--teal); color: var(--teal-deep); }
.pagination .current { background: var(--teal); color: #fff; border-color: var(--teal); }

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft { float: left; margin: 0 var(--s4) var(--s3) 0; }
.alignright { float: right; margin: 0 0 var(--s3) var(--s4); }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; margin: 0 0 var(--s4); }
.wp-caption-text { font-size: 12px; color: var(--ink-muted); padding-top: 6px; text-align: center; }
.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px; width: 1px;
  overflow: hidden;
}
.sticky, .gallery-caption, .bypostauthor { }

/* Skip to content */
.skip-link {
  position: absolute;
  left: -10000px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Editorial helpers (shortcodes) */
.te-callout {
  background: var(--teal-wash);
  border-left: 3px solid var(--teal);
  padding: var(--s5);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  margin: var(--s5) 0;
}
.te-callout-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 8px;
}

.te-stat-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s4);
  align-items: center;
  padding: var(--s5);
  background: var(--bg-soft);
  border-radius: var(--radius-m);
  margin: var(--s5) 0;
}
.te-stat-big {
  font-family: var(--font-serif);
  font-size: 56px;
  line-height: 1;
  color: var(--teal-deep);
}
.te-stat-block-source {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 4px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .cat-hybrid, .method-split, .product-layout,
  .featured-article { grid-template-columns: 1fr; }
  .compare-slots { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .verdict { grid-template-columns: 1fr; }
  .verdict .avatar.avatar-xl { margin-bottom: var(--s3); }
  .inline-affiliate { grid-template-columns: 1fr; text-align: center; }
}

@media (max-width: 768px) {
  :root { --s7: 32px; --s8: 48px; --s9: 64px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: var(--s4); gap: 0; }
  .nav[data-menu-open="true"] .nav-links { display: flex; }
  .nav-links .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .burger { display: inline-flex; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .hero-teal { padding: var(--s7) var(--s5); min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bot { flex-direction: column; }
  .filter-bar-inner { flex-direction: column; align-items: stretch; }
  .compare-slots { grid-template-columns: 1fr; }
  .compare-row { font-size: 13px; }
  .compare-row .compare-label,
  .compare-row .compare-cell { padding: 12px 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cat-article-row { grid-template-columns: 1fr; }
  .product-price-now { font-size: 32px; }
  .product-score { padding: 14px 16px; }
  .product-score-val { font-size: 34px; }
  .post-content { font-size: 16.5px; }
  .post-content blockquote, .post-content .te-pullquote { font-size: 20px; padding: var(--s4); }
  .hero-teal-cta { flex-direction: column; align-items: stretch; }
  .hero-teal-cta .btn { justify-content: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 34px; }
  .grid-4 { grid-template-columns: 1fr; }
  .product-thumbs { grid-template-columns: repeat(3, 1fr); }
  .method-steps .step { grid-template-columns: 48px 1fr; gap: var(--s3); }
  .step-num { font-size: 22px; }
  .stats-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .footer, .filter-bar, .hero-teal-cta, .pcard-heart, .btn { display: none !important; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
