/*
Theme Name: MigraineEase
Theme URI: https://migraineease.smartlifeitems.com
Author: SmartLifeItems
Description: A gentle, low-contrast affiliate theme built specifically for migraine and headache relief product reviews. Features soothing muted tones, light-sensitive-friendly design, and conversion-focused layouts for ice hats, cooling caps, light blocking glasses, pressure bands, and migraine supplements.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: migraineease
Tags: affiliate, migraine, headache, pain relief, reviews, calming, purple, lavender, wellness
*/

/* ============================================================
   CSS VARIABLES — CALMING PLUM & LAVENDER PALETTE
   ============================================================ */
:root {
  --plum:            #3d2a4e;
  --plum-dark:       #2a1d36;
  --plum-mid:        #5a3e73;
  --purple:          #7a5f96;
  --purple-soft:     #9c82b8;
  --lavender:        #b8a3cf;
  --lavender-light:  #e4dcef;
  --lavender-pale:   #f3eef8;
  --lavender-mist:   #faf7fc;
  --dusk:            #6b5a7f;
  --sage:            #8fa58c;
  --sage-light:      #dde8d9;
  --sage-pale:       #eef4ec;
  --cream:           #faf8fb;
  --white:           #ffffff;
  --soft-gray:       #f4f1f5;
  --border:          #e5dfeb;
  --border-dark:     #cfc5d9;
  --text:            #2e2638;
  --text-muted:      #5f5469;
  --text-light:      #8a7f95;
  --rose:            #b07b8a;
  --rose-light:      #f5e8ec;
  --amber:           #b89150;
  --amber-light:     #f7efde;
  --green:           #4a7a5a;
  --green-light:     #e3eee5;
  --red:             #a8504f;
  --red-light:       #f5e5e4;

  --font-heading:   'Fraunces', 'Cormorant Garamond', Georgia, serif;
  --font-body:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:      'JetBrains Mono', monospace;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  18px;
  --radius-xl:  28px;
  --radius-pill: 50px;

  --shadow-sm:   0 2px 10px rgba(61,42,78,0.06);
  --shadow-md:   0 8px 28px rgba(61,42,78,0.10);
  --shadow-lg:   0 16px 48px rgba(61,42,78,0.14);
  --shadow-soft: 0 6px 22px rgba(156,130,184,0.22);

  --max-width:     1180px;
  --sidebar-width: 320px;
  --transition:    0.25s ease;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--cream);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--plum); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.22;
  color: var(--plum);
  font-weight: 600;
  margin-bottom: 0.75rem;
  letter-spacing: -0.2px;
}

h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: 1.3rem; font-size: 1.02rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
li { margin-bottom: 0.5rem; }

blockquote {
  border-left: 4px solid var(--lavender);
  padding: 1.1rem 1.6rem;
  margin: 2rem 0;
  background: var(--lavender-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-muted);
  font-size: 1.05rem;
}

hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* ============================================================
   LAYOUT
   ============================================================ */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.site-wrapper { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

.content-area {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: 48px;
  align-items: start;
  padding: 48px 0;
}

@media (max-width: 1024px) {
  .content-area { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announce-bar {
  background: var(--plum);
  padding: 9px 0;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.78);
  letter-spacing: 0.3px;
}

.announce-bar a { color: var(--lavender); text-decoration: underline; }
.announce-bar strong { color: #fff; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 28px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--purple), var(--lavender));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
  color: #fff;
}

.logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--plum);
  letter-spacing: -0.5px;
}

.logo-text span { color: var(--purple); font-style: italic; }
.site-logo:hover .logo-text { color: var(--purple); }

.main-nav ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  gap: 2px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition);
  display: block;
}

.main-nav a:hover,
.main-nav .current-menu-item a {
  color: var(--purple);
  background: var(--lavender-pale);
}

.nav-cta {
  background: var(--purple) !important;
  color: #fff !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--plum-mid) !important; color: #fff !important; }

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--soft-gray);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  flex-shrink: 0;
  transition: border-color var(--transition);
}

.header-search:focus-within { border-color: var(--lavender); background: var(--white); }
.header-search input { background: none; border: none; color: var(--text); font-size: 0.875rem; outline: none; width: 150px; font-family: var(--font-body); }
.header-search input::placeholder { color: var(--text-light); }
.header-search svg { color: var(--text-light); flex-shrink: 0; }

.hamburger { display: none; background: none; border: none; cursor: pointer; color: var(--plum); padding: 4px; }

@media (max-width: 900px) {
  .main-nav, .header-search { display: none; }
  .hamburger { display: flex; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: var(--white);
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    z-index: 99;
  }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
}

/* ============================================================
   CATEGORY STRIP
   ============================================================ */
.category-strip {
  background: var(--white);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 70px;
  z-index: 90;
}

.category-strip-inner {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}

.category-strip-inner::-webkit-scrollbar { display: none; }

.cat-tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}

.cat-tab:hover { color: var(--purple); border-bottom-color: var(--lavender); }
.cat-tab.active { color: var(--purple); border-bottom-color: var(--purple); font-weight: 600; }
.cat-icon { font-size: 1rem; }

/* ============================================================
   HERO — soft, low-contrast gradient for light-sensitive readers
   ============================================================ */
.hero-section {
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-mid) 55%, var(--purple) 100%);
  padding: 68px 0 76px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -8%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(184,163,207,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -35%;
  left: -6%;
  width: 440px;
  height: 440px;
  background: radial-gradient(circle, rgba(143,165,140,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 56px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { display: none; }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(184,163,207,0.2);
  border: 1px solid rgba(184,163,207,0.32);
  color: var(--lavender-light);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  width: fit-content;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title span { color: var(--lavender-light); font-style: italic; font-weight: 500; }

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.72;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.14);
  flex-wrap: wrap;
}

.hero-stat-item {}
.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.hero-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.58); }

.hero-cards { display: flex; flex-direction: column; gap: 14px; }

.hero-product-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  padding: 18px;
  backdrop-filter: blur(10px);
  transition: background var(--transition);
  text-decoration: none;
}

.hero-product-card:hover { background: rgba(255,255,255,0.14); }
.hero-card-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--lavender-light); margin-bottom: 6px; }
.hero-card-title { font-family: var(--font-heading); font-size: 1rem; font-weight: 600; color: #fff; margin-bottom: 8px; line-height: 1.3; }

.hero-card-bottom { display: flex; align-items: center; justify-content: space-between; }
.hero-card-score { display: flex; align-items: center; gap: 6px; }
.hero-card-stars { color: var(--amber); font-size: 0.8rem; }
.hero-card-rating { font-size: 0.78rem; color: rgba(255,255,255,0.68); }
.hero-card-price { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 700; color: var(--lavender-light); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.2px;
}

.btn-primary {
  background: var(--purple);
  color: #fff;
}

.btn-primary:hover { background: var(--plum-mid); color: #fff; box-shadow: var(--shadow-soft); transform: translateY(-1px); }

.btn-white {
  background: #fff;
  color: var(--plum);
}

.btn-white:hover { background: var(--lavender-pale); color: var(--plum); }

.btn-outline {
  background: transparent;
  border-color: var(--purple);
  color: var(--purple);
}

.btn-outline:hover { background: var(--purple); color: #fff; }

.btn-sage { background: var(--sage); color: #fff; }
.btn-sage:hover { background: #6d8869; color: #fff; }
.btn-sm { padding: 8px 18px; font-size: 0.8rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-wrap { padding: 56px 0; }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 6px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--plum);
  margin: 0;
  letter-spacing: -0.3px;
}

.section-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition);
}

.section-link:hover { gap: 8px; }

/* ============================================================
   PRODUCT CARDS
   ============================================================ */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.products-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.products-grid.cols-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }

@media (max-width: 1024px) { .products-grid, .products-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid, .products-grid.cols-2, .products-grid.cols-4 { grid-template-columns: 1fr; } }

.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card.featured { border: 2px solid var(--purple); }
.product-card.featured .card-badge { background: var(--purple); }

.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--lavender-pale);
  position: relative;
}

.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product-card:hover .card-thumb img { transform: scale(1.04); }

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  color: #fff;
  background: var(--sage);
}

.card-badge.cooling { background: var(--purple); }
.card-badge.top { background: var(--plum); }
.card-badge.budget { background: var(--green); }
.card-badge.pain { background: var(--amber); color: #4a3a14; }

.migraine-tags {
  position: absolute;
  bottom: 10px; left: 10px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.migraine-tag {
  font-size: 0.62rem;
  font-weight: 600;
  background: rgba(61,42,78,0.82);
  color: var(--lavender-light);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
  letter-spacing: 0.3px;
}

.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 7px;
  display: block;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--plum);
  line-height: 1.28;
  margin-bottom: 8px;
  display: block;
  transition: color var(--transition);
  letter-spacing: -0.2px;
}

.card-title:hover { color: var(--purple); }
.card-excerpt { font-size: 0.875rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 14px; flex: 1; }

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: auto;
}

.card-meta { font-size: 0.75rem; color: var(--text-light); display: flex; align-items: center; gap: 8px; }

.review-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--lavender-pale);
  border-top: 1px solid var(--border);
}

.score-pill { display: flex; align-items: center; gap: 10px; }

.score-bubble {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: var(--shadow-soft);
}

.score-bubble.excellent { background: var(--sage); }
.score-stars { color: var(--amber); font-size: 0.82rem; display: block; }
.score-label { font-size: 0.7rem; color: var(--text-muted); font-weight: 500; }

/* ============================================================
   REVIEW COMPONENTS
   ============================================================ */
.review-score-box {
  background: var(--plum);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.score-circle {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: var(--purple);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: var(--shadow-soft);
}

.score-big { font-family: var(--font-heading); font-size: 2.2rem; font-weight: 700; color: #fff; line-height: 1; }
.score-denom { font-size: 0.72rem; color: rgba(255,255,255,0.65); }
.score-rows { display: grid; gap: 10px; }

.score-row-item { display: flex; align-items: center; gap: 12px; }
.score-row-label { width: 140px; flex-shrink: 0; font-size: 0.8rem; color: rgba(255,255,255,0.78); }
.score-track { flex: 1; height: 6px; background: rgba(255,255,255,0.12); border-radius: 3px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 3px; background: var(--lavender); }
.score-fill.high { background: var(--lavender-light); }
.score-val { width: 28px; text-align: right; font-family: var(--font-heading); font-size: 0.9rem; font-weight: 700; color: #fff; flex-shrink: 0; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
@media (max-width: 600px) { .pros-cons { grid-template-columns: 1fr; } }

.pros-box {
  background: var(--green-light);
  border: 1px solid #b8d4bd;
  border-left: 4px solid var(--green);
  border-radius: var(--radius-md);
  padding: 18px;
}

.cons-box {
  background: var(--red-light);
  border: 1px solid #dfb8b8;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-md);
  padding: 18px;
}

.pc-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 12px; }
.pros-box .pc-title { color: var(--green); }
.cons-box .pc-title { color: var(--red); }

.pc-list { list-style: none; padding: 0; margin: 0; }
.pc-list li { font-size: 0.9rem; padding: 5px 0; border-bottom: 1px solid rgba(0,0,0,0.06); display: flex; gap: 9px; color: var(--text); }
.pc-list li:last-child { border-bottom: none; }
.pc-list li::before { flex-shrink: 0; font-weight: 700; }
.pros-box li::before { content: '✓'; color: var(--green); }
.cons-box li::before { content: '✗'; color: var(--red); }

.verdict-box {
  background: var(--lavender-pale);
  border: 2px solid var(--lavender);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin: 32px 0;
}

.verdict-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.verdict-label::before { content: ''; display: inline-block; width: 20px; height: 2px; background: var(--purple); border-radius: 2px; }
.verdict-text { font-size: 1rem; line-height: 1.75; color: var(--text); }

.affiliate-cta-block {
  background: var(--lavender-mist);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 32px 0;
  text-align: center;
}

.affiliate-cta-block .product-name { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 600; color: var(--plum-mid); margin-bottom: 6px; }
.affiliate-cta-block .product-price { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 700; color: var(--purple); margin-bottom: 4px; line-height: 1; }
.affiliate-cta-block .price-note { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 22px; }
.affiliate-cta-block .disclaimer { font-size: 0.72rem; color: var(--text-light); margin-top: 12px; }

.comparison-wrap { overflow-x: auto; margin: 32px 0; border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; min-width: 540px; }
.comparison-table th { background: var(--plum); color: #fff; padding: 13px 16px; text-align: left; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.5px; }
.comparison-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:nth-child(even) td { background: var(--lavender-mist); }
.comparison-table tr.top-pick td { background: var(--lavender-pale); font-weight: 600; }
.comparison-table .check { color: var(--green); font-weight: 700; }
.comparison-table .cross { color: var(--red); }
.comparison-table .price-cell { font-weight: 700; color: var(--purple); font-family: var(--font-heading); }

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc-box {
  background: var(--lavender-mist);
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 20px 24px;
  margin: 32px 0;
}

.toc-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--purple); margin-bottom: 14px; }
.toc-list { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc-list li { counter-increment: toc; padding: 5px 0; border-bottom: 1px solid var(--border); }
.toc-list li:last-child { border-bottom: none; }
.toc-list a { font-size: 0.9rem; color: var(--text); display: flex; align-items: baseline; gap: 10px; }
.toc-list a::before { content: counter(toc) '.'; color: var(--purple); font-weight: 700; width: 18px; flex-shrink: 0; }
.toc-list a:hover { color: var(--purple); }

/* ============================================================
   TRIGGER-AWARE CALLOUT — soft info/warning box
   ============================================================ */
.trigger-callout {
  background: var(--amber-light);
  border: 1px solid #e8d090;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin: 28px 0;
  font-size: 0.92rem;
  color: #5a4415;
  line-height: 1.7;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.trigger-callout strong { color: var(--plum); }

/* ============================================================
   ARTICLE STYLES
   ============================================================ */
.article-header { padding: 40px 0 28px; border-bottom: 1px solid var(--border); margin-bottom: 36px; }

.article-breadcrumb { font-size: 0.78rem; color: var(--text-muted); margin-bottom: 16px; }
.article-breadcrumb a { color: var(--purple); }
.article-breadcrumb a:hover { color: var(--plum); }

.article-title { font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.15; margin-bottom: 16px; letter-spacing: -0.5px; }
.article-subtitle { font-size: 1.12rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 22px; font-weight: 400; font-style: italic; }

.article-meta-bar { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 0.8rem; color: var(--text-muted); }
.author-block { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border); }
.author-name { font-weight: 600; color: var(--text); font-size: 0.875rem; }
.author-name a { color: inherit; }
.author-name a:hover { color: var(--purple); }

.tag-pill {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  background: var(--lavender-pale);
  color: var(--purple);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.tag-pill:hover { background: var(--purple); color: #fff; border-color: var(--purple); }

.article-featured-image { margin-bottom: 36px; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.article-featured-image img { width: 100%; max-height: 500px; object-fit: cover; }
.article-featured-image figcaption { padding: 10px 16px; font-size: 0.78rem; color: var(--text-muted); background: var(--lavender-mist); }

.article-body { font-size: 1.05rem; line-height: 1.85; }
.article-body h2 { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); color: var(--plum); }
.article-body h3 { margin-top: 2rem; color: var(--plum-mid); }
.article-body p { margin-bottom: 1.5rem; }
.article-body a { color: var(--purple); border-bottom: 1px solid var(--lavender); }
.article-body a:hover { color: var(--plum); border-bottom-color: var(--purple-soft); }

.affiliate-disclosure {
  background: var(--amber-light);
  border: 1px solid #e8d090;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  font-size: 0.8rem;
  color: #5a4010;
  line-height: 1.6;
  margin-bottom: 28px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar { display: flex; flex-direction: column; gap: 28px; }

.widget { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.widget-head { padding: 14px 20px; background: var(--plum); color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.widget-body { padding: 20px; }

.top-pick-widget { border: 2px solid var(--purple); }
.top-pick-widget .widget-head { background: var(--purple); }
.top-pick-img { width: 100%; border-radius: var(--radius-md); margin-bottom: 14px; aspect-ratio: 4/3; object-fit: cover; background: var(--lavender-pale); }
.top-pick-name { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; color: var(--plum); }
.top-pick-score { color: var(--amber); font-size: 0.85rem; margin-bottom: 4px; }
.top-pick-price { font-family: var(--font-heading); font-size: 1.6rem; font-weight: 700; color: var(--purple); margin-bottom: 14px; }

.newsletter-widget { background: var(--plum); border: none; }
.newsletter-widget .widget-head { background: rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.08); }
.newsletter-widget .widget-body { padding: 22px; }
.newsletter-title { font-family: var(--font-heading); font-size: 1.2rem; font-weight: 600; color: #fff; margin-bottom: 8px; }
.newsletter-desc { font-size: 0.875rem; color: rgba(255,255,255,0.68); margin-bottom: 18px; line-height: 1.65; }

.nl-form { display: flex; flex-direction: column; gap: 10px; }
.nl-form input { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius-md); padding: 11px 14px; color: #fff; font-family: var(--font-body); font-size: 0.9rem; outline: none; transition: border-color var(--transition); }
.nl-form input::placeholder { color: rgba(255,255,255,0.38); }
.nl-form input:focus { border-color: var(--lavender); }
.nl-form button { background: var(--purple); color: #fff; border: none; border-radius: var(--radius-md); padding: 12px; font-family: var(--font-body); font-size: 0.88rem; font-weight: 600; cursor: pointer; transition: background var(--transition); letter-spacing: 0.3px; }
.nl-form button:hover { background: var(--purple-soft); }
.nl-disclaimer { font-size: 0.68rem; color: rgba(255,255,255,0.4); margin-top: 8px; text-align: center; }

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar { background: var(--lavender-mist); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 16px 0; }

.trust-inner { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; }

.trust-item { display: flex; align-items: center; gap: 9px; font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.trust-icon { color: var(--purple); font-size: 1.1rem; }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 48px 0; }

.page-link { display: flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px; border-radius: var(--radius-md); border: 1px solid var(--border); font-size: 0.875rem; font-weight: 500; color: var(--text); transition: all var(--transition); background: var(--white); }
.page-link:hover { border-color: var(--purple); color: var(--purple); background: var(--lavender-pale); }
.page-link.current { background: var(--purple); border-color: var(--purple); color: #fff; box-shadow: var(--shadow-soft); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--plum); color: rgba(255,255,255,0.72); margin-top: auto; }
.footer-top { padding: 56px 0 40px; border-bottom: 1px solid rgba(255,255,255,0.08); }

.footer-grid { display: grid; grid-template-columns: 260px 1fr 1fr 1fr; gap: 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; text-decoration: none; }
.footer-logo-mark { width: 32px; height: 32px; background: var(--purple); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1rem; color: #fff; }
.footer-logo-text { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 700; color: #fff; }
.footer-logo-text span { color: var(--lavender-light); font-style: italic; }

.footer-desc { font-size: 0.875rem; line-height: 1.7; color: rgba(255,255,255,0.52); margin-bottom: 18px; }

.footer-socials { display: flex; gap: 8px; }
.social-btn { width: 34px; height: 34px; border-radius: var(--radius-md); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.62); font-size: 0.85rem; transition: all var(--transition); }
.social-btn:hover { background: var(--purple); border-color: var(--purple); color: #fff; }

.footer-widget-title { font-size: 0.68rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 16px; }

.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.62); transition: color var(--transition); }
.footer-links a:hover { color: var(--lavender-light); }

.footer-bottom { padding: 18px 0; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.75rem; color: rgba(255,255,255,0.35); }
.footer-legal { display: flex; gap: 18px; }
.footer-legal a { color: rgba(255,255,255,0.35); }
.footer-legal a:hover { color: rgba(255,255,255,0.65); }

/* ============================================================
   UTILITIES
   ============================================================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media print {
  .site-header, .site-footer, .sidebar, .announce-bar, .category-strip { display: none; }
  .content-area { grid-template-columns: 1fr; }
}
