/* WBOTY - dark purple storefront */
:root {
  --bg: #0a0713;
  --surface: #120d20;
  --surface-2: #1a1430;
  --border: rgba(167, 139, 250, 0.13);
  --border-strong: rgba(167, 139, 250, 0.32);
  --text: #efecf7;
  --muted: #a39cbb;
  --faint: #8a83a8;
  --accent: #8b5cf6;
  --accent-soft: rgba(139, 92, 246, 0.14);
  --accent-text: #c4b5fd;
  --grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  --ok: #34d399;
  --off: #f87171;
  --radius: 14px;
  --radius-sm: 10px;
  --maxw: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-gutter: stable; }
html:has(.dialog[open]) { overflow: hidden; }
.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; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.fine { color: var(--faint); font-size: 12.5px; line-height: 1.6; }
.center { text-align: center; }

/* Icons */
.i { display: inline-flex; width: 18px; height: 18px; flex: none; }
.i svg { width: 100%; height: 100%; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 14.5px; line-height: 1; color: var(--text);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { height: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -10px rgba(139, 92, 246, .8); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 10px 28px -8px rgba(139, 92, 246, .9); }
.btn-ghost { background: rgba(255, 255, 255, .03); border-color: var(--border-strong); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; box-shadow: none; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  background: transparent; border: 1px solid var(--border); color: var(--muted); cursor: pointer;
}
.icon-btn:hover { color: #fff; border-color: var(--border-strong); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 7, 19, .72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark { width: 30px; height: 30px; }
.brand-mark.sm { width: 24px; height: 24px; }
.brand-name { font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14px; padding: 8px 12px; border-radius: 8px; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 72px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%;
  background:
    radial-gradient(40% 50% at 50% 30%, rgba(124, 58, 237, .32), transparent 70%),
    radial-gradient(30% 35% at 75% 10%, rgba(168, 85, 247, .18), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(167, 139, 250, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(167, 139, 250, .05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 55% at 50% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--border-strong); background: var(--accent-soft);
  color: var(--accent-text); font-size: 13px; font-weight: 500;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(52, 211, 153, .18); }
.hero h1 { margin-top: 22px; font-size: clamp(2.1rem, 5.4vw, 3.6rem); font-weight: 800; }
.grad-text { background: linear-gradient(90deg, #c4b5fd, #a855f7 60%, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { margin-top: 18px; max-width: 560px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.12rem); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 40px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust .i { color: var(--accent-text); width: 17px; height: 17px; }

/* Sections */
.section { padding: 72px 0; }
.section + .section { border-top: 1px solid rgba(167, 139, 250, .07); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 750; }
.section-head p { margin-top: 8px; }

/* Search + chips */
.search {
  display: flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 14px; width: min(320px, 100%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--faint);
  transition: border-color .2s ease;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search input { flex: 1; min-width: 0; height: 100%; background: transparent; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; }
.search input::placeholder { color: var(--faint); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 24px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  font-family: inherit; font-weight: 500; font-size: 13.5px; line-height: 1; cursor: pointer; transition: all .15s ease;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: #fff; }
.chip .count { margin-left: 2px; color: var(--faint); font-weight: 400; }
.chip[aria-pressed="true"] .count { color: var(--accent-text); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  padding: 20px; text-align: left; width: 100%;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%);
  border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font: inherit; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 18px 40px -22px rgba(139, 92, 246, .55); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.tile {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent-text); border: 1px solid rgba(167, 139, 250, .18);
}
.tile .i { width: 22px; height: 22px; }
.badge {
  font-size: 11.5px; font-weight: 600; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 999px;
  background: #7c3aed; color: #fff;
}
.card-head { display: block; }
.card-cat { display: block; color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.card-title { display: block; font-size: 16.5px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; margin-top: 4px; }
.card-desc {
  color: var(--muted); font-size: 13.5px; line-height: 1.55;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.price { font-weight: 700; font-size: 17px; }
.price small { color: var(--faint); font-weight: 500; font-size: 12px; margin-right: 4px; }
.stock { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.stock.out::before { background: var(--off); }
.stock.soon::before { background: var(--faint); }
.card.is-out .tile, .card.is-out .price, .card.is-out .badge { opacity: .5; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.step { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 700; font-size: 14px;
}
.step h3 { margin-top: 16px; font-size: 16.5px; font-weight: 650; }
.step p { margin-top: 6px; color: var(--muted); font-size: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; cursor: pointer; list-style: none; font-weight: 600; font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--faint); transition: transform .2s ease; }
.faq details[open] summary .i { transform: rotate(180deg); color: var(--accent-text); }
.faq details p { padding: 0 18px 18px; color: var(--muted); font-size: 14.5px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 24px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; flex-wrap: wrap; }
.footer-inner .fine { margin-top: 12px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { color: var(--muted); font-size: 14px; }
.footer-nav a:hover { color: var(--text); }

/* Product dialog */
.dialog {
  width: min(500px, calc(100% - 32px)); max-height: calc(100% - 32px);
  padding: 24px; margin: auto;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(139, 92, 246, .08);
  overflow: auto; overscroll-behavior: contain;
}
.dialog:not([open]) { display: none; }
.dialog::backdrop { background: rgba(5, 3, 10, .72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog[open] { animation: pop .18s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.dialog-head { display: flex; align-items: center; gap: 14px; }
.dialog-head > div { flex: 1; min-width: 0; }
.d-cat { color: var(--faint); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.dialog h3 { font-size: 19px; font-weight: 700; margin-top: 2px; }
.d-desc { margin-top: 16px; color: var(--muted); font-size: 14.5px; }
.options { border: 0; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.options legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.option {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: 12px; cursor: pointer;
  background: rgba(255, 255, 255, .02); border: 1px solid var(--border);
  transition: border-color .15s ease, background .15s ease;
}
.option:hover { border-color: var(--border-strong); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--faint); flex: none; transition: all .15s ease; }
.option .label { flex: 1; font-weight: 500; font-size: 14.5px; }
.option .opt-price { font-weight: 650; font-size: 14.5px; }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.option input:checked + .radio { border-color: var(--accent); background: radial-gradient(circle, #fff 0 3px, var(--accent) 4px); }
.option input:focus-visible + .radio { outline: 2px solid var(--accent); outline-offset: 2px; }
.dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--border); }
.d-price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
#d-note { margin-top: 14px; }

/* Responsive */
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .hero { padding: 72px 0 56px; }
  .br-wide { display: none; }
  .section { padding: 56px 0; }
  .search { width: 100%; }
  .dialog { padding: 20px; }
  .dialog-foot { flex-direction: column; align-items: stretch; }
  .dialog-foot .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
