/* ============================================================
   MOCHA MOON — Complete Stylesheet
   Design: Midnight Blue #1A1F3B | Cream #F5F0E0
           Mocha Brown #6B4F5C | Lavender #A898C8 | Panel #242A4D
   Font: Montserrat
   ============================================================ */

/* 1. CUSTOM PROPERTIES */
:root {
  --bg:          #1A1F3B;
  --bg-dark:     #141729;
  --bg-card:     #242A4D;
  --bg-input:    rgba(245, 240, 224, 0.06);
  --rose:        #6B4F5C;
  --rose-hover:  #7A5C69;
  --footer-bg:   #5C3D4A;
  --text:        #F5F0E0;
  --text-muted:  rgba(245, 240, 224, 0.55);
  --text-dim:    rgba(245, 240, 224, 0.3);
  --border:      rgba(245, 240, 224, 0.1);
  --lavender:    #A898C8;
  --success:     #4CAF87;
  --error:       #E57373;

  --font: 'Montserrat', system-ui, sans-serif;

  --nav-h:     68px;
  --max-w:     1200px;
  --radius:    12px;
  --radius-sm: 8px;
  --trans:     0.25s ease;
}

/* ============================================================
   STARS BACKGROUND
   ============================================================ */
.stars-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.star {
  position: absolute;
  border-radius: 50%;
  will-change: opacity, transform;
}

/* Twinkle: sharp fade in/out */
@keyframes star-twinkle {
  0%, 100% { opacity: 1;    transform: scale(1); }
  45%       { opacity: 0.05; transform: scale(0.4); }
  55%       { opacity: 0.05; transform: scale(0.4); }
}

/* Pulse: gentle breathe */
@keyframes star-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%       { opacity: 0.15; transform: scale(0.6); }
}

/* Drift: float while fading */
@keyframes star-drift {
  0%, 100% { opacity: 0.7;  transform: translateY(0)   scale(1); }
  33%       { opacity: 1;    transform: translateY(-4px) scale(1.15); }
  66%       { opacity: 0.25; transform: translateY(3px)  scale(0.85); }
}

/* Ensure all page content sits above the star layer */
body > *:not(.stars-layer) { position: relative; z-index: 1; }

/* ============================================================
   IMAGE / CARD REVEAL ANIMATIONS (Intersection Observer)
   ============================================================ */

/* Fade up — product cards, cart items, confirmation items */
.img-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.img-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Slide from right — hero image card */
.img-reveal-right {
  opacity: 0;
  transform: translateX(48px) scale(0.96);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.img-reveal-right.in-view {
  opacity: 1;
  transform: translateX(0) scale(1);
}

/* Slide from left — story image */
.img-reveal-left {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.img-reveal-left.in-view {
  opacity: 1;
  transform: translateX(0);
}

/* Zoom in — gallery images, also-like cards */
.img-reveal-zoom {
  opacity: 0;
  transform: scale(0.88);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.img-reveal-zoom.in-view {
  opacity: 1;
  transform: scale(1);
}

/* 2. RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
  min-height: 100vh;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: var(--font); cursor: pointer; }
input, select, textarea { font-family: var(--font); }

/* 3. TYPOGRAPHY */
h1 {
  font-family: var(--font);
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
h2 {
  font-family: var(--font);
  font-size: clamp(1.75rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
}
h3 {
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}
p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* 4. UTILITIES */
.eyebrow {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.section-header { margin-bottom: 48px; }

/* BADGES */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-bestseller {
  background: rgba(107, 79, 92, 0.3);
  color: #D4A5B5;
  border: 1px solid rgba(107, 79, 92, 0.6);
}
.badge-new {
  background: rgba(168, 152, 200, 0.2);
  color: var(--lavender);
  border: 1px solid rgba(168, 152, 200, 0.5);
}
.badge-premium {
  background: rgba(107, 79, 92, 0.35);
  color: #D4A5B5;
  border: 1px solid rgba(107, 79, 92, 0.55);
  font-size: 0.58rem;
}

/* BREADCRUMB */
.breadcrumb {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.breadcrumb span { margin: 0 6px; opacity: 0.5; }

/* 5. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  transition: var(--trans);
  white-space: nowrap;
  cursor: pointer;
  line-height: 1;
}
.btn-rose {
  background: var(--rose);
  color: var(--text);
}
.btn-rose:hover {
  background: var(--rose-hover);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(245, 240, 224, 0.07);
  color: var(--text);
  border: 1px solid rgba(245, 240, 224, 0.18);
}
.btn-ghost:hover { background: rgba(245, 240, 224, 0.13); }
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid rgba(245, 240, 224, 0.35);
}
.btn-outline:hover {
  background: rgba(245, 240, 224, 0.07);
  border-color: rgba(245, 240, 224, 0.55);
}
.btn-sm   { padding: 9px 18px; font-size: 0.68rem; }
.btn-lg   { padding: 15px 36px; font-size: 0.78rem; }
.btn-full { width: 100%; }

/* 6. NAVBAR */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(26, 31, 59, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background var(--trans), box-shadow var(--trans);
}
.navbar.scrolled {
  background: rgba(20, 23, 41, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img {
  height: 36px;
  width: auto;
  display: block;
}
.logo-moon {
  width: 18px; height: 18px;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  transition: color var(--trans);
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.icon-btn {
  background: none;
  border: none;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  color: var(--text-muted);
  transition: var(--trans);
  position: relative;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover {
  color: var(--text);
  background: rgba(245, 240, 224, 0.07);
}
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--rose);
  color: var(--text);
  font-size: 0.58rem;
  font-weight: 700;
  min-width: 15px; height: 15px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 2px;
}
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  margin-left: 4px;
}
.hamburger span {
  display: block;
  width: 21px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

/* SECURE NAV BADGE */
.nav-secure {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--success);
  letter-spacing: 0.06em;
}
.nav-secure svg { width: 13px; height: 13px; }

/* MOBILE MENU */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  z-index: 199;
  background: var(--bg-dark);
  padding: 28px 24px 32px;
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 22px; }
.mobile-menu ul a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

/* TOAST */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(70px);
  background: var(--bg-card);
  color: var(--text);
  border: 1px solid rgba(245, 240, 224, 0.12);
  padding: 12px 26px;
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  z-index: 9999;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* ============================================================
   HOME — HERO
   ============================================================ */
.hero {
  min-height: auto;
  padding-top: calc(var(--nav-h) + 32px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}


.hero-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px 5px 9px;
  background: rgba(107, 79, 92, 0.25);
  border: 1px solid rgba(107, 79, 92, 0.5);
  border-radius: 50px;
  width: fit-content;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lavender);
  flex-shrink: 0;
}
.hero-badge-text {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #D4A5B5;
}

.hero-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 420px;
  line-height: 1.78;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* Social proof */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-social-proof .stars {
  color: #F4C430;
  font-size: 0.76rem;
  letter-spacing: 1px;
}
.hero-social-proof span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Image card */
.hero-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.hero-img-card {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  will-change: transform;
  animation: hero-float 4.5s ease-in-out 1s infinite;
  position: relative;
}

@keyframes hero-float {
  0%, 100% {
    transform: translateY(0px);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  }
  50% {
    transform: translateY(-20px);
    box-shadow: 0 52px 100px rgba(0, 0, 0, 0.28);
  }
}
.hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  display: block;
}

/* Backdrop glow/shadow behind hero image (subtle, blurred) */
.hero-img-card::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6%;
  transform: translateX(-50%);
  width: 72%;
  height: 44%;
  background: radial-gradient(closest-side, rgba(107,79,92,0.18), rgba(26,31,59,0));
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

/* Ensure the image sits above the backdrop */
.hero-img { position: relative; z-index: 2; }

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  .hero-img-card { animation: none; }
  .hero-img-card::before { filter: blur(6px); }
}

/* HOME — FLAVOURS */
.flavours {
  padding: 80px 40px;
  background: #1B2244;
  width: 100%;
}
.flavours .section-header,
.flavours .products-grid {
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* PRODUCT CARD */
.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--trans), box-shadow var(--trans);
  position: relative;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.product-img-link { display: block; }
.product-img-wrap {
  height: 300px;
  overflow: hidden;
  position: relative;
}
/* Gradient fallbacks for when images don't load */
.frap-bg   { background: linear-gradient(145deg, #0D1028 0%, #1B2248 100%); }
.chai-bg   { background: linear-gradient(145deg, #2A1A0D 0%, #4A2E18 100%); }
.matcha-bg { background: linear-gradient(145deg, #0D1C10 0%, #1A3820 100%); }
.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--trans);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.05);
}

/* Card body — home page: price + button side by side */
.product-card-body { padding: 22px 24px 24px; }
.product-card-body h3 { color: var(--text); margin-bottom: 6px; font-size: 1.15rem; }
.product-card-body h3 a { color: inherit; }
.product-card-body > p { font-size: 0.84rem; font-style: italic; color: var(--text-muted); margin-bottom: 18px; }
.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
/* Shop page variant: price above, full-width button below */
.product-card-footer.stacked {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}
.product-card-footer.stacked .price {
  font-size: 1.35rem;
}
.price {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: block;
}

/* HOME — STORY */
.story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 60px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.story-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.story-text .eyebrow { margin-bottom: 0; }
.story-text h2 { color: var(--text); line-height: 1.08; }
.story-text p { color: var(--text-muted); max-width: 440px; font-size: 0.9rem; line-height: 1.75; }
.story-img-wrap {
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
  will-change: transform;
  animation: hero-float 5s ease-in-out 1.2s infinite;
}
.story-img-wrap img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* HOME — NEWSLETTER */
.newsletter {
  background: var(--bg);
  padding: 0 40px 80px;
}
.newsletter-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  background: var(--footer-bg);
  border-radius: var(--radius);
  padding: 50px 64px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.newsletter-text { display: flex; flex-direction: column; gap: 6px; }
.newsletter h3 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
  text-align: left;
}
.newsletter p {
  color: rgba(245, 240, 224, 0.55);
  font-size: 0.86rem;
  text-align: left;
}
.nl-form {
  display: flex;
  gap: 10px;
  max-width: 460px;
}
.nl-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: rgba(245, 240, 224, 0.08);
  border: 1px solid rgba(245, 240, 224, 0.15);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--trans);
}
.nl-input::placeholder { color: rgba(245, 240, 224, 0.35); }
.nl-input:focus { border-color: rgba(245, 240, 224, 0.35); }

/* FOOTER */
.footer { background: var(--footer-bg); padding: 52px 40px 36px; }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 32px;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo .logo-img {
  height: 33px;
  width: auto;
}
.footer-tagline {
  font-size: 0.76rem;
  color: rgba(245, 240, 224, 0.38);
  margin-top: 6px;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-nav { display: flex; gap: 52px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 13px; }
.footer-nav ul li:first-child {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 224, 0.4);
  margin-bottom: 4px;
}
.footer-nav a {
  font-size: 0.8rem;
  color: rgba(245, 240, 224, 0.45);
  transition: color var(--trans);
}
.footer-nav a:hover { color: rgba(245, 240, 224, 0.85); }
.footer-copy {
  font-size: 0.7rem;
  color: rgba(245, 240, 224, 0.28);
  text-align: right;
  align-self: flex-end;
}

/* ============================================================
   SHOP PAGE
   ============================================================ */
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; }
.shop-header {
  padding: 8px 40px 20px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.shop-header h1 { margin-bottom: 6px; font-size: clamp(2rem, 4vw, 2.8rem); }
.shop-header p { font-size: 0.95rem; }

.shop-filters {
  display: flex;
  gap: 8px;
  padding: 0 40px 24px;
  max-width: var(--max-w);
  margin: 0 auto;
  flex-wrap: wrap;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--trans);
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--rose);
  color: var(--text);
  border-color: var(--rose);
}
.shop-grid { padding: 0 40px 60px; max-width: var(--max-w); margin: 0 auto; }
.shop-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shop-products.hidden { display: none; }

.subscribe-banner { max-width: var(--max-w); margin: 0 auto 20px; padding: 0 40px; }
.subscribe-banner-inner {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.subscribe-banner-inner h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.subscribe-banner-inner p { font-size: 0.84rem; }

/* ============================================================
   PRODUCT DETAIL PAGE
   ============================================================ */
.product-detail { padding-top: var(--nav-h); min-height: 100vh; }
.product-detail-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
}
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
/* Gallery — full bleed */
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  height: calc(100vh - var(--nav-h) - 120px);
  min-height: 460px;
  max-height: 680px;
}
.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-thumbs { display: flex; gap: 10px; margin-top: 10px; }
.gallery-thumb {
  flex: 1;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--trans), opacity var(--trans);
}
.gallery-thumb:not(.active) { opacity: 0.65; }
.gallery-thumb:not(.active):hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--rose); opacity: 1; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Product info */
.product-info { display: flex; flex-direction: column; gap: 16px; }
.product-flavor-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.product-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.05;
  margin-top: -4px;
}
.product-subtitle {
  font-size: 0.9rem;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.65;
  margin-top: -6px;
}
.product-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stars { color: #F4C430; font-size: 0.88rem; letter-spacing: 2px; }
.review-count { font-size: 0.78rem; color: var(--text-muted); }
.product-price-lg { font-size: 1.9rem; font-weight: 800; }

/* Purchase options — radio card style */
.purchase-section { display: flex; flex-direction: column; gap: 8px; }
.purchase-section-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.po-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--trans), background var(--trans);
}
.po-card.active { border-color: var(--rose); background: rgba(107,79,92,0.08); }
.po-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
}
.po-radio {
  width: 17px; height: 17px;
  border-radius: 50%;
  border: 2px solid rgba(245,240,224,0.25);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color var(--trans);
}
.po-card.active .po-radio { border-color: var(--rose); }
.po-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--rose);
  opacity: 0;
  transition: opacity var(--trans);
}
.po-card.active .po-dot { opacity: 1; }
.po-label { font-size: 0.86rem; font-weight: 600; color: var(--text); flex: 1; }
.po-price { font-size: 0.86rem; font-weight: 700; color: var(--text); }
.po-frequency {
  padding: 10px 16px 14px 44px;
  border-top: 1px solid var(--border);
}
.po-freq-label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.frequency-tabs { display: flex; gap: 8px; }
.freq-tab {
  flex: 1;
  padding: 7px 4px;
  text-align: center;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(245,240,224,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--trans);
}
.freq-tab.active { background: var(--rose); color: var(--text); border-color: var(--rose); }

/* Quantity + Add to Cart row */
.product-actions { display: flex; flex-direction: column; gap: 10px; }
.qty-atc-row { display: flex; gap: 10px; align-items: stretch; }
.qty-selector {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
  flex-shrink: 0;
}
.qty-btn {
  width: 40px; height: 100%;
  min-height: 48px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 300;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--trans);
}
.qty-btn:hover { background: rgba(245,240,224,0.08); }
.qty-num {
  min-width: 40px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  padding: 0 6px;
}

/* Product features row */
.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding-top: 2px;
  border-top: 1px solid var(--border);
}
.product-features span {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Save badge (legacy, kept for sticky atc) */
.save-badge {
  background: var(--rose);
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
}

.product-description { border-top: 1px solid var(--border); padding-top: 22px; }
.product-description h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.product-description p { line-height: 1.8; font-size: 0.9rem; }

/* STICKY ADD TO CART BAR */
.sticky-atc {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 150;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  backdrop-filter: blur(12px);
}
.sticky-atc.visible { transform: translateY(0); }
.sticky-atc-price {
  font-size: 1.3rem;
  font-weight: 800;
}
.sticky-atc-name {
  font-size: 0.84rem;
  color: var(--text-muted);
}

/* ── Product tabs (Description / Ingredients / Reviews / Shipping) ── */
.product-tabs {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px 56px;
}
.tabs-nav {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
  gap: 0;
}
.tab-btn {
  padding: 14px 22px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: color var(--trans), border-color var(--trans);
  white-space: nowrap;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--text); border-bottom-color: var(--text); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-panel p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 720px;
}
.tab-panel ul {
  list-style: disc;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tab-panel ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.reviews-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.review-card .stars { font-size: 0.76rem; letter-spacing: 1px; }
.review-card p { font-size: 0.86rem; margin-top: 8px; }
.review-author { font-size: 0.74rem; color: var(--text-dim); margin-top: 6px; }

.also-like {
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 40px 80px;
}
.also-like h4 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.also-like-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: var(--max-w);
}
.also-like-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 20px;
  transition: transform var(--trans);
}
.also-like-card:hover { transform: translateY(-4px); }
.also-like-thumb {
  flex: 0 0 170px;
  height: 170px;
  border-radius: 20px;
  overflow: hidden;
  background: none;
}
.also-like-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.also-like-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.also-like-card .card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.also-like-card p {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
}
.also-like-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}
.also-like-card .price {
  font-size: 1rem;
  font-weight: 700;
}
.also-like-card .btn {
  padding: 10px 18px;
  width: auto;
}
@media (max-width: 920px) {
  .also-like-card {
    flex-direction: column;
    align-items: stretch;
  }
  .also-like-thumb {
    width: 100%;
    min-height: 120px;
    box-shadow: none;
  }
  .also-like-footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ============================================================
   CART PAGE
   ============================================================ */
.cart-page { padding-top: var(--nav-h); min-height: 100vh; }
.cart-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 40px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.cart-heading { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: 4px; }
.cart-subcount { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 28px; }
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.cart-item {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--bg-card);
  padding: 20px;
}
.cart-item + .cart-item { border-top: 1px solid var(--border); }
.cart-item-img {
  width: 84px; height: 84px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding: 8px;
}
.cart-item-img img { max-height: 68px; width: auto; object-fit: contain; }
.cart-item-info h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 4px; }
.cart-item-info p { font-size: 0.78rem; }
.cart-item-remove {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--trans);
}
.cart-item-remove:hover { color: #E57373; }
.cart-item-right { text-align: right; }
.cart-item-price { font-size: 1.05rem; font-weight: 700; }
.continue-link {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: var(--trans);
}
.continue-link:hover { color: var(--text); border-bottom-color: rgba(245, 240, 224, 0.3); }

.order-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.order-summary h3 { font-size: 1rem; font-weight: 700; margin-bottom: 22px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.summary-row:last-of-type { border-bottom: none; }
.summary-row .label { color: var(--text-muted); }
.summary-row .value { font-weight: 600; }
.summary-row .free { color: var(--success); font-weight: 600; }
.summary-row .savings-val { color: #85C49A; font-weight: 600; }
.summary-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  margin-top: 8px;
  border-top: 2px solid rgba(245, 240, 224, 0.12);
}
.summary-total .label { font-size: 0.95rem; font-weight: 700; }
.summary-total .total-val { font-size: 1.55rem; font-weight: 800; }
.summary-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.checkout-page { padding-top: var(--nav-h); min-height: 100vh; }
.checkout-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 52px 40px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.checkout-steps {
  display: flex;
  align-items: center;
  margin-bottom: 36px;
  gap: 4px;
  flex-wrap: wrap;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.step.active { color: var(--text); }
.step.done { color: var(--success); }
.step-num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.66rem;
  font-weight: 700;
  flex-shrink: 0;
}
.step.active .step-num { background: var(--rose); border-color: var(--rose); color: var(--text); }
.step.done .step-num  { background: var(--success); border-color: var(--success); color: white; }
.step-sep { width: 28px; height: 1px; background: var(--border); margin: 0 6px; }

.checkout-form { display: flex; flex-direction: column; gap: 24px; }
.checkout-block {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 28px;
}
.checkout-block h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-input {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.88rem;
  outline: none;
  transition: border-color var(--trans);
  width: 100%;
}
.form-input::placeholder { color: var(--text-dim); }
.form-input:focus { border-color: rgba(245, 240, 224, 0.3); }

.checkout-terms {
  font-size: 0.72rem;
  color: var(--text-dim);
  text-align: center;
  margin-top: -8px;
}
.checkout-terms a { color: var(--text-muted); text-decoration: underline; }

.checkout-summary {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}
.checkout-summary h3 { font-size: 0.9rem; font-weight: 700; margin-bottom: 18px; }
.checkout-item-mini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.checkout-item-mini:last-of-type { border-bottom: none; }
.checkout-item-mini img {
  width: 46px; height: 46px;
  object-fit: contain;
  border-radius: 6px;
  background: var(--bg);
  padding: 4px;
  flex-shrink: 0;
}
.checkout-mini-info { flex: 1; min-width: 0; }
.checkout-mini-info h5 {
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.checkout-mini-info p { font-size: 0.74rem; }
.checkout-mini-price { font-size: 0.84rem; font-weight: 700; flex-shrink: 0; }
.checkout-divider { height: 1px; background: var(--border); margin: 14px 0; }
.checkout-summary .summary-row { padding: 7px 0; font-size: 0.81rem; }
.checkout-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  margin-top: 8px;
}
.checkout-total .label { font-size: 0.86rem; font-weight: 700; }
.checkout-total .total-val { font-size: 1.25rem; font-weight: 800; }

/* ============================================================
   ORDER CONFIRMATION PAGE
   ============================================================ */
.confirm-page {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.confirm-inner {
  max-width: 680px;
  width: 100%;
  padding: 56px 32px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.confirm-check {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(76, 175, 135, 0.12);
  border: 2px solid var(--success);
  display: flex; align-items: center; justify-content: center;
  color: var(--success);
  margin: 0 auto;
}
.confirm-check svg { width: 28px; height: 28px; }
.confirm-heading { text-align: center; }
.confirm-heading h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 8px;
}
.confirm-heading p { color: var(--text-muted); }
.confirm-delivery {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

.confirm-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}
.confirm-card-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.confirm-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
}
.confirm-item:last-child { border-bottom: none; }
.confirm-item img {
  width: 54px; height: 54px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 8px;
  padding: 6px;
  flex-shrink: 0;
}
.confirm-item-info h5 { font-size: 0.88rem; font-weight: 700; }
.confirm-item-info p { font-size: 0.76rem; }
.confirm-item-price {
  margin-left: auto;
  font-size: 0.95rem;
  font-weight: 700;
}
.confirm-summary {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 14px;
}
.confirm-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}
.confirm-summary-row .label { font-size: 0.82rem; color: var(--text-muted); }
.confirm-summary-row .value { font-size: 0.82rem; font-weight: 600; }
.confirm-summary-row .free-val { color: var(--success); font-weight: 600; }
.confirm-total-final {
  display: flex;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 8px;
  border-top: 1px solid var(--border);
}
.confirm-total-final .label { font-size: 0.9rem; font-weight: 700; }
.confirm-total-final .total-val { font-size: 1.15rem; font-weight: 800; }

.confirm-next h4 {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.next-steps { display: flex; flex-direction: column; gap: 20px; }
.next-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.next-step-num {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(107, 79, 92, 0.25);
  border: 1px solid rgba(107, 79, 92, 0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.76rem;
  font-weight: 700;
  color: #D4A5B5;
  flex-shrink: 0;
  margin-top: 2px;
}
.next-step-text h5 { font-size: 0.88rem; font-weight: 700; margin-bottom: 3px; }
.next-step-text p { font-size: 0.8rem; }
.confirm-actions { display: flex; gap: 12px; }

/* Inline summary on confirmation */
.confirm-summary-inline {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 14px 0 12px;
  border-top: 1px solid var(--border);
  margin-top: 2px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 60px;
    text-align: center;
    gap: 40px;
  }
  .hero-text { align-items: center; }
  .hero-badge { margin: 0 auto; }
  .hero-desc { max-width: 100%; }
  .hero-ctas { justify-content: center; }
  .hero-social-proof { justify-content: center; }
  .hero-img-card { max-width: 460px; }
  .hero-img { height: 300px; }

  .story { grid-template-columns: 1fr; gap: 32px; padding: 48px 40px; }
  .story-text p { max-width: 100%; }

  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 24px; }
  .footer-brand { align-items: center; }
  .footer-nav { justify-content: center; }
  .footer-copy { text-align: center; }

  .product-detail-inner { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; max-width: 440px; margin: 0 auto; }

  .cart-inner { grid-template-columns: 1fr; }
  .order-summary { position: static; }

  .checkout-inner { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .navbar { padding: 0 20px; }
  .nav-links { display: none; }
  .icon-btn.search-btn, .icon-btn.account-btn { display: none; }
  .hamburger { display: flex; }

  .hero { padding-left: 20px; padding-right: 20px; }
  .hero-img-wrap { order: -1; }
  .flavours { padding: 60px 20px; background: #1B2244; }
  .story { padding: 40px 20px; gap: 28px; }
  .newsletter { padding: 0 20px 60px; }
  .newsletter-inner { padding: 36px 28px; }
  .nl-form { max-width: 100%; }
  .footer { padding: 40px 20px 28px; }

  .products-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .shop-products { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .shop-header { padding: 28px 20px 16px; }
  .shop-filters { padding: 0 20px 20px; }
  .shop-grid { padding: 0 20px 48px; }
  .subscribe-banner { padding: 0 20px; }
  .subscribe-banner-inner { flex-direction: column; align-items: flex-start; }

  .product-detail-inner { padding: 32px 20px; gap: 32px; }
  .also-like { padding: 40px 20px 80px; }
  .also-like-grid { grid-template-columns: 1fr 1fr; max-width: 100%; }
  .sticky-atc { padding: 12px 20px; }

  .cart-inner { padding: 32px 20px; }
  .checkout-inner { padding: 32px 20px; }
  .form-grid { grid-template-columns: 1fr; }

  .confirm-inner { padding: 36px 20px 80px; }
  .confirm-actions { flex-direction: column; }

  .nl-form { flex-direction: row; flex-wrap: wrap; }

  .checkout-steps .step-label { display: none; }
  .step { gap: 4px; }
}

@media (max-width: 480px) {
  .hero-img { height: 240px; }
  .hero-img-card { border-radius: 14px; }
  .story-img-wrap img { height: 280px; }
  .products-grid, .shop-products { max-width: 100%; }
  .product-gallery { max-width: 100%; }
}
