/* ELFBAR BC 10000 Puffs - light, colourful storefront. No dark sections. No external fonts or images. */
:root {
  --ink: #16162e;
  --text: #22233a;
  --muted: #6b6f86;
  --line: #ebedf6;
  --soft: #f8f9ff;
  --white: #ffffff;
  --pink: #ff4f8b;
  --orange: #ff9f1c;
  --yellow: #ffd60a;
  --mint: #2ec4b6;
  --blue: #3a86ff;
  --violet: #8338ec;
  --ok: #15803d;
  --pink-text: #be185d;
  --violet-text: #6d28d9;
  --grad: linear-gradient(135deg, #d6336c 0%, #7c3aed 55%, #2563eb 100%);
  --grad-warm: linear-gradient(135deg, #ff9f1c 0%, #ff4f8b 100%);
  --radius: 18px;
  --shadow: 0 10px 28px rgba(60, 40, 120, 0.10);
  --shadow-lg: 0 22px 54px rgba(60, 40, 120, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
}
body.gated { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--violet); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(34px, 5vw, 60px); font-weight: 900; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 8px; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 780px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px; z-index: 50; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--violet-text); background: #f1e9ff; padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(60, 40, 120, 0.05);
}
.bar { display: flex; justify-content: space-between; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; text-decoration: none; color: var(--ink); letter-spacing: 0.01em; }
.brand .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 4px rgba(255, 79, 139, 0.18); }
.nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--ink); }
.nav a:hover { background: #f3f0ff; color: var(--violet); }
.nav .cart-pill { background: var(--grad); color: #fff; margin-left: 6px; box-shadow: 0 8px 18px rgba(131, 56, 236, 0.25); }
.nav .cart-pill:hover { background: var(--grad); color: #fff; filter: brightness(1.06); }
.nav .cart-pill span { display: inline-block; min-width: 22px; text-align: center; border-radius: 999px; background: #fff; color: var(--violet); padding: 0 6px; margin-left: 4px; font-size: 13px; }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--ink);
  font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
  background: #fff; color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.primary { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 10px 22px rgba(131, 56, 236, 0.28); }
.btn.primary:hover { filter: brightness(1.05); }
.btn.soft { background: #fff4f9; color: var(--pink); border-color: #ffd1e3; }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.link { background: none; border: 0; padding: 0; color: var(--pink-text); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #eef4ff; color: #1d4ed8; }
.chip.pink { background: #ffe8f1; color: #be185d; }
.chip.yellow { background: #fff6cc; color: #854d0e; }
.chip.mint { background: #dcfbf6; color: #0f766e; }
.chip.ok { background: #dcfce7; color: var(--ok); }

/* ---------- hero (light, colourful) ---------- */
.hero {
  background:
    radial-gradient(760px 420px at 96% -12%, rgba(255, 79, 139, 0.22), transparent 62%),
    radial-gradient(680px 420px at -10% 115%, rgba(58, 134, 255, 0.20), transparent 62%),
    radial-gradient(520px 320px at 55% 120%, rgba(255, 214, 10, 0.25), transparent 62%),
    #ffffff;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero .wrap { display: grid; gap: 32px; align-items: center; padding-top: 52px; padding-bottom: 60px; }
.hero h1 { color: var(--ink); }
.hero h1 em { font-style: normal; color: var(--pink-text); }
.hero .lead { color: var(--muted); font-size: 18px; max-width: 560px; margin: 16px 0 24px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-art img {
  width: min(100%, 460px); border-radius: 30px; background: #fff;
  box-shadow: 0 30px 60px rgba(131, 56, 236, 0.22), 0 0 0 10px #ffffffcc;
}
.price-badge {
  position: absolute; right: 2%; bottom: 6%;
  background: #fff; color: var(--ink); border-radius: 18px; padding: 12px 18px;
  box-shadow: var(--shadow-lg); font-weight: 900; line-height: 1.2; font-size: 20px;
  border: 2px solid transparent; background-image: linear-gradient(#fff, #fff), var(--grad); background-origin: border-box; background-clip: padding-box, border-box;
}
.price-badge small { display: block; font-weight: 700; color: var(--muted); font-size: 12px; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.05fr 0.95fr; } }

/* ---------- trust bar (colourful tiles) ---------- */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-top: 16px; padding-bottom: 16px; }
.trust .item {
  padding: 14px 10px; text-align: center; font-weight: 800; font-size: 14px; color: var(--ink);
  border-radius: 16px; border: 1px solid var(--line);
}
.trust .item:nth-child(1) { background: #fff0f6; }
.trust .item:nth-child(2) { background: #eef6ff; }
.trust .item:nth-child(3) { background: #fff8db; }
.trust .item:nth-child(4) { background: #ecfdf8; }
.trust .item span { display: block; font-weight: 600; color: var(--muted); font-size: 13px; margin-top: 2px; }
@media (min-width: 800px) { .trust .wrap { grid-template-columns: repeat(4, 1fr); } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--soft); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head p { color: var(--muted); margin: 0; max-width: 560px; }

/* product lines */
.lines { display: grid; gap: 18px; }
@media (min-width: 760px) { .lines { grid-template-columns: 1fr 1fr; } }
.line-card {
  position: relative; display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center;
  padding: 18px; border-radius: 24px; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.line-card.pink { background: linear-gradient(150deg, #fff0f6, #ffffff 70%); }
.line-card.blue { background: linear-gradient(150deg, #eef6ff, #ffffff 70%); }
.line-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.line-card img { width: 150px; aspect-ratio: 1 / 1; object-fit: contain; border-radius: 18px; background: #fff; }
.line-card h3 { font-size: 21px; margin-bottom: 6px; }
.line-card .meta { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.line-card .cta { font-weight: 800; color: var(--pink-text); }
@media (max-width: 420px) { .line-card { grid-template-columns: 1fr; } .line-card img { width: 100%; } }

/* flavour grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; }
.card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  box-shadow: 0 2px 6px rgba(60, 40, 120, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d9d2ff; }
.card .img { background: radial-gradient(circle at 50% 30%, #ffffff 0%, #f4f0ff 75%); padding: 12px; }
.card img { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; }
.card .body { padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { font-size: 16px; }
.card .price { font-size: 14px; color: var(--muted); }
.card .price b { color: var(--ink); }
.card .btn { margin-top: auto; align-self: flex-start; }

/* how it works */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 900; margin-bottom: 12px;
  box-shadow: 0 8px 16px rgba(131, 56, 236, 0.25);
}
.step p { color: var(--muted); margin: 0; }

/* info / faq */
.info { display: grid; gap: 14px; }
@media (min-width: 760px) { .info { grid-template-columns: 1fr 1fr; } }
.info-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.info-box ul { margin: 0; padding-left: 18px; }
.info-box li { margin-bottom: 6px; }

/* ---------- product page ---------- */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 18px; }
.crumbs a { text-decoration: none; color: var(--violet); font-weight: 600; }
.pdp { display: grid; gap: 28px; padding: 14px 18px 32px; max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) { .pdp { grid-template-columns: 1.05fr 1fr; align-items: start; } }
.gallery {
  position: sticky; top: 92px; border-radius: 30px; padding: 26px;
  background: radial-gradient(circle at 50% 30%, #ffffff 0%, #fbf3ff 70%);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain; }
.buy h1 { font-size: clamp(30px, 4vw, 46px); margin: 8px 0 8px; }
.buy .notes { color: var(--muted); font-size: 17px; margin-bottom: 14px; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.price-tile { border-radius: 18px; padding: 14px; background: #eef6ff; border: 2px solid transparent; }
.price-tile:not(.best) { background: #fff0f6; }
.price-tile span { color: var(--muted); font-size: 13px; font-weight: 600; }
.price-tile b { display: block; font-size: 26px; letter-spacing: -0.01em; color: var(--ink); }
.price-tile.best { border-color: var(--pink); background: #fff0f6; }

.buy-form { display: grid; gap: 14px; border: 1px solid var(--line); border-radius: 24px; padding: 22px; background: #fff; box-shadow: var(--shadow-lg); }
.buy-form > label, .buy-form .field { display: grid; gap: 6px; font-weight: 800; font-size: 14px; color: var(--ink); }
select, input, textarea {
  font: inherit; width: 100%; padding: 12px 14px; border: 1px solid #d6d9ea; border-radius: 14px; background: #fff; color: var(--text);
}
select:focus, input:focus, textarea:focus { outline: 3px solid rgba(131, 56, 236, 0.22); border-color: var(--violet); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; padding: 0; margin: 0; }
.segmented legend { font-weight: 800; font-size: 14px; margin-bottom: 6px; padding: 0; color: var(--ink); }
.segmented label {
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px; border: 2px solid #e4e6f2; border-radius: 14px; font-weight: 800; background: #fff; color: var(--ink);
}
.segmented input { width: auto; accent-color: var(--pink); }
.segmented label:has(input:checked) { border-color: var(--violet); background: #f5efff; color: var(--violet); }
.pending { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.pending li { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px dashed #c9cbe6; border-radius: 14px; padding: 10px 12px; background: var(--soft); }
.pending .empty { color: var(--muted); display: block; background: none; border: 0; padding: 0; }
.totals { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--ink); }
.totals strong { font-size: 22px; color: var(--pink-text); }
.buy-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-actions .btn { width: 100%; }
#buy-msg { min-height: 1.2em; color: var(--ok); font-weight: 700; margin: 0; }
.trust-list { display: grid; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust-list li::before { content: "✓ "; color: var(--ok); font-weight: 900; }

.product-body { display: grid; gap: 16px; padding: 8px 18px 40px; max-width: 1180px; margin: 0 auto; }
@media (min-width: 900px) { .product-body { grid-template-columns: 1.4fr 1fr; } }
.notice { font-size: 14px; color: #9a3412; background: #fff4e6; border: 1px solid #ffd6a5; border-radius: 14px; padding: 10px 12px; }

/* ---------- cart & checkout ---------- */
.page-title { padding: 36px 0 8px; }
.checkout { display: grid; gap: 24px; padding: 8px 0 32px; }
@media (min-width: 860px) { .checkout { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 800; font-size: 14px; color: var(--ink); }
.form .check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.form .check input { width: auto; accent-color: var(--pink); }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fbfbff; box-shadow: var(--shadow); }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; }
.summary dd { margin: 0; text-align: right; }
.items { padding-left: 18px; }
.line { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; border-bottom: 1px solid var(--line); padding: 14px 0; align-items: center; }
.line .qty { display: flex; gap: 8px; align-items: center; }
.line .qty button { width: 34px; height: 34px; border: 1px solid var(--line); background: #fff; border-radius: 10px; cursor: pointer; font-size: 18px; color: var(--ink); }
.line-total { font-weight: 900; color: var(--pink-text); }
.warn { color: #b91c1c; }

/* ---------- age gate (light overlay) ---------- */
.age-gate { position: fixed; inset: 0; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 100; }
.age-card { background: #fff; border-radius: 24px; padding: 28px; max-width: 440px; width: 100%; box-shadow: var(--shadow-lg); border: 2px solid transparent; background-image: linear-gradient(#fff, #fff), var(--grad); background-origin: border-box; background-clip: padding-box, border-box; }
.age-card h2 { margin-bottom: 8px; }
.gated { overflow: hidden; }

/* ---------- small screens ---------- */
@media (max-width: 640px) {
  .bar { min-height: 58px; flex-wrap: nowrap; }
  .brand { font-size: 15px; white-space: nowrap; }
  .hide-sm { display: none; }
  .nav { flex-wrap: nowrap; }
  .nav .cart-pill { margin-left: 0; }
  .hero .wrap { padding-top: 32px; padding-bottom: 40px; }
  .section { padding: 40px 0; }
  .gallery { position: static; }
}

/* ---------- footer (light, colourful edge) ---------- */
.site-footer {
  background: linear-gradient(180deg, #ffffff, #f7f5ff);
  color: var(--muted); padding: 44px 0 30px; margin-top: 40px; font-size: 14px;
  border-top: 6px solid transparent; border-image: var(--grad) 1;
}
.site-footer .cols { display: grid; gap: 22px; }
@media (min-width: 800px) { .site-footer .cols { grid-template-columns: 1.2fr 1fr; } }
.site-footer strong { color: var(--ink); }
.site-footer p { margin: 0 0 10px; }
.site-footer a { color: var(--violet); font-weight: 600; }
.legal { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.legal p { margin: 0; }
