/* ==========================================================================
   SEOUL DEWS — EDITORIAL LUXURY K-BEAUTY DESIGN SYSTEM & GLOBAL STYLESHEET
   Inspired by Glossier & Peach & Lily
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Google Fonts Import
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --------------------------------------------------------------------------
   2. Design Tokens & CSS Custom Properties (:root)
   -------------------------------------------------------------------------- */
:root {
  /* --- 2.1 Color Tokens: Backgrounds & Surfaces --- */
  --bg-base: #FAF8F5;            /* Warm Porcelain Canvas */
  --bg-subtle: #F5F0EB;          /* Subtle Sand Wash */
  --bg-surface: #FFFFFF;         /* Crisp White Cards & Modals */
  --bg-surface-translucent: rgba(255, 255, 255, 0.94);
  --bg-muted: #F3EFEA;           /* Soft Oat / Neutral Sand */
  --bg-muted-hover: #EBE5DC;     /* Muted Hover Tone */
  --bg-dark: #202731;            /* Deep Obsidian Slate (Footer / Announcement) */
  --bg-dark-surface: #2D3748;    /* Charcoal Surface */

  /* --- 2.2 Color Tokens: Typography & Text --- */
  --text-main: #2D3748;          /* Refined Charcoal Body */
  --text-heading: #1A202C;       /* High-Contrast Obsidian Headings */
  --text-muted: #718096;         /* Secondary Slate / Eyebrows */
  --text-subtle: #A0AEC0;        /* Tertiary Ash / Inactive */
  --text-light: #CBD5E0;         /* Footer Light Grey */
  --text-inverse: #FFFFFF;       /* Crisp White on Dark Surfaces */

  /* --- 2.3 Color Tokens: Accents & Semantics --- */
  --accent-sage: #8A9A86;        /* Herbal Centella / Tea Sage */
  --accent-sage-dark: #6E7E6A;   /* Deep Sage for High-Contrast Text */
  --accent-sage-light: #EBF0EA;  /* Pale Sage Pill / Badge Background */
  --accent-sage-glow: rgba(138, 154, 134, 0.22);

  --accent-clay: #D4A373;        /* Warm Terracotta / Ginseng Clay */
  --accent-clay-dark: #B88252;   /* Deep Clay for Interactive Hover */
  --accent-clay-light: #F7EFE6;  /* Pale Clay Pill / Bundle Background */
  --accent-clay-glow: rgba(212, 163, 115, 0.25);

  --accent-gold: #D4A373;        /* Warm Gold Rating Stars */
  --accent-gold-stars: #E5A93C;  /* Verified Review Star Amber */

  --state-success: #2E7D32;      /* Milestone Achieved Green */
  --state-success-bg: #ECFDF5;
  --state-error: #991B1B;        /* Error Crimson */
  --state-error-bg: #FEE2E2;

  /* --- 2.4 Color Tokens: Borders & Dividers --- */
  --border-color: #E8E3DC;       /* Warm Porcelain Border */
  --border-light: #F0ECE6;       /* Subtle Internal Divider */
  --border-dark: #CBD5E0;        /* Slate Border */
  --border-focus: #8A9A86;       /* Sage Focus Ring */

  /* --- 2.5 Typography Tokens --- */
  --font-serif: 'Cormorant Garamond', Garamond, Georgia, 'Times New Roman', serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* Fluid Type Scale */
  --font-size-display-1: clamp(2.75rem, 6vw, 4.5rem);   /* Hero Headlines */
  --font-size-display-2: clamp(2.25rem, 4.5vw, 3.5rem); /* Major Section Titles */
  --font-size-h1: clamp(2.0rem, 3.8vw, 2.75rem);        /* Page / PDP Titles */
  --font-size-h2: clamp(1.6rem, 2.8vw, 2.15rem);        /* Section Headers */
  --font-size-h3: clamp(1.25rem, 2.0vw, 1.5rem);        /* Card Titles */
  --font-size-h4: 1.1875rem;
  --font-size-body-lg: 1.125rem;
  --font-size-body: 0.9375rem;                          /* 15px Base */
  --font-size-body-sm: 0.8125rem;                       /* 13px Secondary */
  --font-size-caption: 0.75rem;                         /* 12px Metadata */
  --font-size-micro: 0.6875rem;                         /* 11px Badges */

  /* Line Heights */
  --line-height-tight: 1.12;
  --line-height-snug: 1.25;
  --line-height-normal: 1.6;
  --line-height-relaxed: 1.75;

  /* Letter Spacing */
  --tracking-tighter: -0.025em;
  --tracking-tight: -0.012em;
  --tracking-normal: 0em;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.08em;
  --tracking-widest: 0.14em;

  /* --- 2.6 Shadows & Elevations --- */
  --shadow-xs: 0 1px 2px rgba(45, 55, 72, 0.04);
  --shadow-sm: 0 1px 3px rgba(45, 55, 72, 0.06), 0 1px 2px rgba(45, 55, 72, 0.04);
  --shadow-md: 0 4px 16px rgba(45, 55, 72, 0.08), 0 2px 6px rgba(45, 55, 72, 0.04);
  --shadow-lg: 0 12px 32px rgba(45, 55, 72, 0.12), 0 4px 12px rgba(45, 55, 72, 0.06);
  --shadow-xl: 0 20px 48px rgba(45, 55, 72, 0.16);
  --shadow-drawer: -8px 0 32px rgba(26, 32, 44, 0.18);
  --shadow-sticky: 0 -4px 20px rgba(45, 55, 72, 0.08);

  /* --- 2.7 Border Radii --- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* --- 2.8 Animation & Transitions --- */
  --transition-fast: all 0.15s ease;
  --transition-base: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);

  /* --- 2.9 Layout Widths & Spacing --- */
  --container-max: 1280px;
  --container-wide-max: 1440px;
  --container-narrow-max: 860px;
  --site-header-height: 4.5rem;
  --announcement-height: 36px;
  --mobile-bottom-nav-height: 64px;

  /* --- 2.10 Z-Index Scale --- */
  --z-base: 1;
  --z-sticky: 40;
  --z-header: 50;
  --z-announcement: 60;
  --z-bottom-nav: 90;
  --z-pdp-sticky: 95;
  --z-drawer-backdrop: 120;
  --z-drawer-panel: 121;
  --z-toast: 150;
}

/* --------------------------------------------------------------------------
   3. Universal Reset, Box Sizing & Zero-Overflow Rules
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: var(--line-height-normal);
  background-color: var(--bg-base);
  color: var(--text-main);
  width: 100%;
  max-width: 100vw;
  overflow-x: clip;
  position: relative;
}

main, .site-main {
  flex: 1;
  min-width: 0;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* --------------------------------------------------------------------------
   4. Typography Utilities & Hierarchy
   -------------------------------------------------------------------------- */
.font-serif { font-family: var(--font-serif); }
.font-sans { font-family: var(--font-sans); }
.font-italic { font-style: italic; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--text-heading);
  font-weight: 500;
  line-height: var(--line-height-snug);
}

h1 { font-size: var(--font-size-h1); font-weight: 600; }
h2 { font-size: var(--font-size-h2); font-weight: 600; }
h3 { font-size: var(--font-size-h3); font-weight: 600; }
h4 { font-size: var(--font-size-h4); font-weight: 600; }

.display-1 {
  font-family: var(--font-serif);
  font-size: var(--font-size-display-1);
  line-height: var(--line-height-tight);
  letter-spacing: var(--tracking-tighter);
  color: var(--text-heading);
}

.display-2 {
  font-family: var(--font-serif);
  font-size: var(--font-size-display-2);
  line-height: var(--line-height-tight);
  letter-spacing: var(--tracking-tight);
  color: var(--text-heading);
}

.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--font-size-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--accent-sage-dark);
}

.lead {
  font-size: var(--font-size-body-lg);
  line-height: var(--line-height-relaxed);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   5. Layout Containers & Multi-Column Grid Utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-width: 0;
}

.container-wide {
  width: 100%;
  max-width: var(--container-wide-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  min-width: 0;
}

.container-narrow {
  width: 100%;
  max-width: var(--container-narrow-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-width: 0;
}

.container-fluid {
  width: 100%;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  min-width: 0;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  min-width: 0;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  min-width: 0;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  min-width: 0;
}

.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  min-width: 0;
}

.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  min-width: 0;
}

/* --------------------------------------------------------------------------
   6. Top Announcement Bar & Desktop Header
   -------------------------------------------------------------------------- */
.announcement-bar {
  background-color: var(--bg-dark);
  color: #F7EFE6;
  font-size: var(--font-size-body-sm);
  font-weight: 500;
  letter-spacing: var(--tracking-wide);
  padding: 0.625rem 1rem;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: var(--z-announcement);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.site-header {
  background-color: rgba(250, 248, 245, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--site-header-height);
}

.brand-logo {
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand-logo span {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-sage-dark);
  background-color: var(--accent-sage-light);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  display: inline-block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--text-main);
  position: relative;
  padding: 0.5rem 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-clay-dark);
}

.nav-link.active {
  color: var(--accent-sage-dark);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-sage-dark);
  border-radius: 2px;
}

.nav-badge-pill {
  background-color: var(--accent-clay);
  color: #FFFFFF;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-pill);
  margin-left: 0.35rem;
  vertical-align: middle;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-btn {
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-main);
  transition: var(--transition);
  position: relative;
}

.icon-btn:hover {
  background-color: var(--bg-surface);
  border-color: var(--accent-sage);
  color: var(--accent-sage-dark);
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--bg-dark-surface);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-base);
  transition: transform 0.2s ease;
}

/* --------------------------------------------------------------------------
   7. Buttons, Badges & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--font-size-body);
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  min-height: 48px; /* Touch target */
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background-color: var(--bg-dark);
  color: #FFFFFF;
  border-color: var(--bg-dark);
}

.btn-primary:hover {
  background-color: #1A202C;
  border-color: #1A202C;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--accent-sage);
  color: #FFFFFF;
  border-color: var(--accent-sage);
}

.btn-secondary:hover {
  background-color: var(--accent-sage-dark);
  border-color: var(--accent-sage-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-ghost {
  background-color: transparent;
  border-color: var(--text-main);
  color: var(--text-main);
}

.btn-ghost:hover {
  background-color: rgba(45, 55, 72, 0.06);
}

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

.btn-outline:hover {
  border-color: var(--accent-sage);
  background-color: var(--bg-surface);
  color: var(--accent-sage-dark);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-body-sm);
  min-height: 38px;
}

.btn-xs {
  padding: 0.35rem 0.65rem;
  font-size: var(--font-size-caption);
  min-height: 30px;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: var(--font-size-body-lg);
  min-height: 54px;
}

.btn-full {
  width: 100%;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--font-size-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
}

.badge-step {
  background-color: var(--accent-sage-light);
  color: var(--accent-sage-dark);
  border: 1px solid rgba(138, 154, 134, 0.3);
}

.badge-kit {
  background-color: var(--accent-clay-light);
  color: #9C683B;
  border: 1px solid rgba(212, 163, 115, 0.4);
}

.badge-origin {
  background-color: #EDF2F7;
  color: #4A5568;
}

.badge-sold-out {
  background-color: var(--state-error-bg);
  color: var(--state-error);
  border: 1px solid rgba(153, 27, 27, 0.2);
}

.badge-low-stock {
  background-color: rgba(212, 163, 115, 0.2);
  color: #9C683B;
  border: 1px solid rgba(212, 163, 115, 0.4);
}

.badge-featured {
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   8. Product Cards & Discovery Grid
   -------------------------------------------------------------------------- */
.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.card:hover {
  border-color: #D8D2C9;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.product-card:hover {
  border-color: #D8D2C9;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-card-img-wrap {
  position: relative;
  background-color: var(--bg-muted);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card:hover .product-card-img {
  transform: scale(1.04);
}

.product-card-step-badge {
  position: absolute;
  top: 0.625rem;
  left: 0.625rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-size: var(--font-size-micro);
  padding: 0.2rem 0.5rem;
}

.product-card-step-badge .step-badge-short {
  display: none;
}

.product-card-step-badge .step-badge-full {
  display: inline;
}

.product-card-status-badge {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  font-size: var(--font-size-micro);
  padding: 0.2rem 0.5rem;
  z-index: 2;
}

.product-card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.product-card-brand {
  font-size: var(--font-size-caption);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.product-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.product-card-title a {
  color: var(--text-heading);
}

.product-card-title a:hover {
  color: var(--accent-clay-dark);
}

.product-card-ingredient-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background-color: var(--bg-muted);
  border-radius: var(--radius-pill);
  padding: 0.2rem 0.6rem;
  font-size: var(--font-size-caption);
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.product-card-rating {
  font-size: var(--font-size-caption);
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  margin-bottom: 0.5rem;
}

.product-card-ingredients {
  font-size: var(--font-size-caption);
  color: var(--text-muted);
  line-height: 1.35;
  margin-bottom: 0.5rem;
}

.product-card-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.product-card-price {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-heading);
}

.price-original {
  text-decoration: line-through;
  color: var(--text-subtle);
  font-size: var(--font-size-body-sm);
  font-weight: 400;
}

.price-savings {
  color: var(--accent-sage-dark);
  font-size: var(--font-size-caption);
  font-weight: 600;
}

.product-card-volume {
  font-size: var(--font-size-micro);
  color: var(--text-muted);
  font-weight: 400;
}

.product-card-btn-wrap {
  margin-top: 0.75rem;
}

.product-card-add-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 40px;
  font-weight: 600;
  width: 100%;
}

/* --------------------------------------------------------------------------
   9. Editorial Hero & Trust Pillars
   -------------------------------------------------------------------------- */
.hero-section {
  padding: 4rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-title {
  font-size: var(--font-size-display-1);
  line-height: var(--line-height-tight);
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: var(--font-size-body-lg);
  color: var(--text-muted);
  line-height: var(--line-height-relaxed);
  margin-bottom: 2rem;
}

.hero-trust-bar {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
  font-size: var(--font-size-body-sm);
  color: var(--text-muted);
}

.trust-bar {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 2.5rem 0;
}

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.pillar-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pillar-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: var(--accent-sage-light);
  color: var(--accent-sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pillar-title {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.pillar-desc {
  font-size: var(--font-size-body-sm);
  color: var(--text-muted);
  line-height: 1.5;
}

.routine-steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.routine-step-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  position: relative;
}

.step-num-watermark {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(138, 154, 134, 0.15);
  line-height: 1;
}

/* Customer Reviews / Social Proof Grid */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: var(--transition);
}

.review-card:hover {
  border-color: #D8D2C9;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stars {
  color: var(--accent-gold-stars, #E5A93C);
  font-size: 1rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.875rem;
}

/* --------------------------------------------------------------------------
   10. Slide-Over Cart Drawer & Milestone Progress Bar
   -------------------------------------------------------------------------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 32, 44, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-drawer-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cart-drawer-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 440px;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-drawer);
  z-index: var(--z-drawer-panel);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.is-open .cart-drawer-panel {
  transform: translateX(0);
}

.drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
}

.drawer-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.drawer-close-btn:hover {
  background-color: var(--bg-muted);
  color: var(--text-main);
}

.free-shipping-progress {
  background-color: var(--bg-muted);
  padding: 0.875rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  font-size: var(--font-size-body-sm);
}

.milestone-msg {
  font-size: var(--font-size-body-sm);
  line-height: 1.4;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.milestone-msg.milestone-success {
  color: var(--state-success);
  font-weight: 600;
}

.progress-bar-bg {
  height: 6px;
  background-color: var(--border-color);
  border-radius: var(--radius-pill);
  margin-top: 0.5rem;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background-color: var(--accent-sage);
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.drawer-footer {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-base);
}

.cart-items-list {
  display: flex;
  flex-direction: column;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-muted);
}

.cart-item-title {
  font-weight: 600;
  font-size: var(--font-size-body);
  line-height: 1.25;
}

.cart-item-brand {
  font-size: var(--font-size-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.cart-item-step-tag {
  font-size: var(--font-size-micro);
  color: var(--accent-sage-dark);
  font-weight: 600;
  margin-top: 0.15rem;
}

.cart-item-price-unit {
  font-weight: 600;
  font-size: var(--font-size-body-sm);
  margin-top: 0.25rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.qty-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  padding: 0.25rem 0.5rem;
  cursor: pointer;
  color: var(--text-main);
  font-weight: bold;
}

.qty-btn:hover {
  background-color: var(--bg-muted);
}

.qty-display {
  padding: 0.25rem 0.5rem;
  font-size: var(--font-size-body-sm);
  min-width: 2rem;
  text-align: center;
}

.cart-item-remove-btn {
  background: none;
  border: none;
  color: var(--text-subtle);
  cursor: pointer;
  font-size: var(--font-size-caption);
  text-decoration: underline;
  padding: 0.2rem;
}

.cart-item-remove-btn:hover {
  color: var(--state-error);
}

.cart-item-line-total {
  font-weight: 700;
  font-size: var(--font-size-body);
  text-align: right;
  flex-shrink: 0;
}

.cart-upsell-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--border-color);
}

.cart-upsell-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.cart-upsell-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cart-upsell-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  background-color: var(--bg-base);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease;
}

.cart-upsell-card:hover {
  border-color: var(--accent-sage);
}

.cart-upsell-img {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-muted);
  flex-shrink: 0;
}

.cart-upsell-title {
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
}

.cart-upsell-add-btn {
  font-size: var(--font-size-caption);
  padding: 0.35rem 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
}

.drawer-trust-badges {
  display: flex;
  justify-content: center;
  gap: 0.875rem;
  margin-top: 0.875rem;
  font-size: var(--font-size-micro);
  color: var(--text-muted);
  flex-wrap: wrap;
}

.drawer-trust-badge-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* --------------------------------------------------------------------------
   11. PDP 2-Column Layout & Sticky Buy Bar
   -------------------------------------------------------------------------- */
.pdp-container {
  min-width: 0;
}

.pdp-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
  min-width: 0;
}

.pdp-hero-step-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-size: var(--font-size-body-sm);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.pdp-trust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

.pdp-trust-card {
  padding: 0.875rem;
  font-size: var(--font-size-body-sm);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.pdp-urgency-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(212, 163, 115, 0.12);
  border: 1px solid rgba(212, 163, 115, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: var(--font-size-caption);
  color: var(--text-main);
  margin-bottom: 0.875rem;
}

.pdp-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #EF4444;
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.pdp-title {
  font-size: var(--font-size-h1);
  line-height: var(--line-height-snug);
  margin-bottom: 0.5rem;
}

.pdp-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-heading);
}

.pdp-ingredients-banner {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.875rem 1.125rem;
  margin-bottom: 1.25rem;
}

.pdp-bundle-upsell-card {
  background: linear-gradient(135deg, rgba(138, 154, 134, 0.1) 0%, rgba(212, 163, 115, 0.12) 100%);
  border: 1px solid rgba(138, 154, 134, 0.35);
  border-radius: var(--radius-md);
  padding: 1.125rem;
  margin-bottom: 1.5rem;
}

.pdp-buy-action-row {
  display: flex;
  gap: 0.875rem;
  align-items: center;
}

.pdp-kit-buy-card {
  padding: 2.25rem;
}

/* Floating Sticky Buy Bar for PDP */
.pdp-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-color);
  box-shadow: var(--shadow-sticky);
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-pdp-sticky);
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

.pdp-sticky-bar.is-visible {
  transform: translateY(0);
}

.pdp-sticky-bar-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pdp-sticky-img {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-muted);
  flex-shrink: 0;
}

.pdp-sticky-info {
  flex: 1;
  min-width: 0;
}

.pdp-sticky-title {
  font-weight: 600;
  font-size: var(--font-size-body-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdp-sticky-price {
  font-weight: 700;
  font-size: var(--font-size-body);
  color: var(--text-heading);
}

.pdp-sticky-btn {
  height: 42px;
  padding: 0 1.25rem;
  font-weight: 700;
  font-size: var(--font-size-body-sm);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   12. Off-Canvas Mobile Navigation Drawer & Backdrop
   -------------------------------------------------------------------------- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  padding: 0.4rem;
  cursor: pointer;
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 32, 44, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: var(--z-drawer-backdrop);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 85%;
  max-width: 340px;
  background-color: var(--bg-surface);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-drawer-panel);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  padding: 1.25rem;
}

.mobile-nav-drawer.is-open {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.25rem;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text-muted);
  cursor: pointer;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mobile-nav-close:hover {
  background-color: var(--bg-muted);
  color: var(--text-main);
}

.mobile-nav-quiz-card {
  background: linear-gradient(135deg, rgba(138, 154, 134, 0.12) 0%, rgba(212, 163, 115, 0.12) 100%);
  border: 1px solid rgba(138, 154, 134, 0.25);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.25rem;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.5rem;
  font-size: var(--font-size-body);
  font-weight: 500;
  color: var(--text-main);
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
  text-decoration: none;
}

.mobile-nav-link:active, .mobile-nav-link:hover {
  background-color: var(--bg-muted);
  color: var(--accent-sage-dark);
}

.mobile-nav-footer {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-color);
}

/* --------------------------------------------------------------------------
   13. Sticky App-Like Mobile Bottom Navigation Bar (64px)
   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--mobile-bottom-nav-height);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: var(--z-bottom-nav);
  justify-content: space-around;
  align-items: center;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
}

.mobile-bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #718096;
  font-size: var(--font-size-micro);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.75rem;
  min-width: 60px;
  touch-action: manipulation;
  transition: color 0.15s ease;
}

.mobile-bottom-nav-item.active,
.mobile-bottom-nav-item:active {
  color: var(--accent-sage-dark);
}

.mobile-bottom-badge {
  position: absolute;
  top: -4px;
  right: -8px;
  background-color: var(--accent-clay);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.2rem;
  transition: transform 0.2s ease;
}

.mobile-bottom-quiz-glow {
  color: var(--accent-clay);
}

/* --------------------------------------------------------------------------
   14. Forms, Checkout & Order Tracking
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: var(--font-size-body-sm);
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background-color: var(--bg-surface);
  color: var(--text-main);
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent-sage-dark);
  box-shadow: 0 0 0 3px var(--accent-sage-glow);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 1rem;
}

.cart-page-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.cart-page-item-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 1.25rem;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
  align-items: center;
}

.cart-page-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background-color: var(--bg-muted);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.checkout-summary-card {
  position: sticky;
  top: 90px;
}

/* --------------------------------------------------------------------------
   15. Accordions, Tabs & Educational Guide Styles
   -------------------------------------------------------------------------- */
.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-trigger {
  width: 100%;
  padding: 1.125rem 0;
  background: none;
  border: none;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-main);
  transition: color 0.15s ease;
}

.accordion-trigger:hover {
  color: var(--accent-sage-dark);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.accordion-panel-content {
  padding-bottom: 1.25rem;
  font-size: var(--font-size-body-sm);
  color: var(--text-muted);
  line-height: var(--line-height-normal);
}

.routine-tabs {
  display: flex;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 2rem;
}

.routine-tab-btn {
  background: none;
  border: none;
  padding: 0.75rem 1.25rem;
  font-size: var(--font-size-body);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.routine-tab-btn:hover {
  color: var(--text-main);
}

.routine-tab-btn.active {
  color: var(--accent-sage-dark);
}

.routine-tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--accent-sage-dark);
}

.routine-tab-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   16. Luxury Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4rem 0 2rem 0;
  margin-top: 5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: #FFFFFF;
  margin-bottom: 1rem;
}

.footer-title {
  font-family: var(--font-sans);
  font-size: var(--font-size-body-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

.footer-links a {
  color: #A0AEC0;
  font-size: var(--font-size-body-sm);
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--font-size-body-sm);
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   17. Micro-Animations & HTMX Transition Indicators
   -------------------------------------------------------------------------- */
@keyframes badgeBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.4); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

.badge-bounce {
  animation: badgeBounce 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.htmx-indicator {
  opacity: 0;
  transition: opacity 200ms ease-in;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  opacity: 1;
}

/* --------------------------------------------------------------------------
   18. Responsive Media Queries
   -------------------------------------------------------------------------- */

/* --- Expansive Desktop (>= 1440px) --- */
@media (min-width: 1440px) {
  .container {
    max-width: var(--container-wide-max);
  }

  .pdp-grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4.5rem;
  }
}

/* --- Standard Desktop / Tablet Transition (<= 1024px) --- */
@media (max-width: 1024px) {
  .nav-links {
    gap: 1.25rem;
  }

  .pdp-grid {
    gap: 2.5rem;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}

/* --- Tablet / Compact Desktop (<= 860px) --- */
@media (max-width: 860px) {
  .checkout-grid,
  .cart-page-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* --------------------------------------------------------------------------
   Policy & Editorial Legal Document Styles
   -------------------------------------------------------------------------- */
.policy-card {
  padding: clamp(1.5rem, 4vw, 2.75rem);
  margin-bottom: 2.5rem;
}

.policy-header-title {
  font-size: clamp(2.25rem, 5vw, 3rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.policy-body {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
  white-space: pre-line;
  overflow-wrap: break-word;
  word-break: break-word;
}

.policy-body p {
  margin-bottom: 1rem;
}

.policy-body p:last-child {
  margin-bottom: 0;
}

.policy-body ul,
.policy-body ol {
  padding-left: 1.5rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  list-style-position: outside;
  white-space: normal;
}

.policy-body ul {
  list-style-type: disc;
}

.policy-body ol {
  list-style-type: decimal;
}

.policy-body li {
  margin-bottom: 0.35rem;
}

.policy-body a {
  color: var(--accent-sage-dark);
  font-weight: 600;
  text-decoration: underline;
}

.policy-body strong {
  color: var(--text-main);
}

.policy-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  display: block;
  overflow-x: auto;
  white-space: normal;
}

.policy-body th,
.policy-body td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border-color);
  text-align: left;
  font-size: 0.875rem;
}

.policy-body th {
  background-color: var(--bg-muted);
  color: var(--text-main);
  font-weight: 600;
}

.policy-btn-group {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* --- Mobile Breakpoint (<= 768px) --- */
@media (max-width: 768px) {
  body {
    padding-bottom: var(--mobile-bottom-nav-height); /* Clear sticky bottom app bar */
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .mobile-bottom-nav {
    display: flex;
  }

  .pdp-sticky-bar {
    display: block;
    bottom: var(--mobile-bottom-nav-height); /* Stack directly above 64px mobile bottom bar */
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-trust-bar {
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
  }

  .routine-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
  }

  .pdp-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cart-drawer-panel {
    max-width: 100vw;
  }

  /* Form inputs size protection for iOS auto-zoom */
  .form-input, .form-select, .form-textarea {
    font-size: 16px;
  }

  .form-row-2,
  .form-row-3 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --- Compact Mobile Screens (<= 640px) --- */
@media (max-width: 640px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .routine-steps-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    border-radius: var(--radius-sm);
  }

  .product-card-body {
    padding: 0.75rem;
  }

  .product-card-title {
    font-size: var(--font-size-body-sm);
    line-height: 1.25;
    margin-bottom: 0.25rem;
  }

  .product-card-title a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-card-brand {
    font-size: var(--font-size-micro);
  }

  .product-card-ingredients {
    display: none;
  }

  .product-card-price {
    font-size: var(--font-size-body);
  }

  .product-card-add-btn {
    height: 36px;
    font-size: var(--font-size-caption);
    padding: 0 0.5rem;
  }

  .product-card-step-badge {
    font-size: 0.625rem;
    padding: 0.15rem 0.35rem;
    top: 0.375rem;
    left: 0.375rem;
    max-width: 52%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card-step-badge .step-badge-full {
    display: none;
  }

  .product-card-step-badge .step-badge-short {
    display: inline;
  }

  .product-card-status-badge {
    font-size: 0.625rem;
    padding: 0.15rem 0.35rem;
    top: 0.375rem;
    right: 0.375rem;
    max-width: 44%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card-ingredient-pill {
    font-size: 0.625rem;
    padding: 0.15rem 0.45rem;
  }

  .cart-page-item-row {
    grid-template-columns: 60px 1fr auto;
    gap: 0.75rem;
  }

  .cart-page-item-img {
    width: 60px;
    height: 60px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
