* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --bg: #0e100f; --panel: #181c1a; --panel-2: #1e2320;
  --line: rgba(255,255,255,.08); --line-soft: rgba(255,255,255,.06);
  --text: #f2f5f2; --muted: #98a7a0; --faint: #6b7a73;
  --accent: #57cf94; --accent-dim: #3fae79; --accent-ink: #06130c;
  --r-lg: 18px; --r-md: 12px; --r-pill: 999px;
  --ease-out: cubic-bezier(.32,.72,.28,1);
}
html { height: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  padding-bottom: env(safe-area-inset-bottom);
  overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; cursor: pointer; }

/* ---- age gate: visible by default, hidden only when age-ok ---- */
#agegate { position: fixed; inset: 0; z-index: 100;
  background:
    radial-gradient(130% 90% at 50% -10%, rgba(87,207,148,.13) 0%, rgba(87,207,148,0) 55%),
    var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
}
.age-ok #agegate { display: none; }
.gatecard { text-align: center; max-width: 300px; width: 100%;
  animation: gate-in .5s var(--ease-out) both; }
@keyframes gate-in {
  from { opacity: .01; transform: translateY(14px); }
  to   { opacity: 1;   transform: none; }
}
.gatemark { width: 64px; height: 64px; margin: 0 auto 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; letter-spacing: .01em; color: var(--accent);
  border: 1.5px solid rgba(87,207,148,.45);
  box-shadow: 0 0 0 7px rgba(87,207,148,.07), 0 0 44px rgba(87,207,148,.16); }
.gatecard h1 { font-size: 26px; font-weight: 700; letter-spacing: -.02em;
  margin-bottom: 10px; }
.gatecard p { color: var(--muted); font-size: 15px; line-height: 1.5;
  margin-bottom: 28px; }
.gatebtns { display: flex; flex-direction: column; gap: 12px; }
.gatebtns button { min-height: 50px; border: 0; border-radius: 14px;
  font-weight: 600; font-size: 16px; background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 6px 22px rgba(87,207,148,.22);
  transition: transform .15s var(--ease-out), opacity .15s; }
.gatebtns button:active { transform: scale(.97); opacity: .9; }
.gatebtns button.ghost { background: transparent; color: var(--muted);
  border: 1px solid var(--line); box-shadow: none; }
#gateSorry { margin: 26px 0 0 !important; color: var(--faint); }

/* ---- header ---- */
#top { position: sticky; top: 0; z-index: 10; background: rgba(14,16,15,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  padding: calc(12px + env(safe-area-inset-top)) 16px 10px;
  display: flex; align-items: center; gap: 12px; }
.brand { font-size: 21px; font-weight: 700; letter-spacing: -.02em;
  flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#search { background: var(--panel)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398a7a0' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20.3 20.3-4.2-4.2'/%3E%3C/svg%3E")
    no-repeat 12px center / 15px 15px;
  border: 1px solid var(--line-soft); color: var(--text);
  border-radius: var(--r-md); padding: 9px 12px 9px 34px;
  font: inherit; font-size: 16px; width: 46%; min-height: 44px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background-color .2s; }
#search::placeholder { color: var(--faint); }
#search:focus { outline: none; border-color: rgba(87,207,148,.45);
  background-color: var(--panel-2); }
#search::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ---- chips ---- */
#chipbar { position: sticky; top: calc(66px + env(safe-area-inset-top)); z-index: 9;
  background: rgba(14,16,15,.88);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255,255,255,.04); }
#chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 16px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 32px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 32px), transparent 100%); }
#chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; min-height: 44px; padding: 9px 18px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  font-size: 15px; font-weight: 500;
  transition: background-color .22s, color .22s, border-color .22s,
              transform .13s var(--ease-out); }
.chip:active { transform: scale(.94); }
.chip.sel { background: var(--accent); border-color: var(--accent);
  color: var(--accent-ink); font-weight: 600; }

/* ---- grid ---- */
#grid { display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px 12px; padding: 10px 16px calc(48px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { #grid { grid-template-columns: repeat(3, 1fr); } }
.card { text-decoration: none; color: inherit; display: block;
  transition: transform .18s var(--ease-out), opacity .18s; }
.card:active { transform: scale(.965); opacity: .85; }
.ph { border-radius: var(--r-lg); overflow: hidden; background-color: var(--panel);
  background-size: cover; background-position: center; position: relative;
  transform: translateZ(0); }
.ph::after { content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line-soft); pointer-events: none; }
.ph img { width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0; transition: opacity .5s ease; }
.ph img.ld { opacity: 1; }
.ph.noimg { background-image: linear-gradient(160deg, var(--panel-2), var(--panel)); }
.ph .play { position: absolute; right: 10px; bottom: 10px; font-size: 10px;
  line-height: 1; color: #fff; background: rgba(0,0,0,.5);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-pill); padding: 6px 9px 6px 10px; letter-spacing: .04em; }
.cinfo { display: flex; flex-direction: column; gap: 2px; padding: 10px 2px 0; }
.cname { font-weight: 600; font-size: 15px; line-height: 1.3; letter-spacing: -.01em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; }
.cprice { color: var(--muted); font-size: 13px;
  font-variant-numeric: tabular-nums; }
#noResults { text-align: center; color: var(--faint); font-size: 15px;
  padding: 72px 32px; }

/* ---- product detail overlay ---- */
#detail { position: fixed; inset: 0; z-index: 50; background: var(--bg);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  opacity: 0; transform: translateY(28px);
  transition: opacity .22s ease, transform .26s var(--ease-out); }
#detail.open { opacity: 1; transform: none; }
.dmedia { position: relative; }
.dmedia figure { position: relative; width: 100%;
  aspect-ratio: var(--ar, 3/4); max-height: 76vh; overflow: hidden;
  border-radius: 0 0 22px 22px;
  background-size: cover; background-position: center; background-color: var(--panel); }
.dmedia figure::after { content: ""; position: absolute; inset: 0 0 auto;
  height: 84px; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,0)); }
.dmedia figure img, .dmedia figure video { width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: 0; transition: opacity .45s ease; }
.dmedia figure img.ld, .dmedia figure video.ld { opacity: 1; }
.dback { position: fixed; top: calc(10px + env(safe-area-inset-top)); left: 12px;
  z-index: 51; min-width: 44px; min-height: 44px; border-radius: var(--r-pill);
  border: 0; background: rgba(16,18,17,.45); color: #fff; font-size: 20px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .15s var(--ease-out), background-color .2s; }
.dback:active { transform: scale(.92); background: rgba(16,18,17,.7); }
.dmute { position: absolute; right: 12px; bottom: 14px; min-width: 44px;
  min-height: 44px; border-radius: var(--r-pill); border: 0;
  background: rgba(16,18,17,.45); color: #fff; font-size: 17px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .15s var(--ease-out); }
.dmute:active { transform: scale(.92); }
.dthumbs { display: flex; gap: 10px; padding: 14px 16px 0; overflow-x: auto;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.dthumbs::-webkit-scrollbar { display: none; }
.dthumbs button { flex: 0 0 58px; height: 58px; border-radius: var(--r-md);
  overflow: hidden; border: 2px solid transparent; padding: 0;
  background: var(--panel); opacity: .6;
  transition: border-color .22s, opacity .22s, transform .13s var(--ease-out); }
.dthumbs button:active { transform: scale(.94); }
.dthumbs button.sel { border-color: var(--accent); opacity: 1; }
.dthumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dbody { padding: 18px 16px calc(34px + env(safe-area-inset-bottom)); }
.dbody h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.2; margin-bottom: 6px; }
.dcat { color: var(--accent); font-size: 12px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase; margin-bottom: 14px; }
.dprices { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 18px; }
.pvrow { display: flex; justify-content: space-between; align-items: center;
  background: var(--panel); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); padding: 13px 16px; min-height: 50px; }
.pvrow .pv { font-weight: 700; font-variant-numeric: tabular-nums; }
.ddesc { color: var(--muted); font-size: 15px; line-height: 1.55;
  white-space: pre-wrap; }

/* ---- calm motion for reduced-motion users ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important;
    animation-duration: .01ms !important; }
}

/* empty menu (pre-launch / between publishes) */
.empty-menu { grid-column: 1 / -1; text-align: center; color: var(--faint);
  font-size: 15px; padding: 96px 32px; }

/* ================= wholesale conversion layer (panel-ratified spec) ========= */
:root { --gold: #d9b96a; --gold-dim: rgba(217,185,106,.45); }

/* age gate context line */
.gateline { color: var(--muted); font-size: 13px; margin: -4px 0 14px !important; }

/* category section headers (grouped "All" view only) */
.sect { grid-column: 1 / -1; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .09em; color: var(--faint);
  padding: 14px 2px 0; }
.sect.premium { color: var(--gold); }
.dcat.premium { color: var(--gold); }

/* card badges: frosted dark pill, colored TEXT (photo stays dominant) */
.badge { position: absolute; top: 10px; left: 10px; font-size: 10px; font-weight: 600;
  line-height: 1; text-transform: uppercase; letter-spacing: .06em;
  background: rgba(0,0,0,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border-radius: var(--r-pill); padding: 6px 9px; }
.badge.accent { color: var(--accent); }
.badge.gold { color: var(--gold); }
.dbadge { display: inline-block; vertical-align: 3px; margin-left: 8px; font-size: 11px;
  font-weight: 600; letter-spacing: .06em; padding: 3px 8px; border-radius: var(--r-pill); }
.dbadge.accent { color: var(--accent); border: 1px solid rgba(87,207,148,.45); }
.dbadge.gold { color: var(--gold); border: 1px solid var(--gold-dim); }

/* price promoted by color, not size (line-sheet hierarchy) */
.cprice { color: var(--text); font-weight: 500; }

/* selectable tier rows */
.dprices .pvrow { width: 100%; text-align: left; font: inherit; color: inherit;
  align-items: center; transition: border-color .15s, background-color .15s; }
.pvrow.sel { border-color: var(--accent); background: var(--panel-2); }
.pvrow.sel > span:first-child::before { content: "✓ "; color: var(--accent); font-weight: 700; }
.pvright { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.pvrow .pv { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.perlb { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.askrow { justify-content: center; color: var(--accent); text-decoration: none; font-weight: 600; }

/* trust micro-line + batch caption */
.microtrust { color: var(--faint); font-size: 12px; letter-spacing: .01em;
  text-align: center; margin-top: 18px; }
.batchline { color: var(--faint); font-size: 12px; letter-spacing: .01em;
  text-align: center; padding: 8px 16px 0; }

/* sticky CTA bar inside the detail sheet (sticky, NOT fixed — Safari transform rule) */
.ctabar { position: sticky; bottom: 0; z-index: 52; margin-top: 8px;
  background: rgba(14,16,15,.9); backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 -1px 0 var(--line-soft);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); }
.ctabar .cta { display: block; min-height: 52px; line-height: 52px; text-align: center;
  background: var(--accent); color: var(--accent-ink); text-decoration: none;
  border-radius: 14px; font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; padding: 0 14px;
  box-shadow: 0 6px 22px rgba(87,207,148,.22);
  transition: transform .15s var(--ease-out), opacity .15s; }
.ctabar .cta:active { transform: scale(.97); opacity: .9; }
#detail .dbody { padding-bottom: 28px; }

/* floating Text Us pill (grid level) */
.pill-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 46px;
  padding: 0 20px; background: var(--accent); color: var(--accent-ink);
  border-radius: var(--r-pill); font-size: 15px; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 22px rgba(87,207,148,.22);
  transition: transform .15s var(--ease-out), opacity .15s; }
.pill-cta:active { transform: scale(.95); }
.pill-cta.floating { position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 20;
  transition: opacity .15s, transform .15s var(--ease-out); }
.pill-cta.floating:active { transform: translateX(-50%) scale(.95); }
.pill-cta.floating.hide { opacity: 0; pointer-events: none; }
#grid { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }

/* footer trust block */
#foot { text-align: center; color: var(--muted); font-size: 13px;
  padding: 8px 24px calc(120px + env(safe-area-inset-bottom)); }
#foot .fmark { font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  color: var(--text); margin-bottom: 10px; }
#foot p { margin: 3px 0; }
#foot .pill-cta { margin: 16px 0 6px; }
#foot .drops { margin-top: 10px; color: var(--faint); }
.flink { color: var(--accent); text-decoration: none; font-weight: 600; }

/* wordmark (Gemini-designed, inline SVG — renders identically everywhere) */
.brand svg { height: 21px; width: auto; display: block; }
.gatelogo { margin-bottom: 10px; }
.gatelogo svg { width: 200px; height: auto; display: block; margin: 0 auto; }

/* the hidden attribute must always win over any display rule */
[hidden] { display: none !important; }

/* brand badge on the age gate (raster lockup chosen by owner) */
.gatelogo img { width: min(290px, 76vw); height: auto; display: block; margin: 0 auto;
  border-radius: 20px; box-shadow: 0 18px 60px rgba(0,0,0,.5); }

/* highlight chips — the wholesale spec sheet at a glance */
.spectags { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 14px; }
.spec { font-size: 12.5px; font-weight: 500; letter-spacing: .01em; color: var(--text);
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-pill);
  padding: 6px 12px; }


.pill-cta.floating.atfoot { opacity: 0; pointer-events: none; }
#foot .fmark svg { height: 18px; width: auto; display: block; margin: 0 auto 10px; }

.cspecs { color: var(--faint); font-size: 12px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
