/* ===== DR MUSHROOMS — Clean & Clinical Wellness ===== */

/* --- Design Tokens --- */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Fonts */
  --font-display: 'Zodiak', 'Georgia', serif;
  --font-body: 'Work Sans', 'Helvetica Neue', sans-serif;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
}

/* --- Light Mode (Clean & Clinical) --- */
:root, [data-theme="light"] {
  --color-bg:             #FAFBF9;
  --color-surface:        #FFFFFF;
  --color-surface-2:      #F4F6F2;
  --color-surface-offset: #EEF1EB;
  --color-divider:        #DDE2D8;
  --color-border:         #CDD4C7;

  --color-text:           #1A2E1A;
  --color-text-muted:     #5A6B58;
  --color-text-faint:     #9BA896;
  --color-text-inverse:   #FAFBF9;

  --color-primary:        #4A8B6F;
  --color-primary-hover:  #3A7059;
  --color-primary-active: #2D5A47;
  --color-primary-light:  #E8F2EC;

  --color-accent:         #7BA68E;
  --color-accent-light:   #F0F6F2;

  --color-success:        #437a22;
  --color-warning:        #964219;
  --color-error:          #a13544;

  --shadow-sm: 0 1px 3px rgba(26, 46, 26, 0.06);
  --shadow-md: 0 4px 12px rgba(26, 46, 26, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 46, 26, 0.12);
}

/* --- Dark Mode --- */
[data-theme="dark"] {
  --color-bg:             #0F1510;
  --color-surface:        #161D17;
  --color-surface-2:      #1C241D;
  --color-surface-offset: #222B23;
  --color-divider:        #2D3A2E;
  --color-border:         #3A4A3B;

  --color-text:           #D4DFD2;
  --color-text-muted:     #8A9B87;
  --color-text-faint:     #5A6B58;
  --color-text-inverse:   #0F1510;

  --color-primary:        #6FB88D;
  --color-primary-hover:  #8CCAA5;
  --color-primary-active: #A5D9B9;
  --color-primary-light:  #1C2E22;

  --color-accent:         #5A9B72;
  --color-accent-light:   #1A2B1F;

  --color-success:        #6daa45;
  --color-warning:        #bb653b;
  --color-error:          #dd6974;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #0F1510;
    --color-surface:        #161D17;
    --color-surface-2:      #1C241D;
    --color-surface-offset: #222B23;
    --color-divider:        #2D3A2E;
    --color-border:         #3A4A3B;
    --color-text:           #D4DFD2;
    --color-text-muted:     #8A9B87;
    --color-text-faint:     #5A6B58;
    --color-text-inverse:   #0F1510;
    --color-primary:        #6FB88D;
    --color-primary-hover:  #8CCAA5;
    --color-primary-active: #A5D9B9;
    --color-primary-light:  #1C2E22;
    --color-accent:         #5A9B72;
    --color-accent-light:   #1A2B1F;
    --color-success:        #6daa45;
    --color-warning:        #bb653b;
    --color-error:          #dd6974;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

/* ===== GLOBAL STYLES ===== */

a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  color: var(--color-primary-hover);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow 0.3s ease;
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
}
.header__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-4) var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: var(--color-text);
}
.header__logo-icon {
  width: 40px;
  height: 40px;
}
.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}
.header__nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  position: relative;
}
.header__nav a:hover {
  color: var(--color-text);
}
.header__nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width 0.3s ease;
}
.header__nav a:hover::after {
  width: 100%;
}
.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.theme-toggle:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* Cart button */
.cart-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
}
.cart-btn:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--color-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s ease;
}
.cart-count.visible {
  opacity: 1;
  transform: scale(1);
}

/* Mobile menu */
.mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .header__nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-divider);
    flex-direction: column;
    padding: var(--space-6);
    gap: var(--space-4);
  }
  .header__nav.open {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(from var(--color-bg) l c h / 0.92) 0%,
    oklch(from var(--color-bg) l c h / 0.7) 50%,
    oklch(from var(--color-bg) l c h / 0.3) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-16) var(--space-6);
  width: 100%;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--space-6);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--color-text);
  max-width: 14ch;
  margin-bottom: var(--space-6);
  line-height: 1.1;
}
.hero__subtitle {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: var(--space-8);
  line-height: 1.7;
}
.hero__ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition-interactive);
  min-height: 48px;
}
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-border);
}
.btn--secondary:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  min-height: 36px;
}
.btn--full {
  width: 100%;
}

/* ===== TRUST BAR ===== */
.trust-bar {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.trust-bar__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  padding: var(--space-6) var(--space-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
}
.trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.trust-item__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-item__text h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.trust-item__text p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

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

/* ===== SECTION ===== */
.section {
  padding: clamp(var(--space-12), 8vw, var(--space-24)) var(--space-6);
}
.section--bg {
  background: var(--color-surface-2);
}
.section__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}
.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}
.section__header--left {
  text-align: left;
  max-width: 100%;
}
.section__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.section__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.section__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== PRODUCT GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
}

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}
.product-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.product-card__img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  position: relative;
}
.product-card__img img {
  width: 80%;
  height: 80%;
  object-fit: contain;
  transition: transform 0.4s ease;
}
.product-card:hover .product-card__img img {
  transform: scale(1.05);
}
.product-card__timing {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  z-index: 1;
  letter-spacing: 0.03em;
}
.timing--am {
  background: var(--color-primary);
  color: #fff;
}
.timing--pm {
  background: #6B4E9B;
  color: #fff;
}
.timing--ampm {
  background: #C07B3F;
  color: #fff;
}
.product-card__body {
  padding: var(--space-5);
}
.product-card__tag {
  font-size: var(--text-xs);
  color: var(--color-primary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.product-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.product-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.product-card__price {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
}

/* ===== BENEFITS ===== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  align-items: center;
}
.benefits-grid__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.benefits-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
}
.benefits-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.benefit-item {
  display: flex;
  gap: var(--space-4);
}
.benefit-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.benefit-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.benefit-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

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

/* ===== HOW IT WORKS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  counter-reset: step;
}
.step {
  text-align: center;
  counter-increment: step;
}
.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-4);
}
.step h3 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.step p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 30ch;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}

/* ===== TESTIMONIALS ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.testimonial {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.testimonial__stars {
  color: #E8AF34;
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
}
.testimonial__text {
  font-size: var(--text-sm);
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: var(--space-4);
  font-style: italic;
}
.testimonial__author {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}
@media (max-width: 768px) {
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.faq-item {
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  padding: var(--space-4) var(--space-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  background: var(--color-surface);
  text-align: left;
}
.faq-item__q:hover {
  background: var(--color-surface-2);
}
.faq-item__q svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--color-text-muted);
}
.faq-item.open .faq-item__q svg {
  transform: rotate(180deg);
}
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-item__a-inner {
  padding: 0 var(--space-5) var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ===== NEWSLETTER ===== */
.newsletter {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  max-width: var(--content-default);
  margin: 0 auto;
}
.newsletter h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
  margin-bottom: var(--space-3);
}
.newsletter p {
  font-size: var(--text-sm);
  opacity: 0.85;
  margin-bottom: var(--space-6);
  max-width: 40ch;
  margin-left: auto;
  margin-right: auto;
}
.newsletter__form {
  display: flex;
  gap: var(--space-3);
  max-width: 440px;
  margin: 0 auto;
}
.newsletter__form input {
  flex: 1;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-size: var(--text-sm);
}
.newsletter__form input::placeholder {
  color: rgba(255,255,255,0.6);
}
.newsletter__form input:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.2);
}
.newsletter__form button {
  padding: var(--space-3) var(--space-6);
  background: #fff;
  color: var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: var(--text-sm);
  white-space: nowrap;
}
.newsletter__form button:hover {
  background: rgba(255,255,255,0.9);
}

@media (max-width: 480px) {
  .newsletter__form {
    flex-direction: column;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-surface-2);
  border-top: 1px solid var(--color-divider);
  padding: var(--space-12) var(--space-6) var(--space-6);
}
.footer__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-10);
}
.footer__brand p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 30ch;
  margin-top: var(--space-3);
}
.footer__col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}
.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.footer__col li a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer__col li a:hover {
  color: var(--color-primary);
}
.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--color-surface-offset);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.footer__social a:hover {
  background: var(--color-primary);
  color: #fff;
}
.footer__bottom {
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer__bottom p,
.footer__bottom a {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__bottom a:hover {
  color: var(--color-primary);
}

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

/* ===== PRODUCT MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: oklch(from var(--color-bg) l c h / 0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  max-width: 900px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.modal__close:hover {
  background: var(--color-surface-offset);
  color: var(--color-text);
}
.modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 450px;
}
.modal__image {
  background: var(--color-surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-8);
  border-radius: var(--radius-xl) 0 0 var(--radius-xl);
}
.modal__image img {
  max-width: 80%;
  max-height: 350px;
  object-fit: contain;
}
.modal__info {
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.modal__tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modal__name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 500;
}
.modal__price {
  font-size: var(--text-xl);
  font-weight: 700;
}
.modal__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}
.modal__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.modal__detail {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.modal__detail svg {
  color: var(--color-primary);
  flex-shrink: 0;
}
.modal__qty {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.modal__qty button {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-base);
  color: var(--color-text);
}
.modal__qty button:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.modal__qty span {
  font-size: var(--text-base);
  font-weight: 600;
  min-width: 2ch;
  text-align: center;
}
@media (max-width: 640px) {
  .modal__grid {
    grid-template-columns: 1fr;
  }
  .modal__image {
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    min-height: 250px;
  }
}

/* ===== CART DRAWER ===== */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--color-surface);
  border-left: 1px solid var(--color-divider);
  z-index: 300;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-lg);
}
.cart-drawer.open {
  right: 0;
}
.cart-drawer__backdrop {
  position: fixed;
  inset: 0;
  background: oklch(from var(--color-bg) l c h / 0.6);
  z-index: 299;
  display: none;
}
.cart-drawer__backdrop.open {
  display: block;
}
.cart-drawer__header {
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-drawer__header h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
}
.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4) var(--space-6);
}
.cart-drawer__empty {
  text-align: center;
  padding: var(--space-10) 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}
.cart-item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-divider);
}
.cart-item__img {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-1);
}
.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.cart-item__info {
  flex: 1;
}
.cart-item__name {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.cart-item__price {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.cart-item__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.cart-item__actions button {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
}
.cart-item__actions span {
  font-size: var(--text-sm);
  font-weight: 600;
  min-width: 2ch;
  text-align: center;
}
.cart-item__remove {
  color: var(--color-error) !important;
  border-color: transparent !important;
  margin-left: auto;
}
.cart-drawer__footer {
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-4);
}
.cart-drawer__total span:first-child {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.cart-drawer__total span:last-child {
  font-size: var(--text-lg);
  font-weight: 700;
}
.cart-drawer__checkout {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.paypal-btn {
  background: #FFC439;
  color: #003087;
  font-weight: 700;
}
.paypal-btn:hover {
  background: #F0B82D;
}

/* ===== CHECKOUT MODAL ===== */
.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: oklch(from var(--color-bg) l c h / 0.85);
  backdrop-filter: blur(12px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
}
.checkout-overlay.open {
  display: flex;
}
.checkout-modal {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-8);
  position: relative;
}
.checkout-modal h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
}
.form-group {
  margin-bottom: var(--space-4);
}
.form-group label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.form-group input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  font-size: var(--text-sm);
}
.form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
.form-divider {
  height: 1px;
  background: var(--color-divider);
  margin: var(--space-6) 0;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: 700;
  border-top: 2px solid var(--color-divider);
  margin-top: var(--space-4);
}
.checkout-note {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-align: center;
  margin-top: var(--space-4);
}
.checkout-note svg {
  display: inline;
  vertical-align: middle;
  margin-right: 4px;
}

/* ===== PRODUCT LINEUP BANNER ===== */
.lineup-banner {
  background: var(--color-surface-2);
  padding: var(--space-8) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.lineup-banner__inner {
  max-width: var(--content-wide);
  margin: 0 auto;
  text-align: center;
}
.lineup-banner__inner img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* ===== COMPARISON SECTION ===== */
.comparison-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
.comparison-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.comparison-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
}
.comparison-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.comparison-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}
.comparison-item__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.comparison-item__icon.check {
  background: var(--color-primary-light);
  color: var(--color-primary);
}
.comparison-item h3 {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.comparison-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .comparison-section {
    grid-template-columns: 1fr;
  }
}

/* ===== DOSING GUIDE ===== */
.dosing-guide {
  margin-bottom: var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.dosing-guide__img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.dosing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.dosing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
}
.dosing-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-4);
}
.dosing-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.dosing-card li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}
.dosing-card li strong {
  color: var(--color-text);
}
.dosing-card__badge {
  position: absolute;
  top: calc(-1 * var(--space-3));
  right: var(--space-4);
  background: var(--color-primary);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}
.dosing-card__badge--pm {
  background: #6B4E9B;
}
.dosing-card__badge--ampm {
  background: #C07B3F;
}
@media (max-width: 768px) {
  .dosing-cards {
    grid-template-columns: 1fr;
  }
}

/* ===== BUNDLE PLANS ===== */
.bundles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.bundle-card {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.bundle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.bundle-card--age::before { background: linear-gradient(90deg, #C07B3F, #D4A574); }
.bundle-card--immune::before { background: linear-gradient(90deg, #4A8B6F, #6FB88D); }
.bundle-card--bio::before { background: linear-gradient(90deg, #3A7059, #20808D); }
.bundle-card--longevity::before { background: linear-gradient(90deg, #6B4E9B, #9B7BC0); }
.bundle-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.bundle-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.bundle-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bundle-card--age .bundle-card__icon { background: #FDF3E8; color: #C07B3F; }
.bundle-card--immune .bundle-card__icon { background: var(--color-primary-light); color: var(--color-primary); }
.bundle-card--bio .bundle-card__icon { background: #E5F0ED; color: #20808D; }
.bundle-card--longevity .bundle-card__icon { background: #F0EBF5; color: #6B4E9B; }
.bundle-card__tag {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--color-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.bundle-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.2;
}
.bundle-card__tagline {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  font-style: italic;
  margin-top: calc(-1 * var(--space-2));
}
.bundle-card__desc {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.7;
  flex: 1;
}
.bundle-card__products {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.bundle-product {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
}
.bundle-product img {
  width: 56px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.bundle-product span {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-muted);
  text-align: center;
}
.bundle-plus {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--color-text-faint);
}
.bundle-card__pricing {
  text-align: center;
}
.bundle-card__was {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: line-through;
  margin-bottom: var(--space-1);
}
.bundle-card__now {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
}
.bundle-card__save {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-1);
}
@media (max-width: 768px) {
  .bundles-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== SUBSCRIBE & SAVE TOGGLE (in modal) ===== */
.subscribe-toggle {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-top: var(--space-2);
}
.subscribe-toggle__option {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}
.subscribe-toggle__option:hover {
  border-color: var(--color-primary);
}
.subscribe-toggle__option--active {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
}
.subscribe-toggle__radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--color-border);
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  transition: all 0.2s ease;
}
.subscribe-toggle__option--active .subscribe-toggle__radio {
  border-color: var(--color-primary);
}
.subscribe-toggle__option--active .subscribe-toggle__radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}
.subscribe-toggle__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  display: block;
}
.subscribe-toggle__price {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  display: block;
  margin-top: 2px;
}
.subscribe-toggle__detail {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  display: block;
  margin-top: 2px;
}
.subscribe-toggle__badge {
  position: absolute;
  top: calc(-1 * var(--space-2));
  right: var(--space-3);
  background: var(--color-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* ===== SUBSCRIBE & SAVE SECTION ===== */
.sub-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: var(--space-10);
  align-items: start;
}
.sub-banner__label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.sub-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.sub-banner__desc {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  max-width: 48ch;
}
.sub-banner__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}
.sub-banner__perks li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text);
  font-weight: 500;
}
.sub-banner__perks li svg {
  color: var(--color-primary);
  flex-shrink: 0;
}
.sub-banner__prices {
  background: var(--color-surface);
  border: 1px solid var(--color-divider);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
}
.sub-banner__prices h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  margin-bottom: var(--space-4);
  text-align: center;
}
.sub-price-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.sub-price-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
}
.sub-price-item:nth-child(odd) {
  background: var(--color-surface-2);
}
.sub-price-item--highlight {
  background: var(--color-primary-light) !important;
  border: 1px solid var(--color-primary);
}
.sub-price-item__name {
  flex: 1;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.sub-price-item__was {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: line-through;
}
.sub-price-item__now {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-primary);
  min-width: 5ch;
  text-align: right;
}
@media (max-width: 768px) {
  .sub-banner {
    grid-template-columns: 1fr;
  }
}

/* Cart subscription badge */
.cart-item__sub-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin-top: var(--space-1);
  letter-spacing: 0.03em;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== SCROLL PROGRESS ===== */
.scroll-top {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 50;
  box-shadow: var(--shadow-md);
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
}
.scroll-top:hover {
  background: var(--color-primary-hover);
  transform: translateY(-2px);
}
