/* Besa Coffee Roasters — custom site styles */
:root {
  --black: #050505;
  --panel: #0c0b09;
  --ink: #e6dcc3;
  --muted: #a39e93;
  --gold: #c9a15f;
  --gold-deep: #7d6229;
  --gold-ink: #191106;
  --line: rgba(201, 161, 95, 0.28);
  --serif: "Bodoni Moda", Didot, "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--black);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.94);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; display: block; }
.brand-name {
  font-family: var(--serif); font-size: 22px; letter-spacing: 0.28em;
  color: var(--ink); font-weight: 500;
}
.nav { display: flex; align-items: center; gap: 34px; }
.nav a.nav-link {
  text-decoration: none; color: var(--muted); font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase; transition: color 0.2s;
}
.nav a.nav-link:hover { color: var(--gold); }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 12px 10px; -webkit-tap-highlight-color: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--sans); font-weight: 600;
  font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 15px 38px; border-radius: 999px; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
  cursor: pointer; border: 1px solid transparent; text-align: center;
}
.btn-gold { background: var(--gold); color: var(--gold-ink); }
.btn-gold:hover { background: #d8b271; box-shadow: 0 6px 24px rgba(201, 161, 95, 0.35); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--gold); border-color: var(--gold); }
.btn-outline:hover { background: rgba(201, 161, 95, 0.12); transform: translateY(-1px); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh; min-height: 92svh;
  display: flex; align-items: center;
  background: url("images/hero-espresso.webp") center 30% / cover no-repeat, var(--black);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.45) 42%, rgba(0,0,0,0.05) 75%),
              linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 30%);
}
.hero-content { position: relative; z-index: 1; max-width: 640px; }
.hero h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(42px, 6vw, 68px); line-height: 1.08; color: #ece2cb;
  margin-bottom: 18px; letter-spacing: 0.01em;
}
.hero p { color: #e8e2d5; font-size: 18px; margin-bottom: 34px; max-width: 440px; }

/* ---------- Product cards (homepage) ---------- */
.shop { padding: 40px 0 20px; }
.product-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding: 70px 0;
}
.product-card + .product-card { border-top: 1px solid rgba(240,233,214,0.06); }
.product-card.reverse .card-text { order: 2; }
.product-card.reverse .card-media { order: 1; }
.card-text { text-align: center; padding: 0 24px; }
.tasting-notes {
  color: var(--ink); font-size: 14px; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 16px; opacity: 0.9;
}
.card-text h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(30px, 4vw, 44px); letter-spacing: 0.06em;
  margin-bottom: 10px; color: var(--ink);
}
.card-price { font-size: 19px; color: var(--ink); margin-bottom: 28px; }
.price-unit { font-size: 13px; color: var(--muted); font-weight: 400; letter-spacing: 0.04em; }
.pound-line { color: var(--gold); font-size: 13.5px; font-weight: 600; letter-spacing: 0.02em; margin: 2px 0 6px; }
.pound-note { color: var(--muted); font-size: 14.5px; line-height: 1.55; margin-top: 10px; }
.flag-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--gold-ink); background: var(--gold);
  border-radius: 999px; padding: 4px 14px; margin-bottom: 14px;
}
.card-line { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.signed { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--gold); margin-top: 6px; }
.cta-sub { color: var(--ink); opacity: 0.9; font-size: 18px; margin: -18px 0 34px; }

/* ---------- Conversion layer (2026-09-30) ---------- */
.cups-line { color: var(--muted); font-size: 14px; margin: -2px 0 18px; }
.ship-note { color: var(--muted); font-size: 13px; margin: -14px 0 14px; }
.guarantee-badge {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold); font-size: 14px; font-weight: 600; letter-spacing: 0.03em;
  margin: 0 0 14px;
}
.guarantee-badge .tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: 1px solid var(--gold); border-radius: 50%;
  font-size: 13px; line-height: 1;
}
.opt-group.pulse .opt-cards { animation: pulseGold 1.2s ease; }
@keyframes pulseGold {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 3px rgba(201, 161, 95, 0.55); border-radius: 12px; }
}
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: rgba(5, 5, 5, 0.96); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.3s ease, visibility 0.3s;
  visibility: hidden;
}
.sticky-buy.visible { transform: translateY(0); visibility: visible; }
.sticky-buy-info { display: flex; flex-direction: column; }
.sticky-buy-info strong { color: #ece2cb; font-size: 14px; }
.sticky-buy-info span { color: var(--muted); font-size: 12px; }
.sticky-buy .btn { padding: 12px 26px; font-size: 14px; white-space: nowrap; }
@media (min-width: 861px) { .sticky-buy { display: none; } }
.text-us { transition: bottom 0.3s ease; }
body.sticky-visible .text-us { bottom: 88px; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }

/* Compact Google rating under coffee names */
.rating-summary {
  display: inline-flex; align-items: center; gap: .5em;
  margin: .4rem 0 .55rem; font-size: .8rem; letter-spacing: .03em;
  color: var(--muted); text-decoration: none; line-height: 1.4;
}
.rating-summary .rs-stars { color: var(--gold); font-size: .92rem; letter-spacing: .14em; }
.rating-summary:hover .rs-text { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.card-trust { font-size: 13px; color: var(--muted); margin-top: 18px; letter-spacing: 0.04em; }
.card-media img { border-radius: 6px; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.card-media a { display: block; }

/* ---------- Story / meaning ---------- */
.story { padding: 110px 0; background: var(--black); }
.story-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.eyebrow {
  color: var(--gold); font-size: 13px; letter-spacing: 0.3em;
  text-transform: uppercase; margin-bottom: 18px; font-weight: 600;
}
.hero .hero-price { color: var(--gold); font-size: 17px; font-weight: 600; letter-spacing: 0.02em; margin: 18px 0 22px; }
.hero-micro { color: var(--muted); font-size: 13px; letter-spacing: 0.03em; margin-top: 16px; }
.story h2, .section-title {
  font-family: var(--serif); font-weight: 500; color: var(--ink);
  font-size: clamp(30px, 4vw, 44px); letter-spacing: 0.04em; margin-bottom: 22px;
}
.story p { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 16px; }
.eagle-emblem { display: flex; justify-content: center; }
.eagle-emblem img {
  width: min(360px, 78vw);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 90px rgba(201,161,95,0.20), 0 30px 70px rgba(0,0,0,0.55);
}

/* ---------- Freshness comparison ---------- */
.fresh { padding: 100px 0; background: var(--panel); border-top: 1px solid rgba(240,233,214,0.05); border-bottom: 1px solid rgba(240,233,214,0.05); }
.fresh-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.fresh-head p.lead { color: var(--muted); font-size: 18px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 900px; margin: 0 auto; }
.compare-card {
  border-radius: 14px; padding: 48px 32px; text-align: center;
  border: 1px solid rgba(240,233,214,0.08);
}
.compare-card.old { background: #131313; }
.compare-card.old .cup { filter: grayscale(1); opacity: 0.55; }
.compare-card.new {
  background: linear-gradient(160deg, #171208, #0d0b07);
  border-color: var(--line);
  box-shadow: 0 12px 44px rgba(201, 161, 95, 0.12);
}
.compare-card .cup { font-size: 56px; margin-bottom: 18px; }
.compare-card h3 { font-family: var(--serif); font-size: 22px; letter-spacing: 0.14em; margin-bottom: 10px; }
.compare-card.old h3 { color: #8d887d; }
.compare-card.new h3 { color: var(--gold); }
.compare-card p { color: var(--muted); font-size: 15px; }

/* ---------- Reviews ---------- */
.reviews { padding: 110px 0; }
.reviews .section-title { text-align: center; }
.reviews .sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
/* ---------- Self-hosted Google reviews rotator ---------- */
.reviews-rotator {
  max-width: 680px;
  margin: 0 auto;
}
.reviews-stage {
  display: grid;
  padding: 8px 0 8px;
  /* Reserved at the rendered height of the tallest review card so the
     section does not grow (and shove the page) when the async reviews land. */
  min-height: 400px;
}
.reviews-stage.is-fallback {
  display: block;
  max-width: 420px;
  margin: 0 auto;
}
.review-card {
  grid-area: 1 / 1;
  position: relative;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(201, 161, 95, 0.1), transparent 55%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 40px 40px 34px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
  pointer-events: none;
  overflow: hidden;
}
.review-card::before {
  content: "\201C";
  position: absolute;
  top: -6px;
  right: 18px;
  font-family: var(--serif);
  font-size: 120px;
  line-height: 1;
  color: var(--gold);
  opacity: 0.14;
  pointer-events: none;
}
.review-card.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
}
.reviews-stage.is-fallback .review-card {
  text-align: center;
  align-items: center;
}
.review-stars { display: flex; gap: 4px; color: var(--gold); justify-content: flex-start; }
.reviews-stage.is-fallback .review-stars { justify-content: center; }
.review-stars svg { width: 16px; height: 16px; display: block; }
.review-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 21px;
  line-height: 1.6;
  color: var(--ink);
  margin: 0;
}
.review-footer {
  display: flex;
  align-items: center;
  gap: 14px;
}
.review-avatar {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--line);
  box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(201, 161, 95, 0.25);
}
.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.review-avatar.is-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gold);
  color: #1a140d;
  font-weight: 700;
  font-size: 20px;
}
.review-who { min-width: 0; }
.review-name {
  margin: 0 0 2px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.review-meta {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 7px;
}
.g-logo { width: 14px; height: 14px; flex: none; }
a.review-card:hover { border-color: var(--gold); }
.reviews-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 26px;
}
.reviews-arrow {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.reviews-arrow:hover { border-color: var(--gold); color: var(--gold); }
.reviews-dots { display: flex; gap: 10px; }
.reviews-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--line);
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.reviews-dot.is-active { background: var(--gold); transform: scale(1.25); }
.reviews-attr {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin: 26px 0 0;
}
.reviews-noscript { text-align: center; }
.reviews-noscript a { color: var(--gold); }
@media (prefers-reduced-motion: reduce) {
  .review-card { transition: none; }
}
@media (max-width: 640px) {
  .review-card { padding: 26px 22px; }
  .review-quote { font-size: 18px; }
  .hero { background: url("images/hero-espresso-mobile.webp") center 20% / cover no-repeat, var(--black); min-height: 70vh; min-height: 70svh; }
  .hero h1 { font-size: 36px; margin-bottom: 10px; }
  .hero p { font-size: 16px; margin-bottom: 20px; }
  .hero .btn { padding: 13px 30px; font-size: 13px; }
  .shop { padding: 16px 0 4px; }

  .product-card { gap: 16px; padding: 28px 0; }
  .card-media { width: 100%; max-width: 248px; margin: 0 auto; }
  .card-text { padding: 0 6px; }
  .card-text h2 { font-size: 24px; letter-spacing: 0.04em; margin-bottom: 6px; }
  .tasting-notes { font-size: 11px; letter-spacing: 0.16em; margin-bottom: 8px; }
  .card-price { font-size: 17px; margin-bottom: 12px; }
  .card-text .btn { padding: 13px 30px; font-size: 13px; }
  .card-trust { font-size: 11.5px; margin-top: 12px; }
  .story { padding: 48px 0; }
  .story-grid { gap: 24px; }
  .story h2, .section-title { font-size: 26px; margin-bottom: 16px; }
  .story p { font-size: 15.5px; }
  .eagle-emblem img { width: min(215px, 56vw); }
  .fresh { padding: 48px 0; }
  .fresh-head { margin-bottom: 22px; }
  .fresh-head p.lead { font-size: 16px; }
  .compare { gap: 20px; }
  .compare-card { padding: 22px 18px; }
  .compare-card .cup { font-size: 42px; margin-bottom: 8px; }
  .compare-card h3 { font-size: 18px; }
  .compare-card p { font-size: 14px; }
  .reviews { padding: 48px 0; }
  .reviews-stage { min-height: 626px; } /* tallest current review card at phone width, measured 2026-10-15 */
  .reviews .sub { margin-bottom: 26px; font-size: 15px; }
  .cta { padding: 52px 0; }
  .cta h2 { font-size: 29px; margin-bottom: 26px; }
  .cta .btn { padding: 13px 30px; font-size: 13px; }
  .site-footer { padding: 44px 0 96px; }
  .footer-signup { margin-bottom: 28px; }
  .footer-bottom { padding-top: 26px; gap: 18px; }
  .footer-signup h3 { font-size: 22px; }
  .footer-signup p { font-size: 14px; }
  .product-page { padding: 24px 0 64px; }
  .breadcrumb { margin-bottom: 20px; }
  .product-grid { gap: 28px; }
  .product-info h1 { font-size: 28px; }
  .product-desc { font-size: 14.5px; }
  .gallery-thumbs button { width: 68px; height: 68px; }
  .opt-card { padding: 13px 10px; font-size: 14px; }
  .opt-card .opt-sub { font-size: 12px; }
  .buy-row .btn { padding: 15px; font-size: 14px; }
  .wholesale-hero { padding: 120px 0 44px; }
  .wholesale-hero h1 { font-size: 32px; }
  .wholesale-sub { font-size: 16px; margin-bottom: 32px; }
  .wholesale-facts { gap: 24px; }
  .wholesale-facts strong { font-size: 27px; }
  .wholesale-quiz { padding: 20px 0 80px; }
  .quiz-step h2 { font-size: 26px; }
  .quiz-hint { font-size: 15px; margin-bottom: 20px; }
}

/* ---------- CTA ---------- */
.cta { padding: 120px 0; text-align: center; background: #000; }
.cta .eyebrow { margin-bottom: 14px; }
.cta h2 {
  font-family: var(--serif); font-weight: 500; color: #ece2cb;
  font-size: clamp(34px, 5vw, 56px); line-height: 1.25; margin-bottom: 36px;
}
.cta h2 .gold-line { display: block; color: var(--gold); font-size: 0.62em; letter-spacing: 0.22em; margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer { background: #000; border-top: 1px solid rgba(240,233,214,0.07); padding: 80px 0 40px; }
.footer-signup { text-align: center; max-width: 560px; margin: 0 auto 56px; }
.footer-signup h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 10px; }
.footer-signup p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.ml-embedded { min-height: 120px; }
.signup-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; }
.signup-form input[type="email"] {
  flex: 1; background: #141414; border: 1px solid rgba(240,233,214,0.14);
  border-radius: 999px; padding: 14px 22px; color: var(--ink); font-size: 15px;
  font-family: var(--sans); outline: none;
}
.signup-form input[type="email"]:focus { border-color: var(--gold); }
.signup-form .btn { padding: 14px 30px; white-space: nowrap; }
.form-note { font-size: 12px; color: #6d695f; margin-top: 14px; }
.form-msg { font-size: 14px; margin-top: 14px; min-height: 20px; }
.form-msg.ok { color: var(--gold); }
.form-msg.err { color: #d98a8a; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-top: 36px; border-top: 1px solid rgba(240,233,214,0.07);
  color: #6d695f; font-size: 13px; flex-wrap: wrap;
}
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span {
  border: 1px solid rgba(240,233,214,0.14); border-radius: 6px;
  padding: 4px 10px; font-size: 11px; letter-spacing: 0.08em; color: #8d887d;
}
.socials { display: flex; gap: 14px; }
.socials a { display: inline-flex; width: 38px; height: 38px; border: 1px solid rgba(240,233,214,0.16); border-radius: 50%; align-items: center; justify-content: center; transition: border-color 0.2s; }
.socials a:hover { border-color: var(--gold); }
.socials svg { width: 17px; height: 17px; fill: var(--ink); }

/* ---------- Text-us pill ---------- */
.text-us {
  position: fixed; right: 22px; bottom: 22px; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(12, 11, 9, 0.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  color: var(--ink); font-weight: 500; font-size: 14px; letter-spacing: 0.06em;
  padding: 13px 24px; border-radius: 999px; text-decoration: none;
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.text-us svg { color: var(--gold); flex: none; }
.text-us:hover { transform: translateY(-1px); border-color: var(--gold); }

/* ---------- MailerLite popup visibility fixes ---------- */
#Popup .ml-popup-content input.ml-input[type="email"],
#Popup input.ml-input {
  color: #e8e2d5 !important;
  -webkit-text-fill-color: #e8e2d5 !important;
  background-color: #050505 !important;
  border-color: rgba(240,233,214,0.16) !important;
  caret-color: #c9a15f;
}
#Popup .ml-input::placeholder { color: #8d887d !important; opacity: 1; }
#Popup button.ml-popup-close { color: #c9a15f !important; }
#Popup .ml-popup-close svg { fill: #c9a15f !important; }

@media (max-width: 640px) {
  #Popup .ml-popup-content {
    width: calc(100vw - 40px) !important;
    max-width: 420px !important;
    padding: 28px 24px !important;
  }
  #Popup .ml-input { font-size: 16px !important; }
}

/* ---------- Popup ---------- */
.popup-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,0.72); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.popup-overlay.show { display: flex; }
.popup {
  background: #0d0c0a; border: 1px solid var(--line); border-radius: 18px;
  max-width: 440px; width: 100%; padding: 48px 40px 40px; text-align: center;
  position: relative; box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.popup-close {
  position: absolute; top: 14px; right: 16px; background: none; border: 0;
  color: var(--muted); font-size: 26px; cursor: pointer; line-height: 1;
}
.popup-close:hover { color: var(--ink); }
.popup h3 { font-family: var(--serif); font-size: 30px; font-weight: 500; margin-bottom: 10px; }
.popup h3 em { color: var(--gold); font-style: normal; }
.popup p { color: var(--muted); font-size: 15px; margin-bottom: 24px; }
.popup .signup-form { flex-direction: column; }
.popup .code {
  display: inline-block; margin-top: 6px; padding: 10px 22px;
  border: 1px dashed var(--gold); border-radius: 10px;
  font-size: 20px; letter-spacing: 0.2em; color: var(--gold); font-weight: 700;
}

/* ---------- Product page ---------- */
.product-page { padding: 36px 0 90px; }
.breadcrumb { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; margin-bottom: 30px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); }
.product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.gallery-main { aspect-ratio: 1 / 1; }
.gallery-main img { border-radius: 8px; width: 100%; height: 100%; object-fit: contain; display: block; }
.gallery-thumbs { display: flex; gap: 12px; margin-top: 12px; }
.gallery-thumbs button {
  border: 1px solid rgba(240,233,214,0.12); border-radius: 8px; overflow: hidden;
  background: none; cursor: pointer; padding: 0; width: 84px; height: 84px;
}
.gallery-thumbs button.active { border-color: var(--gold); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.product-info h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 4vw, 46px); letter-spacing: 0.03em; margin-bottom: 8px; }
.product-info .price { font-size: 22px; color: var(--ink); margin-bottom: 6px; }
.product-info .tasting-notes { text-align: left; margin-bottom: 26px; }
.opt-group { margin-bottom: 20px; }
.opt-label { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.opt-cards { display: flex; flex-direction: column; gap: 8px; }
.opt-card {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid rgba(240,233,214,0.12); border-radius: 12px;
  padding: 13px 16px; cursor: pointer; transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.opt-card:hover { border-color: rgba(201,161,95,0.6); }
.opt-card.selected { border-color: var(--gold); background: rgba(201,161,95,0.08); }
.opt-card:active { transform: scale(0.99); }
.opt-card input { accent-color: var(--gold); width: 20px; height: 20px; flex-shrink: 0; }
.opt-card .opt-name { flex: 1; font-size: 15px; }
.opt-card .opt-price { font-size: 15px; font-weight: 600; color: var(--gold); }
.opt-card .opt-badge {
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--gold-ink); background: var(--gold); border-radius: 999px; padding: 3px 10px;
}
.opt-card .opt-sub { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.opt-card.sub-highlight { border-color: rgba(201,161,95,0.45); }
.opt-card.sub-highlight:hover { border-color: var(--gold); }
.qty-row { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid rgba(240,233,214,0.16); border-radius: 999px; overflow: hidden; }
.qty-stepper button { background: none; border: 0; color: var(--ink); font-size: 20px; width: 44px; height: 44px; cursor: pointer; }
.qty-stepper button:hover { background: rgba(240,233,214,0.06); }
.qty-stepper button:disabled { opacity: .35; cursor: not-allowed; }
.qty-stepper button:disabled:hover { background: none; }
[hidden] { display: none !important; }
.qty-stepper output { min-width: 36px; text-align: center; font-weight: 600; }
.fulfillment { border-top: 1px solid rgba(240,233,214,0.08); padding-top: 24px; margin-bottom: 28px; }
.fulfillment .opt-card { cursor: default; }
.buy-row .btn { width: 100%; font-size: 16px; padding: 19px; box-shadow: 0 4px 24px rgba(201,161,95,0.28); }
.buy-row .btn:hover { box-shadow: 0 6px 32px rgba(201,161,95,0.4); }
.buy-hint { text-align: center; color: var(--gold); font-size: 13px; margin-top: 10px; min-height: 20px; }
.fine { color: var(--muted); font-size: 12.5px; margin-top: 18px; }
.site-footer .fine a { color: var(--gold); text-decoration: none; }
.product-desc { color: var(--muted); font-size: 15.5px; line-height: 1.65; margin: 14px 0 0; max-width: 46ch; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .menu-toggle span { transition: transform 0.25s ease, opacity 0.2s ease; }
  .menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.active span:nth-child(2) { transform: scaleX(0); opacity: 0; }
  .menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav {
    display: block; position: absolute; top: 80px; left: 16px; right: 16px; margin: 0;
    background: rgba(13, 12, 10, 0.98); border: 1px solid rgba(201,161,95,0.20);
    border-radius: 16px; padding: 8px; box-shadow: 0 24px 60px rgba(0,0,0,0.65);
    opacity: 0; transform: translateY(-10px); visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .nav.open { opacity: 1; transform: none; visibility: visible; }
  .nav a.nav-link {
    display: flex; align-items: center; justify-content: space-between;
    padding: 15px 16px; margin: 0; font-size: 15px; letter-spacing: 0.08em;
    color: var(--ink); border-radius: 10px;
  }
  .nav a.nav-link::after {
    content: ""; width: 8px; height: 8px; flex: none;
    border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold);
    transform: rotate(-45deg); opacity: 0.7;
  }
  .nav a.nav-link + a.nav-link { border-top: 1px solid rgba(240,233,214,0.06); }
  .nav a.nav-link:hover { color: var(--gold); background: rgba(201,161,95,0.07); }
  .nav .btn { display: block; margin: 10px 4px 4px; padding: 14px 26px !important; font-size: 14px; }
  .nav.open a.nav-link, .nav.open .btn { animation: navItemIn 0.28s ease both; }
  .nav.open a.nav-link:nth-child(2) { animation-delay: 0.05s; }
  .nav.open a.nav-link:nth-child(3) { animation-delay: 0.10s; }
  .nav.open a.nav-link:nth-child(4) { animation-delay: 0.15s; }
  .nav.open .btn { animation-delay: 0.20s; }
  @keyframes navItemIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
  .product-card { grid-template-columns: 1fr; gap: 32px; padding: 50px 0; }
  .product-card .card-media { order: 1; }
  .product-card .card-text { order: 2; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .compare { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .signup-form { flex-direction: column; }
  .footer-bottom { justify-content: center; text-align: center; }
  .site-footer { padding-bottom: 110px; }
  .hero { min-height: 78vh; min-height: 78svh; }
}

/* ---------- Wholesale ---------- */
.nav-active { color: var(--gold) !important; }
.wholesale-hero { padding: 150px 0 70px; text-align: center; background: radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201,161,95,0.10), transparent 70%), var(--black); }
.wholesale-hero h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6vw, 68px); line-height: 1.08; letter-spacing: 0.01em; margin: 18px 0 20px; }
.wholesale-sub { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto 44px; line-height: 1.65; }
.wholesale-facts { display: flex; justify-content: center; gap: 56px; flex-wrap: wrap; }
.wholesale-facts div { display: flex; flex-direction: column; gap: 6px; }
.wholesale-facts strong { font-family: var(--serif); font-size: 34px; color: var(--gold); font-weight: 500; }
.wholesale-facts span { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; }
.wholesale-quiz { padding: 30px 0 110px; background: var(--black); }
.quiz-card { max-width: 640px; margin: 0 auto; background: #0c0b09; border: 1px solid rgba(201,161,95,0.22); border-radius: 18px; padding: 44px 48px 40px; box-shadow: 0 30px 80px rgba(0,0,0,0.5); }
.quiz-progress { height: 3px; background: rgba(240,233,214,0.08); border-radius: 2px; overflow: hidden; margin-bottom: 14px; }
.quiz-bar { height: 100%; width: 25%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 2px; transition: width 0.4s ease; }
.quiz-step-label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.quiz-step h2 { font-family: var(--serif); font-weight: 500; font-size: 32px; margin-bottom: 10px; }
.quiz-hint { color: var(--muted); font-size: 16px; line-height: 1.6; margin-bottom: 26px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.field .optional { color: var(--muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field select {
  width: 100%; background: #141210; border: 1px solid rgba(240,233,214,0.14); border-radius: 10px;
  color: var(--ink); font-family: var(--sans); font-size: 16px; padding: 14px 16px; outline: none;
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus { border-color: var(--gold); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c9a15f' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.field-error { color: #e08080; font-size: 14px; margin-top: 8px; min-height: 20px; }
.quiz-micro { color: var(--muted); font-size: 13.5px; margin-top: 8px; line-height: 1.55; font-style: italic; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.opt-grid.two { grid-template-columns: 1fr 1fr; }
.opt-card {
  background: #141210; border: 1px solid rgba(240,233,214,0.14); border-radius: 12px; color: var(--ink);
  font-family: var(--sans); font-size: 15px; font-weight: 500; padding: 16px 12px; cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.opt-card:hover { border-color: rgba(201,161,95,0.6); }
.opt-card.selected { border-color: var(--gold); background: rgba(201,161,95,0.12); box-shadow: 0 0 0 1px var(--gold); }
.quiz-nav { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.quiz-fine { color: var(--muted); font-size: 13px; margin-top: 20px; text-align: center; }
.quiz-guide-link { color: var(--muted); font-size: 14px; margin-top: 16px; text-align: center; }
.quiz-guide-link a { color: var(--gold); }
.success-mark {
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--gold); color: var(--gold);
  font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 6px auto 22px;
  box-shadow: 0 0 40px rgba(201,161,95,0.25);
}
#quizSuccess, #outOfArea { text-align: center; }
#quizSuccess .quiz-hint, #outOfArea .quiz-hint { max-width: 440px; margin-left: auto; margin-right: auto; }
#quizSuccess .quiz-nav, #outOfArea .quiz-nav { justify-content: center; }
@media (max-width: 640px) {
  .quiz-card { padding: 32px 24px; }
  .field-row { grid-template-columns: 1fr; }
  .opt-grid.two { grid-template-columns: 1fr; }
  .wholesale-hero { padding: 120px 0 50px; }
  .wholesale-hero h1 { font-size: 32px; }
}

/* ---------- Product-page reviews (static grid, same luxury language) ---------- */
/* FAQ section: full-width product Q&A. Same details/summary pattern as the
   buy-panel FAQ, scaled for a section. Questions phrased as natural queries
   for search and AI citation; answers self-contained. */
.faq-section { padding: 88px 0 96px; border-top: 1px solid var(--line); margin-top: 72px; }
.faq-section .eyebrow { text-align: center; }
.faq-section .section-title { text-align: center; }
.faq-section .sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.faq-section-list { max-width: 760px; margin: 0 auto; }
.faq-section details { border-top: 1px solid var(--line); padding: 18px 2px; }
.faq-section details:last-of-type { border-bottom: 1px solid var(--line); }
.faq-section summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; font-weight: 600; font-size: 17px; color: var(--ink);
  -webkit-tap-highlight-color: transparent; padding: 4px 0;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; color: var(--gold); font-size: 24px; font-weight: 400; line-height: 1; flex: none; }
.faq-section details[open] summary::after { content: "\2013"; }
.faq-section details p { margin: 12px 0 4px; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.faq-section details p a { color: var(--gold); }

@media (max-width: 640px) {
  /* CTA + footer mobile trims live in this later block on purpose: their base
     rules sit after the first 640px block, so overrides placed there lose. */
  .cta { padding: 52px 0; }
  .site-footer { padding: 44px 0 96px; }
  .footer-signup { margin-bottom: 28px; }
  .footer-bottom { padding-top: 26px; }
  .faq-section { padding: 44px 0 48px; margin-top: 24px; }
  .faq-section summary { font-size: 16px; }
  .faq-section details { padding: 20px 2px; }
  .faq-section details p { font-size: 15px; }
}

.product-reviews { padding: 96px 0 110px; border-top: 1px solid var(--line); margin-top: 72px; }.product-reviews .eyebrow { text-align: center; }
.product-reviews .section-title { text-align: center; }
.product-reviews .sub { text-align: center; color: var(--muted); margin-bottom: 44px; }
.product-reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1020px;
  margin: 0 auto;
}
.review-card.is-static {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  margin: 0;
  grid-area: auto;
}
.review-card.is-static:hover { border-color: var(--gold); }
.review-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
}
.review-byline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.review-byline .review-name { font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.review-source { color: var(--muted); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; }
.product-reviews-count { text-align: center; color: var(--muted); font-size: 13px; margin-top: 30px; letter-spacing: 0.04em; }
.product-reviews-attr { text-align: center; color: var(--muted); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; margin-top: 10px; }
@media (max-width: 760px) {
  .product-reviews { padding: 64px 0 72px; }
  .product-reviews-grid { grid-template-columns: 1fr; }
}

/* ---------- Journal / Blog ---------- */
.journal-hero { padding: 88px 0 8px; text-align: center; }
.journal-hero .section-title { margin-bottom: 12px; }
.journal-list { padding: 48px 0 110px; }
.post-card {
  display: block; max-width: 720px; margin: 0 auto 28px; padding: 40px 44px;
  background: #0d0b09; border: 1px solid rgba(201,161,95,0.22); border-radius: 14px;
  text-decoration: none; transition: border-color .25s ease, transform .25s ease;
}
.post-card:hover { border-color: rgba(201,161,95,0.55); transform: translateY(-3px); }
.post-card h2 { font-family: "Bodoni Moda", serif; font-weight: 500; font-size: 30px; color: #ece2cb; margin: 10px 0 12px; line-height: 1.25; }
.post-card p { color: #a9a49a; font-size: 15.5px; line-height: 1.65; margin: 0 0 18px; }
.post-meta { color: #c9a15f; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; margin: 0; }
.post-read { color: #c9a15f; font-size: 14px; font-weight: 600; letter-spacing: .04em; }
.post { padding: 88px 0 110px; }
.container-narrow { max-width: 720px; }
.post-back { color: #c9a15f; text-decoration: none; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
.post h1 { font-family: "Bodoni Moda", serif; font-weight: 500; font-size: clamp(34px, 5vw, 52px); color: #ece2cb; line-height: 1.15; margin: 18px 0 14px; }
.post .post-meta { margin-bottom: 30px; }
.post-lede { font-size: 19px; line-height: 1.7; color: #cec5ae; margin-bottom: 34px; }
.post h2 { font-family: "Bodoni Moda", serif; font-size: 27px; font-weight: 500; color: #ece2cb; margin: 44px 0 14px; }
.post p { color: #b6b0a4; font-size: 16.5px; line-height: 1.75; margin: 0 0 18px; }
.post-list { color: #b6b0a4; font-size: 16.5px; line-height: 1.75; padding-left: 22px; margin: 0 0 18px; }
.post-list li { margin-bottom: 12px; }
.post-list strong { color: #ece2cb; }
.post-cta {
  margin-top: 56px; padding: 44px; text-align: center; background: #0d0b09;
  border: 1px solid rgba(201,161,95,0.3); border-radius: 14px;
}
.post-cta h3 { font-family: "Bodoni Moda", serif; font-size: 28px; font-weight: 500; color: #ece2cb; margin: 0 0 10px; }
.post-cta p { color: #a9a49a; margin: 0 0 24px; }
.post-cta .cta-btns { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.post-shop { margin: 26px 0 30px; padding: 20px 22px; background: #0d0b09; border: 1px solid rgba(201,161,95,0.3); border-radius: 14px; }
.post-shop-line { margin: 0 0 10px; font-size: 15.5px; line-height: 1.55; color: var(--ink); }
.post-shop-links { margin: 0; display: flex; gap: 24px; flex-wrap: wrap; }
.post-shop-links a { color: var(--gold); font-weight: 600; text-decoration: none; }
.post-answer { margin: 0 0 30px; padding: 16px 20px; background: #0d0b09; border-left: 3px solid var(--gold); border-radius: 10px; }
.post-answer p { margin: 0; color: #e8e0cd; }
.post-figure { margin: 0 0 34px; }
.post-figure img { width: 100%; border-radius: 12px; display: block; }
.post-figure figcaption { color: #8a8478; font-size: 13.5px; margin-top: 10px; text-align: center; }
.compare-table { width: 100%; border-collapse: collapse; margin: 0 0 34px; font-size: 15px; }
.compare-table th, .compare-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid rgba(201,161,95,0.18); color: #b6b0a4; }
.compare-table th { color: #ece2cb; font-weight: 600; border-bottom: 1px solid rgba(201,161,95,0.4); }
.compare-table td:first-child, .compare-table th:first-child { color: #c9a15f; }
@media (max-width: 640px) {
  .post-card { padding: 30px 26px; }
  .post-cta { padding: 34px 24px; }
}

/* Buy panel: visually contains the purchase zone (grind, plan, qty,
   fulfillment, guarantee, buy button) so the eye lands on the action. */
.buy-panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px 20px;
  margin-top: 22px;
  background: linear-gradient(180deg, rgba(201,161,95,0.07), rgba(201,161,95,0.02));
}
.buy-panel .opt-group:last-of-type { margin-bottom: 20px; }

/* FAQ: objection handling at the decision point. Pure details/summary,
   no JS, keyboard accessible. */
.faq { margin: 30px 0 8px; }
.faq h2 { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--ink); margin: 0 0 6px; }
.faq details { border-top: 1px solid var(--line); padding: 13px 2px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between;
  align-items: center; gap: 14px; font-weight: 600; font-size: 15.5px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--gold); font-size: 22px; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 9px 0 3px; color: var(--muted); font-size: 15px; line-height: 1.6; }

@media (max-width: 640px) {
  .buy-panel { padding: 20px 16px 16px; margin-top: 18px; }
  .faq h2 { font-size: 20px; }
}

/* ---------- Cart ---------- */
.cart-btn {
  position: relative; background: none; border: 0; cursor: pointer;
  color: var(--ink); padding: 10px; margin-left: auto; margin-right: 6px;
  display: flex; align-items: center; transition: color 0.2s, transform 0.15s;
  -webkit-tap-highlight-color: transparent;
}
.cart-btn:hover { color: var(--gold); }
.cart-btn:active { transform: scale(0.92); }
.cart-badge {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--gold); color: var(--gold-ink);
  font-size: 11px; font-weight: 700; line-height: 20px; text-align: center;
  border-radius: 999px;
}
.cart-badge.pop { animation: badgePop 0.45s cubic-bezier(0.22, 1.4, 0.36, 1); }
@keyframes badgePop {
  0% { transform: scale(0.4); }
  55% { transform: scale(1.45); }
  100% { transform: scale(1); }
}
@media (min-width: 861px) {
  .cart-btn { margin-left: 18px; margin-right: 0; }
}

.cart-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 3, 3, 0.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity 0.3s ease;
  display: flex; justify-content: flex-end;
}
.cart-overlay.show { opacity: 1; }
.cart-drawer {
  width: min(420px, 92vw); height: 100%;
  background: var(--panel); border-left: 1px solid var(--line);
  display: flex; flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.38s cubic-bezier(0.22, 1.15, 0.36, 1);
  box-shadow: -24px 0 60px rgba(0, 0, 0, 0.55);
}
.cart-overlay.show .cart-drawer { transform: translateX(0); }
body.cart-open { overflow: hidden; }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.cart-head h2 { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.cart-close {
  background: none; border: 0; color: var(--muted); font-size: 30px;
  line-height: 1; cursor: pointer; padding: 4px 8px; transition: color 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.cart-close:hover { color: var(--gold); transform: rotate(90deg); }

.cart-items { flex: 1; overflow-y: auto; padding: 8px 22px; -webkit-overflow-scrolling: touch; }
.cart-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  animation: itemIn 0.35s cubic-bezier(0.22, 1.2, 0.36, 1);
  transition: opacity 0.22s, transform 0.22s;
}
.cart-item.leaving { opacity: 0; transform: translateX(40px); }
@keyframes itemIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.cart-thumb {
  width: 64px; height: 64px; object-fit: cover; border-radius: 10px;
  border: 1px solid var(--line); flex: none; background: #000;
}
.cart-info { flex: 1; min-width: 0; }
.cart-info strong { display: block; font-size: 15px; }
.cart-grind { display: block; color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.cart-qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid rgba(240,233,214,0.16); border-radius: 999px; padding: 2px; }
.cart-qty button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  background: transparent; color: var(--ink); font-size: 18px; line-height: 1;
  transition: background 0.15s, transform 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.cart-qty button:hover { background: rgba(240,233,214,0.06); }
.cart-qty button:active { transform: scale(0.85); }
.cart-qty button.tick { animation: tickPulse 0.25s ease; }
@keyframes tickPulse { 50% { transform: scale(1.25); } }
.cart-qty output { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.cart-line { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-line strong { font-size: 15px; }
.cart-remove {
  background: none; border: 0; cursor: pointer; color: var(--muted);
  font-size: 12.5px; text-decoration: underline; text-underline-offset: 3px; padding: 4px 0;
}
.cart-remove:hover { color: var(--gold); }

.cart-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 30px; text-align: center; }
.cart-empty[hidden] { display: none; }
.cart-empty-icon { color: var(--gold); opacity: 0.7; margin-bottom: 10px; }
.cart-empty-icon svg { width: 54px; height: 54px; }
.cart-empty p { color: var(--muted); margin: 0; }
.cart-empty p strong { color: var(--ink); font-family: var(--serif); font-size: 22px; font-weight: 500; }
.cart-empty .btn { margin-top: 16px; }

.cart-foot { border-top: 1px solid var(--line); padding: 18px 22px calc(22px + env(safe-area-inset-bottom)); background: rgba(0, 0, 0, 0.25); }
.cart-foot[hidden] { display: none; }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cart-subtotal span { color: var(--muted); font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; }
.cart-subtotal strong { font-family: var(--serif); font-size: 26px; font-weight: 500; }
.cart-subtotal strong.flash { animation: totalFlash 0.6s ease; }
@keyframes totalFlash {
  0% { color: var(--gold); text-shadow: 0 0 18px rgba(201, 161, 95, 0.8); }
  100% { color: var(--ink); text-shadow: none; }
}
.cart-note { color: #6d695f; font-size: 12.5px; margin: 0 0 12px; line-height: 1.5; }
.cart-error { color: var(--gold); font-size: 13.5px; margin: 0 0 10px; }
.cart-error[hidden] { display: none; }
.cart-checkout {
  width: 100%; position: relative; overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s;
}
.cart-checkout::after {
  content: ""; position: absolute; top: 0; left: -70%; width: 45%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg); transition: left 0.6s ease;
}
.cart-checkout:hover::after { left: 130%; }
.cart-checkout:active { transform: scale(0.98); }
.cart-checkout.loading { color: transparent; pointer-events: none; }
.cart-checkout.loading::before {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 20px; height: 20px; margin: -10px 0 0 -10px;
  border: 2.5px solid rgba(25, 17, 6, 0.35); border-top-color: var(--gold-ink);
  border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cart-trust {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--gold); font-size: 13px; font-weight: 600; letter-spacing: 0.03em;
  margin: 12px 0 0;
}
.cart-trust .tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px; border: 1px solid var(--gold); border-radius: 50%;
  font-size: 12px; line-height: 1; flex: none;
}

/* fly-to-cart dot */
.fly-dot {
  position: fixed; z-index: 300; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; background: radial-gradient(circle at 35% 35%, #e8c987, var(--gold-deep));
  box-shadow: 0 0 16px rgba(201, 161, 95, 0.9);
  pointer-events: none;
  transition: transform 0.6s cubic-bezier(0.3, 0.7, 0.4, 1), opacity 0.6s;
}

/* buy button: press + added confirmation */
#buyNow, #stickyBuyBtn { transition: transform 0.12s ease, background 0.25s, box-shadow 0.2s; }
#buyNow:active, #stickyBuyBtn:active { transform: scale(0.96); }
#buyNow.added {
  background: rgba(201, 161, 95, 0.16); color: var(--gold); border: 1px solid var(--line);
}

.product-card { transition: box-shadow 0.35s ease, background 0.35s ease; }
@media (prefers-reduced-motion: reduce) {
  .product-card { transition: none; }
}

/* ---------- Pull-to-refresh indicator (mobile only; element is created by site.js only when a coarse pointer + small viewport matches, so it never exists on desktop). Fidelity-style progress ring: site.js drives the .ptr-progress stroke-dashoffset from pull distance, so the gold ring fills to 100% exactly at the refresh threshold, then spins while reloading. ---------- */
.ptr-indicator {
  position: fixed; top: 12px; left: 50%; z-index: 200;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(12, 11, 9, 0.94); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transform: translate(-50%, -64px);
}
.ptr-spinner { display: block; width: 22px; height: 22px; }
.ptr-spinner circle { fill: none; stroke-width: 2.5; }
.ptr-spinner .ptr-track { stroke: rgba(201, 161, 95, 0.25); }
.ptr-spinner .ptr-progress {
  stroke: var(--gold); stroke-linecap: round;
  /* Fill starts at the top and sweeps clockwise as the pull grows. */
  transform: rotate(-90deg); transform-origin: center; transform-box: view-box;
}
.ptr-indicator.ptr-spinning .ptr-spinner { animation: ptrSpin 0.7s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }

/* Visible keyboard focus (added 2026-10-31): a clear gold outline for anyone navigating by keyboard. */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
