:root {
  --cream: #f5f0e8;
  --dark: #1a1009;
  --brown: #3d1f00;
  --espresso: #2c1400;
  --gold: #c8922a;
  --latte: #c4a882;
  --foam: #ede6d6;
  --text: #2a1a08;
  --muted: #7a6550;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  overflow-x: hidden;
}

/* ── CURSOR ── */
.cursor {
  width: 12px; height: 12px;
  background: var(--gold);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: multiply;
}
.cursor.hover { width: 40px; height: 40px; background: var(--gold); opacity: 0.4; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
  background: transparent;
  transition: background 0.4s, backdrop-filter 0.4s;
}
nav.scrolled {
  background: rgba(245,240,232,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,146,42,0.15);
}
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900;
  color: var(--cream); letter-spacing: 0.15em;
  text-decoration: none;
  transition: color 0.4s;
}
nav.scrolled .logo { color: var(--espresso); }
.nav-links { display: flex; gap: 2.5rem; list-style: none; }
.nav-links a {
  color: var(--cream); font-size: 0.85rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 0.4s;
}
nav.scrolled .nav-links a { color: var(--text); }
.nav-links a:hover { color: var(--gold); }
.nav-right { display: flex; gap: 1.2rem; align-items: center; }
.cart-btn {
  position: relative; background: var(--gold);
  border: none; cursor: pointer; padding: 0.6rem 1.4rem;
  border-radius: 2rem; color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.05em;
  transition: background 0.3s, transform 0.2s;
}
.cart-btn:hover { background: var(--brown); transform: translateY(-1px); }
.cart-count {
  position: absolute; top: -6px; right: -6px;
  background: var(--espresso); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.7rem; display: flex; align-items: center; justify-content: center;
}

/* ── HERO ── */
#hero {
  position: relative; height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
#hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(26,16,9,0.75) 0%, rgba(26,16,9,0.4) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; text-align: center; color: #fff;
  animation: heroIn 1.2s ease both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: 0.75rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 900; line-height: 0.95;
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--gold); }
.hero-sub { font-size: 1.05rem; color: rgba(255,255,255,0.75); max-width: 480px; margin: 0 auto 2.5rem; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--gold); color: #fff;
  padding: 0.9rem 2.5rem; border-radius: 3rem;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em;
  text-decoration: none; border: none; cursor: pointer;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}
.btn-primary:hover { background: #fff; color: var(--gold); transform: translateY(-2px); }
.btn-outline {
  background: transparent; color: #fff;
  padding: 0.9rem 2.5rem; border-radius: 3rem;
  font-weight: 600; font-size: 0.9rem; letter-spacing: 0.06em;
  text-decoration: none; border: 2px solid rgba(255,255,255,0.5); cursor: pointer;
  transition: all 0.3s;
  display: inline-block;
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.scroll-hint {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  color: rgba(255,255,255,0.5); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
  animation: scrollPulse 2s ease infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:0.3} 50%{opacity:1} }

/* ── SECTIONS ── */
section { padding: 7rem 4rem; }
.section-label {
  font-size: 0.7rem; letter-spacing: 0.35em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  line-height: 1.1; margin-bottom: 1rem;
}
.section-sub { color: var(--muted); max-width: 500px; line-height: 1.7; }

/* ── COFFEE QUIZ ── */
#quiz { background: var(--espresso); color: var(--cream); }
#quiz .section-title { color: var(--cream); }
#quiz .section-label { color: var(--gold); }
.quiz-container { max-width: 700px; margin: 3rem auto 0; }
.quiz-progress { height: 3px; background: rgba(255,255,255,0.15); border-radius: 2px; margin-bottom: 2.5rem; }
.quiz-progress-bar { height: 100%; background: var(--gold); border-radius: 2px; transition: width 0.5s ease; }
.quiz-step { display: none; animation: fadeInUp 0.5s ease both; }
.quiz-step.active { display: block; }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
.quiz-q {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; color: var(--cream); margin-bottom: 2rem;
}
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.quiz-option {
  padding: 1.2rem 1.5rem; border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 0.75rem; cursor: pointer;
  color: var(--cream); font-size: 0.9rem;
  transition: all 0.3s; background: transparent;
  font-family: 'DM Sans', sans-serif;
  text-align: left;
}
.quiz-option:hover, .quiz-option.selected { border-color: var(--gold); background: rgba(200,146,42,0.15); }
.quiz-option .opt-emoji { font-size: 1.5rem; margin-bottom: 0.4rem; display: block; }
.quiz-result { text-align: center; }
.quiz-result .result-badge {
  display: inline-block; background: var(--gold);
  color: #fff; padding: 0.4rem 1.2rem; border-radius: 2rem;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem;
}
.quiz-result h3 { font-family: 'Playfair Display', serif; font-size: 2.5rem; color: var(--cream); margin-bottom: 1rem; }
.quiz-result p { color: rgba(245,240,232,0.7); line-height: 1.7; margin-bottom: 2rem; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 2rem; }
.quiz-back {
  background: transparent; color: rgba(255,255,255,0.5);
  border: none; cursor: pointer; font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif;
  transition: color 0.3s;
}
.quiz-back:hover { color: var(--cream); }
.quiz-next {
  background: var(--gold); color: #fff;
  border: none; cursor: pointer; padding: 0.75rem 2rem;
  border-radius: 2rem; font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s;
}
.quiz-next:hover { background: var(--cream); color: var(--gold); }

/* ── PRODUCTS ── */
#products { background: var(--foam); }
.filters {
  display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 3rem; margin-top: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.4rem; border-radius: 2rem;
  border: 1.5px solid var(--latte); background: transparent;
  color: var(--muted); font-size: 0.8rem; font-weight: 500;
  cursor: pointer; transition: all 0.3s;
  font-family: 'DM Sans', sans-serif; letter-spacing: 0.05em; text-transform: uppercase;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--espresso); color: var(--cream); border-color: var(--espresso);
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}
.product-card {
  background: #fff; border-radius: 1.25rem; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(44,20,0,0.12); }
.product-img {
  position: relative; overflow: hidden; height: 230px;
}
.product-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
}
.product-card:hover .product-img img { transform: scale(1.07); }
.product-badge {
  position: absolute; top: 1rem; left: 1rem;
  background: var(--gold); color: #fff;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 2rem;
}
.wishlist-btn {
  position: absolute; top: 1rem; right: 1rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.9); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: all 0.3s;
}
.wishlist-btn:hover, .wishlist-btn.active { background: var(--gold); }
.product-info { padding: 1.4rem; }
.product-origin {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.4rem;
}
.product-name { font-family: 'Playfair Display', serif; font-size: 1.15rem; margin-bottom: 0.5rem; }
.product-notes { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.8rem; }
.roast-bar { margin-bottom: 1rem; }
.roast-label { font-size: 0.7rem; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 0.3rem; }
.roast-track { height: 4px; background: var(--foam); border-radius: 2px; overflow: hidden; }
.roast-fill { height: 100%; background: linear-gradient(to right, #f5c842, var(--brown)); border-radius: 2px; }
.product-footer { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-size: 1.2rem; font-weight: 700; color: var(--espresso); }
.add-to-cart {
  background: var(--espresso); color: var(--cream);
  border: none; cursor: pointer; padding: 0.55rem 1.2rem;
  border-radius: 2rem; font-size: 0.8rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.3s;
}
.add-to-cart:hover { background: var(--gold); }

/* ── QUICK VIEW MODAL ── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(26,16,9,0.7);
  z-index: 2000; display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all 0.3s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--cream); border-radius: 1.5rem;
  width: min(900px, 92vw); max-height: 90vh; overflow-y: auto;
  padding: 3rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem;
  transform: translateY(30px); transition: transform 0.4s;
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem;
  background: var(--foam); border: none; width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
}
.modal img { width: 100%; height: 300px; object-fit: cover; border-radius: 1rem; }
.modal-title { font-family: 'Playfair Display', serif; font-size: 2rem; margin-bottom: 0.5rem; }
.modal-origin { color: var(--gold); font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.modal-desc { color: var(--muted); line-height: 1.7; font-size: 0.9rem; margin-bottom: 1.5rem; }
.grind-select label { font-size: 0.8rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 0.5rem; }
.grind-options { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.grind-opt {
  padding: 0.4rem 1rem; border: 1.5px solid var(--latte); border-radius: 2rem;
  background: transparent; cursor: pointer; font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif; transition: all 0.3s;
}
.grind-opt:hover, .grind-opt.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.size-select label { font-size: 0.8rem; font-weight: 600; display: block; margin-bottom: 0.5rem; }
.bag-calc { font-size: 0.75rem; color: var(--gold); margin-top: 0.3rem; }
.size-options { display: flex; gap: 0.5rem; margin-bottom: 0.5rem; }
.size-opt {
  padding: 0.4rem 1rem; border: 1.5px solid var(--latte); border-radius: 2rem;
  background: transparent; cursor: pointer; font-size: 0.8rem;
  font-family: 'DM Sans', sans-serif; transition: all 0.3s;
}
.size-opt:hover, .size-opt.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.modal-footer { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.modal-price { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; }
.qty-ctrl { display: flex; align-items: center; gap: 0.75rem; }
.qty-btn {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--foam); border: none; cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.qty-btn:hover { background: var(--latte); }
.qty-num { font-weight: 600; font-size: 1rem; width: 24px; text-align: center; }

/* ── SUBSCRIPTION ── */
#subscription {
  background: linear-gradient(135deg, var(--brown) 0%, var(--espresso) 100%);
  color: var(--cream);
}
#subscription .section-title { color: var(--cream); }
.sub-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.sub-plan {
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 1.25rem; padding: 2rem;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.sub-plan:hover, .sub-plan.featured { background: rgba(200,146,42,0.15); border-color: var(--gold); }
.sub-plan.featured::before {
  content: 'MOST POPULAR';
  position: absolute; top: 1rem; right: 1rem;
  background: var(--gold); color: #fff;
  font-size: 0.6rem; letter-spacing: 0.15em; padding: 0.25rem 0.7rem; border-radius: 2rem;
}
.plan-freq { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.75rem; }
.plan-name { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--cream); margin-bottom: 1rem; }
.plan-price { font-size: 2.2rem; font-weight: 700; color: var(--cream); margin-bottom: 1.5rem; }
.plan-price span { font-size: 1rem; font-weight: 400; color: rgba(245,240,232,0.6); }
.plan-features { list-style: none; margin-bottom: 2rem; }
.plan-features li {
  font-size: 0.85rem; color: rgba(245,240,232,0.75);
  padding: 0.45rem 0; border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex; gap: 0.6rem;
}
.plan-features li::before { content: '✓'; color: var(--gold); flex-shrink: 0; }
.plan-btn {
  width: 100%; padding: 0.85rem; border-radius: 2rem;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.3);
  color: var(--cream); font-family: 'DM Sans', sans-serif;
  font-weight: 600; font-size: 0.85rem; cursor: pointer;
  transition: all 0.3s;
}
.sub-plan:hover .plan-btn, .sub-plan.featured .plan-btn {
  background: var(--gold); border-color: var(--gold);
}

/* ── ORIGIN MAP ── */
#origins { background: var(--cream); text-align: center; }
.map-container { position: relative; margin-top: 3rem; max-width: 900px; margin-left: auto; margin-right: auto; }
.map-img { width: 100%; filter: sepia(40%) saturate(80%); border-radius: 1rem; }
.map-pin {
  position: absolute; cursor: pointer;
  transform: translate(-50%, -100%);
}
.pin-dot {
  width: 14px; height: 14px; background: var(--gold); border-radius: 50%;
  border: 3px solid #fff; box-shadow: 0 2px 8px rgba(200,146,42,0.6);
  transition: transform 0.3s;
  animation: pinPulse 2s ease infinite;
}
@keyframes pinPulse {
  0%,100%{box-shadow:0 2px 8px rgba(200,146,42,0.4)}
  50%{box-shadow:0 2px 20px rgba(200,146,42,0.8), 0 0 0 8px rgba(200,146,42,0.15)}
}
.map-pin:hover .pin-dot { transform: scale(1.4); }
.pin-tooltip {
  position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%);
  background: var(--espresso); color: var(--cream);
  padding: 0.6rem 1rem; border-radius: 0.5rem; white-space: nowrap;
  font-size: 0.8rem; font-weight: 500;
  opacity: 0; visibility: hidden; transition: all 0.3s;
  pointer-events: none;
}
.map-pin:hover .pin-tooltip { opacity: 1; visibility: visible; }
.pin-tooltip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--espresso);
}

/* ── FLAVOR WHEEL ── */
#flavor { background: var(--foam); }
.flavor-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-top: 3rem; }
.flavor-wheel-wrap { position: relative; display: flex; align-items: center; justify-content: center; }
#flavorCanvas { border-radius: 50%; }
.flavor-legend { display: flex; flex-direction: column; gap: 1rem; }
.flavor-item {
  display: flex; align-items: center; gap: 1rem; cursor: pointer;
  padding: 0.8rem 1rem; border-radius: 0.75rem; transition: background 0.2s;
}
.flavor-item:hover { background: rgba(200,146,42,0.1); }
.flavor-swatch { width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0; }
.flavor-name { font-weight: 600; font-size: 0.9rem; }
.flavor-desc { font-size: 0.8rem; color: var(--muted); }

/* ── BREWING GUIDE ── */
#brewing { background: var(--dark); color: var(--cream); }
#brewing .section-title { color: var(--cream); }
.brew-tabs { display: flex; gap: 0.5rem; margin-top: 2rem; margin-bottom: 3rem; flex-wrap: wrap; }
.brew-tab {
  padding: 0.6rem 1.5rem; border-radius: 2rem;
  background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6); cursor: pointer; font-size: 0.85rem;
  font-family: 'DM Sans', sans-serif; transition: all 0.3s;
}
.brew-tab:hover, .brew-tab.active { background: var(--gold); border-color: var(--gold); color: #fff; }
.brew-content { display: none; animation: fadeInUp 0.4s ease; }
.brew-content.active { display: grid; grid-template-columns: 1fr 1.4fr; gap: 4rem; align-items: start; }
.brew-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.brew-spec {
  background: rgba(255,255,255,0.05); border-radius: 0.75rem; padding: 1.2rem;
  border: 1px solid rgba(255,255,255,0.08);
}
.brew-spec-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.brew-spec-val { font-size: 1.3rem; font-weight: 700; color: var(--gold); }
.brew-spec-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-top: 0.2rem; }
.brew-steps { counter-reset: step; }
.brew-step {
  display: flex; gap: 1.5rem; margin-bottom: 1.5rem;
  padding-bottom: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.brew-step:last-child { border-bottom: none; }
.step-num {
  flex-shrink: 0; width: 36px; height: 36px;
  background: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
}
.step-text { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6; }
.step-text strong { color: var(--cream); }

/* ── BUNDLE BUILDER ── */
#bundle { background: var(--cream); }
.bundle-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; margin-top: 3rem; align-items: start; }
.bundle-items { display: flex; flex-direction: column; gap: 1rem; }
.bundle-item {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--foam); border-radius: 1rem; padding: 1rem 1.2rem;
  border: 1.5px solid transparent; transition: all 0.3s;
}
.bundle-item.selected { border-color: var(--gold); background: rgba(200,146,42,0.08); }
.bundle-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 0.75rem; flex-shrink: 0; }
.bundle-item-info { flex: 1; }
.bundle-item-name { font-weight: 600; font-size: 0.9rem; }
.bundle-item-sub { font-size: 0.75rem; color: var(--muted); }
.bundle-check {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--latte); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; font-size: 0.8rem; color: transparent;
  background: transparent;
}
.bundle-item.selected .bundle-check { background: var(--gold); border-color: var(--gold); color: #fff; }
.bundle-summary {
  background: var(--espresso); color: var(--cream);
  border-radius: 1.25rem; padding: 2.5rem; position: sticky; top: 6rem;
}
.bundle-summary h3 { font-family: 'Playfair Display', serif; font-size: 1.5rem; margin-bottom: 1.5rem; }
.bundle-selected-list { min-height: 100px; margin-bottom: 1.5rem; }
.bundle-sel-item {
  display: flex; justify-content: space-between;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}
.bundle-sel-item span { color: var(--gold); }
.bundle-total { display: flex; justify-content: space-between; align-items: center; font-size: 1.2rem; font-weight: 700; margin-bottom: 1.5rem; }
.bundle-discount { font-size: 0.8rem; color: var(--gold); text-align: center; margin-bottom: 1rem; }

/* ── LOYALTY ── */
#loyalty { background: var(--foam); text-align: center; }
.loyalty-card {
  max-width: 680px; margin: 3rem auto 0;
  background: linear-gradient(135deg, var(--espresso), var(--brown));
  border-radius: 1.5rem; padding: 2.5rem; color: var(--cream);
}
.loyalty-points { font-size: 4rem; font-weight: 900; color: var(--gold); font-family: 'Playfair Display', serif; }
.loyalty-label { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 1.5rem; }
.loyalty-progress-wrap { background: rgba(255,255,255,0.1); border-radius: 2rem; height: 8px; margin: 1rem 0; }
.loyalty-bar { height: 100%; background: var(--gold); border-radius: 2rem; transition: width 1s ease; }
.loyalty-milestones { display: flex; justify-content: space-between; margin-top: 2rem; }
.milestone { text-align: center; }
.milestone-pts { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.milestone-reward { font-size: 0.7rem; color: rgba(255,255,255,0.5); }

/* ── REVIEWS ── */
#reviews { background: var(--cream); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; }
.review-card {
  background: var(--foam); border-radius: 1.25rem; padding: 1.8rem;
  transition: transform 0.3s;
}
.review-card:hover { transform: translateY(-4px); }
.stars { color: var(--gold); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 0.1em; }
.review-text { font-size: 0.88rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.2rem; font-style: italic; }
.reviewer { display: flex; align-items: center; gap: 0.8rem; }
.reviewer-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--latte);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-size: 0.9rem;
}
.reviewer-name { font-weight: 600; font-size: 0.85rem; }
.reviewer-date { font-size: 0.75rem; color: var(--muted); }

/* ── STOCK TICKER ── */
.stock-bar {
  background: var(--espresso); color: var(--cream);
  padding: 0.5rem 0; overflow: hidden; white-space: nowrap;
}
.stock-inner { display: inline-block; animation: ticker 25s linear infinite; font-size: 0.8rem; }
@keyframes ticker { from{transform:translateX(0)} to{transform:translateX(-50%)} }
.stock-item { display: inline-block; margin-right: 4rem; }
.stock-low { color: var(--gold); }
.stock-sep { opacity: 0.3; margin: 0 1rem; }

/* ── CART SIDEBAR ── */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 3000; opacity: 0; visibility: hidden; transition: all 0.3s;
}
.cart-overlay.open { opacity: 1; visibility: visible; }
.cart-sidebar {
  position: fixed; right: 0; top: 0; bottom: 0; width: 420px;
  background: var(--cream); z-index: 3001;
  transform: translateX(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column; padding: 2rem;
}
.cart-overlay.open .cart-sidebar { transform: translateX(0); }
.cart-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; }
.cart-title { font-family: 'Playfair Display', serif; font-size: 1.5rem; }
.cart-close { background: var(--foam); border: none; width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.cart-items { flex: 1; overflow-y: auto; }
.cart-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--foam); }
.cart-item img { width: 70px; height: 70px; object-fit: cover; border-radius: 0.75rem; }
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.2rem; }
.cart-item-sub { font-size: 0.75rem; color: var(--muted); }
.cart-item-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.cart-item-price { font-weight: 700; color: var(--espresso); }
.cart-item-remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.8rem; text-decoration: underline; }
.cart-empty { text-align: center; padding: 3rem 0; color: var(--muted); }
.cart-empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.cart-footer { border-top: 1px solid var(--foam); padding-top: 1.5rem; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; }
.checkout-btn {
  width: 100%; padding: 1rem; background: var(--espresso); color: var(--cream);
  border: none; cursor: pointer; border-radius: 2rem;
  font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700;
  transition: background 0.3s;
}
.checkout-btn:hover { background: var(--gold); }

/* ── SHIPPING TRACKER ── */
#tracker { background: var(--foam); }
.tracker-steps { display: flex; justify-content: space-between; position: relative; margin-top: 3rem; }
.tracker-steps::before {
  content: ''; position: absolute; top: 22px; left: 10%; right: 10%;
  height: 2px; background: var(--latte); z-index: 0;
}
.tracker-progress {
  position: absolute; top: 22px; left: 10%; height: 2px;
  background: var(--gold); z-index: 1; transition: width 1.5s ease;
}
.tracker-step { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; z-index: 2; }
.step-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--foam); border: 2px solid var(--latte);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: all 0.5s;
}
.tracker-step.done .step-icon { background: var(--gold); border-color: var(--gold); }
.tracker-step.active .step-icon { background: var(--espresso); border-color: var(--espresso); animation: stepPulse 1.5s ease infinite; }
@keyframes stepPulse { 0%,100%{box-shadow:0 0 0 0 rgba(44,20,0,0.3)} 50%{box-shadow:0 0 0 10px rgba(44,20,0,0)} }
.step-label { font-size: 0.8rem; font-weight: 600; color: var(--text); }
.step-date { font-size: 0.7rem; color: var(--muted); }

/* ── GIFT CARD ── */
#gift { background: var(--cream); }
.gift-layout { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; margin-top: 3rem; align-items: start; }
.gift-card-preview {
  background: linear-gradient(135deg, var(--espresso), #5c3010);
  border-radius: 1.5rem; padding: 3rem; color: var(--cream);
  aspect-ratio: 1.6; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 20px 60px rgba(44,20,0,0.25);
  position: relative; overflow: hidden;
}
.gift-card-preview::before {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(200,146,42,0.15);
}
.gift-logo { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; letter-spacing: 0.15em; }
.gift-amount { font-size: 3rem; font-weight: 900; color: var(--gold); }
.gift-msg { font-size: 0.85rem; color: rgba(255,255,255,0.6); font-style: italic; }
.gift-form { display: flex; flex-direction: column; gap: 1rem; }
.gift-form input, .gift-form textarea, .gift-form select {
  width: 100%; padding: 0.85rem 1.2rem; border: 1.5px solid var(--latte);
  border-radius: 0.75rem; background: var(--foam);
  font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text);
  outline: none; transition: border-color 0.3s;
}
.gift-form input:focus, .gift-form textarea:focus, .gift-form select:focus { border-color: var(--gold); }
.gift-amounts { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.gift-amt {
  padding: 0.5rem 1.2rem; border: 1.5px solid var(--latte); border-radius: 2rem;
  background: transparent; cursor: pointer; font-size: 0.9rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif; transition: all 0.3s;
}
.gift-amt:hover, .gift-amt.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }

/* ── FOOTER ── */
footer {
  background: var(--espresso); color: var(--cream);
  padding: 4rem 4rem 2rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer-brand .logo-f { font-family: 'Playfair Display', serif; font-size: 2rem; font-weight: 900; letter-spacing: 0.15em; margin-bottom: 1rem; }
.footer-desc { font-size: 0.85rem; color: rgba(245,240,232,0.6); line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col a { color: rgba(245,240,232,0.6); text-decoration: none; font-size: 0.85rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; color: rgba(255,255,255,0.4); }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--espresso); color: var(--cream);
  padding: 1rem 1.5rem; border-radius: 0.75rem;
  font-size: 0.88rem; font-weight: 500;
  transform: translateY(100px); opacity: 0;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  display: flex; align-items: center; gap: 0.75rem;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-icon { color: var(--gold); }

/* ── DARK/LIGHT MODE TOGGLE ── */
.mode-toggle {
  position: fixed; bottom: 2rem; left: 2rem; z-index: 999;
  background: var(--espresso); border: none; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  transition: all 0.3s;
}
.mode-toggle:hover { transform: scale(1.1); background: var(--gold); }

body.light-roast {
  --cream: #fafafa;
  --foam: #f0f0f0;
  --text: #1a1009;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  section { padding: 4rem 1.5rem; }
  nav { padding: 1rem 1.5rem; }
  .nav-links { display: none; }
  .sub-plans { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .bundle-layout, .gift-layout, .brew-content.active, .flavor-layout { grid-template-columns: 1fr; }
  .tracker-steps { flex-direction: column; gap: 1.5rem; }
  .tracker-steps::before, .tracker-progress { display: none; }
  .modal { grid-template-columns: 1fr; }
  .cart-sidebar { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
