:root {
  --paper: #140c24;
  --ink: #f4efe8;
  --muted: #c4b8d4;
  --line: rgba(244, 239, 232, 0.16);
  --ember: #e23b22;
  --wing: #c9b7ff;
  --card: rgba(255, 255, 255, 0.05);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --serif: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  background:
    radial-gradient(900px 520px at 0% 0%, rgba(226, 59, 34, 0.45), transparent 55%),
    radial-gradient(800px 560px at 100% 8%, rgba(48, 42, 150, 0.7), transparent 60%),
    var(--paper);
}
body.lock { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, select { font: inherit; }

.wrap { width: min(1080px, calc(100% - 32px)); margin: 0 auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(20, 12, 36, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.mark {
  width: 36px;
  height: 36px;
  object-fit: cover;
  object-position: center 38%;
  border-radius: 50%;
  border: 1px solid var(--line);
}
.top nav { display: flex; gap: 16px; align-items: center; }
.top a { text-decoration: none; font-size: 14px; }
.cart-btn, .primary, .ghost, .card button, .pay {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  text-decoration: none;
}
.cart-btn, .primary, .card button {
  background: var(--ember);
  color: #fff;
}
.ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.primary:disabled, .ghost:disabled { opacity: 0.4; cursor: not-allowed; }

.hero {
  display: grid;
  gap: 20px;
  padding: 36px 0 12px;
}
.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--wing);
  margin: 0 0 8px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }
h1 { font-size: clamp(40px, 8vw, 72px); line-height: 0.95; margin: 0 0 12px; }
h2 { font-size: 34px; margin: 0 0 8px; }
.lede { max-width: 36ch; color: var(--muted); font-size: 18px; }
.hero-panel {
  min-height: 280px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  background: #1a1030;
}
.hero-panel img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: center 20%;
}

.filters { display: flex; gap: 8px; margin: 28px 0 16px; flex-wrap: wrap; }
.filters button {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filters button.on { background: var(--ink); color: #140c24; border-color: var(--ink); }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.card {
  background: var(--card);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.visual {
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: end start;
  padding: 16px;
}
.visual img { width: 100%; height: 100%; object-fit: cover; }
.swatch-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
}
.card-body { padding: 14px 16px 16px; }
.card h3 { margin: 0 0 4px; font-size: 24px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.card select {
  margin-left: 6px;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #1c1230;
  color: var(--ink);
}
.pay { background: var(--wing); color: #140c24; font-size: 14px; }

.band { padding: 48px 0; }
.split { display: grid; gap: 18px; }
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}
.steps { margin: 0; padding-left: 18px; color: var(--muted); }
.steps li { margin: 8px 0; }

footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}
footer a { color: var(--wing); }

.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 20; }
.backdrop { position: absolute; inset: 0; background: rgba(8, 4, 16, 0.62); }
.sheet {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: min(420px, 100%);
  background: #1a1030;
  color: var(--ink);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sheet header { display: flex; justify-content: space-between; align-items: center; }
.line, .total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.line span, .empty { color: var(--muted); display: block; font-size: 14px; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.actions { display: grid; gap: 8px; margin-top: auto; }
.fine { font-size: 12px; color: var(--muted); }

@media (min-width: 720px) {
  .hero { grid-template-columns: 0.9fr 1.1fr; align-items: end; padding-top: 56px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
