:root {
  --bg: #07070a;
  --ink: #f7f4f8;
  --muted: #b9b4c2;
  --pink: #ff4fd8;
  --pink-deep: #ff2fbe;
  --line: rgba(255, 255, 255, 0.14);
  --silver: #f4f4f8;
  --card: rgba(16, 16, 20, 0.78);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font: "Outfit", "Segoe UI", sans-serif;
  --display: "Syne", "Outfit", sans-serif;
  --dock: 92px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(900px 420px at 50% -8%, rgba(255, 79, 216, 0.18), transparent 60%),
    radial-gradient(700px 380px at 100% 12%, rgba(255, 255, 255, 0.06), transparent 46%),
    var(--bg);
  padding-bottom: var(--dock);
}

body::selection,
body *::selection {
  background: rgba(255, 79, 216, 0.35);
  color: white;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

button, input { font: inherit; color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: white;
  color: black;
  padding: 8px 12px;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

#atmosphere {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 30;
}

.site-header,
main,
.site-footer { position: relative; z-index: 1; }

.site-header {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 16px 28px;
  position: sticky;
  top: 0;
  z-index: 35;
  background: linear-gradient(to bottom, rgba(7, 7, 10, 0.92), rgba(7, 7, 10, 0.66) 72%, transparent);
  backdrop-filter: blur(12px);
}

.brand { display: flex; align-items: center; margin-right: auto; }

.brand img {
  height: 58px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(255, 79, 216, 0.35));
}

.nav { display: flex; gap: 18px; }

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.nav a:hover,
.nav a:focus-visible { color: white; }

.hero {
  padding: 18px 28px 20px;
  text-align: center;
}

.hero-logo {
  width: min(860px, 94vw);
  margin: 8px auto 10px;
  filter: drop-shadow(0 12px 28px rgba(255, 79, 216, 0.28));
}

.eyebrow,
.card-cat {
  margin: 0;
  color: var(--pink);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.74rem;
  font-weight: 600;
}

h1, h2, h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.03em; }

h1 {
  margin: 10px auto 8px;
  max-width: 16ch;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.96;
}

.lede {
  margin: 0 auto;
  max-width: 46rem;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 300;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions { justify-content: center; margin-top: 22px; }

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover { transform: translateY(-1px); }

.btn:focus-visible,
.chip:focus-visible,
.icon-btn:focus-visible,
.fx-toggle:focus-visible,
.text-btn:focus-visible,
.qty button:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}

.btn-primary {
  color: #1a0614;
  background: linear-gradient(180deg, #fff 0%, #ffd2f3 18%, var(--pink) 55%, var(--pink-deep) 100%);
  box-shadow: 0 8px 24px rgba(255, 79, 216, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  font-weight: 650;
}

.btn-ghost,
.icon-btn {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.icon-btn { border-radius: 999px; padding: 10px 14px; cursor: pointer; }

.basket-count {
  display: inline-grid;
  place-items: center;
  min-width: 1.4rem;
  height: 1.4rem;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--pink);
  color: #1a0614;
  font-size: 0.75rem;
  font-weight: 700;
}

.section { padding: 28px 28px 10px; max-width: 1160px; margin: 0 auto; }

.section-head h2 { margin: 0 0 6px; font-size: clamp(1.8rem, 3vw, 2.6rem); }

.note, .fine, .card-blurb, .step p, .faq p { color: var(--muted); }

.note { margin: 0 0 18px; max-width: 62ch; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.chip.is-on {
  border-color: rgba(255, 79, 216, 0.7);
  color: white;
  box-shadow: inset 0 0 0 1px rgba(255, 79, 216, 0.35);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card-art {
  height: 150px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(120px 60px at 50% 80%, rgba(255, 79, 216, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.card-art img { max-height: 120px; width: auto; object-fit: contain; }

.piece { width: min(180px, 80%); height: auto; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35)); }

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 16px 18px; flex: 1; }

.card-body h3 { margin: 0; font-size: 1.45rem; }

.card-blurb { margin: 0; font-size: 0.94rem; flex: 1; }

.card-price {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.25rem;
}

.card-actions .btn { flex: 1; text-align: center; }

.steps, .faq-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.step, .faq-list article {
  margin: 0;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.step span {
  display: inline-block;
  color: var(--pink);
  font-family: var(--display);
  font-size: 1.3rem;
}

.step h3, .faq-list h3 { margin: 8px 0; font-size: 1.15rem; }

.step p, .faq-list p { margin: 0; }

.step .btn { display: inline-block; margin-top: 14px; }

.faq-list { grid-template-columns: 1fr 1fr; margin-top: 8px; }
.faq-list article:last-child:nth-child(odd) { grid-column: 1 / -1; }

.site-footer {
  max-width: 1160px;
  margin: 10px auto 0;
  padding: 28px 28px 12px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer strong { color: var(--silver); font-weight: 600; }

.footer-links { display: flex; gap: 14px; align-items: center; }

.footer-links a { color: var(--pink); }

.drawer[hidden],
.shade[hidden],
.toast[hidden] {
  display: none !important;
}

.shade {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.45);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(420px, 100%);
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 18px;
  background: rgba(10, 10, 14, 0.94);
  border-left: 1px solid var(--line);
  backdrop-filter: blur(18px);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.35);
}

.drawer-head, .drawer-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.drawer-head h2 { margin: 0; font-size: 1.6rem; }

.drawer-body { flex: 1; overflow: auto; padding: 12px 0; }

.drawer-foot { align-items: stretch; flex-direction: column; }

.drawer-foot .btn { width: 100%; }

.basket-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.basket-name, .basket-meta, .basket-total, .empty { margin: 0; }

.basket-meta, .fine { font-size: 0.88rem; }

.basket-total { margin-top: 14px; }

.qty { display: flex; align-items: center; gap: 6px; }

.qty button, .text-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: white;
  border-radius: 8px;
  cursor: pointer;
}

.qty button { width: 28px; height: 28px; }

.text-btn { padding: 6px 8px; border: 0; color: var(--muted); }

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock) + 8px);
  transform: translateX(-50%);
  z-index: 70;
  width: min(560px, calc(100% - 28px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(18, 18, 22, 0.94);
  border: 1px solid rgba(255, 79, 216, 0.45);
  box-shadow: var(--shadow);
}

.fx-dock {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 12px 8px 8px;
  border-radius: 999px;
  background: rgba(8, 8, 12, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
}

.fx-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 999px;
}

.fx-knob {
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: #2a2a32;
  border: 1px solid var(--line);
  position: relative;
  flex: 0 0 auto;
}

.fx-knob::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #c8c8d2);
  transition: transform 160ms ease;
}

.fx-toggle.is-on .fx-knob {
  background: linear-gradient(90deg, #ff8ae4, var(--pink-deep));
  border-color: transparent;
}

.fx-toggle.is-on .fx-knob::after { transform: translateX(18px); }

.fx-toggle-label { font-size: 0.86rem; white-space: nowrap; }

.fx-density {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--muted);
}

.fx-density input {
  width: 110px;
  accent-color: var(--pink);
  cursor: pointer;
}

@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .site-header { flex-wrap: wrap; padding: 12px 16px; }
  .nav { order: 3; width: 100%; gap: 14px; }
  .hero, .section, .site-footer { padding-left: 16px; padding-right: 16px; }
  .site-footer { flex-direction: column; }
  .brand img { height: 46px; }
}

@media (max-width: 640px) {
  :root { --dock: 108px; }
  .fx-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 18px;
    justify-content: space-between;
  }
  .fx-density { flex: 1; }
  .fx-density input { width: 100%; min-width: 0; }
  .fx-toggle-label { font-size: 0.78rem; }
  .card-actions { flex-direction: column; }
  h1 { max-width: 12ch; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .fx-knob::after { transition: none; }
  .btn:hover { transform: none; }
}
