/* Vapehouse Option D — apple.com style
   Global nav, full-bleed hero photography, image-forward tiles,
   dark promo band, dense gray footer. Accent (buttons) via theme-*.css. */

:root {
  --bg: #f5f5f7;
  --bg-2: #fbfbfd;
  --panel: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --tertiary: #86868b;
  --line: #d2d2d7;
  --hairline: rgba(0, 0, 0, 0.06);
  --link: #06c;
  --link-dark: #2997ff;
  --accent: #0071e3;
  --accent-ink: #ffffff;
  --accent-dim: #e8f0fd;
  --radius: 18px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 20px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 24px 48px rgba(0, 0, 0, 0.12);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
  --maxw: 1068px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.hidden { display: none !important; }

/* ---------- back link + theme switcher (dev) ---------- */
.back-choose, .switcher {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  z-index: 320;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 980px;
  font-size: 0.72rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  backdrop-filter: blur(10px);
}
.back-choose { left: max(10px, env(safe-area-inset-left)); }
.back-choose:hover { color: var(--link); }
.switcher { right: max(10px, env(safe-area-inset-right)); }
.switcher__dot {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.66rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--tertiary);
  background: transparent;
}
.switcher__dot:hover { color: var(--ink); }
#sw-lime:hover { background: #0071e3; border-color: #0071e3; color: #fff; }
#sw-ice:hover { background: #1d1d1f; border-color: #1d1d1f; color: #fff; }
#sw-amber:hover { background: #d97706; border-color: #d97706; color: #fff; }

/* ---------- global nav (apple style) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--hairline);
}
.site-header__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 max(22px, env(safe-area-inset-left)) 0 max(22px, env(safe-area-inset-right));
  display: flex;
  align-items: center;
  gap: 20px;
  height: 48px;
}
.logo {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-nav { display: flex; gap: 24px; margin-inline: auto; }
.site-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
  opacity: 0.8;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.site-nav__link:hover { opacity: 1; }
.site-nav__link.is-active { opacity: 1; font-weight: 600; }
.site-header__actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }

.text-btn {
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 400;
  padding: 0;
  color: var(--ink);
  opacity: 0.8;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.text-btn:hover { opacity: 1; }
.text-btn.is-member { opacity: 1; color: var(--link); font-weight: 600; }

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.icon-btn:hover { opacity: 1; }
.cartbtn__count {
  position: absolute;
  top: 0;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.62rem;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}
.cartbtn__count.show { display: inline-flex; }

/* ---------- notice ---------- */
.notice {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 20px;
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--link);
  border-bottom: 1px solid var(--hairline);
  background: #f5f5f7;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: 980px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-weight: 400;
  font-size: 1.02rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, filter 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: rgba(0, 0, 0, 0.04); }

/* blue text link with arrow (apple "Learn more ›") */
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  font-size: 1.05rem;
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}
.textlink::after { content: " ›"; }
.textlink:hover { text-decoration: underline; }

/* ---------- hero band (full-bleed product photography) ---------- */
.hero-band {
  position: relative;
  min-height: clamp(520px, 92vh, 780px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #161617;
}
.hero-band__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 35%;
  background-image: url("../img/hero-1.jpg");
}
.hero-band__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.25) 40%, rgba(0, 0, 0, 0.72) 100%),
    radial-gradient(100% 75% at 50% 42%, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.28) 55%, rgba(0, 0, 0, 0.8) 100%);
}
.hero-band__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 46px 54px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 14px;
  color: #fff;
  background: rgba(14, 14, 17, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}
.hero-band__eyebrow {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #a1a1a6;
}
.hero-band__title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
.hero-band__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: #d1d1d6;
  max-width: 46ch;
  line-height: 1.5;
}
.hero-band__links { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin-top: 4px; }
.hero-band .textlink { color: var(--link-dark); }

/* ---------- sections (full-bleed alternating bands) ---------- */
section {
  padding: 110px max(20px, env(safe-area-inset-left)) 110px max(20px, env(safe-area-inset-right));
}
.catalog { background: var(--bg); }
.payments { background: #ffffff; border-top: 1px solid var(--hairline); }
.newsletter { background: var(--bg); border-top: 1px solid var(--hairline); }
.catalog > *, .membership > *, .payments > *, .newsletter > * {
  max-width: var(--maxw);
  margin-left: auto;
  margin-right: auto;
}
.section-head { margin-bottom: 44px; text-align: center; }
.section-kicker {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--tertiary);
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 14px;
  color: var(--ink);
}
.section-head p:last-child { color: var(--muted); font-size: 1.06rem; line-height: 1.5; }

/* ---------- category pills (apple dark segmented) ---------- */
.cats {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 48px;
}
.cat {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cat:hover { border-color: #a1a1a6; }
.cat.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  font-weight: 500;
}

/* ---------- product tiles (image-forward, subtle) ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  animation: fadeUp 0.5s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.ph {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #fafafa;
  overflow: hidden;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.card:hover .ph img { transform: scale(1.05); }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 12px;
  border-radius: 980px;
  background: var(--accent-dim);
  color: var(--link);
  font-size: 0.72rem;
  font-weight: 500;
}

/* magnifier on product photo hover */
.card .ph { cursor: zoom-in; }
.card .ph::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") center / 26px no-repeat;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.card .ph:hover::after { opacity: 1; transform: scale(1); }
.body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}
.body .puffs { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.row { margin-top: auto; display: flex; align-items: center; gap: 12px; padding-top: 14px; }
.price {
  font-size: 1.02rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.price-was {
  font-size: 0.8rem;
  font-weight: 400;
  color: var(--tertiary);
  text-decoration: line-through;
  margin-left: 6px;
}
.add {
  margin-left: auto;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 980px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.15s ease;
}
.add:hover { filter: brightness(1.08); }
.add:active { transform: scale(0.96); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- membership (dark promo band, apple style) ---------- */
.membership {
  background: #161617;
  color: #fff;
  padding: 120px max(20px, env(safe-area-inset-left)) 120px max(20px, env(safe-area-inset-right));
}
.membership .section-head h2 { color: #fff; }
.membership .section-head p:last-child { color: #a1a1a6; }
.membership .section-kicker { color: #a1a1a6; }
.membership__perks {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0 auto 36px;
  max-width: 500px;
  text-align: left;
}
.membership__perks li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #d1d1d6;
  font-size: 1rem;
  line-height: 1.5;
}
.membership__perks li::before {
  content: "✓";
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.membership__summary {
  display: grid;
  gap: 4px;
  max-width: 500px;
  margin: 0 auto 24px;
  padding: 16px 22px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e8e8ed;
  font-size: 0.92rem;
  text-align: left;
}
.membership__summary strong { color: #fff; font-size: 1.05rem; }
.membership .btn--primary { display: block; margin: 0 auto; }

/* ---------- payments ---------- */
.payments__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.payments__list li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  font-weight: 500;
  font-size: 1rem;
  color: var(--ink);
}
.payments__note { color: var(--muted); font-size: 0.9rem; line-height: 1.6; text-align: center; max-width: 52ch; margin: 0 auto; }

/* ---------- newsletter ---------- */
.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.newsletter__inner .section-head { text-align: left; margin-bottom: 0; }
.newsletter__form { display: grid; gap: 16px; }
.newsletter__form input[type="email"] {
  min-height: 52px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.newsletter__form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.newsletter__ok { color: var(--link); font-size: 0.9rem; line-height: 1.5; }
.form__error { color: #d70015; font-size: 0.88rem; line-height: 1.5; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- footer (dense gray, apple style) ---------- */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 40px max(20px, env(safe-area-inset-left)) max(56px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-right));
  text-align: center;
  display: grid;
  gap: 6px;
  justify-items: center;
  max-width: 100%;
}
.site-footer__brand {
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 10px;
}
.site-footer a { color: var(--tertiary); text-decoration: none; font-size: 0.72rem; line-height: 1.8; }
.site-footer a:hover { color: var(--link); text-decoration: underline; }
.site-footer p { color: var(--tertiary); font-size: 0.72rem; line-height: 1.8; max-width: 640px; }

/* ---------- per-card WhatsApp button ---------- */
.wa-card-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(37, 211, 102, 0.35);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #25d366;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}
.wa-card-btn:hover { background: #e8f8ef; border-color: #25d366; }
.wa-card-btn:active { transform: scale(0.94); }

/* ---------- section WhatsApp buttons ---------- */
.payments__wa {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}
.sr-wa { width: 100%; margin-top: 10px; }
.mem-wa { display: block; margin: 18px auto 0; width: max-content; }

/* ---------- floating WhatsApp ---------- */
.fab-wa {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 130;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 211, 102, 0.35);
  transition: transform 0.15s ease;
}
.fab-wa:hover { transform: scale(1.06); }

/* ---------- view cart bar (floating, appears when cart has items) ---------- */
.cartbar {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 20, 24, 0.92);
  color: #fff;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  font-family: var(--font);
  font-size: 0.92rem;
  cursor: pointer;
  max-width: calc(100vw - 96px);
  white-space: nowrap;
  transition: filter 0.15s ease, transform 0.12s ease;
  animation: fadeUp 0.25s ease both;
}
.cartbar:hover { filter: brightness(1.12); }
.cartbar:active { transform: translateX(-50%) scale(0.97); }
.cartbar__label { font-weight: 600; }
.cartbar__meta { color: #a1a1a6; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
@media (max-width: 699px) {
  .cartbar {
    left: 12px;
    right: 76px;
    transform: none;
    max-width: calc(100vw - 88px);
  }
  .cartbar:active { transform: scale(0.97); }
}

/* ---------- overlay + drawer ---------- */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(92vw, 420px);
  background: #ffffff;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.drawer.show { transform: translateX(0); }
.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.drawer__head h2 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.items { display: grid; gap: 14px; flex: 1; }
.items .empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 0.92rem; }
.item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--bg);
  border-radius: 14px;
}
.item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 10px;
  background: #f0f0f2;
}
.item .info { display: grid; gap: 4px; }
.item .info b { font-size: 0.92rem; line-height: 1.3; }
.item .info span { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.item-flavor {
  color: var(--link);
  font-size: 0.78rem;
  font-weight: 600;
}
.qty { display: flex; align-items: center; gap: 6px; }
.qty button {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}
.qty button:hover { border-color: var(--link); color: var(--link); }
.qty b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }

#cartWrap { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; display: grid; gap: 14px; }
.total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 600;
}
.total span:last-child { font-size: 1.4rem; font-variant-numeric: tabular-nums; color: var(--link); }
.cart-note { color: var(--muted); font-size: 0.84rem; line-height: 1.5; }

/* ---------- member modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 230;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
}
.modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  max-height: 88vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-hover);
  animation: fadeUp 0.3s ease both;
}
.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.modal__head h2 { font-size: 1.3rem; font-weight: 600; }
.modal__lead { color: var(--muted); font-size: 0.92rem; line-height: 1.6; margin-bottom: 20px; }

.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--muted); }
.form input[type="text"],
.form input[type="tel"],
.form input[type="email"] {
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-dim); }

.member-card {
  background: var(--accent-dim);
  border-radius: 14px;
  padding: 20px;
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.member-card__name { font-weight: 600; font-size: 1.2rem; }
.member-card__meta { color: var(--muted); font-size: 0.88rem; }
.member-card__points { color: var(--link); font-size: 1rem; font-weight: 600; }

/* ---------- product quick view ---------- */
.modal__panel.quick {
  width: min(100%, 560px) !important;
  max-width: min(100%, 560px) !important;
}
.quick__scroll { display: grid; gap: 0; }
.quick__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f0f2;
  margin-bottom: 16px;
}
.quick__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.quick__media .badge { top: 14px; left: 14px; }
.quick__name {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 8px;
}
.quick__desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 14px;
}
.quick__price {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-bottom: 18px;
}
.quick__price s {
  color: var(--tertiary);
  font-size: 0.95rem;
  font-weight: 400;
  margin-left: 8px;
}
.quick__flavors {
  border-top: 1px solid var(--hairline);
  padding-top: 16px;
  margin-bottom: 16px;
}
.quick__flavor-label {
  font-size: 0.92rem;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 12px;
}
.quick__flavor-label b { font-weight: 700; }
.quick__flavor-list { display: grid; gap: 10px; }
.quick__flavor-list.is-grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.quick__flavor-list.is-grid .quick-flavor {
  min-height: 40px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.84rem;
  gap: 8px;
}
.quick__flavor-list.is-grid .quick-flavor .dot {
  width: 9px;
  height: 9px;
  box-shadow: none;
}
.quick-flavor {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.quick-flavor .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fc, #ccc);
  box-shadow: 0 0 8px var(--fc, #ccc);
  flex-shrink: 0;
}
.quick-flavor.is-color .dot {
  width: 22px;
  height: 22px;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 6px var(--fc, #ccc);
}
.quick-flavor:hover { border-color: #a1a1a6; }
.quick-flavor.active {
  border-color: var(--fc, var(--accent));
  background: var(--accent-dim);
  font-weight: 600;
}
.quick__note { color: var(--muted); font-size: 0.8rem; margin-bottom: 14px; }
.quick__add { width: 100%; }

/* ---------- in-site checkout ---------- */
.checkout-panel, .wo-panel { width: min(100%, 480px) !important; max-width: min(100%, 480px) !important; }
.co-summary, .wo-summary {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  display: grid;
  gap: 8px;
}
.co-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.9rem;
}
.co-line i { color: var(--link); font-style: normal; font-size: 0.8rem; }
.co-line b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-line--total {
  border-top: 1px solid var(--hairline);
  padding-top: 10px;
  margin-top: 2px;
  font-weight: 600;
  font-size: 1rem;
}
.co-field { display: grid; gap: 6px; font-size: 0.84rem; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.co-field input,
.co-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.co-field textarea { min-height: 84px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.co-field select {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  font-size: 1rem;
  font-family: var(--font);
}
.co-field input:focus,
.co-field textarea:focus,
.co-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
}
.co-submit, .wo-send { width: 100%; }

.co-done { text-align: center; }
.co-done__badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--link);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.co-done h3 { font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.co-done h3 span { color: var(--link); }
.co-done__items {
  margin: 16px auto 14px;
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  display: grid;
  gap: 8px;
  text-align: left;
}
.co-done__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 320px;
  margin: 0 auto 18px;
  font-weight: 600;
  font-size: 1.05rem;
}
.co-done__total b { font-size: 1.35rem; color: var(--link); font-variant-numeric: tabular-nums; }
.co-done__pay {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  text-align: left;
}
.co-done__pay > p { font-size: 0.82rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 10px; }
.co-done__pay ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.co-done__pay li {
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 500;
}
.co-done__note { color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

/* ---------- age gate ---------- */
.agegate {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
  background: rgba(245, 245, 247, 0.92);
  backdrop-filter: blur(16px);
}
.agegate__panel {
  width: min(100%, 400px);
  text-align: center;
  display: grid;
  gap: 16px;
  justify-items: center;
  padding: 44px 30px;
  background: #ffffff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  animation: fadeUp 0.4s ease both;
}
.agegate__brand { font-weight: 600; font-size: 1.15rem; color: var(--ink); }
.agegate__kicker { font-weight: 700; font-size: clamp(3.4rem, 16vw, 5rem); line-height: 1; color: var(--ink); }
.agegate__panel h1 { font-size: 1.5rem; font-weight: 700; line-height: 1.25; color: var(--ink); }
.agegate__panel p { color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.agegate__panel .btn { width: 100%; }

/* ---------- responsive ---------- */
@media (max-width: 1040px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .site-nav { gap: 16px; }
}
@media (max-width: 820px) {
  .site-nav { gap: 12px; }
}
@media (max-width: 699px) {
  .site-nav { display: none; }
  .site-header__actions { gap: 12px; }
  .cards { grid-template-columns: 1fr; }
  .payments__list { grid-template-columns: repeat(2, 1fr); }
  .newsletter__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero-band { min-height: 72vh; }
  .hero-band__inner { padding: 32px 22px; }
  section { padding-top: 80px; padding-bottom: 80px; }
}


