/* ============================================================
   BOLSAS SALUD — GLOBAL STYLESHEET
   Cobalt + Cream | Playfair Display + Manrope
   ============================================================ */

/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Manrope:wght@300;400;500;600;700;800&display=swap');

/* --- RESET & ROOT --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  /* Brand palette */
  --white:       #FFFFFF;
  --lavender:    #C7C6E6;
  --lavender-light: #EDEAF8;
  --lavender-mid: #B8B5D8;
  --cobalt:      #4B3C82;
  --cobalt-dark: #3E2F6E;
  --ink:         #211B33;
  --muted:       #7A7686;
  --muted-light: #A09BAC;
  --cream:       #F3F2FA;
  --cream-warm:  #FAFAFE;

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Manrope', system-ui, sans-serif;

  /* Spacing */
  --section-gap: clamp(64px, 10vw, 120px);
  --card-radius: 4px;
  --btn-radius:  4px;

  /* Transitions */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  overflow-x: hidden;
}

/* --- ON-DARK SCOPING --- */
.on-dark { color: rgba(255,255,255,0.85); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: #fff; }
.on-dark p { color: rgba(255,255,255,0.72); }
.on-dark a:not(.btn) { color: inherit; }

/* --- CONTAINER --- */
.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.container--narrow {
  max-width: 800px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--ink);
}

h1 { font-size: clamp(42px, 7vw, 88px); font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 600; }
h4 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; }

p { font-size: 16px; line-height: 1.7; color: var(--muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.text-cobalt { color: var(--cobalt); }
.text-muted  { color: var(--muted); }
.text-ink    { color: var(--ink); }

/* T4 — first letter slightly larger on exactly ONE hero headline */
.headline-accent .first-letter {
  display: inline-block;
  font-size: 1.25em;
  line-height: 1;
  vertical-align: baseline;
  color: var(--cobalt);
}

/* ============================================================
   BUTTONS — B1: Sharp rectangle
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: var(--btn-radius);
  overflow: hidden;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), transform 0.18s var(--ease), box-shadow 0.25s var(--ease);
  position: relative;
  white-space: nowrap;
}

.btn-primary {
  background: var(--cobalt);
  color: #fff;
}
.btn-primary:hover {
  background: var(--cobalt-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(75,60,130,0.28);
}

/* ============================================================
   HERO CTA — single emphasized order button (product pages)
   ============================================================ */
.btn-hero-cta {
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-dark) 100%) !important;
  box-shadow: 0 10px 28px rgba(75,60,130,0.32), 0 0 0 0 rgba(75,60,130,0.35);
  animation: heroCtaPulse 2.6s ease-in-out infinite;
}
.btn-hero-cta:hover {
  animation-play-state: paused;
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 14px 34px rgba(75,60,130,0.4);
}
@keyframes heroCtaPulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(75,60,130,0.32), 0 0 0 0 rgba(75,60,130,0.32); }
  50%      { box-shadow: 0 10px 28px rgba(75,60,130,0.32), 0 0 0 9px rgba(75,60,130,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn-hero-cta { animation: none; }
}

.btn-ghost {
  background: transparent;
  color: var(--cobalt);
  border: 1.5px solid var(--cobalt);
}
.btn-ghost:hover {
  background: var(--cobalt);
  color: #fff;
  transform: translateY(-2px);
}

.btn-white {
  background: #fff;
  color: var(--cobalt);
}
.btn-white:hover {
  background: var(--lavender-light);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 12px;
}

.btn.is-loading { opacity: 0.7; cursor: wait; }

/* Spinner inside button */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   CARDS — C6: Cut corner (one corner clipped)
   ============================================================ */

.card {
  background: var(--white);
  border: 1px solid rgba(75,60,130,0.10);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 16px 40px rgba(75,60,130,0.14);
  transform: translateY(-4px);
}

/* ============================================================
   NAVIGATION — V1: Transparent over hero, scrolled = dark
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 0 clamp(20px, 4vw, 48px);
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav--scrolled {
  background: rgba(33,27,51,0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 32px rgba(33,27,51,0.18);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-dot {
  width: 8px; height: 8px;
  background: var(--lavender);
  border-radius: 50%;
  display: inline-block;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav__links a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  transition: color 0.2s;
}

.nav__links a:hover { color: var(--lavender); }

.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile menu */
@media (max-width: 767px) {
  .nav__hamburger { display: flex; }
  .nav__links {
    display: none;
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: rgba(33,27,51,0.98);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
  }
  .nav__links--open { display: flex; }
  .nav__links a { font-size: 16px; }
}

/* ============================================================
   ADVERTORIAL STRIP
   ============================================================ */

.advertorial-bar {
  position: relative;
  z-index: 800;
  background: var(--cobalt);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 5px 20px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  /* sits below fixed nav, but we push the page body top so the bar is visible */
}

/* ============================================================
   HERO — Variant I: Media-Only full-bleed video
   ============================================================ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(33,27,51,0.85) 0%,
    rgba(33,27,51,0.40) 45%,
    rgba(33,27,51,0.10) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 clamp(20px, 5vw, 72px) clamp(56px, 8vw, 100px);
  max-width: 820px;
  color: #fff;
}

.hero__content .eyebrow { color: var(--lavender); margin-bottom: 18px; }

.hero__title {
  color: #fff;
  font-size: clamp(48px, 8vw, 100px);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 22px;
}

.hero__subtitle {
  color: rgba(255,255,255,0.75);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.6;
}

.hero__cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 28px;
  right: clamp(20px, 5vw, 72px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.4);
  animation: scroll-line 2s ease-in-out infinite;
}

@keyframes scroll-line {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; }
}

/* Hero load animations */
.hero__content .eyebrow { animation: fade-up 0.7s var(--ease) 0.3s both; }
.hero__title             { animation: fade-up 0.8s var(--ease) 0.5s both; }
.hero__subtitle          { animation: fade-up 0.8s var(--ease) 0.7s both; }
.hero__cta-row           { animation: fade-up 0.8s var(--ease) 0.9s both; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   TRUST BAR (marquee)
   ============================================================ */

.trust-bar {
  background: var(--cream);
  border-top: 1px solid var(--lavender);
  border-bottom: 1px solid var(--lavender);
  overflow: hidden;
  padding: 14px 0;
}

.trust-bar__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--cobalt);
  letter-spacing: 0.04em;
}

.trust-bar__item svg {
  flex-shrink: 0;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION — S3 Wave dividers
   ============================================================ */

.section { padding: var(--section-gap) 0; }
.section--lavender { background: var(--lavender-light); }
.section--cream    { background: var(--cream); }
.section--cobalt   { background: var(--cobalt); }
.section--ink      { background: var(--ink); }

.wave-top, .wave-bottom {
  display: block;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-top svg, .wave-bottom svg {
  display: block;
  width: 100%;
}

/* ============================================================
   PRODUCT CARDS — catalog grid
   ============================================================ */

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

.product-card {
  background: var(--white);
  border: 1px solid rgba(75,60,130,0.10);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
}

.product-card:hover {
  box-shadow: 0 16px 40px rgba(75,60,130,0.14);
  transform: translateY(-5px);
}

.product-card__media {
  background: var(--cream);
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
}

.product-card__media img,
.product-card__media .photo-placeholder {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cobalt);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.product-card__body {
  padding: 20px 20px 24px;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--lavender-light);
  color: var(--cobalt);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 2px;
}

.chip svg { flex-shrink: 0; }

.product-card__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--cobalt);
  margin-bottom: 16px;
}

.product-card__cta {
  display: block;
  width: 100%;
  text-align: center;
}

/* ============================================================
   BLOG CARDS — preview grid (blog.html + homepage)
   ============================================================ */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid rgba(75,60,130,0.10);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
}

.blog-card:hover {
  box-shadow: 0 16px 40px rgba(75,60,130,0.14);
  transform: translateY(-5px);
}

.blog-card__media {
  background: var(--cream);
  aspect-ratio: 16/10;
  overflow: hidden;
  position: relative;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__cat {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--cobalt);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}

.blog-card__body {
  padding: 20px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card__meta {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted-light);
  margin-bottom: 10px;
}

.blog-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 10px;
}

.blog-card__excerpt {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.blog-card__cta {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.blog-card:hover .blog-card__cta { color: var(--cobalt-dark); }

/* Featured (large) variant — first card in homepage preview */
.blog-card--featured {
  grid-column: span 2;
}
.blog-card--featured .blog-card__media { aspect-ratio: 16/8; }
.blog-card--featured .blog-card__title { font-size: 22px; }

@media (max-width: 700px) {
  .blog-card--featured { grid-column: span 1; }
}

/* ============================================================
   PHOTO PLACEHOLDER
   ============================================================ */

.photo-placeholder {
  background: linear-gradient(135deg, #ff6eb4, #ff3d9a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 200px;
  border-radius: inherit;
}

.photo-placeholder__icon { font-size: 32px; }

.photo-placeholder__label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: sans-serif;
  text-align: center;
  padding: 0 16px;
}

/* ============================================================
   FEATURED BENTO (index homepage feature grid)
   ============================================================ */

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.bento__hero-card {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.bento__hero-card .product-card__media {
  aspect-ratio: 16/9;
  height: auto;
}

.bento__small-card { }

@media (max-width: 900px) {
  .bento {
    grid-template-columns: 1fr;
    grid-template-rows: unset;
  }
  .bento__hero-card {
    grid-column: 1;
    grid-row: auto;
    min-height: unset;
  }
}

/* ============================================================
   WHY GLUCOVIDA SECTION
   ============================================================ */

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.why-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why-item__icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border: 1.5px solid var(--lavender-mid);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.why-item__icon svg { color: var(--cobalt); }

.why-item__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}

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

/* ============================================================
   STATS — N3: Inline in text
   ============================================================ */

.stat-inline {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat-inline__number {
  font-family: var(--font-display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 900;
  color: var(--cobalt);
  line-height: 1;
}

.stat-inline__unit {
  font-size: 22px;
  font-weight: 700;
  color: var(--cobalt);
}

.stat-inline__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  max-width: 140px;
  line-height: 1.4;
}

/* ============================================================
   SPLIT SECTION (index feature split)
   ============================================================ */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

@media (max-width: 767px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse { direction: ltr; }
}

.split__media {
  position: relative;
  overflow: visible;
}

.split__img {
  width: 100%;
  display: block;
  border-radius: 4px;
  aspect-ratio: 4/3;
  object-fit: contain;
  background: var(--cream);
}

.split__bleed {
  margin-left: -48px;
}

@media (max-width: 767px) {
  .split__bleed { margin-left: 0; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.faq-list { display: flex; flex-direction: column; gap: 0; }

.faq-item {
  border-bottom: 1px solid rgba(75,60,130,0.12);
}

.faq-item:first-child { border-top: 1px solid rgba(75,60,130,0.12); }

.faq-item__trigger {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  transition: color 0.2s;
}

.faq-item__trigger:hover { color: var(--cobalt); }

.faq-item__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--cobalt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.faq-item__icon::after {
  content: '';
  display: block;
  width: 8px;
  height: 2px;
  background: var(--cobalt);
  position: relative;
}

.faq-item__icon::before {
  content: '';
  display: block;
  width: 2px;
  height: 8px;
  background: var(--cobalt);
  position: absolute;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.faq-item.faq--open .faq-item__icon { background: var(--cobalt); transform: rotate(45deg); }
.faq-item.faq--open .faq-item__icon::after { background: #fff; }
.faq-item.faq--open .faq-item__icon::before { background: #fff; }

.faq-item__body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}

.faq-item__body p {
  padding-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.faq--open .faq-item__body { max-height: 400px; }

/* ============================================================
   CATALOG PAGE
   ============================================================ */

.catalog-header {
  padding-top: calc(72px + 48px);
  padding-bottom: 48px;
  background: var(--ink);
  color: #fff;
}

.catalog-header h1 { color: #fff; }
.catalog-header p { color: rgba(255,255,255,0.65); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.filter-btn {
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1.5px solid rgba(75,60,130,0.25);
  background: var(--white);
  color: var(--cobalt);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--cobalt);
  color: #fff;
  border-color: var(--cobalt);
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */

.checkout-wrap {
  min-height: 100vh;
  background: var(--cream-warm);
  padding-top: 72px;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  padding: 48px 0;
  align-items: start;
}

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

.checkout-summary {
  background: var(--white);
  border: 1px solid rgba(75,60,130,0.12);
  border-radius: 4px;
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.checkout-summary__header {
  background: var(--cobalt);
  color: #fff;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.checkout-summary__toggle {
  font-size: 18px;
  transition: transform 0.3s;
}

.checkout-summary__body { padding: 20px 24px; }

.checkout-summary__product {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.checkout-summary__img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: var(--cream);
  border-radius: 4px;
  overflow: hidden;
}

.checkout-summary__img .photo-placeholder {
  min-height: unset;
  height: 80px;
}

.checkout-summary__info { flex: 1; }
.checkout-summary__pname {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}

.checkout-summary__price-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid rgba(75,60,130,0.08);
  font-size: 14px;
  color: var(--muted);
}

.checkout-summary__total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0 0;
  border-top: 2px solid var(--cobalt);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--cobalt);
}

.checkout-form-section {
  background: var(--white);
  border-radius: 4px;
  border: 1px solid rgba(75,60,130,0.10);
  padding: 32px;
  margin-bottom: 20px;
}

.checkout-form-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(75,60,130,0.10);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--cream-warm);
  border: 1.5px solid rgba(75,60,130,0.18);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cobalt);
  background: #fff;
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e53e3e;
}

.form-error {
  font-size: 12px;
  color: #e53e3e;
  font-weight: 600;
  display: none;
}

.form-error.visible { display: block; }

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
}

.form-group--checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--cobalt);
}

.form-group--checkbox label {
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
  line-height: 1.5;
}

.seller-block {
  background: var(--lavender-light);
  border-left: 4px solid var(--cobalt);
  border-radius: 2px;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.seller-block__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 8px;
}

.seller-block p {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.6;
}

.order-terms {
  background: var(--cream);
  border-radius: 2px;
  padding: 14px 18px;
  margin-bottom: 24px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.order-terms a { color: var(--cobalt); text-decoration: underline; }

.cod-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lavender-light);
  color: var(--cobalt);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 2px;
  margin-bottom: 20px;
  border: 1px solid var(--lavender-mid);
}

/* ============================================================
   MODAL
   ============================================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(33,27,51,0.65);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: 4px;
  padding: 48px 40px;
  max-width: 480px;
  width: 100%;
  text-align: center;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  animation: fade-up 0.4s var(--ease);
}

.modal-box__icon {
  width: 64px;
  height: 64px;
  background: var(--lavender-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.modal-box h3 {
  font-size: 26px;
  color: var(--ink);
  margin-bottom: 12px;
}

.modal-box p {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 28px;
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,0.7);
  padding: 60px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

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

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

.footer__brand .nav__logo { display: inline-flex; margin-bottom: 14px; }

.footer__brand p {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 220px;
}

.footer__col h5 {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 16px;
}

.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer__col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__col ul li a:hover { color: var(--lavender); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 8px;
}

.footer__contact-item a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__contact-item a:hover { color: var(--lavender); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__bottom p {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__legal-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__legal-links a:hover { color: var(--lavender); }

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */

.cookie-banner {
  display: none;
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9500;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(33,27,51,0.5);
  padding: 24px 28px;
  max-width: 600px;
  width: calc(100% - 40px);
  font-family: var(--font-body);
  border-top: 3px solid var(--cobalt);
}

.cookie-banner.visible { display: block; }

.cookie-banner__text {
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.75);
}

.cookie-banner__text a { color: var(--lavender); text-decoration: underline; }

.cookie-banner__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.cookie-banner__panel {
  display: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 14px;
  margin-top: 4px;
}

.cookie-banner__panel.open { display: block; }

.cookie-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.cookie-toggle-row label { font-weight: 600; }
.cookie-toggle-row span { font-size: 11px; color: rgba(255,255,255,0.4); }

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

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

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

.toggle-switch .slider::before {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.toggle-switch input:checked + .slider { background: var(--cobalt); }
.toggle-switch input:checked + .slider::before { transform: translateX(16px); }
.toggle-switch input:disabled + .slider { cursor: not-allowed; opacity: 0.5; }

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.revealed { opacity: 1; transform: translateY(0); }

.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.revealed { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right.revealed { opacity: 1; transform: translateX(0); }

/* Stagger children */
.stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.stagger.stagger-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.stagger-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.1s; }
.stagger.stagger-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.2s; }
.stagger.stagger-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.3s; }
.stagger.stagger-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.4s; }
.stagger.stagger-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.5s; }

/* ============================================================
   MISC UTILITIES
   ============================================================ */

.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mb-64 { margin-bottom: 64px; }

.text-center { text-align: center; }
.text-right  { text-align: right; }

.section-title { margin-bottom: clamp(32px, 5vw, 56px); }

.divider-line {
  border: none;
  border-top: 1px solid rgba(75,60,130,0.12);
  margin: 0;
}

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 800;
  background: var(--cobalt);
  color: #fff;
  padding: 14px clamp(20px, 5vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.4s var(--ease);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
}

.sticky-cta--visible { transform: translateY(0); }

.sticky-cta__text { color: rgba(255,255,255,0.85); }

/* Article page (white text on very light background for compliance) */
.article-page { background: #fff; }
.article-body { max-width: 760px; margin-inline: auto; padding: 0 clamp(20px,5vw,48px) 80px; }
.article-body h2 { font-size: clamp(22px,3vw,30px); margin: 40px 0 14px; color: var(--ink); }
.article-body h3 { font-size: 19px; margin: 28px 0 10px; color: var(--cobalt); }
.article-body p  { font-size: 16px; color: var(--muted); margin-bottom: 18px; }
.article-body ul { padding-left: 20px; margin-bottom: 18px; }
.article-body ul li { font-size: 15px; color: var(--muted); margin-bottom: 6px; line-height: 1.6; }
.article-hero { background: var(--ink); color: #fff; padding: calc(72px + 60px) 0 60px; }
.article-hero h1 { color: #fff; font-size: clamp(32px,5vw,56px); }
.article-hero .eyebrow { color: var(--lavender); }

/* Table scroll wrapper */
.table-scroll {
  max-width: 900px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.08);
}

.spec-table { width: 100%; border-collapse: collapse; min-width: 480px; background: #fff; }
.spec-table th, .spec-table td { padding: 16px 20px; text-align: center; border-bottom: 1px solid rgba(0,0,0,0.06); font-size: 14px; }
.spec-table thead th { background: var(--ink); color: #fff; font-weight: 700; }
.spec-table__label { background: #f9f9f9; font-weight: 600; text-align: left; }
.spec-table tbody th.spec-table__label { text-align: left; }
.spec-table__hl { background: var(--cobalt); color: #fff; font-weight: 700; }
.spec-table thead th.spec-table__hl { background: var(--cobalt); }

/* Page top offset for advertorial bar + nav */
.page-top { padding-top: calc(72px + 36px); }

/* ============================================================
   RESPONSIVE MISC
   ============================================================ */

@media (max-width: 767px) {
  h1 { font-size: clamp(38px, 10vw, 64px); }
  h2 { font-size: clamp(28px, 7vw, 40px); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .checkout-form-section { padding: 20px; }
  .modal-box { padding: 32px 24px; }
}

/* Progressive-enhancement safety (injected by builder): scroll-reveal blocks stay VISIBLE
   unless JS confirms it can animate them by adding .js-anim to <html>. Guarantees a
   truncated page or a failed script can never leave content permanently hidden. */
html:not(.js-anim) .reveal,
html:not(.js-anim) .reveal-left,
html:not(.js-anim) .reveal-right,
html:not(.js-anim) .reveal-scale,
html:not(.js-anim) .stagger-child {
  opacity: 1 !important;
  transform: none !important;
}
