/* lilsmoochies — shared product page styles (sharp vibe) */
body {
  --bg: #4138c2;
  --on-bg: #fff3d6;
  --ink: #221a66;
  --card: #fff7e2;
  --moon: #ffd45e;
  --accent: #ff6f91;
  --glow: #b9ffd9;
  --display: "Anton", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--on-bg);
  min-height: 100vh;
}
h1, h2, h3, .display { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; }

/* ===== header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 16px 32px;
  background: var(--bg);
  border-bottom: 3px solid var(--ink);
}
.wordmark {
  font-family: var(--display);
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--on-bg);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1;
}
.wordmark svg { width: 26px; height: 26px; }
nav { display: flex; gap: 22px; }
nav a { color: var(--on-bg); text-decoration: none; font-weight: 700; font-size: 15px; }
nav a:hover { text-decoration: underline wavy; text-underline-offset: 5px; }
.hspacer { flex: 1 1 auto; }
.cart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
}
.cart:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.cart .count {
  background: var(--accent);
  color: var(--card);
  border: 2px solid var(--ink);
  border-radius: 8px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-size: 13px;
  padding: 0 5px;
  font-family: "Space Grotesk", sans-serif;
}
.cart .count.pop { animation: pop 0.35s ease; }
@keyframes pop { 40% { transform: scale(1.45); } }

.crumbs {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 40px 0;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.crumbs a { color: var(--on-bg); opacity: 0.8; text-decoration: none; }
.crumbs a:hover { opacity: 1; text-decoration: underline wavy; text-underline-offset: 4px; }
.crumbs span { opacity: 0.6; }

main {
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px 40px 72px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
}

/* ===== 3D viewer ===== */
.viewer {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 6px 0 var(--ink);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.stage { position: relative; height: 480px; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage .badge3d {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: var(--display);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
  background: var(--moon);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 4px 12px;
  pointer-events: none;
}
.vbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 3px solid var(--ink);
  background: var(--card);
  color: var(--ink);
  flex-wrap: wrap;
}
.vbtn {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 7px 16px;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.vbtn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); }
.vbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.vbtn.active { background: var(--accent); color: var(--card); }
.vbtn.night.active { background: var(--ink); color: var(--glow); }
.vbar .vstat {
  margin-left: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 11.5px;
  opacity: 0.75;
}

/* ===== buy column ===== */
.buy { display: flex; flex-direction: column; gap: 18px; }
.tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--moon);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 4px 12px;
}
.tag.glowtag { background: var(--glow); }
.buy h1 { font-size: clamp(44px, 5vw, 64px); line-height: 1; }
.buy .price { font-family: var(--display); font-size: 28px; text-transform: uppercase; }
.buy .lede { font-size: 17px; line-height: 1.55; font-weight: 500; max-width: 46ch; }

.opt-label { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 15px; margin-bottom: 8px; }
.swatches { display: flex; gap: 10px; }
.swatch {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  cursor: pointer;
  padding: 0;
}
.swatch.active { outline: 3px solid var(--on-bg); outline-offset: 3px; }

/* ===== purchase options ===== */
.popts { display: flex; flex-direction: column; gap: 10px; }
.popt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  padding: 14px 18px;
  cursor: pointer;
  box-shadow: 0 4px 0 var(--ink);
  opacity: 0.78;
  transition: opacity 0.15s ease, transform 0.12s ease;
}
.popt:hover { opacity: 1; }
.popt.active { opacity: 1; }
.popt input { position: absolute; opacity: 0; pointer-events: none; }
.pradio {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 3px solid var(--ink);
  background: #fff;
  display: grid;
  place-items: center;
}
.popt.active .pradio::after {
  content: "";
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
}
.pname { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.02em; font-size: 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pname .save {
  font-family: "Space Grotesk", sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  background: var(--moon);
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 2px 8px;
}
.pprice { margin-left: auto; font-family: var(--display); font-size: 17px; }
.freq {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--on-bg);
  padding: 2px 4px 0;
}
.freq select {
  font: inherit;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 5px 10px;
  cursor: pointer;
}

/* ===== qty + add ===== */
.buyrow { display: flex; gap: 14px; align-items: stretch; margin-top: 4px; }
.qty {
  display: flex;
  align-items: center;
  background: var(--card);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 0 4px 0 var(--ink);
  overflow: hidden;
}
.qty button {
  border: 0;
  background: transparent;
  font-family: var(--display);
  font-size: 20px;
  color: var(--ink);
  width: 42px;
  height: 100%;
  cursor: pointer;
}
.qty button:hover { background: rgba(34, 26, 102, 0.08); }
.qty .q { font-family: var(--display); font-size: 18px; min-width: 34px; text-align: center; }
.addbtn {
  flex: 1 1 auto;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 18px;
  color: var(--card);
  background: var(--accent);
  border: 3px solid var(--ink);
  border-radius: 8px;
  padding: 13px 22px;
  cursor: pointer;
  box-shadow: 0 5px 0 var(--ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.addbtn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.addbtn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

ul.perks { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15.5px; font-weight: 500; }
ul.perks li { display: flex; gap: 10px; align-items: baseline; }
ul.perks li::before { content: "☾"; color: var(--moon); font-size: 15px; }

details {
  background: var(--card);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 10px;
  box-shadow: 0 4px 0 var(--ink);
  overflow: hidden;
}
summary {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 16px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 20px 16px; font-size: 15px; line-height: 1.55; font-weight: 500; }

footer {
  border-top: 3px solid var(--ink);
  padding: 28px 40px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 500;
  opacity: 0.8;
}

@media (max-width: 920px) {
  header { flex-wrap: wrap; padding: 14px 18px; gap: 12px; row-gap: 10px; }
  .wordmark { font-size: 24px; }
  nav { order: 3; width: 100%; gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  nav::-webkit-scrollbar { display: none; }
  nav a { font-size: 14px; white-space: nowrap; }
  .crumbs { padding: 16px 16px 0; }
  main { grid-template-columns: 1fr; padding: 16px 16px 56px; gap: 24px; }
  .stage { height: min(420px, 92vw); }
  .vbar { padding: 10px 12px; }
  .vbar .vstat { flex-basis: 100%; margin-left: 0; order: 9; }
  .buy h1 { font-size: clamp(40px, 11vw, 56px); }
  .swatch { width: 42px; height: 42px; }
}

@media (max-width: 520px) {
  .buyrow { flex-direction: column; gap: 12px; }
  .qty { height: 52px; justify-content: space-between; }
  .qty button { width: 56px; }
  .qty .q { flex: 1 1 auto; }
  .addbtn { padding: 15px 18px; font-size: 16px; }
  .popt { padding: 12px 14px; gap: 10px; }
  .pname { font-size: 14.5px; }
  .pprice { font-size: 15px; }
  .vbtn { padding: 8px 13px; font-size: 13px; }
  .buy .lede { font-size: 16px; }
  footer { padding: 22px 18px; }
}
