/* ==========================================================================
   Health & Beauty Picks — Landing page stylesheet
   Adapted from the Claude Design "Health & Beauty Picks" design system.
   Tokens (colors, typography, spacing, elevation) are inlined below, followed
   by the rebuilt UI components (Input, Checkbox, Button) and page styles.
   ========================================================================== */

/* Fonts (Jost, a free stand-in for John Lewis's licensed Gill Sans) are
   loaded via <link> in each page's <head> with preconnect. */

/* ============================ Design tokens ============================ */
:root {
  /* ---- Warm neutrals ---- */
  --n-0: #FFFFFF;
  --n-50: #FCFCFB; /* barely-there off-white page background */
  --cream-50: #FAF4EA; /* warm ivory page background (reference look) */
  --cream-100: #F6EAD6; /* deeper warm beige for alternating sections */
  --dusty-pink: #F0CEC6; /* user swatch — toolbar */
  --cta-500: #1A1A1A; /* black CTA */
  --cta-600: #000000;
  --peach-100: #F6D8BC; /* warm peach accent, replaces blush pink */
  --n-100: #F5EDE1;
  --n-150: #EDE1D2;
  --n-200: #E7DDD1;
  --n-300: #D8C9B8;
  --n-400: #B7A692;
  --n-500: #8F7E6C;
  --n-600: #6B6058;
  --n-700: #4A423B;
  --n-800: #332C26;
  --n-900: #2A2420;

  /* ---- Clay / terracotta (primary brand) ---- */
  --clay-50: #FBEEE6;
  --clay-100: #F5D9C6;
  --clay-300: #E2A17A;
  --clay-500: #C1663E;
  --clay-600: #A8532F;
  --clay-700: #8A4326;
  --clay-900: #522A18;

  /* ---- Sage (secondary / wellness) ---- */
  --sage-50: #EEF1E7;
  --sage-100: #DDE4CD;
  --sage-300: #A9BB94;
  --sage-500: #77876B;
  --sage-600: #626F58;
  --sage-700: #4C5744;
  --sage-800: #37402F;
  --sage-900: #262D20;

  /* ---- Blush / gold / blue accents ---- */
  --blush-50: #FBEAE3;
  --blush-100: #F6D5C8;
  --blush-300: #EDB3A0;
  --blush-500: #DD8B72;
  --gold-100: #F5E4BE;
  --gold-500: #C9932E;
  --gold-600: #A8781F;
  --blue-500: #5A7B8C;
  --blue-600: #48626F;

  /* ---- Status ---- */
  --success-50: #EEF1E7;
  --success-500: #5C7A52;
  --success-600: #4A6342;
  --error-50: #F3E4E6;
  --error-500: #9B3D4D;
  --error-600: #7D303E;

  /* ---- Semantic surfaces / text / borders ---- */
  --surface-card: var(--n-0);
  --surface-sage: var(--sage-50);
  --text-primary: var(--n-900);
  --text-secondary: var(--n-700); /* darker than n-600 for better readability */
  --text-muted: var(--n-700); /* charcoal, not the old beige n-500 */
  --text-link: var(--clay-600);
  --text-link-hover: var(--clay-700);
  --border-default: var(--n-200);
  --border-strong: var(--n-700); /* charcoal outline, matches the text color */
  --brand-primary: var(--sage-700);

  /* ---- Typography ---- */
  --font-display: 'Jost', -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Jost', -apple-system, 'Segoe UI', sans-serif;
  --leading-display: 1.08;
  --leading-heading: 1.25;
  --leading-body: 1.55;
  --tracking-tight: -0.01em;
  --tracking-eyebrow: 0.12em;

  /* ---- Radii ---- */
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;

  /* ---- Shadows ---- */
  --shadow-xs: 0 1px 2px rgba(42, 36, 32, 0.06);
  --shadow-sm: 0 2px 8px rgba(42, 36, 32, 0.07);
  --shadow-md: 0 8px 24px rgba(42, 36, 32, 0.10);
  --shadow-focus: 0 0 0 3px rgba(76, 87, 68, 0.32);

  /* ---- Motion ---- */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-base: 200ms;
}

/* ============================ Base ============================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: var(--leading-body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text-link); }
a:hover { color: var(--text-link-hover); }
::selection { background: var(--clay-100); }

img, svg { max-width: 100%; }

/* ============================ Logo lockup ============================ */
.logo-lockup {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.logo-lockup .logo-mark { width: 56px; height: 56px; }
.logo-lockup .logo-word {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
  line-height: 1.05;
  color: var(--n-900);
}
.logo-lockup .logo-tagline {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #285828;
}

/* ============================ Hero ============================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 44px) 24px clamp(12px, 2vw, 20px);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cg fill='%2377876B' fill-opacity='0.26'%3E%3Cpath d='M170 30c-40 5-65 30-70 70 40-5 65-30 70-70z'/%3E%3Cpath d='M200 80c-30 4-48 22-52 52 30-4 48-22 52-52z'/%3E%3Cpath d='M150 95c-22 3-36 17-39 39 22-3 36-17 39-39z'/%3E%3C/g%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cg fill='%2377876B' fill-opacity='0.22'%3E%3Cpath d='M50 190c40-5 65-30 70-70-40 5-65 30-70 70z'/%3E%3Cpath d='M20 140c30-4 48-22 52-52-30 4-48 22-52 52z'/%3E%3Cpath d='M70 125c22-3 36-17 39-39-22 3-36 17-39 39z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: right -20px bottom -40px, left -26px top -20px;
  background-size: 300px 300px, 250px 250px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 700px 420px at 50% 20%, rgba(193, 102, 62, 0.07), transparent 70%);
}
.hero-inner {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.hero .logo-mark { width: clamp(72px, 10vw, 92px); height: clamp(72px, 10vw, 92px); }
.hero-heading {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 46px);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.hero-word {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(36px, 5.4vw, 56px);
  line-height: var(--leading-display);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(11px, 1.4vw, 13px);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #285828;
}
.hero-lede {
  margin: 12px 0 0;
  width: min(940px, 92vw);
  font-size: clamp(16px, 2.4vw, 18px);
  line-height: var(--leading-body);
  color: var(--text-secondary);
  text-wrap: pretty;
}

/* ============================ Trust bar ============================ */
.trust-bar {
  background: var(--surface-card);
  border-top: 1px solid var(--border-default);
  border-bottom: 1px solid var(--border-default);
  box-shadow: var(--shadow-sm);
  padding: 17px 24px;
}
.trust-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.trust-item .icon {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-pill);
  background: var(--sage-100);
  color: var(--sage-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.trust-item .label {
  font-size: 16px;
  font-weight: 600;
  color: var(--n-700);
  line-height: 1.35;
}

/* ============================ Components ============================ */
/* Input */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--n-700);
}
.field input {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  background: var(--n-0);
  border: 1px solid var(--border-strong); /* neutral grey-tan, matches the search box */
  border-radius: var(--radius-md);
  padding: 13px 15px;
  transition: border-color var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out);
}
.field input::placeholder { color: var(--text-muted); }
.field input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: var(--shadow-focus);
}
.field input[aria-invalid="true"] { border-color: var(--error-500); }
.field .field-error { font-size: 12px; color: var(--error-500); }

/* Checkbox */
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--sage-700);
  cursor: pointer;
}
.checkbox label {
  font-size: 14px;
  line-height: 1.45;
  color: var(--n-700);
  cursor: pointer;
}

/* Button */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  border: none;
  border-radius: var(--radius-md);
  padding: 15px 30px;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out);
}
.btn-primary { background: var(--cta-500); color: #fff; }
.btn-primary:hover { background: var(--cta-600); color: #fff; }
/* Newsletter buttons: deep charcoal so they stand out from the green
   Shop on Amazon / nav buttons without introducing another accent hue. */
.btn-newsletter { background: var(--cta-500); color: #fff; }
.btn-newsletter:hover { background: var(--cta-600); color: #fff; }
.btn-primary:active { transform: scale(0.98); }
.btn-block { width: 100%; }

/* ============================ Signup ============================ */
.signup {
  margin-top: 8px;
  background: #fff;
  padding: clamp(20px, 3vw, 32px) 24px;
  scroll-margin-top: 48px;
}
.signup-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface-card);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: clamp(28px, 5vw, 44px);
}
.signup-form { display: flex; flex-direction: column; gap: 18px; }
.signup-head { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.signup-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 30px);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
}
.signup-head p { margin: 0; font-size: 14.5px; color: var(--text-secondary); }
.consent-note { font-size: 12px; color: var(--text-muted); padding-left: 30px; }
.consent-note a { color: #2E5C51; }
.consent-note a:hover { color: #234A41; }

.signup-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  padding: 12px 0;
}
.signup-success .check {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-pill);
  background: var(--success-50);
  color: var(--success-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.signup-success .success-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 26px;
  line-height: var(--leading-heading);
}
.signup-success p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 380px;
}
.hidden { display: none !important; }

/* ============================ Footer ============================ */
.site-footer {
  background: #1F4038;
  padding: 48px 24px 24px;
}
.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px;
}
.footer-brand { margin-right: auto; }
.footer-mini-cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-logo-plate {
  display: inline-flex;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: var(--shadow-sm);
}
.footer-logo img { display: block; width: min(230px, 60vw); height: auto; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col .col-title {
  margin-bottom: 10px; /* extra space before the links underneath */
  font-size: 13px;
  font-weight: 800; /* ExtraBold — the heaviest weight the font ships */
  text-transform: uppercase;
  letter-spacing: var(--tracking-eyebrow);
  color: #9CC47E; /* light green, ties to the card-border accent used elsewhere */
}
.footer-col a {
  font-size: 13.5px;
  font-weight: 600;
  color: #F5EDE1;
  text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.col-links-2 {
  display: grid;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  column-gap: 40px;
  row-gap: 10px;
}
.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-legal span { font-size: 13.5px; color: #fff; }

/* ============================ Legal / content pages ============================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 72px) 24px clamp(56px, 8vw, 88px);
}
.legal h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 5vw, 44px);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 8px;
}
.legal .updated { color: var(--text-muted); font-size: 14px; margin: 0 0 8px; }
.legal .intro { color: var(--text-secondary); font-size: 17px; margin: 0 0 8px; }
.legal h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(21px, 3vw, 26px);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
  margin: 40px 0 12px;
}
.legal p, .legal li {
  font-size: 15.5px;
  line-height: var(--leading-body);
  color: var(--n-700);
}
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 8px; }
.legal a { color: var(--text-link); }
.legal a:hover { color: var(--text-link-hover); }
.legal .placeholder {
  background: var(--gold-100);
  color: var(--n-800);
  padding: 0 4px;
  border-radius: 4px;
  font-style: normal;
}
.legal .note {
  background: var(--sage-50);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

/* ============================ Site header (logo + search) ============================ */
.site-header {
  background: var(--n-0);
  border-bottom: 1px solid var(--border-default);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.header-logo { display: flex; flex: none; }
.header-logo img { display: block; width: clamp(120px, 14vw, 150px); height: auto; }
.header-search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 360px;
  border: 1.5px solid var(--border-strong);
  background: var(--n-0);
  padding: 0 0 0 16px;
  transition: border-color var(--duration-base) var(--ease-out);
}
.header-search:focus-within { border-color: #2E5C51; }
.header-search input {
  flex: 1;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  padding: 8px 0;
  min-width: 0;
}
.header-search input:focus { outline: none; }
.header-search input::placeholder { color: var(--text-muted); }
.header-search button {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 0;
  background: var(--cta-500);
  color: #fff;
  cursor: pointer;
  transition: background var(--duration-base) var(--ease-out);
}
.header-search button:hover { background: var(--cta-600); }
@media (max-width: 640px) {
  .site-header-inner { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .header-search { max-width: none; order: 3; flex-basis: 100%; }
}

/* ============================ Bestsellers row ============================ */
.bestsellers { padding: clamp(12px, 2vw, 20px) 24px clamp(24px, 3.5vw, 32px); }
.bestsellers-inner { max-width: 1200px; margin: 0 auto; }
.bestsellers-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.bestsellers-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 3vw, 30px);
  line-height: var(--leading-heading);
}
.bestsellers-head .see-all {
  flex: none;
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  color: #1F4038;
  text-decoration: none;
  white-space: nowrap;
}
.bestsellers-head .see-all:hover { color: #2E5C51; text-decoration: underline; }
.bestsellers-scroll { position: relative; }
.bestsellers-scroll::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 12px; /* stop above the row's own scrollbar padding */
  width: 64px;
  background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1) 80%);
  pointer-events: none; /* purely a visual scroll hint */
}
.bestsellers-row {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.bestsellers-row .product-card {
  flex: 0 0 clamp(180px, 24vw, 230px);
  scroll-snap-align: start;
}
.bestsellers .card-rating .star { color: #FFC107; font-size: 0.85em; }

/* ============================ Category nav (solid green bar) ============================ */
.cat-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dusty-pink); /* warm beige bar, darker than the page cream */
  border-bottom: 1px solid var(--n-200);
  box-shadow: var(--shadow-xs);
}
.cat-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding: 0 10px;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a {
  flex: none;
  color: var(--n-800);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 13px;
  transition: background var(--duration-base) var(--ease-out);
}
.cat-nav a:hover { background: var(--n-150); color: var(--cta-600); }
@media (min-width: 1100px) {
  /* 1128px incl. 24px side padding = 1080px content, same as .shop-cat-inner */
  .cat-nav-inner { max-width: 1128px; padding: 0 24px; justify-content: space-between; }
  .cat-nav a:first-child { padding-left: 0; }
  .cat-nav a:last-child { padding-right: 0; }
}

/* ============================ Hero CTAs ============================ */
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 8px;
}
/* ============================ Shop page ============================ */
.search-banner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 24px 18px;
  text-align: center;
  font-size: 14.5px;
  color: var(--text-secondary);
}
.search-banner a { color: #1F4038; font-weight: 700; text-decoration: none; }
.search-banner a:hover { text-decoration: underline; }

.shop-cat {
  margin-top: 0;
  padding: clamp(28px, 4vw, 40px) 24px clamp(32px, 5vw, 56px);
  scroll-margin-top: 64px;
  background: #fff;
  border-top: 1px solid var(--border-default); /* separates categories now the band is gone */
}
.shop-cat:first-of-type { border-top: none; }
.shop-cat.alt { background: var(--cream-100); }
.shop-cat-inner { max-width: 1080px; margin: 0 auto; }
.cat-breadcrumb {
  margin: 0 0 10px;
  font-size: 12.5px;
  color: var(--text-muted);
}
.cat-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.cat-breadcrumb a:hover { color: var(--text-link); text-decoration: underline; }
.cat-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
}
.shop-cat h2 {
  margin: 0;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 4.4vw, 40px);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-tight);
}
.cat-title-btn {
  background: none;
  border: none;
  margin: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
}
.cat-title-btn:hover { text-decoration: underline; text-underline-offset: 6px; }
.cat-count { font-size: 13.5px; color: var(--text-muted); }
.cat-line { margin: 6px 0 0; font-size: 15.5px; color: var(--text-secondary); }

/* Sub-category buttons + headings (Skincare) */
.subcat-nav {
  display: flex;
  flex-wrap: nowrap; /* all buttons on one line */
  gap: 10px;
  justify-content: space-between; /* spread across the full grid width */
  margin-top: 18px;
}
@media (max-width: 860px) {
  .subcat-nav { flex-wrap: wrap; }
}
.subcat-btn {
  display: inline-block;
  flex: 1 1 auto; /* stretch each button to fill the row */
  text-align: center;
  background: var(--surface-card);
  border: 1.5px solid var(--n-300);
  color: var(--n-800);
  font-weight: 700;
  font-size: 15.5px;
  padding: 9px 14px;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: background var(--duration-base) var(--ease-out), color var(--duration-base) var(--ease-out);
}
.subcat-btn:hover { background: var(--cta-500); border-color: var(--cta-500); color: #fff; }
.subcat-btn.active { background: var(--cta-600); border-color: var(--cta-600); color: #fff; }
.product-card[id] { scroll-margin-top: 64px; } /* button jump lands clear of the sticky nav */
.subcat-title {
  margin: 36px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.8vw, 26px);
  line-height: var(--leading-heading);
  scroll-margin-top: 64px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.product-card {
  position: relative; /* anchors the stretched Amazon link below */
  background: rgba(115, 107, 99, 0.06); /* taupe swatch at 6% — lighter warm grey card body */
  border: 1px solid rgba(115, 107, 99, 0.35); /* taupe swatch at 35% opacity */
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(42, 36, 32, 0.05);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform var(--duration-base) var(--ease-out), box-shadow var(--duration-base) var(--ease-out);
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(42, 36, 32, 0.14); }
.product-card h3 {
  margin: 10px 0 0; /* name and description sit lower in the card */
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 20px;
  line-height: var(--leading-heading);
}
/* Whole-card click is handled in main.js; give the card a link cursor */
.product-card { cursor: pointer; }
.product-card p { margin: 6px 0 0; font-size: 14.5px; color: var(--text-secondary); flex: 1; }
.product-img-wrap {
  overflow: hidden;
  height: 190px;
  margin-bottom: 2px;
  background: #fff; /* white well — keeps product photos untinted under mix-blend-mode:multiply */
  border-radius: 12px;
  padding: 12px;
}
.product-card .product-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* blends the white photo background into the warm card */
  transition: transform 380ms var(--ease-out);
}
.product-card:hover .product-img { transform: scale(1.07); }
.btn-amazon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  margin-top: 16px; /* sit lower in the card */
  background: var(--cta-500); /* caramel-amber, reference-style CTA */
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 11px 20px;
  border-radius: 10px;
  transition: background var(--duration-base) var(--ease-out), transform var(--duration-base) var(--ease-out);
}
.btn-amazon:hover { background: var(--cta-600); color: #fff; }
.btn-amazon:active { transform: scale(0.98); }

/* ============================ Editorial hero (phase 1) ============================ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  max-width: 1200px;
  text-align: left;
}
.hero-grid .hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-grid .hero-heading {
  margin: 0;
  font-size: clamp(32px, 4.2vw, 52px);
}
.tagline-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  margin: 22px 0 0;
}
.tagline-pill {
  display: inline-block;
  background: rgba(240, 206, 198, 0.45); /* toolbar dusty-pink, lighter/less opaque */
  color: #1F4038;
  font-family: 'Caveat', 'Segoe Script', cursive;
  font-weight: 600;
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.2;
  padding: 5px 18px 9px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.hero-grid .hero-lede {
  margin: 16px 0 0;
  width: auto;
  max-width: 560px;
  font-size: clamp(15.5px, 1.6vw, 17.5px);
}
.hero-grid .hero-cta {
  justify-content: flex-start;
  margin-top: 28px;
}
.hero-photo { position: relative; }
.hero-photo img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 18px 48px rgba(42, 36, 32, 0.18);
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { margin-top: 10px; }
}

/* ============================ Hero stats band ============================ */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 4.5vw, 56px);
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--n-200);
  width: 100%;
}
.hero-stats .stat { display: flex; flex-direction: column; gap: 2px; }
.hero-stats .stat b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.1;
  color: var(--n-900);
}
.hero-stats .stat span { font-size: 13px; color: var(--text-secondary); }
.hero-stats .stat b .stat-star,
.hero-stats .stat b .stat-plus {
  display: inline-block;
  font-size: 0.85em;
  vertical-align: middle;
}
.hero-stats .stat b .stat-star { color: #FFC107; margin: 0 0.03em 0 0.22em; }
.hero-stats .stat b .stat-plus { margin-left: 0.18em; }
.hero-stats .stat b .stat-star + .stat-plus { margin-left: 0.03em; }

/* ============================ Card star ratings ============================ */
.card-rating {
  margin: 6px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--n-800);
}
.card-rating .star { color: var(--gold-500); margin-right: 2px; }

/* ============================ Signature strip (phase 2) ============================ */
.site-strip {
  background: #1F4038;
  color: #fff;
  text-align: center;
  padding: 15px 16px;
}
.site-strip a {
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.32em;
}
