:root {
  --ink: #1a1033;
  --ink-soft: #3d3358;
  --cream: #fff6ea;
  --paper: #fffdf8;
  --pink: #ff2d7b;
  --pink-deep: #d81b60;
  --yellow: #ffe14a;
  --teal: #13d4c5;
  --purple: #6e3cff;
  --coral: #ff6847;
  --line: #1a1033;
  --shadow: 6px 6px 0 var(--ink);
  --radius: 22px;
  --font: "Outfit", system-ui, sans-serif;
  --display: "Bricolage Grotesque", "Outfit", sans-serif;
  --marker: "Sriracha", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  min-height: 100vh;
  line-height: 1.5;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(900px 500px at -10% -10%, #ffc7de 0%, transparent 55%),
    radial-gradient(700px 480px at 110% 0%, #baf7f1 0%, transparent 50%),
    radial-gradient(600px 400px at 80% 110%, #ffe999 0%, transparent 55%);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 0.4em; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 246, 234, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 12px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: 0 0 auto;
}
.logo-mark {
  width: 46px;
  height: 46px;
  border: 3px solid var(--ink);
  border-radius: 16px;
  background: var(--yellow);
  display: grid;
  place-items: center;
  font-family: var(--marker);
  font-size: 22px;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-8deg);
}
.logo-text { display: flex; flex-direction: column; }
.logo-text strong { font-family: var(--marker); font-size: 1.05rem; line-height: 1; }
.logo-text span { font-size: 0.72rem; color: var(--ink-soft); }
.nav { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.nav a, .nav button.linkish {
  text-decoration: none;
  font-weight: 650;
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.nav a:hover, .nav button.linkish:hover { background: #fff; }
.cart-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--pink);
  color: white;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 7px 14px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}
.cart-chip span {
  background: var(--ink);
  color: var(--yellow);
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 4px 4px 0 var(--ink);
  background: var(--yellow);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn.pink { background: var(--pink); color: #fff; }
.btn.teal { background: var(--teal); }
.btn.purple { background: var(--purple); color: #fff; }
.btn.ghost { background: #fff; box-shadow: none; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 36px 0 18px;
}
.eyebrow {
  display: inline-block;
  background: var(--teal);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 750;
  font-size: 0.82rem;
  margin-bottom: 12px;
  transform: rotate(-2deg);
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 4.1rem); max-width: 14ch; }
.hero p.lede { font-size: 1.15rem; max-width: 46ch; color: var(--ink-soft); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.hero-art {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 18px;
  transform: rotate(2deg);
}
.sticker-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.sticker {
  border: 3px dashed var(--ink);
  border-radius: 999px;
  padding: 6px 12px;
  background: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.section { padding: 28px 0 10px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-bottom: 16px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transform: rotate(var(--tilt, 0deg));
}
.card:nth-child(3n) { --tilt: -1.1deg; }
.card:nth-child(3n+1) { --tilt: 0.8deg; }
.card:hover { transform: rotate(0) translateY(-4px); }
.card-art {
  height: 210px;
  display: grid;
  place-items: center;
  padding: 12px;
}
.card-body { padding: 12px 14px 16px; }
.card-body h3 { font-size: 1.15rem; }
.muted { color: var(--ink-soft); font-size: 0.92rem; }
.price { font-weight: 800; font-size: 1.05rem; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }
.tag {
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 8px;
}
.tag.pink { background: #ffd0e2; }
.tag.teal { background: #c7f6f1; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.cat-tile {
  border: 3px solid var(--ink);
  border-radius: 18px;
  padding: 16px;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 4px 4px 0 var(--ink);
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cat-tile small { font-weight: 500; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 20px;
}
.chip {
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
  font-weight: 700;
}
.chip.on { background: var(--ink); color: var(--yellow); }
.search-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 4px; }
.search-row input, select, textarea, .field input {
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  min-width: 0;
}
.search-row input { flex: 1; min-width: 180px; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  padding: 24px 0 40px;
}
.product-stage {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: var(--shadow);
  min-height: 380px;
  display: grid;
  place-items: center;
  padding: 20px;
}
.size-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.size-picks button {
  min-width: 48px;
  border: 2px solid var(--ink);
  background: #fff;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  font-weight: 700;
}
.size-picks button.on { background: var(--ink); color: #fff; }
.complements { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }

.cart-layout, .checkout-layout, .account-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 22px;
  padding: 22px 0 48px;
}
.panel {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 16px;
}
.line {
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 2px dashed #eadfce;
}
.qty {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
}
.qty button { width: 32px; border: 0; background: var(--yellow); cursor: pointer; font-weight: 800; }
.qty span { min-width: 28px; text-align: center; padding: 4px 0; }
.totals div { display: flex; justify-content: space-between; margin: 6px 0; }
.totals .grand { font-size: 1.2rem; font-weight: 800; }

form .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.field label { font-weight: 700; font-size: 0.85rem; }
.check { display: flex; gap: 8px; align-items: center; margin: 10px 0; font-weight: 650; }

.site-footer {
  margin-top: 40px;
  border-top: 3px solid var(--ink);
  background: var(--ink);
  color: #fff;
  padding: 28px 0 18px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 18px; }
.site-footer a { color: var(--yellow); text-decoration: none; display: block; margin: 6px 0; }
.tiny { font-size: 0.8rem; opacity: 0.85; }

.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(26, 16, 51, 0.72);
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
}
.age-card {
  width: min(460px, 100%);
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: 28px;
  box-shadow: 10px 10px 0 #000;
  padding: 22px;
  text-align: center;
}
.toast {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 70;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 16px;
  max-width: 320px;
  display: none;
}
.notice {
  background: #fff3bf;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 10px 12px;
  margin: 10px 0;
}
.empty { padding: 30px 10px; text-align: center; }
.prose { max-width: 70ch; padding: 24px 0 48px; }
.prose p { color: var(--ink-soft); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 2px solid #f0e6d6; }
@media print {
  .site-header, .site-footer, .no-print, .age-gate { display: none !important; }
  body { background: #fff; }
}

@media (max-width: 860px) {
  .hero, .product-layout, .cart-layout, .checkout-layout, .account-layout, .footer-grid, form .grid-2 {
    grid-template-columns: 1fr;
  }
  .nav a.hide-sm { display: none; }
}
