:root {
  --ink: #1b2430;
  --muted: #5c6570;
  --line: #f0d5c4;
  --paper: #fff4ea;
  --white: #fffdfb;
  --coral: #e85d4c;
  --amber: #f0a202;
  --teal: #0f9b8e;
  --violet: #6c5ce7;
  --sky: #3d8bfd;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(520px 280px at 8% 0%, #ffe4f2 0%, transparent 70%),
    radial-gradient(480px 260px at 100% 8%, #efe4ff 0%, transparent 68%),
    #fff7fb;
  color: #3a2a38;
  font-family: Nunito, "Avenir Next", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { max-width: 100%; }

.band {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 247, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid #ffd6ea;
}
.top, .cats, main, footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 14px 0;
  background: transparent;
}
.logo {
  font-family: Fraunces, Palatino, Georgia, serif;
  font-size: 30px;
  letter-spacing: -0.04em;
  color: #c73e78;
}
.logo::before {
  content: "";
  display: inline-block;
  width: 12px;
  height: 12px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff8fb8;
  box-shadow: 7px 0 0 #c9b6ff;
  vertical-align: 2px;
}
.search input {
  width: 100%;
  border: 1px solid #ffd0e4;
  background: white;
  color: #3a2a38;
  border-radius: 999px;
  padding: 12px 18px;
}
.search input::placeholder { color: #b0899e; }
.search input:focus { outline: 3px solid #ffe08a; border-color: var(--amber); }
.cart-toggle, .primary, .ghost, .option, .step button {
  border: 0;
  cursor: pointer;
}
.cart-toggle {
  background: #ff4d8d;
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 10px 24px rgba(255, 77, 141, 0.28);
}
.cart-toggle span {
  display: inline-block;
  min-width: 1.4em;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: white;
  color: var(--coral);
  text-align: center;
}

.cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
}
.pill {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: white;
  border: 2px solid transparent;
  font-weight: 600;
}
.pill-all { color: var(--ink); border-color: #f0d5c4; }
.pill-makeup { color: #9d174d; background: #ffe0ef; }
.pill-girls { color: #9a3412; background: #ffe7d6; }
.pill-lights { color: #8a5a00; background: #fff3d0; }
.pill-kitchen { color: #9c2f24; background: #ffe4de; }
.pill-home { color: #0b6e64; background: #d9f7f3; }
.pill-desk { color: #3d34a5; background: #e7e4ff; }
.pill.on.pill-all { background: var(--ink); color: white; }
.pill.on.pill-makeup { background: #e84393; color: white; }
.pill.on.pill-girls { background: #f97316; color: white; }
.pill.on.pill-lights { background: var(--amber); color: #3a2500; }
.pill.on.pill-kitchen { background: var(--coral); color: white; }
.pill.on.pill-home { background: var(--teal); color: white; }
.pill.on.pill-desk { background: var(--violet); color: white; }

.hero {
  margin-top: 22px;
  padding: 32px 28px;
  border-radius: 32px;
  background: linear-gradient(135deg, #ffe4f3 0%, #fff 48%, #efe7ff 100%);
  color: #3a2a38;
  border: 1px solid #ffd6ea;
  box-shadow: 0 18px 40px rgba(199, 62, 120, 0.08);
}
.hero .eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #c73e78;
}
.hero h1 {
  margin: 0 0 8px;
  font-family: Fraunces, Palatino, Georgia, serif;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.hero p { margin: 0; max-width: 40rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 16px;
  padding: 22px 0 8px;
}
.card {
  display: grid;
  gap: 8px;
  background: white;
  border: 1px solid #ffe0ef;
  border-radius: 24px;
  padding: 8px 8px 12px;
  box-shadow: 0 12px 28px rgba(199, 62, 120, 0.06);
}
.ai-note {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #fff;
  color: #9d174d;
  font-weight: 700;
}
.add, .primary {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  background: linear-gradient(100deg, #ff4d8d, #c9b6ff);
  color: white;
  font-weight: 800;
  padding: 12px 14px;
  box-shadow: 0 10px 20px rgba(255, 77, 141, 0.22);
}
.qty-picks button {
  border: 1px solid #ffd0e4;
  background: white;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
}
.qty-picks button.on { background: #ff4d8d; color: white; border-color: #ff4d8d; }
.qty-picks { display: flex; gap: 8px; }
.qty-picks button { width: 44px; height: 44px; }
.card .frame {
  aspect-ratio: 1;
  background: var(--paper);
  overflow: hidden;
  border-radius: 12px;
}
.tone-makeup { box-shadow: inset 0 5px 0 #e84393, 0 10px 24px rgba(232, 67, 147, 0.14); }
.tone-girls { box-shadow: inset 0 5px 0 #f97316, 0 10px 24px rgba(249, 115, 22, 0.14); }
.tone-lights { box-shadow: inset 0 5px 0 var(--amber), 0 10px 24px rgba(240, 162, 2, 0.12); }
.tone-kitchen { box-shadow: inset 0 5px 0 var(--coral), 0 10px 24px rgba(232, 93, 76, 0.12); }
.tone-home { box-shadow: inset 0 5px 0 var(--teal), 0 10px 24px rgba(15, 155, 142, 0.12); }
.tone-desk { box-shadow: inset 0 5px 0 var(--violet), 0 10px 24px rgba(108, 92, 231, 0.12); }
.card img, .stage img, .option img, .line img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card h3 { margin: 0 4px; font-size: 15px; font-weight: 650; }
.card .price { margin: 0 4px; color: var(--coral); font-weight: 700; font-variant-numeric: tabular-nums; }
.buybox .price { font-variant-numeric: tabular-nums; color: var(--coral); }

.product {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  padding: 28px 0 48px;
}
.stage {
  background: white;
  aspect-ratio: 1;
  max-height: 720px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(232, 93, 76, 0.15);
}
.crumb { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.crumb a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.buybox h1 {
  margin: 0 0 8px;
  font-family: Fraunces, Palatino, Georgia, serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.03em;
}
.buybox .price { font-size: 26px; margin: 0 0 18px; }
.field { margin: 0 0 18px; }
.field span { display: block; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; font-weight: 700; }
.options { display: flex; flex-wrap: wrap; gap: 8px; }
.option {
  width: 92px;
  text-align: left;
  border: 2px solid #ffd7cc;
  border-radius: 12px;
  padding: 6px;
  background: white;
}
.option.on { border-color: var(--coral); box-shadow: 0 0 0 3px #ffe1db; }
.option .thumb { aspect-ratio: 1; background: var(--paper); overflow: hidden; border-radius: 8px; }
.option small { display: block; margin-top: 4px; font-size: 12px; line-height: 1.3; }
.step { display: flex; align-items: center; gap: 12px; }
.step button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #ffe8d6;
  color: #9c2f24;
  font-weight: 700;
}
.primary { width: 100%; padding: 14px 18px; }
.facts { display: grid; gap: 6px; margin-top: 18px; color: #3d4a44; font-size: 14px; }
.empty { padding: 40px 0; color: var(--muted); }

.drawer {
  position: fixed;
  inset: 0;
  background: rgba(27, 36, 48, 0.4);
  display: flex;
  justify-content: flex-end;
  z-index: 8;
}
.drawer[hidden] { display: none; }
.panel {
  width: min(420px, 100%);
  height: 100%;
  background: #fff8f3;
  padding: 22px;
  overflow: auto;
}
.panel h2 { margin: 0; font-family: Palatino, Georgia, serif; font-weight: 500; color: var(--coral); }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.line {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid #ffd7cc;
}
.line img { width: 72px; height: 72px; object-fit: cover; background: white; border-radius: 10px; }
.line h3 { margin: 0 0 6px; font-size: 15px; }
.ghost { background: transparent; color: var(--coral); font-weight: 700; }
.totals { font-size: 18px; font-weight: 700; }
.fine { color: var(--muted); font-size: 13px; }
.pay { margin-top: 8px; }

footer {
  margin-top: 20px;
  padding: 28px 0 48px;
  color: #3d4a57;
  font-size: 14px;
}
footer a { color: #0f9b8e; font-weight: 700; }
.crawl { margin-top: 10px; }

@media (max-width: 980px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .product { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 700px) {
  .top, .cats, main, footer { width: min(100% - 28px, 1180px); }
  .top { grid-template-columns: auto auto; gap: 12px; }
  .search { grid-column: 1 / -1; order: 3; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .hero { padding: 22px 18px; }
  .buybox h1 { font-size: 30px; }
}
