/* ============================================================
   Haven Wellness v3 — Design System
   Pixel-perfect match to The Absorption Company aesthetic
   Colors, fonts, spacing — all exact per spec
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Serif:ital@0;1&display=swap');

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Colors — exact from spec */
  --bg:           #faf6f0;
  --surface:      #f7f5f1;
  --surface-alt:  #f0ede7;
  --text:         #232323;
  --text-muted:   #545454;
  --border:       #dcdcdc;
  --white:        #ffffff;
  --black:        #000000;
  --dark-bg:      #232323;

  /* Typography */
  --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif:   'Instrument Serif', Georgia, serif;

  /* Spacing */
  --max-width:    1200px;
  --section-v:    100px;
  --nav-h:        64px;
  --bar-h:        40px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

input, select, textarea {
  font-family: var(--font-sans);
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  :root { --section-v: 60px; }
}

/* ============================================================
   ANNOUNCEMENT BAR
   ============================================================ */
.announcement-bar {
  background: var(--dark-bg);
  color: var(--white);
  font-size: 12px;
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 10px 20px;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.announcement-bar a {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.announcement-bar a:hover { opacity: 1; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--nav-h);
}

.nav .container {
  height: 100%;
}

.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--black); }

.nav-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.75; }

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nav-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s;
  position: relative;
  color: var(--text);
}
.nav-icon-btn:hover { background: var(--surface-alt); }

.nav-icon-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 4px;
  transition: background 0.2s;
}
.nav-hamburger:hover { background: var(--surface-alt); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: calc(var(--bar-h) + var(--nav-h));
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
}
.mobile-nav.open { transform: translateX(0); }

.mobile-nav-link {
  display: block;
  padding: 16px 0;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--black); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--text);
  color: var(--white);
  border: 1px solid var(--text);
}
.btn-primary:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--text);
}
.btn-outline:hover {
  background: var(--text);
  color: var(--white);
}

.btn-full { width: 100%; }

.btn-lg {
  font-size: 14px;
  padding: 16px 36px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--bg);
  padding: 80px 0 80px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-headline {
  font-family: var(--font-serif);
  font-size: clamp(42px, 5vw, 58px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-subhead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 440px;
}

.hero-stars {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars-row {
  display: flex;
  gap: 1px;
}

.star {
  font-size: 14px;
  color: var(--text);
}

.hero-stars-label {
  font-size: 13px;
  color: var(--text-muted);
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero-products-arrangement {
  position: relative;
  width: 100%;
  height: 480px;
}

.hero-product-img {
  position: absolute;
  border-radius: 4px;
  object-fit: cover;
}

/* Product bottle placeholder cards */
.product-bottle {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
}

.product-bottle-main {
  width: 200px;
  height: 300px;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  border: 1px solid var(--border);
}

.product-bottle-secondary {
  width: 140px;
  height: 210px;
  left: 40px;
  top: 40px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  transform: rotate(-6deg);
}

.product-bottle-third {
  width: 120px;
  height: 180px;
  left: 80px;
  bottom: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  transform: rotate(4deg);
}

.back-in-stock-badge {
  position: absolute;
  right: 20px;
  top: 30px;
  background: var(--text);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 10px;
  transform: rotate(90deg);
  transform-origin: top right;
  white-space: nowrap;
}

.bottle-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

/* Real product images from Shopify CDN */
.hero-img-main {
  width: 220px;
  height: 320px;
  object-fit: cover;
  position: absolute;
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  border-radius: 4px;
}

.hero-img-secondary {
  width: 150px;
  height: 220px;
  object-fit: cover;
  position: absolute;
  left: 30px;
  top: 30px;
  transform: rotate(-5deg);
  border-radius: 4px;
}

.hero-img-third {
  width: 130px;
  height: 190px;
  object-fit: cover;
  position: absolute;
  left: 70px;
  bottom: 30px;
  transform: rotate(3deg);
  border-radius: 4px;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { min-height: 360px; }
}

/* ============================================================
   CLINICIANS BAR
   ============================================================ */
.clinicians-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}

.clinicians-strip-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.clinician-avatars {
  display: flex;
  align-items: center;
}

.clinician-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--surface-alt);
  margin-left: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  overflow: hidden;
}
.clinician-avatar:first-child { margin-left: 0; }

.clinicians-strip-text {
  font-size: 13px;
  color: var(--text-muted);
}

.clinicians-strip-text strong {
  color: var(--text);
  font-weight: 600;
}

.clinicians-strip-link {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  border-bottom: 1px solid var(--text);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.clinicians-strip-link:hover { opacity: 0.6; }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ============================================================
   PRODUCT GRID
   ============================================================ */
.products-section {
  background: var(--white);
  padding: var(--section-v) 0;
}

.filter-tabs {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
}

.filter-tab {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--white);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  border-right: 1px solid var(--border);
}
.filter-tab:last-child { border-right: none; }
.filter-tab:hover { background: var(--surface-alt); color: var(--text); }
.filter-tab.active {
  background: var(--text);
  color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) { .product-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg);
  border: 1px solid transparent;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
  display: block;
}
.product-card:hover {
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.product-card-image {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--surface-alt);
  transition: transform 0.4s ease;
  padding: 8px;
}
.product-card:hover .product-card-image img { transform: scale(1.03); }

.product-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--surface);
}

.product-card-placeholder-icon {
  width: 60px;
  height: 90px;
  background: var(--surface-alt);
  border-radius: 4px;
  border: 1px solid var(--border);
}

.product-card-body {
  padding: 16px 16px 20px;
}

.product-card-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.product-card-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.product-card-stars {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.stars-mini {
  display: flex;
  gap: 1px;
}
.stars-mini .star { font-size: 11px; }

.product-card-review-count {
  font-size: 12px;
  color: var(--text-muted);
}

.product-card-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.product-card-price-from {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-right: 4px;
}

/* ============================================================
   PROBLEM / SOLUTION
   ============================================================ */
.problem-section {
  background: var(--surface-alt);
  padding: var(--section-v) 0;
}

.problem-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.problem-visual {
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.problem-visual-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--surface) 0%, var(--surface-alt) 50%, #e8e3d8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.problem-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.problem-block {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.problem-block:last-of-type { border-bottom: none; padding-bottom: 0; }

.problem-block-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.problem-block-heading {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.problem-block-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 900px) {
  .problem-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   GOALS
   ============================================================ */
.goals-section {
  background: var(--white);
  padding: var(--section-v) 0;
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 900px) { .goals-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .goals-grid { grid-template-columns: 1fr; } }

.goal-card {
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: filter 0.2s;
  text-decoration: none;
}
.goal-card:hover { filter: brightness(0.95); }

.goal-card:nth-child(1) { background: #e8e3d8; }  /* warm taupe */
.goal-card:nth-child(2) { background: #dce5dc; }  /* sage green */
.goal-card:nth-child(3) { background: #d8e1e8; }  /* dusty blue */
.goal-card:nth-child(4) { background: #e5e0d8; }  /* warm gray */

.goal-name {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.2;
}

.goal-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.goal-arrow {
  font-size: 18px;
  color: var(--text);
  margin-top: auto;
}

/* ============================================================
   STACK & SAVE
   ============================================================ */
.stack-section {
  background: var(--surface-alt);
  padding: var(--section-v) 0;
}

.stack-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.stack-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.stack-desc {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}

.stack-items {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
  background: var(--white);
}

.stack-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.stack-item:last-child { border-bottom: none; }

.stack-item-img {
  width: 48px;
  height: 48px;
  background: var(--surface-alt);
  border-radius: 4px;
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: contain;
  padding: 2px;
}

.stack-item-info {
  flex: 1;
}

.stack-item-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.stack-item-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.stack-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.toggle-switch {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border);
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  top: 3px;
  left: 3px;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--text);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(18px);
}

.stack-summary {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.stack-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stack-total-label {
  font-size: 13px;
  color: var(--text-muted);
}

.stack-total-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.stack-savings {
  font-size: 12px;
  color: #2e7d32;
  font-weight: 600;
}

@media (max-width: 900px) {
  .stack-inner { grid-template-columns: 1fr; gap: 48px; }
}

/* ============================================================
   TESTIMONIALS / REVIEWS
   ============================================================ */
.reviews-section {
  background: var(--bg);
  padding: var(--section-v) 0;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.review-stars {
  display: flex;
  gap: 2px;
}

.review-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.review-author-info { flex: 1; }
.review-author-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.review-author-meta {
  font-size: 12px;
  color: var(--text-muted);
}

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

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trust-icon {
  width: 20px;
  height: 20px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter-section {
  background: var(--dark-bg);
  padding: 80px 0;
}

.newsletter-inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.newsletter-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.newsletter-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
}

.newsletter-form {
  display: flex;
  gap: 0;
}

.newsletter-input {
  flex: 1;
  padding: 14px 20px;
  font-size: 14px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  outline: none;
  transition: border-color 0.2s;
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-input:focus { border-color: rgba(255,255,255,0.5); }

.newsletter-btn {
  padding: 14px 24px;
  background: var(--white);
  color: var(--dark-bg);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--bg); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-bg);
  color: var(--white);
  padding: 80px 0 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--white);
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.footer-social-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 2px;
}
.footer-social-btn:hover {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
}

.footer-social-btn svg {
  width: 16px;
  height: 16px;
  stroke: rgba(255,255,255,0.7);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 20px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-link:hover { color: var(--white); }

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: 11px;
  line-height: 1.6;
  color: rgba(255,255,255,0.35);
  max-width: 600px;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
}

/* ============================================================
   PRODUCT PAGE — GALLERY
   ============================================================ */
.product-page {
  background: var(--white);
  padding: 60px 0 0;
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

@media (max-width: 900px) {
  .product-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* Gallery */
.product-gallery {
  display: flex;
  gap: 12px;
  position: sticky;
  top: calc(var(--bar-h) + var(--nav-h) + 20px);
}

.gallery-thumbs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-thumb {
  width: 72px;
  height: 72px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 4px;
  transition: border-color 0.2s;
  overflow: hidden;
}
.gallery-thumb.active { border-color: var(--text); }
.gallery-thumb:hover { border-color: var(--text-muted); }

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main {
  flex: 1;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 80px;
}

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 42px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-rating-count {
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  cursor: pointer;
  transition: border-color 0.2s;
}
.product-rating-count:hover { border-color: var(--text-muted); }

/* Info Tabs */
.info-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.info-tab {
  padding: 10px 20px 10px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
  background: none;
}
.info-tab.active {
  color: var(--text);
  border-bottom-color: var(--text);
}
.info-tab:hover { color: var(--text); }

.info-tab-content { display: none; }
.info-tab-content.active { display: block; }

.product-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Purchase Toggle */
.purchase-toggle {
  display: flex;
  border: 1px solid var(--border);
}

.purchase-option {
  flex: 1;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s;
  border: none;
  border-right: 1px solid var(--border);
}
.purchase-option:last-child { border-right: none; }
.purchase-option.active {
  background: var(--text);
  color: var(--white);
}

/* Quantity Options */
.quantity-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qty-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.qty-option.selected { border-color: var(--text); }
.qty-option:hover { border-color: var(--text-muted); }

.qty-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.2s;
}
.qty-option.selected .qty-radio { border-color: var(--text); }

.qty-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text);
  opacity: 0;
  transition: opacity 0.2s;
}
.qty-option.selected .qty-radio-dot { opacity: 1; }

.qty-info { flex: 1; }

.qty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.qty-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.qty-pricing { text-align: right; }

.qty-price {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.qty-per {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.qty-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--text);
  color: var(--white);
}

.qty-discount {
  font-size: 11px;
  font-weight: 600;
  color: #2e7d32;
}

.one-time-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 0;
}

/* Add to Cart */
.add-to-cart-btn {
  width: 100%;
  padding: 18px;
  background: var(--text);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.add-to-cart-btn:hover { background: var(--black); }

.cart-perks {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-perk {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-perk-check {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   PRODUCT PAGE — BELOW FOLD SECTIONS
   ============================================================ */
.benefits-section {
  background: var(--bg);
  padding: var(--section-v) 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

@media (max-width: 768px) { .benefits-grid { grid-template-columns: 1fr; } }

.benefit-card {
  background: var(--white);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.benefit-number {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--border);
  line-height: 1;
}

.benefit-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.benefit-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* Timeline */
.timeline-section {
  background: var(--white);
  padding: var(--section-v) 0;
}

.timeline-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border);
}

@media (max-width: 768px) { .timeline-steps { grid-template-columns: 1fr; } }

.timeline-step {
  padding: 40px 32px;
  border-right: 1px solid var(--border);
  position: relative;
}
.timeline-step:last-child { border-right: none; }

.timeline-month {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.timeline-heading {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.2;
}

.timeline-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
}

/* Combines Well With */
.combines-section {
  background: var(--bg);
  padding: var(--section-v) 0;
}

.combines-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 768px) { .combines-grid { grid-template-columns: 1fr; } }

.combine-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.combine-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface-alt);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.combine-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.combine-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.combine-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  flex: 1;
}

.combine-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.combine-add-btn {
  padding: 10px 16px;
  background: transparent;
  border: 1px solid var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.combine-add-btn:hover {
  background: var(--text);
  color: var(--white);
}

/* Product Reviews Section */
.product-reviews-section {
  background: var(--white);
  padding: var(--section-v) 0;
  border-top: 1px solid var(--border);
}

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) { .reviews-summary { grid-template-columns: 1fr; gap: 32px; } }

.reviews-score {
  text-align: center;
}

.reviews-score-big {
  font-family: var(--font-serif);
  font-size: 72px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}

.reviews-score-stars {
  display: flex;
  gap: 3px;
  justify-content: center;
  margin: 8px 0 4px;
}

.reviews-score-stars .star { font-size: 20px; }

.reviews-score-count {
  font-size: 13px;
  color: var(--text-muted);
}

.reviews-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reviews-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bar-label {
  font-size: 13px;
  color: var(--text-muted);
  width: 40px;
  text-align: right;
  white-space: nowrap;
}

.bar-track {
  flex: 1;
  height: 6px;
  background: var(--surface-alt);
  border-radius: 0;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: var(--text);
  border-radius: 0;
}

.bar-count {
  font-size: 13px;
  color: var(--text-muted);
  width: 24px;
}

.reviews-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.review-item {
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.review-item:last-child { border-bottom: none; padding-bottom: 0; }

.review-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  gap: 16px;
}

.review-item-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}

.review-item-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.review-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  text-align: right;
}

.review-item-text {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-muted);
  margin-top: 8px;
}

/* FAQs */
.faq-section {
  background: var(--bg);
  padding: var(--section-v) 0;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: none; }

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  text-align: left;
  transition: background 0.2s;
  gap: 16px;
}
.faq-question:hover { background: var(--surface-alt); }

.faq-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s;
  font-style: normal;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  background: var(--white);
}
.faq-item.open .faq-answer { display: block; }

.faq-answer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ============================================================
   EDITORIAL / ABSORPTION SECTION
   ============================================================ */
.editorial-section {
  background: var(--surface-alt);
  padding: var(--section-v) 0;
}

.editorial-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 900px) {
  .editorial-inner { grid-template-columns: 1fr; gap: 48px; }
}

.editorial-visual {
  aspect-ratio: 4 / 5;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}

.editorial-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.editorial-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.editorial-headline {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.01em;
}

.editorial-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.editorial-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.editorial-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.editorial-stat:last-child { border-bottom: none; padding-bottom: 0; }

.editorial-stat-number {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--text);
  line-height: 1;
}

.editorial-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-40 { margin-top: 40px; }
.mt-48 { margin-top: 48px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Hide elements per filter */
.product-card.hidden { display: none; }

/* Cart drawer */
.cart-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--white);
  box-shadow: -4px 0 32px rgba(0,0,0,0.12);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}
.cart-overlay.open { opacity: 1; pointer-events: all; }

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--text);
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  transition: background 0.2s;
}
.cart-close:hover { background: var(--surface-alt); }
.cart-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--text);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 15px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.cart-checkout-btn {
  width: 100%;
  padding: 16px;
  background: var(--text);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-checkout-btn:hover { background: var(--black); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
}

.breadcrumb-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.breadcrumb-link {
  color: var(--text-muted);
  transition: color 0.2s;
}
.breadcrumb-link:hover { color: var(--text); }

.breadcrumb-sep { color: var(--border); }

.breadcrumb-current { color: var(--text); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
  animation: fadeInUp 0.5s ease forwards;
}

/* ============================================================
   VALUE PROPS + DR. PORTER RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  /* Value props: collapse to 2 cols then 1 */
  .value-props-grid { grid-template-columns: repeat(2, 1fr) !important; }
  /* Dr. Porter: stack */
  .dr-porter-grid { grid-template-columns: 1fr !important; text-align: center; }
}
@media (max-width: 600px) {
  .value-props-grid { grid-template-columns: 1fr !important; }
}

/* ============================================================
   PRINT / REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
