/* ============================================================
   Cultiqa — Main Stylesheet
   Design System: Forest Green + Terracotta + Lime
   Typography: Playfair Display (headings) + Inter (body)
   ============================================================ */

/* ---- Custom Properties ------------------------------------ */
:root {
  /* Brand Colors */
  --forest:       #1a4436;
  --forest-light: #2d6653;
  --forest-dark:  #0f2b22;
  --terracotta:   #c4624a;
  --terracotta-lt:#e07d64;
  --lime:         #7fb843;
  --lime-light:   #a5d16a;
  --lime-dark:    #5c8a30;

  /* Neutrals */
  --white:    #ffffff;
  --offwhite: #f8f5f0;
  --surface:  #f2ede6;
  --border:   #e0d8cd;
  --text:     #1c2420;
  --text-muted: #6b7a74;
  --charcoal: #2c3530;

  /* Typography */
  --font-serif: 'Playfair Display', 'DM Serif Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl:6rem;

  /* Layout */
  --container: 1180px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Shadow */
  --shadow-sm: 0 1px 3px rgba(26,68,54,.08), 0 1px 2px rgba(26,68,54,.04);
  --shadow-md: 0 4px 16px rgba(26,68,54,.10), 0 2px 6px rgba(26,68,54,.06);
  --shadow-lg: 0 12px 40px rgba(26,68,54,.14), 0 4px 12px rgba(26,68,54,.08);

  /* Transitions */
  --ease: cubic-bezier(.22,.61,.36,1);
  --transition: 0.22s var(--ease);
}

/* ---- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select {
  font: inherit;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  width: 100%;
  background: var(--white);
  color: var(--text);
  transition: border-color var(--transition);
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--forest);
  box-shadow: 0 0 0 3px rgba(26,68,54,.12);
}

/* ---- Typography ------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.2;
  color: var(--forest-dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.1rem; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--terracotta); }
p { color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: .5rem;
}

/* ---- Layout ----------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
}
.section {
  padding: var(--space-xl) 0;
}
.section--alt {
  background: var(--offwhite);
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-lg);
  gap: 1rem;
  flex-wrap: wrap;
}
.section-header.centered {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* ---- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.5rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 600;
  font-family: var(--font-sans);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--forest);
  color: var(--white);
  border: 2px solid var(--forest);
}
.btn-primary:hover {
  background: var(--forest-dark);
  border-color: var(--forest-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-lime {
  background: var(--lime);
  color: var(--white);
  border: 2px solid var(--lime);
}
.btn-lime:hover {
  background: var(--lime-dark);
  border-color: var(--lime-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--forest);
}
.btn-ghost:hover {
  background: var(--forest);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--forest);
  border: 2px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--forest);
}
.btn-lg { padding: .95rem 2rem; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: .45rem 1rem; font-size: .82rem; }
.btn-block { width: 100%; justify-content: center; }

.text-link {
  color: var(--forest);
  font-weight: 500;
  font-size: .9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.text-link:hover { color: var(--terracotta); }

/* ---- Header ----------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  height: 70px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}
.logo-text {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--forest);
}
.main-nav { margin-left: auto; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
}
.main-nav a {
  display: inline-block;
  padding: .45rem .9rem;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  font-weight: 500;
  color: var(--charcoal);
  transition: all var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--forest); background: var(--surface); }
.main-nav .nav-cta {
  background: var(--forest);
  color: var(--white) !important;
  margin-left: .5rem;
}
.main-nav .nav-cta:hover { background: var(--forest-dark); }

/* Mobile toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}
.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--forest);
  border-radius: 2px;
  transition: all var(--transition);
}
.mobile-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.open span:nth-child(2) { opacity: 0; }
.mobile-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
}
.mobile-nav.open { display: block; }
.mobile-nav ul { display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a {
  display: block;
  padding: .7rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  color: var(--charcoal);
}
.mobile-nav a:hover, .mobile-nav a.active { background: var(--surface); color: var(--forest); }

/* ---- Flash Messages --------------------------------------- */
.flash {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  max-width: 520px;
  width: calc(100% - 2rem);
  animation: slideDown .3s var(--ease);
}
.flash--success { background: var(--forest); color: var(--white); }
.flash--error   { background: var(--terracotta); color: var(--white); }
.flash-close { color: inherit; opacity: .7; font-size: 1.2rem; line-height: 1; }
.flash-close:hover { opacity: 1; }
@keyframes slideDown {
  from { transform: translateX(-50%) translateY(-20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}

/* ---- Hero Section ----------------------------------------- */
.hero {
  position: relative;
  padding: var(--space-xl) 0 var(--space-2xl);
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
}
.hero-blob--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--lime-light), transparent 70%);
  top: -200px;
  right: -100px;
}
.hero-blob--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--terracotta), transparent 70%);
  bottom: -100px;
  left: 10%;
  opacity: .18;
}
.hero-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .4;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.hero-copy { max-width: 560px; }
.hero-copy h1 { margin-bottom: 1.25rem; }
.h1-sub { display: block; font-size: .65em; font-weight: 400; color: var(--text-muted); font-style: normal; }
.hero-lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 1.4rem; font-family: var(--font-serif); color: var(--forest); }
.stat span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* Hero Plant Card */
.hero-plant-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.hero-plant-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(127,184,67,.06) 0%, transparent 60%);
  pointer-events: none;
}
.plant-illustration {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-svg { overflow: visible; }
.plant-metrics {
  display: flex;
  justify-content: space-around;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}
.metric { display: flex; flex-direction: column; align-items: center; }
.metric-val { font-size: 1.4rem; font-family: var(--font-serif); font-weight: 700; color: var(--forest); }
.metric-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.plant-status {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  color: var(--text-muted);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--lime);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .6; transform: scale(1.3); }
}

/* Water drops animation */
.drop { animation: drip 3s ease-in-out infinite; }
.drop-1 { animation-delay: 0s; }
.drop-2 { animation-delay: .8s; }
.drop-3 { animation-delay: 1.6s; }
@keyframes drip {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50%       { transform: translateY(6px); opacity: .3; }
}

.scroll-cue {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* Animate-in entries */
.animate-in {
  animation: fadeUp .6s var(--ease) both;
  animation-delay: var(--delay, 0s);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Value Strip ------------------------------------------ */
.value-strip {
  background: var(--forest);
  padding: 1.5rem 0;
}
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.value-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
}
.value-item div { display: flex; flex-direction: column; }
.value-item strong { font-size: .88rem; font-weight: 600; color: var(--white); }
.value-item p { font-size: .78rem; color: rgba(255,255,255,.65); margin: 0; }

/* ---- Product Cards ---------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--lime-light);
}
.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--terracotta);
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .2rem .6rem;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 2;
}
.product-image {
  aspect-ratio: 4/3;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--offwhite) 100%);
}
.product-info {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.product-category {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.product-name {
  font-size: 1rem;
  font-family: var(--font-serif);
  line-height: 1.3;
}
.product-name a:hover { color: var(--forest); }
.product-desc { font-size: .85rem; line-height: 1.5; flex: 1; }
.product-rating {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .85rem;
}
.star { font-size: .9rem; }
.star.full, .star.half { color: #f59e0b; }
.star.empty { color: var(--border); }
.star.half { opacity: .7; }
.rating-val { font-weight: 600; color: var(--text); }
.rating-count { color: var(--text-muted); }
.product-rating.small { font-size: .75rem; }

.product-pricing {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
}
.price-current { font-size: 1.2rem; font-weight: 700; color: var(--forest); font-family: var(--font-serif); }
.price-original { font-size: .9rem; text-decoration: line-through; color: var(--text-muted); }
.price-save {
  font-size: .72rem;
  background: rgba(127,184,67,.15);
  color: var(--lime-dark);
  padding: .15rem .5rem;
  border-radius: 20px;
  font-weight: 600;
}

/* ---- Guide Cards ------------------------------------------ */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.guides-grid--featured .guide-card--hero {
  grid-column: span 2;
}
.guide-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.guide-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--lime-light);
}
.guide-card--hero .guide-image { aspect-ratio: 16/7; }
.guide-image {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface);
}
.guide-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    oklch(from var(--forest) l c calc(h + var(--hue, 0deg))) 0%,
    var(--surface) 100%
  );
  background: linear-gradient(135deg, var(--surface) 0%, var(--offwhite) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem; }
.guide-meta { display: flex; align-items: center; gap: .75rem; }
.guide-category {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--terracotta);
}
.guide-read-time { font-size: .78rem; color: var(--text-muted); }
.article-views { font-size: .78rem; color: var(--text-muted); }
.guide-title { font-size: 1.1rem; line-height: 1.35; }
.guide-card--hero .guide-title { font-size: 1.4rem; }
.guide-title a:hover { color: var(--forest); }
.guide-excerpt { font-size: .88rem; flex: 1; }
.guide-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--border);
}
.guide-author { font-size: .8rem; color: var(--text-muted); }
.guide-author-info { display: flex; align-items: center; gap: .5rem; }
.author-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.guide-link {
  font-size: .82rem;
  font-weight: 600;
  color: var(--forest);
}
.guide-link:hover { color: var(--terracotta); }

/* ---- Why Section ------------------------------------------ */
.why-section { background: var(--offwhite); }
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}
.why-copy h2 { margin-bottom: 1rem; }
.why-copy p { margin-bottom: 1.5rem; }
.why-list {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  margin-bottom: 2rem;
}
.why-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .92rem;
  color: var(--text-muted);
}
.why-visual { display: flex; justify-content: center; }
.why-card-stack { position: relative; width: 320px; height: 280px; }
.why-card {
  position: absolute;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}
.why-card--back {
  top: 20px;
  left: 20px;
  right: -20px;
  bottom: -20px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: .5rem;
  justify-content: flex-end;
}
.why-card--back span { font-size: .82rem; color: var(--text-muted); }
.why-card--back strong { font-family: var(--font-serif); font-size: 1rem; color: var(--forest); }
.why-card--front {
  top: 0;
  left: 0;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .75rem;
  z-index: 2;
}
.why-card--front h4 { font-size: 1.1rem; }
.why-card--front p { font-size: .85rem; }
.why-card-icon { display: flex; justify-content: center; }

/* ---- Categories ------------------------------------------- */
.category-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .35rem;
  padding: 1.25rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--transition);
  text-decoration: none;
}
.category-tile:hover {
  border-color: var(--forest);
  background: var(--forest);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.category-tile:hover p,
.category-tile:hover strong { color: var(--white); }
.category-emoji { font-size: 1.5rem; }
.category-tile strong { font-size: .95rem; color: var(--text); }
.category-tile span { font-size: .78rem; color: var(--text-muted); line-height: 1.4; }

/* ---- Page Hero -------------------------------------------- */
.page-hero {
  background: var(--offwhite);
  padding: var(--space-xl) 0 var(--space-lg);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.page-hero--sm { padding: var(--space-lg) 0; }
.page-hero--forest {
  background: var(--forest);
  color: var(--white);
}
.page-hero--forest h1 { color: var(--white); }
.page-hero--forest p   { color: rgba(255,255,255,.75); }
.page-hero h1 { margin-bottom: .75rem; }
.page-hero p  { max-width: 600px; margin: 0 auto 1.5rem; font-size: 1.05rem; }

/* Category pills */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
}
.pill:hover, .pill.active {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}
.pill-count {
  background: rgba(0,0,0,.1);
  border-radius: 10px;
  padding: 0 .4rem;
  font-size: .72rem;
}
.pill.active .pill-count { background: rgba(255,255,255,.2); }

/* ---- Shop Layout ------------------------------------------ */
.shop-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  align-items: start;
}
.shop-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.widget-title {
  font-size: 1rem;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: var(--forest-dark);
}
.filter-list { display: flex; flex-direction: column; gap: .2rem; }
.filter-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .45rem .65rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  color: var(--text-muted);
  transition: all var(--transition);
}
.filter-link:hover, .filter-link.active {
  background: var(--surface);
  color: var(--forest);
  font-weight: 500;
}
.filter-count {
  font-size: .72rem;
  background: var(--surface);
  border-radius: 10px;
  padding: 0 .45rem;
  color: var(--text-muted);
}
.sidebar-promo { background: var(--surface); }
.sidebar-promo .eyebrow { display: block; margin-bottom: .5rem; }
.sidebar-promo p { font-size: .82rem; margin-bottom: .75rem; }

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.results-count { font-size: .88rem; color: var(--text-muted); }
.results-count strong { color: var(--text); }

/* ---- Article Layout --------------------------------------- */
.breadcrumb {
  background: var(--offwhite);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-muted);
}
.breadcrumb li:not(:last-child)::after { content: '/'; margin-left: .5rem; }
.breadcrumb a:hover { color: var(--forest); }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }

.article-layout { padding: var(--space-lg) 0 var(--space-xl); }
.article-inner {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.article-header { margin-bottom: 2rem; }
.article-header h1 { margin: .75rem 0 1rem; }
.article-lead { font-size: 1.1rem; line-height: 1.7; margin-bottom: 1.5rem; color: var(--text); }
.article-byline { display: flex; align-items: center; gap: .75rem; }
.article-byline strong { display: block; font-size: .9rem; color: var(--text); }
.article-byline span { font-size: .8rem; color: var(--text-muted); }

.article-hero-image { margin-bottom: 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.article-hero-image svg { display: block; }

/* Article prose */
.prose h2 { font-size: 1.6rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.prose p  { margin-bottom: 1rem; line-height: 1.8; }
.prose ul, .prose ol { margin: 1rem 0 1rem 1.5rem; }
.prose li { margin-bottom: .5rem; line-height: 1.6; }
.prose ol { list-style: decimal; }
.prose ul { list-style: disc; }
.prose strong { color: var(--text); }
.prose blockquote {
  border-left: 4px solid var(--lime);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--surface);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.prose blockquote p { font-style: italic; font-family: var(--font-serif); font-size: 1.05rem; color: var(--forest); margin: 0 0 .5rem; }
.prose blockquote cite { font-size: .82rem; color: var(--text-muted); font-style: normal; }

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 2rem 0;
}
.tag {
  padding: .3rem .8rem;
  background: var(--surface);
  border-radius: 20px;
  font-size: .78rem;
  color: var(--text-muted);
}

.author-box {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  margin: 2rem 0;
}
.author-avatar-xl {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.author-bio strong { display: block; margin-bottom: .25rem; color: var(--text); }
.author-bio p { font-size: .85rem; }

.related-guides { margin-top: 2rem; }
.related-guides h3 { margin-bottom: 1rem; font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.related-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  transition: all var(--transition);
}
.related-card:hover { background: var(--forest); color: var(--white); }
.related-card:hover .related-category,
.related-card:hover .related-time { color: rgba(255,255,255,.7); }
.related-card:hover strong { color: var(--white); }
.related-category { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--terracotta); }
.related-card strong { font-size: .88rem; line-height: 1.4; color: var(--text); }
.related-time { font-size: .78rem; color: var(--text-muted); margin-top: auto; }

/* Article Sidebar */
.article-sidebar { position: sticky; top: 90px; }
.sticky-sidebar { position: sticky; top: 90px; }
.sidebar-toc h4 { margin-bottom: .75rem; font-size: .95rem; }
.toc-list { display: flex; flex-direction: column; gap: .2rem; }
.toc-list a {
  font-size: .85rem;
  color: var(--text-muted);
  padding: .3rem .5rem;
  border-radius: var(--radius-sm);
  display: block;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.toc-list a:hover {
  color: var(--forest);
  border-left-color: var(--lime);
  background: var(--surface);
}

.sidebar-product {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-product:last-of-type { border-bottom: none; }
.sidebar-product-info { flex: 1; }
.sidebar-product-info strong { display: block; font-size: .85rem; line-height: 1.3; margin-bottom: .25rem; color: var(--text); }
.sidebar-product-info .price-current { font-size: .9rem; }

.sidebar-newsletter { background: var(--forest); color: var(--white); }
.sidebar-newsletter h4 { color: var(--white); margin-bottom: .5rem; }
.sidebar-newsletter p { color: rgba(255,255,255,.75); font-size: .85rem; margin-bottom: 1rem; }
.sidebar-form { display: flex; flex-direction: column; gap: .5rem; }
.sidebar-form input {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--white);
}
.sidebar-form input::placeholder { color: rgba(255,255,255,.5); }
.sidebar-form input:focus { border-color: var(--lime); }

/* ---- Newsletter Strip ------------------------------------- */
.newsletter-strip {
  background: var(--forest-dark);
  padding: var(--space-lg) 0;
}
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.newsletter-copy .eyebrow { color: var(--lime-light); }
.newsletter-copy h3 { color: var(--white); font-size: 1.5rem; font-family: var(--font-serif); }
.newsletter-form .input-row {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
}
.newsletter-form input {
  flex: 1;
  min-width: 160px;
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.2);
  color: var(--white);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,.5); }
.newsletter-form input:focus { border-color: var(--lime); }
.form-note { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .5rem; }

/* ---- Site Footer ------------------------------------------ */
.site-footer {
  background: var(--charcoal);
  color: var(--white);
  padding: var(--space-xl) 0 var(--space-lg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-logo .logo-text { color: var(--white); font-size: 1.3rem; }
.footer-brand p { font-size: .85rem; color: rgba(255,255,255,.55); margin: 1rem 0 1.5rem; line-height: 1.6; }
.social-links { display: flex; gap: .5rem; }
.social-link {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  transition: all var(--transition);
}
.social-link:hover { border-color: var(--lime); color: var(--lime); }
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .4rem; }
.footer-col li a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
}
.footer-col li a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: .8rem; color: rgba(255,255,255,.45); }
.affiliate-notice { max-width: 500px; text-align: right; }

/* ---- Resources Page --------------------------------------- */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.resource-card--featured { grid-column: span 2; }
.resource-icon { font-size: 2rem; margin-bottom: .75rem; }
.resource-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.resource-card p { font-size: .88rem; margin-bottom: 1rem; }
.resource-note { font-size: .82rem; color: var(--text-muted); margin-top: .75rem; }

.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.calc-row label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; font-weight: 500; color: var(--text); }
.calc-result { margin-top: 1rem; }
.calc-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.calc-table th, .calc-table td { padding: .5rem .75rem; text-align: left; border-bottom: 1px solid var(--border); }
.calc-table th { background: var(--surface); font-weight: 600; }
.calc-note { font-size: .8rem; color: var(--text-muted); margin-top: .5rem; font-style: italic; }

.ph-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.ph-table th { padding: .4rem .5rem; text-align: left; border-bottom: 1px solid var(--border); font-size: .75rem; color: var(--text-muted); }
.ph-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--border); }
.avail-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  min-width: 30px;
}
.avail-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: var(--pct, 50%);
  background: linear-gradient(90deg, var(--terracotta), var(--lime));
  border-radius: 3px;
}
.conversion-table, .ec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .85rem;
}
.conversion-table th, .ec-table th,
.conversion-table td, .ec-table td {
  padding: .5rem .75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.conversion-table th, .ec-table th { background: var(--surface); font-weight: 600; font-size: .78rem; }
.download-preview { background: var(--surface); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; overflow-x: auto; }
.journal-preview { width: 100%; border-collapse: collapse; font-size: .78rem; }
.journal-preview th, .journal-preview td { padding: .35rem .5rem; border-bottom: 1px solid var(--border); white-space: nowrap; }
.journal-preview th { background: var(--forest); color: var(--white); font-size: .72rem; }
.supplier-list { margin-top: .5rem; }
.supplier-list li { padding: .4rem 0; border-bottom: 1px solid var(--border); font-size: .88rem; color: var(--text-muted); }
.supplier-list a { color: var(--forest); font-weight: 500; text-decoration: underline; }

/* ---- Get Started Page ------------------------------------- */
.roadmap { display: flex; flex-direction: column; gap: 3rem; }
.roadmap-step { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; }
.step-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--lime);
  opacity: .4;
  line-height: 1;
  padding-top: .1rem;
}
.roadmap-step h3 { margin-bottom: .75rem; }
.system-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1rem 0; }
.system-card {
  padding: 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  transition: border-color var(--transition);
  position: relative;
}
.system-card--recommended { border-color: var(--lime); }
.system-badge {
  position: absolute;
  top: -1px;
  right: .75rem;
  background: var(--lime);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .15rem .5rem;
  border-radius: 0 0 4px 4px;
}
.system-card h4 { font-size: 1rem; margin-bottom: .4rem; }
.system-card p { font-size: .82rem; margin-bottom: .5rem; }
.system-card ul { list-style: none; }
.system-card li { font-size: .8rem; color: var(--text-muted); padding: .15rem 0; }

.checklist { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.check-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .88rem;
  color: var(--text-muted);
  cursor: pointer;
}
.check-item input[type="checkbox"] {
  width: 18px; height: 18px;
  min-width: 18px;
  border-radius: 4px;
  margin-top: .1rem;
  cursor: pointer;
}
.check-item strong { color: var(--text); }
.check-item input:checked + span { text-decoration: line-through; opacity: .6; }

.tip-box {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(127,184,67,.1);
  border-left: 4px solid var(--lime);
  margin: 1rem 0;
}
.tip-icon { font-size: 1.2rem; flex-shrink: 0; }
.tip-box p { font-size: .88rem; margin: 0; }

.growth-timeline { margin: 1rem 0; }
.timeline-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .5rem 0;
  border-left: 2px solid var(--border);
  padding-left: 1rem;
  margin-left: .5rem;
  font-size: .88rem;
  color: var(--text-muted);
}
.tl-harvest { border-color: var(--lime); color: var(--text); font-weight: 500; }
.tl-day { min-width: 80px; font-weight: 600; color: var(--forest); font-size: .82rem; }

.cta-box {
  padding: 1.75rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-top: 1rem;
}
.cta-box h4 { margin-bottom: .5rem; }
.cta-box p { font-size: .88rem; margin-bottom: 1rem; }
.inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.inline-form input { flex: 1; min-width: 200px; }

/* ---- Contact Page ----------------------------------------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group label { font-size: .88rem; font-weight: 500; color: var(--text); }
.required { color: var(--terracotta); }
.contact-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.faq-item { margin-bottom: 1rem; }
.faq-item strong { display: block; font-size: .9rem; color: var(--text); margin-bottom: .25rem; }
.faq-item p { font-size: .85rem; }
.contact-card--social { background: var(--forest); color: var(--white); }
.contact-card--social h3 { color: var(--white); }
.contact-card--social p { color: rgba(255,255,255,.75); margin-bottom: 1rem; }
.social-grid { display: flex; gap: .75rem; }
.social-big {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--transition);
}
.social-big:hover { background: rgba(255,255,255,.2); }

/* ---- Empty State ------------------------------------------ */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 1rem; }
.empty-state h3 { margin-bottom: .5rem; color: var(--text); }
.empty-state a { color: var(--forest); text-decoration: underline; }

/* ---- Responsive ------------------------------------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-inner { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .shop-sidebar { position: static; display: none; }
  .newsletter-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .why-inner { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .guides-grid--featured .guide-card--hero { grid-column: span 1; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 1rem; }
  .main-nav { display: none; }
  .mobile-toggle { display: flex; }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .system-cards { grid-template-columns: 1fr; }
  .roadmap-step { grid-template-columns: 40px 1fr; }
  .step-number { font-size: 1.8rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .resource-card--featured { grid-column: span 1; }
  .calc-row { grid-template-columns: 1fr; }
  .category-tiles { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .affiliate-notice { text-align: center; }
}

@media (max-width: 480px) {
  h1 { font-size: 2rem; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .category-tiles { grid-template-columns: 1fr 1fr; }
  .hero { min-height: auto; padding: 3rem 0; }
}

/* ---- Product Detail Page ---------------------------------- */
.product-detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-bottom: 3rem;
}
.product-detail-image {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius-xl);
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.product-detail-img-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--surface) 0%, var(--offwhite) 100%);
}
.product-badge--large {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  font-size: .82rem;
  padding: .3rem .8rem;
}
.product-detail-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: .5rem 0 1rem;
}
.product-rating--lg { font-size: 1rem; margin-bottom: 1.25rem; }
.product-detail-pricing {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.price-lg { font-size: 2rem !important; }
.product-detail-lead { font-size: 1rem; line-height: 1.7; margin-bottom: 1.25rem; color: var(--text); }
.stock-status {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .85rem;
  font-weight: 500;
  padding: .4rem .8rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}
.in-stock  { background: rgba(127,184,67,.12); color: var(--lime-dark); }
.out-of-stock { background: rgba(196,98,74,.1); color: var(--terracotta); }
.stock-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.in-stock  .stock-dot { background: var(--lime); }
.out-of-stock .stock-dot { background: var(--terracotta); }
.buy-btn { font-size: 1rem; padding: 1rem 2rem; margin-bottom: .75rem; }
.affiliate-micro-notice { font-size: .75rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.product-specs { border-top: 1px solid var(--border); padding-top: 1.5rem; }
.product-specs h3 { font-size: 1rem; margin-bottom: 1rem; }
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.spec-item {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .75rem;
  background: var(--surface);
  border-radius: var(--radius-sm);
}
.spec-item span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.spec-item strong { font-size: .95rem; color: var(--text); }

.product-description { margin: 3rem 0; padding: 2rem; background: var(--offwhite); border-radius: var(--radius-lg); }
.related-products { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* ---- Legal pages ------------------------------------------ */
.legal-prose { max-width: 740px; }
.legal-prose h2 { font-size: 1.4rem; margin: 2rem 0 .6rem; }
.legal-prose p, .legal-prose li { font-size: .95rem; line-height: 1.8; }

/* ---- TOC active link -------------------------------------- */
.toc-active {
  color: var(--forest) !important;
  border-left-color: var(--lime) !important;
  background: var(--surface) !important;
  font-weight: 500;
}

@media (max-width: 768px) {
  .product-detail-layout { grid-template-columns: 1fr; }
  .product-detail-image { aspect-ratio: 4/3; max-height: 320px; }
}

/* ---- User Nav Menu --------------------------------------- */
.nav-login {
  color: var(--forest) !important;
  font-weight: 600;
}
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .4rem .75rem;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 500;
  color: var(--charcoal);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition);
}
.nav-user-btn:hover { background: var(--surface); }
.nav-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  z-index: 200;
  padding: .4rem 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
}
.user-dropdown.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.user-dropdown a,
.user-dropdown .dropdown-logout {
  display: block;
  padding: .6rem 1rem;
  font-size: .875rem;
  color: var(--text);
  transition: background var(--transition);
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
}
.user-dropdown a:hover,
.user-dropdown .dropdown-logout:hover { background: var(--surface); }
.user-dropdown .dropdown-logout { color: var(--terracotta); }
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: .35rem 0;
}

/* ---- Favourite button (product/guide cards) -------------- */
.btn-fav {
  position: absolute;
  top: .75rem;
  right: .75rem;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  cursor: pointer;
  transition: all var(--transition);
  z-index: 3;
}
.btn-fav:hover, .btn-fav.faved {
  background: var(--white);
  border-color: var(--terracotta);
  transform: scale(1.1);
}

/* ---- Admin .htaccess protection note --------------------- */
</style>

/* ---- Search overlay -------------------------------------- */
.nav-search-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: transparent; border: none; cursor: pointer;
  color: var(--charcoal); transition: background var(--transition);
}
.nav-search-btn:hover { background: var(--surface); }
.search-overlay {
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: .85rem clamp(1rem,4vw,2.5rem);
  display: none; box-shadow: var(--shadow-md);
  z-index: 90;
}
.search-overlay.open { display: block; }
.search-overlay-form {
  max-width: 680px; margin: 0 auto;
  display: flex; align-items: center; gap: .75rem;
  background: var(--offwhite); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: .55rem .55rem .55rem 1rem;
}
.search-overlay-form:focus-within { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(26,68,54,.1); }
.search-overlay-form svg { color: var(--text-muted); flex-shrink: 0; }
.search-overlay-form input {
  flex: 1; border: none; background: transparent; font-size: 1rem;
  outline: none; color: var(--text);
}
#searchClose {
  background: transparent; border: none; font-size: 1.1rem; cursor: pointer;
  color: var(--text-muted); padding: .35rem .6rem; border-radius: var(--radius-sm);
  transition: background var(--transition);
}
#searchClose:hover { background: var(--surface); color: var(--text); }

/* ---- AdSense placeholder slots --------------------------- */
.ad-slot {
  background: var(--surface); border: 1px dashed var(--border);
  border-radius: var(--radius-md); padding: 1rem;
  text-align: center; color: var(--text-muted); font-size: .78rem;
  min-height: 90px; display: flex; align-items: center; justify-content: center;
}
.ad-slot--leaderboard { min-height: 90px; }
.ad-slot--rectangle   { min-height: 250px; max-width: 300px; }
.ad-slot--sidebar     { min-height: 250px; }

/* ---- OG / structured data icon in <head> - none needed --- */

/* ---- Pagination ------------------------------------------ */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.pagination-info {
  font-size: .82rem;
  color: var(--text-muted);
}
.pagination {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
}
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 .6rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--transition);
  text-decoration: none;
  cursor: pointer;
}
.page-btn:hover { border-color: var(--forest); color: var(--forest); background: var(--surface); }
.page-btn--active { background: var(--forest); border-color: var(--forest); color: #fff; }
.page-btn--active:hover { background: var(--forest-dark); }
.page-btn--disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.page-btn--nav { padding: 0 .85rem; }
.page-dots { font-size: .85rem; color: var(--text-muted); padding: 0 .25rem; }

/* ---- Price history chart ---------------------------------- */
.price-chart-wrap { overflow-x: auto; }
.price-chart-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.price-chart-table th, .price-chart-table td { padding: .45rem .75rem; border-bottom: 1px solid var(--border); }
.price-chart-table th { background: var(--surface); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); }
.price-bar { height: 8px; border-radius: 4px; background: var(--lime); display: inline-block; min-width: 4px; }

/* ---- Welcome email verification banner ------------------- */
.verify-banner {
  background: #fef3c7;
  border-bottom: 1px solid #fcd34d;
  padding: .65rem clamp(1rem,4vw,2.5rem);
  font-size: .85rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  justify-content: center;
  text-align: center;
}
.verify-banner a { color: var(--forest); font-weight: 600; text-decoration: underline; }

/* ---- Password strength indicator ------------------------- */
.form-hint { font-size: .75rem; color: var(--text-muted); display: block; margin-top: .25rem; }

/* ---- Price history on product pages ---------------------- */
.price-history-section { margin-top: 2rem; }
.price-history-section h3 { font-size: 1rem; margin-bottom: 1rem; }
.price-alert-form { background: var(--offwhite); border-radius: var(--radius-md); padding: 1.25rem; margin-top: 1rem; }
.price-alert-form h4 { font-size: .9rem; margin-bottom: .75rem; }
.price-alert-form .inline-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.price-alert-form .inline-form input { flex: 1; min-width: 160px; }

