/* Pastel whimsigoth: midnight black with a pastel big-top palette */
:root {
  --bg: #0e0b13;
  --bg-raised: #18131f;
  --line: #2d2538;
  --text: #f6effa;
  --muted: #b6a9c6;
  --accent: #f4b8d6;       /* pastel pink */
  --lavender: #c9b8ff;
  --mint: #b4ead6;
  --sky: #b9d6f6;
  --accent-ink: #1c0f19;
  --radius: 16px;
  --max: 1160px;
  --font-display: "Grenze Gotisch", "Times New Roman", serif;
  --font-body: "Quicksand", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  margin: 0 0 12px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
}

h2 { font-size: clamp(2rem, 5vw, 3.2rem); }

section { padding: 96px 0; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 0.92rem var(--font-body);
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f9cde3; }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--text); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }

/* ── Header ──────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 11, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.45rem;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }
.nav .btn { color: var(--accent-ink); padding: 10px 20px; }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 1.05rem; width: 100%; }
  .nav .btn { margin-top: 8px; width: 100%; }
}

/* ── Hero ────────────────────────────────── */
.hero {
  position: relative;
  min-height: calc(100svh - 68px);
  display: flex;
  align-items: flex-end;
  padding: 0 0 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 75% 20%, rgba(201, 184, 255, 0.28), transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(244, 184, 214, 0.18), transparent 50%),
    var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 5%, transparent 60%);
}
.hero .wrap { position: relative; max-width: none; }
/* Name fills the full width of the screen. main.js fine-tunes the size to fit exactly. */
.hero-name {
  font-size: 14vw;
  letter-spacing: 0;
  line-height: 0.88;
  font-weight: 400;
  white-space: nowrap;
  margin: 0 -0.04em;
}
.hero-name span,
.hero-name em {
  font-style: normal;
  background: linear-gradient(100deg, var(--lavender), var(--accent) 55%, var(--mint));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-name span { background: none; color: var(--text); }
/* On phones, stack the name on two lines so each word can be huge. */
@media (max-width: 640px) {
  .hero-name span,
  .hero-name em { display: block; }
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 18px 0 32px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Release ─────────────────────────────── */
.release-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.cover {
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.release-copy p:not(.eyebrow) { color: var(--muted); margin: 18px 0 30px; font-size: 1.1rem; }

@media (max-width: 760px) {
  .release-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* Placeholder art for missing images */
.placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(201, 184, 255, 0.45), transparent 60%),
    radial-gradient(circle at 70% 75%, rgba(244, 184, 214, 0.4), transparent 55%),
    var(--bg-raised);
  color: rgba(243, 236, 228, 0.7);
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-align: center;
  padding: 16px;
}

/* ── About ───────────────────────────────── */
.about { border-top: 1px solid var(--line); }
.bio { max-width: 760px; margin-top: 28px; display: grid; gap: 18px; }
.bio p { margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.75; }
.bio .lead { color: var(--text); font-size: clamp(1.25rem, 2.6vw, 1.6rem); line-height: 1.5; font-weight: 500; }

/* ── Shows ───────────────────────────────── */
.shows { border-top: 1px solid var(--line); }
.show-list { list-style: none; padding: 0; margin: 40px 0 0; }
.show {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.show-date { font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.9rem; }
.show-city { font-family: var(--font-display); font-size: 1.4rem; }
.show-venue { color: var(--muted); font-size: 0.95rem; }

@media (max-width: 600px) {
  .show { grid-template-columns: 1fr; gap: 6px; }
  .show .btn { justify-self: start; margin-top: 8px; }
}

/* ── Merch teaser ────────────────────────── */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ── Product grid ────────────────────────── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 28px;
}
.product {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.product-media {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
}
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.product:hover .product-media img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--text);
  color: var(--bg);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
}
.product-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.product-top { display: flex; justify-content: space-between; gap: 12px; }
.product-name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
.product-cat { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.product-price { font-weight: 700; white-space: nowrap; }
.product-actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }

.sizes { display: flex; flex-wrap: wrap; gap: 6px; border: 0; padding: 0; margin: 0; }
.sizes legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes label {
  min-width: 42px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.sizes input:checked + label { background: var(--text); color: var(--bg); border-color: var(--text); }
.sizes input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 8px 16px;
  border-radius: 999px;
  font: 600 0.88rem var(--font-body);
  cursor: pointer;
}
.filter[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

.page-head { padding: 72px 0 40px; }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 5.5rem); letter-spacing: -0.02em; }
.page-head p { color: var(--muted); max-width: 560px; margin: 16px 0 0; }

.shop-note {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

/* ── Sign-up ─────────────────────────────── */
.signup {
  background:
    radial-gradient(ellipse at 85% 0%, rgba(201, 184, 255, 0.18), transparent 55%),
    var(--bg-raised);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.signup-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.signup-copy p { color: var(--muted); margin: 18px 0 0; font-size: 1.05rem; }
.perks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 12px; align-items: baseline; }
.perks li::before { content: "✦"; color: var(--accent); }

@media (max-width: 860px) {
  .signup-grid { grid-template-columns: 1fr; gap: 36px; }
}

.signup-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.field .opt { color: var(--muted); font-weight: 500; }
.field input {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  font: 500 1rem var(--font-body);
}
.field input:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: #e5484d; }

.consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }

.form-msg { min-height: 1.4em; font-size: 0.92rem; margin: 0; }
.form-msg.error { color: #ff8a8d; }
.form-msg.ok { color: #8fe3a8; }

.signup-done {
  text-align: center;
  padding: 40px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}
.signup-done h3 { font-size: 2rem; margin-bottom: 10px; }
.signup-done p { color: var(--muted); margin: 0; }

/* ── Footer ──────────────────────────────── */
.site-footer { padding: 80px 0 48px; border-top: 1px solid var(--line); }
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.site-footer .eyebrow { margin: 0; }
.handle {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.6rem);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.handle:hover { color: var(--accent); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 8px 0 16px; }
.socials a {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s;
}
.socials a:hover { color: var(--text); border-color: var(--text); }
.socials svg { width: 22px; height: 22px; fill: currentColor; }
.copyright { color: var(--muted); font-size: 0.85rem; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 140%);
  background: var(--text);
  color: var(--bg);
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.3s ease;
  z-index: 100;
  max-width: calc(100% - 32px);
  text-align: center;
}
.toast.show { transform: translate(-50%, 0); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ── Legal pages (Privacy, SMS Terms) ────── */
.legal { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(2.6rem, 7vw, 4.5rem); letter-spacing: -0.02em; }
.legal h2 { font-size: 1.5rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal ul { padding-left: 20px; display: grid; gap: 8px; }
.legal a { color: var(--accent); }
.legal .updated { font-size: 0.9rem; margin: 12px 0 32px; }

.consent-links { margin: -6px 0 0 32px; font-size: 0.78rem; color: var(--muted); }
.consent-links a { color: var(--text); }
.footer-links { margin: 0; font-size: 0.85rem; color: var(--muted); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ── Gothic circus touches ───────────────── */
body { font-weight: 500; }
h2 { letter-spacing: 0.01em; }
.eyebrow::before { content: "✦ "; color: var(--accent); }
.logo { font-size: 1.7rem; font-weight: 600; letter-spacing: 0.01em; }

/* Twinkling stars over the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, var(--text), transparent),
    radial-gradient(1px 1px at 28% 62%, var(--lavender), transparent),
    radial-gradient(1.5px 1.5px at 46% 26%, var(--mint), transparent),
    radial-gradient(1px 1px at 63% 12%, var(--text), transparent),
    radial-gradient(1.5px 1.5px at 78% 44%, var(--accent), transparent),
    radial-gradient(1px 1px at 88% 16%, var(--sky), transparent),
    radial-gradient(1px 1px at 18% 40%, var(--sky), transparent),
    radial-gradient(1.5px 1.5px at 92% 70%, var(--lavender), transparent),
    radial-gradient(1px 1px at 55% 50%, var(--text), transparent),
    radial-gradient(1px 1px at 36% 8%, var(--accent), transparent);
  opacity: 0.8;
  animation: twinkle 6s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes twinkle { from { opacity: 0.35; } to { opacity: 0.9; } }
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }

.hero-kicker {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  color: var(--lavender);
  letter-spacing: 0.12em;
  margin: 0 0 8px;
}

/* Circus-tent scalloped edge between hero and content */
.valance {
  height: 22px;
  background:
    radial-gradient(circle at 50% 0, var(--c1) 0 21px, transparent 22px) 0 0 / 88px 22px repeat-x,
    radial-gradient(circle at 50% 0, var(--c2) 0 21px, transparent 22px) 44px 0 / 88px 22px repeat-x;
  --c1: var(--accent);
  --c2: var(--lavender);
  opacity: 0.85;
}

/* ── Videos ──────────────────────────────── */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 36px;
}
.video { margin: 0; }
.video-frame,
.video iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-raised);
  box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, 0.45);
}
.video-frame { position: relative; padding: 0; cursor: pointer; }
.video-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, filter 0.4s ease; filter: saturate(0.9); }
.video-frame:hover img { transform: scale(1.04); filter: saturate(1.1); }
.play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(244, 184, 214, 0.92);
  box-shadow: 0 0 0 8px rgba(244, 184, 214, 0.25);
  transition: transform 0.2s ease;
}
.video-frame:hover .play { transform: scale(1.08); }
.play svg { width: 28px; height: 28px; fill: var(--accent-ink); margin-left: 3px; }
.video figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.video-title { font-family: var(--font-display); font-size: 1.7rem; font-weight: 600; line-height: 1.1; }
.video-note { color: var(--muted); font-size: 0.9rem; }

/* ── Listen ──────────────────────────────── */
.listen { border-top: 1px solid var(--line); }
.listen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.listen .pills { margin-top: 28px; justify-content: flex-start; }
.spotify-embed iframe { width: 100%; height: 352px; border: 0; border-radius: var(--radius); }
@media (max-width: 860px) { .listen-grid { grid-template-columns: 1fr; } }

/* Platform buttons (listen / follow) */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-raised);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.pill svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.pill:hover { border-color: var(--lavender); color: var(--lavender); transform: translateY(-1px); }

.footer-group { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.footer-label { margin: 8px 0 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.handle { font-weight: 600; }
.handle:hover { color: var(--accent); }

/* ── Fourthwall shop ─────────────────────── */
.shop-section { padding-top: 0; }
.product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px; }
button.product {
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
button.product:hover { transform: translateY(-3px); border-color: var(--lavender); }
.product-media { aspect-ratio: 3 / 4; background: #e9e4ee; }
.product-body { padding: 14px 16px 18px; gap: 4px; }
.product-name { font-weight: 700; font-size: 0.95rem; line-height: 1.3; }
.product-price { color: var(--accent); font-weight: 600; font-size: 0.92rem; }
.shop-status { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 48px 0; }
.shop-status a, .shop-note a { color: var(--accent); }
@media (max-width: 520px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-body { padding: 10px 12px 14px; }
  .product-name { font-size: 0.85rem; }
}

/* Header cart button */
.cart-btn {
  position: relative;
  margin-left: auto;
  margin-right: 8px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  border-radius: 50%;
}
.cart-btn:hover { color: var(--accent); }
.cart-btn svg { width: 22px; height: 22px; fill: currentColor; }
.cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
@media (min-width: 761px) { .site-header .nav { order: 1; } .cart-btn { order: 2; margin: 0 0 0 16px; } }

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--lavender); }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; font-size: 0.8rem; text-decoration: underline; cursor: pointer; }
body.no-scroll { overflow: hidden; }

/* Cart drawer */
.cart-drawer { position: fixed; inset: 0; z-index: 90; }
.cart-drawer[hidden] { display: none; }
.cart-overlay { position: absolute; inset: 0; background: rgba(8, 5, 12, 0.65); backdrop-filter: blur(2px); }
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100%);
  background: var(--bg);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.cart-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 2rem; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-drawer.is-busy .cart-items { opacity: 0.5; pointer-events: none; }
.cart-empty { text-align: center; color: var(--muted); margin-top: 48px; line-height: 2; }
.cart-empty a { color: var(--accent); }
.cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-item img, .cart-thumb { width: 72px; height: 96px; object-fit: cover; border-radius: 10px; background: #e9e4ee; }
.cart-item-name { font-weight: 700; font-size: 0.92rem; line-height: 1.3; }
.cart-item-desc { color: var(--muted); font-size: 0.82rem; margin: 2px 0 10px; }
.cart-item-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; font-weight: 600; font-size: 0.92rem; }
.cart-foot { padding: 18px 20px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-subtotal { display: flex; justify-content: space-between; font-size: 1.05rem; }
.cart-note { margin: 0; color: var(--muted); font-size: 0.82rem; }
.cart-checkout { width: 100%; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; color: var(--text); font-size: 1rem; cursor: pointer; border-radius: 50%; }
.qty button:hover { color: var(--accent); }
.qty span { min-width: 24px; text-align: center; font-weight: 700; font-size: 0.9rem; }

/* Product dialog */
.product-dialog {
  width: min(980px, calc(100% - 32px));
  max-height: calc(100svh - 48px);
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.product-dialog::backdrop { background: rgba(8, 5, 12, 0.7); backdrop-filter: blur(3px); }
.pd-close { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pd-layout { display: grid; grid-template-columns: 1.1fr 1fr; max-height: calc(100svh - 48px); }
.pd-gallery { background: #e9e4ee; display: flex; flex-direction: column; min-height: 0; }
.pd-main { width: 100%; flex: 1; min-height: 0; object-fit: cover; aspect-ratio: 3 / 4; }
.pd-thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: var(--bg-raised); }
.pd-thumbs:empty { display: none; }
.pd-thumbs button { flex: none; width: 52px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.pd-thumbs button[aria-current] { border-color: var(--accent); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-body { padding: 36px 32px 32px; overflow-y: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.pd-name { font-size: clamp(1.8rem, 3.4vw, 2.6rem); padding-right: 40px; }
.pd-price { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; color: var(--accent); }
.pd-label { margin: 10px 0 6px; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; color: var(--muted); }
.pd-label strong { color: var(--text); }
.swatches, .size-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--swatch);
  cursor: pointer;
  box-shadow: inset 0 0 0 2px var(--bg);
}
.swatch[aria-pressed="true"] { border-color: var(--accent); }
.size-btns button {
  min-width: 46px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-raised);
  color: var(--text);
  font: 700 0.85rem var(--font-body);
  cursor: pointer;
}
.size-btns button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.pd-add { width: 100%; margin-top: 18px; }
.pd-desc { margin-top: 18px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.pd-desc p { margin: 0 0 10px; }
.pd-desc strong, .pd-desc em { color: var(--text); }
.pd-desc ul { padding-left: 18px; }
@media (max-width: 760px) {
  .product-dialog { width: 100%; max-height: 100svh; height: 100svh; max-width: none; border-radius: 0; border: 0; margin: 0; }
  .pd-layout { grid-template-columns: 1fr; grid-auto-rows: max-content; max-height: none; height: 100%; overflow-y: auto; }
  .pd-gallery { min-height: auto; }
  .pd-main { aspect-ratio: 1; flex: none; height: auto; }
  .pd-body { overflow: visible; padding: 24px 20px 40px; }
}
