/* The pages Google reads (/shop, /brands, /p/<product>, /deals, /delivery), built by netlify/functions/.
   Same look as the shop: deep purple, neon green, white product tiles. */
:root {
  color-scheme: dark;
  --bg-1: #12082a;
  --bg-2: #2c1468;
  --green: #6cff4f;
  --green-ink: #0c2c08;
  --lav: #d9ccff;
  --text: #f6f2ff;
  --muted: rgba(246, 242, 255, 0.72);
  --faint: rgba(246, 242, 255, 0.48);
  --line: rgba(217, 204, 255, 0.2);
  --line-2: rgba(217, 204, 255, 0.45);
  --glass: rgba(255, 255, 255, 0.06);
  --out: #ff9aab;
  --f-display: "Unbounded", "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-body: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--text); font: 16px/1.55 var(--f-body);
  background: var(--bg-1) radial-gradient(120% 60% at 85% -10%, rgba(150, 105, 255, 0.32), transparent 60%) no-repeat;
  background-color: var(--bg-1);
}
a { color: var(--lav); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 6px; }
img { max-width: 100%; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(18, 8, 42, 0.92); border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); padding-top: env(safe-area-inset-top, 0px); }
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.brand { font: 900 22px/0.95 var(--f-display); color: var(--green); text-decoration: none; text-shadow: 0 0 12px rgba(108, 255, 79, 0.4); }
.brand small { display: block; margin-top: 3px; font: 700 9px var(--f-display); letter-spacing: 0.42em; color: var(--text); text-shadow: none; }
.top__nav { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: 14px; }
.top__nav > a:not(.btn) { color: var(--muted); text-decoration: none; }
@media (max-width: 720px) { .top__nav > a:not(.btn) { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font: 700 15px var(--f-body); text-decoration: none; white-space: nowrap; }
.btn--green { background: var(--green); color: var(--green-ink); box-shadow: 0 3px 0 #2fb81c; }
.btn--ghost { border: 1.5px solid var(--line-2); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 6px; }

/* intro */
main { padding-block: 14px 48px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
h1 { margin: 14px 0 10px; font: 900 clamp(28px, 6.4vw, 48px)/1.05 var(--f-display); letter-spacing: -0.01em; text-wrap: balance; }
h2 { font: 700 clamp(18px, 4.2vw, 22px)/1.2 var(--f-display); margin: 0 0 12px; text-wrap: balance; }
h2 span { font: 600 13px var(--f-body); color: var(--faint); margin-left: 6px; }
.lead { max-width: 68ch; margin: 0; color: var(--muted); font-size: 17px; }
.facts { margin: 12px 0 0; font-size: 14px; color: var(--faint); }
.facts strong { color: var(--text); }
.empty { margin: 32px 0; padding: 28px; border: 1px dashed var(--line-2); border-radius: 16px; color: var(--muted); text-align: center; }

/* brands and category chips */
.brands, .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.brands { align-items: center; margin: 26px 0 4px; }
.brands > span { font-size: 13px; color: var(--faint); margin-right: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass);
  color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none; }
.chip b { font-weight: 500; color: var(--faint); }

/* products */
.group { padding-top: 30px; scroll-margin-top: 80px; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 980px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.pc a { display: grid; height: 100%; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; background: #fff; color: #1b1036; text-decoration: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.pc__img { display: grid; place-items: center; aspect-ratio: 1 / 1; background: #f3effc; }
.pc__img img { width: 82%; height: 82%; object-fit: contain; }
.pc__body { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; min-width: 0; }
.pc__brand { font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #6a5f86; }
.pc__name { font-weight: 600; font-size: 14.5px; line-height: 1.25; overflow-wrap: anywhere; }
.pc__meta { font-size: 12.5px; color: #6a5f86; }
.pc__price { margin-top: auto; padding-top: 4px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.pc__price s { font-weight: 500; font-size: 12.5px; color: #8b80a6; }
.pc__out { align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: #ffe1e6; color: #b3263e; }
.is-out .pc__img { opacity: 0.5; }

/* hub */
.cats { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cats a { display: grid; gap: 4px; height: 100%; padding: 16px 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--glass); color: var(--text); text-decoration: none; }
.cats__name { font: 700 16px/1.25 var(--f-display); }
.cats__count { font-size: 13px; font-weight: 600; color: var(--green); }
.cats__desc { font-size: 14px; color: var(--muted); }

/* visit, FAQ, more */
.visit, .faq, .more { margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.visit p { max-width: 70ch; color: var(--muted); }
.visit strong { color: var(--text); }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 8px 0 0; color: var(--muted); }

/* footer */
.foot { border-top: 1px solid var(--line); padding-block: 24px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--faint); font-size: 14px; }
.foot__grid { display: grid; gap: 10px; }
.foot strong { color: var(--text); }
.foot__age { font-size: 13px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* brand sections: heading with an "All … ›" link */
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.group__head h2 { margin: 0; }
.seeall { font-size: 14px; font-weight: 600; color: var(--green); text-decoration: none; white-space: nowrap; }

/* /brands: A–Z */
.az { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0 6px; }
.az a { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--text); font-weight: 700; text-decoration: none; }
.letter { padding-top: 22px; scroll-margin-top: 80px; }
.letter h2 { color: var(--green); }
.blist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
@media (min-width: 640px) { .blist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .blist { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.blist a { display: flex; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.blist a b { font-weight: 500; color: var(--faint); }

/* /delivery */
.steps-sec, .dl { margin-top: 36px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; max-width: 760px; }
.steps li { counter-increment: s; position: relative; min-height: 34px; padding: 4px 0 0 50px; color: var(--muted); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--green); color: var(--green-ink); font-weight: 800; }
.steps strong { color: var(--text); }
.dl dl { margin: 0; display: grid; gap: 0; max-width: 760px; border-top: 1px solid var(--line); }
.dl dl > div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-weight: 700; }
.dl dd { margin: 0; color: var(--muted); }
@media (max-width: 480px) { .dl dl > div { grid-template-columns: 1fr; gap: 2px; } }

/* /p/<product> */
.prod { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-top: 16px; }
@media (min-width: 860px) {
  .prod { grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 44px; align-items: start; }
  .prod__media { position: sticky; top: 84px; }
}
.prod__main { display: grid; place-items: center; aspect-ratio: 1 / 1; border-radius: 20px; background: #fff; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25); }
.prod__main img { width: 86%; height: 86%; object-fit: contain; }
.prod__main--none { color: #8b80a6; font-weight: 600; }
.prod__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.prod__thumbs::-webkit-scrollbar { display: none; }
.prod__thumbs a { flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: #fff; border: 2px solid transparent; }
.prod__thumbs a[aria-current="true"] { border-color: var(--green); }
.prod__thumbs img { width: 80%; height: 80%; object-fit: contain; }
.prod__kicker { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.prod__kicker a { color: var(--lav); text-decoration: none; }
.prod h1 { margin: 8px 0 12px; font-weight: 700; font-size: clamp(22px, 4.8vw, 32px); line-height: 1.15; }
.prod__price { margin: 0; font-size: 26px; font-variant-numeric: tabular-nums; }
.prod__price s { font-size: 17px; color: var(--faint); margin-right: 4px; }
.prod__stock { display: inline-block; margin: 10px 0 0; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; background: rgba(108, 255, 79, 0.14); color: var(--green); }
.prod__stock.is-out { background: rgba(255, 154, 171, 0.14); color: var(--out); }
.prod__opts { margin-top: 22px; }
.prod__opts h2 { font: 700 15px var(--f-body); margin-bottom: 8px; }
.opts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts li { padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); font-size: 14px; font-weight: 600; }
.opts li b { font-weight: 600; color: var(--green); margin-left: 3px; }
.opts li.is-out { color: var(--faint); }
.opts li small { color: var(--out); font-weight: 600; margin-left: 3px; }
.prod__desc { margin: 20px 0 0; color: var(--muted); max-width: 62ch; }

/* /deals */
.deal { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); scroll-margin-top: 80px; }
.deal__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 16px; }
.deal__img { flex: 0 0 auto; width: 96px; height: 96px; border-radius: 16px; object-fit: cover; background: #fff; }
.deal__img--product { object-fit: contain; padding: 8px; }
.deal__head h2 { margin: 6px 0 4px; }
.deal__badge { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green); color: var(--green-ink); font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.deal__label { margin: 0; font: 700 18px var(--f-body); color: var(--green); }
.deal__sub { margin: 6px 0 0; color: var(--muted); max-width: 68ch; }
.deal__meta { margin: 8px 0 0; font-size: 14px; color: var(--faint); }
.deal .actions { margin: 14px 0 0; }
@media (max-width: 480px) { .deal__img { width: 72px; height: 72px; } }

/* deals sign-up (/deals) and stop (/deals/stop) */
.join { margin-top: 34px; padding: 22px; border-radius: 20px; border: 1px solid var(--line-2); background: var(--glass); max-width: 780px; scroll-margin-top: 80px; }
.join h2 { margin-bottom: 6px; }
.join > p { margin: 0 0 14px; color: var(--muted); }
.join__fields { display: grid; gap: 12px; grid-template-columns: 1fr; margin-bottom: 8px; }
@media (min-width: 640px) { .join__fields { grid-template-columns: 1fr 1fr 1fr; } .join__fields--2 { grid-template-columns: 1fr 1fr; } }
.join .f { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.join .f i { font-style: normal; font-weight: 500; color: var(--faint); }
.join input[type="text"], .join input[type="email"], .join input[type="tel"] { width: 100%; padding: 11px 13px; border-radius: 12px; border: 1.5px solid var(--line-2); background: rgba(0, 0, 0, 0.25); color: var(--text); font: 500 16px var(--f-body); }
.join input:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }
.join__check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.join__check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--green); }
.join__check strong { color: var(--text); }
.join button.btn { margin-top: 8px; border: 0; cursor: pointer; }
.join button.btn:disabled { opacity: 0.6; cursor: default; }
.join__msg { margin: 10px 0 0; min-height: 1.4em; font-weight: 600; color: var(--green); }
.join__msg.is-bad { color: var(--out); }
.join__stop { margin: 12px 0 0 !important; font-size: 13.5px; color: var(--faint) !important; }
