/* ==========================================================
   bitsee.shop

   Three colours: white, black, and the violet lifted straight
   out of the logo mark. Nothing else competes with the badge
   artwork, because the artwork is the product.

   One typeface — Montserrat — doing three jobs, separated by
   weight and tracking rather than by pulling in more families:
     · display  800, lowercase, tight   (echoes the wordmark)
     · body     400/500, generous leading
     · utility  600, uppercase, wide    (labels, SKUs, clocks)

   The circle is the organising shape throughout: the badge, the
   wheel, the buttons, the chips. It comes from the product.
   ========================================================== */

/* Montserrat is loaded via <link> in includes/header.php, not @import. */

:root {
  --paper:     #FFFFFF;
  --mist:      #F5F4F8;
  --mist-deep: #EBE9F2;

  --ink:       #0A0A0C;
  --ink-2:     #55555F;
  --ink-3:     #8A8A96;

  --violet:    #541EDC;   /* sampled from the logo mark */
  --violet-d:  #3D12A8;
  --lav:       #B9A6F5;
  --lav-wash:  #F2EDFE;

  --hair:      rgba(10, 10, 12, .11);
  --hair-hard: rgba(10, 10, 12, .20);

  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shell: 1200px;
  --r:     14px;
  --r-sm:  10px;

  --lift: 0 1px 2px rgba(10,10,12,.05), 0 12px 32px -14px rgba(10,10,12,.22);
}

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

/* Class-level display rules outrank the browser default for [hidden], which
   silently un-hides anything we hide from PHP or JavaScript. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1; }

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

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

.shell { width: min(100% - 2.5rem, var(--shell)); margin-inline: auto; }

/* ---------- Type ---------- */

h1, h2, .display {
  font-weight: 800;
  text-transform: lowercase;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin: 0;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.85rem, 3.8vw, 2.9rem); }

h3 {
  font-weight: 700;
  letter-spacing: -.015em;
  line-height: 1.25;
  font-size: clamp(1.05rem, 1.9vw, 1.3rem);
  margin: 0;
}

h4 { font-weight: 700; font-size: 1rem; margin: 0; letter-spacing: -.01em; }

.label,
.eyebrow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-block;
}

.eyebrow--violet { color: var(--violet); }

.lede {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink-2);
  max-width: 58ch;
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.75rem;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.btn:hover  { background: var(--violet); border-color: var(--violet); }
.btn:active { transform: translateY(1px); }

.btn--violet { background: var(--violet); border-color: var(--violet); }
.btn--violet:hover { background: var(--violet-d); border-color: var(--violet-d); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-hard);
}
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn--sm    { padding: .62rem 1.15rem; font-size: .74rem; }
.btn--lg    { padding: 1.1rem 2.2rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .4; pointer-events: none; }

/* ---------- Announcement strip ---------- */

.strip {
  background: var(--ink);
  color: rgba(255,255,255,.82);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-align: center;
  padding: .55rem 1rem;
}
.strip b { color: var(--lav); font-weight: 700; }

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hair);
}

.masthead__bar {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  min-height: 72px;
}

/* The supplied lockup is stacked. It is split into mark + wordmark so it can
   be set horizontally in a 72px bar without shrinking to nothing. */
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__mark { height: 34px; width: auto; }
.brand__word { height: 20px; width: auto; }

.nav { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav a {
  font-size: .82rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-bottom: 2px;
  border-bottom: 1.5px solid transparent;
  transition: color .16s ease, border-color .16s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--violet); }

.cart-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1.5px solid var(--hair-hard);
  border-radius: 999px;
  padding: .38rem .45rem .38rem 1rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ink);
}
.cart-link:hover { border-color: var(--ink); }
.cart-link .pill {
  min-width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--violet);
  color: #fff;
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1.5px solid var(--hair-hard);
  border-radius: 999px;
  padding: .45rem 1rem;
  font-family: var(--font);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- The product shot ----------
   .pin is the neutral container every listing uses. On its own it renders a
   plain square photo, which is what a t-shirt or a jar of honey needs.
   .pin--badge adds back the round metal rim for pin badges specifically.
   The class name is kept so existing markup and any custom templates carry
   on working. */

.pin {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  padding: 0;
  background: var(--mist);
  box-shadow: var(--lift);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease;
  overflow: hidden;
}

.pin__face {
  width: 100%; height: 100%;
  border-radius: inherit;
  overflow: hidden;
  background: var(--paper);
}
.pin__face img { width: 100%; height: 100%; object-fit: cover; }

.pin-card:hover .pin,
.pin-card:focus-within .pin {
  transform: translateY(-6px);
  box-shadow: 0 2px 4px rgba(10,10,12,.06), 0 26px 46px -18px rgba(10,10,12,.34);
}

/* Badges: round, rimmed, domed. */
.pin--badge {
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(150deg, #FFFFFF 0%, #DEDCE6 38%, #FFFFFF 62%, #C9C6D4 100%);
}
.pin--badge .pin__face { border-radius: 50%; }

/* One soft highlight, so the badge reads as domed metal without laying a
   glare across the artwork. */
.pin--badge::after {
  content: '';
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 42%, rgba(10,10,12,.07) 100%);
}

.pin-card:hover .pin--badge,
.pin-card:focus-within .pin--badge { transform: translateY(-6px) rotate(-2deg); }

/* ---------- Product card ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
}

.pin-card { display: flex; flex-direction: column; gap: 1rem; }
.pin-card__art { position: relative; padding: .35rem; }
.pin-card__body { display: flex; flex-direction: column; gap: .28rem; flex: 1; }

.pin-card__meta {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.pin-card__name { font-size: 1rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; }
.pin-card__name a:hover { color: var(--violet); }
.pin-card__blurb {
  font-size: .87rem;
  color: var(--ink-2);
  margin: .15rem 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pin-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .9rem;
}

.price { font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price s { font-weight: 500; font-size: .82rem; color: var(--ink-3); margin-left: .4rem; }

.flag {
  position: absolute;
  z-index: 3;
  top: 4px; left: 50%;
  transform: translateX(-50%);
  background: var(--violet);
  color: #fff;
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .26rem .7rem;
  border-radius: 999px;
  white-space: nowrap;
}
.flag--ink { background: var(--ink); }

/* ---------- Deal clock ---------- */

.clock { font-variant-numeric: tabular-nums; font-weight: 700; }

/* compact, sits under a card price */
.clock-mini {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .68rem;
  font-weight: 600;
  color: var(--ink-2);
}
.clock-mini .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--violet);
  flex: none;
  animation: throb 2.4s ease-in-out infinite;
}
.clock-mini--off .dot { background: var(--ink-3); animation: none; }
.clock-mini .t { font-variant-numeric: tabular-nums; font-weight: 700; }

@keyframes throb {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%      { opacity: .35; transform: scale(.75); }
}

/* full size, on the product page */
.dealbar {
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: 1.05rem 1.25rem;
  background: var(--lav-wash);
  margin: 1.5rem 0;
}
.dealbar--off { background: var(--mist); }

.dealbar__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.dealbar__label { font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.dealbar__time { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dealbar__time i {
  font-style: normal;
  font-weight: 600;
  color: var(--ink-3);
  font-size: .62rem;
  letter-spacing: .04em;
  vertical-align: .42em;
  margin: 0 .34rem 0 .08rem;
}
.dealbar__time i:last-child { margin-right: 0; }

.dealbar__track {
  height: 3px;
  border-radius: 999px;
  background: rgba(10,10,12,.12);
  margin-top: .85rem;
  overflow: hidden;
}
.dealbar__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--violet);
  transition: width 1s linear;
}
.dealbar--off .dealbar__fill { background: var(--ink-3); }

/* ---------- Spin wheel ---------- */
/*  Drawn as a pin badge, because that is what the shop sells. Same rim, same
    dome, same circle — the discount mechanic wearing the product's own form
    instead of a fairground graphic. */

.wheel-block {
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: clamp(1.2rem, 3vw, 1.75rem);
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 1.9rem);
  align-items: center;
  margin: 1.5rem 0;
}

.wheel-stage { position: relative; width: 100%; }

.wheel-pin {
  position: relative;
  border-radius: 50%;
  padding: 6px;
  background: linear-gradient(150deg, #FFFFFF 0%, #DEDCE6 38%, #FFFFFF 62%, #C9C6D4 100%);
  box-shadow: var(--lift);
}
.wheel-pin::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  pointer-events: none;
  background: linear-gradient(140deg, rgba(255,255,255,.4) 0%, rgba(255,255,255,0) 45%, rgba(10,10,12,.08) 100%);
}

.wheel-svg {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 50%;
  background: #fff;
  transform: rotate(0deg);
}
.wheel-svg.is-spinning { transition: transform 4.2s cubic-bezier(.12, .72, .12, 1); }

.wheel-hub {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 27%;
  height: 27%;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(10,10,12,.22);
  display: grid;
  place-items: center;
  pointer-events: none;
}
.wheel-hub img { width: 56%; height: auto; }

.wheel-needle {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 16px solid var(--ink);
  z-index: 4;
  filter: drop-shadow(0 2px 3px rgba(10,10,12,.3));
}

.wheel-copy h3 { margin-bottom: .35rem; }
.wheel-copy p  { margin: 0 0 1rem; color: var(--ink-2); font-size: .92rem; }

.wheel-terms {
  font-size: .76rem !important;
  color: var(--ink-3) !important;
  margin: 0 0 1.1rem !important;
  max-width: 42ch;
}

.wheel-result {
  border: 1px solid var(--violet);
  border-radius: var(--r-sm);
  background: var(--lav-wash);
  padding: .95rem 1.1rem;
}
.wheel-result[hidden] { display: none; }
.wheel-result b { display: block; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.wheel-result p { margin: .2rem 0 0; font-size: .86rem; color: var(--ink-2); }
.wheel-result code {
  display: inline-block;
  margin-top: .55rem;
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: .12em;
  background: #fff;
  border: 1px dashed var(--violet);
  border-radius: 999px;
  padding: .28rem .85rem;
  font-size: .8rem;
}

/* ---------- Product page (built to double as an ad landing page) ---------- */

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.pdp__stage { position: sticky; top: 96px; }
.pdp__art {
  background: var(--mist);
  border-radius: var(--r);
  padding: clamp(1.75rem, 5vw, 3.5rem);
}
.pdp__art .pin { max-width: 430px; margin-inline: auto; }

.pdp__thumbs {
  display: flex;
  gap: .6rem;
  margin-top: .9rem;
  flex-wrap: wrap;
  justify-content: center;
}
.pdp__thumbs .pin { width: 56px; }

.crumbs {
  font-size: .74rem;
  color: var(--ink-3);
  padding-top: 1.4rem;
  display: flex;
  gap: .45rem;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--violet); }

.pdp h1 { margin: .55rem 0 0; }
.pdp__sub { font-size: 1.05rem; color: var(--ink-2); margin: .9rem 0 0; max-width: 46ch; }

.pdp__price {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  margin: 1.4rem 0 0;
  flex-wrap: wrap;
}
.pdp__price .now { font-size: 2.6rem; font-weight: 800; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pdp__price s { color: var(--ink-3); font-size: 1.05rem; font-weight: 500; }
.pdp__tax { font-size: .74rem; color: var(--ink-3); margin: .35rem 0 0; }

.save {
  background: var(--violet);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  padding: .3rem .75rem;
  border-radius: 999px;
  align-self: center;
}

.buybox { display: flex; gap: .7rem; align-items: stretch; flex-wrap: wrap; margin-top: 1.4rem; }

.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--hair-hard);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}
.qty button {
  width: 42px;
  min-height: 48px;
  border: 0;
  background: none;
  font-size: 1.15rem;
  font-family: var(--font);
  color: var(--ink);
  cursor: pointer;
}
.qty button:hover { background: var(--mist); }
.qty input {
  width: 42px;
  border: 0;
  background: none;
  text-align: center;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.assure {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: .5rem;
}
.assure li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--ink-2);
}
.assure li::before {
  content: '';
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--violet);
  margin-top: .52rem;
}

.stock-note {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--violet);
  margin-top: .9rem;
}

/* sticky buy bar — rises once the main buy box scrolls out of view */
.buybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 70;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--hair);
  transform: translateY(110%);
  transition: transform .3s cubic-bezier(.2,.8,.3,1);
  padding: .7rem 0;
}
.buybar.is-up { transform: translateY(0); }
.buybar__in { display: flex; align-items: center; gap: 1rem; }
.buybar .pin { width: 44px; flex: none; }
.buybar__name { font-weight: 700; font-size: .92rem; letter-spacing: -.01em; line-height: 1.2; }
.buybar__meta { font-size: .72rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.buybar__price { margin-left: auto; font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

/* ---------- Sections ---------- */

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--mist { background: var(--mist); }
.section--rule { border-top: 1px solid var(--hair); }

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.section__head p { margin: .7rem 0 0; color: var(--ink-2); max-width: 50ch; }

/* ---------- Hero ---------- */

.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3.5rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin: 1rem 0 0; }
.hero h1 .accent { color: var(--violet); }
.hero .lede { margin: 1.4rem 0 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }

.hero__stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--hair);
  flex-wrap: wrap;
}
.hero__stats div { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.hero__stats b {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  text-transform: none;
  font-variant-numeric: tabular-nums;
}

.scatter {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(.9rem, 2vw, 1.6rem);
}
.scatter .pin { animation: settle .6s cubic-bezier(.2,.85,.3,1) backwards; }
.scatter > *:nth-child(1) .pin { animation-delay: .04s; }
.scatter > *:nth-child(2) .pin { animation-delay: .10s; transform: translateY(16px); }
.scatter > *:nth-child(3) .pin { animation-delay: .16s; }
.scatter > *:nth-child(4) .pin { animation-delay: .22s; transform: translateY(-10px); }
.scatter > *:nth-child(5) .pin { animation-delay: .28s; }
.scatter > *:nth-child(6) .pin { animation-delay: .34s; transform: translateY(9px); }

@keyframes settle { from { opacity: 0; transform: translateY(-18px) scale(.94); } }

/* ---------- Value props ---------- */

.props {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  overflow: hidden;
}
.props div { padding: 1.6rem 1.5rem; background: var(--paper); }
.props b { display: block; font-size: .98rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: .35rem; }
.props p { margin: 0; font-size: .87rem; color: var(--ink-2); }

/* ---------- Trust row ---------- */

.trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  padding: 1.6rem 0;
  border-block: 1px solid var(--hair);
}
.trust div { font-size: .82rem; color: var(--ink-2); }
.trust b { display: block; font-size: .88rem; color: var(--ink); font-weight: 700; }

/* ---------- Specs, prose, contents ---------- */

.prose p { margin: 0 0 1.1rem; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose--lg p { font-size: 1.02rem; }

.spec { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--hair); }
.spec li {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding: .8rem 0;
  border-bottom: 1px solid var(--hair);
  font-size: .9rem;
}
.spec li span:first-child {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  flex: none;
}
.spec li span:last-child { text-align: right; color: var(--ink-2); }

.contents {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 1.1rem;
}
.contents figure { margin: 0; text-align: center; }
.contents figcaption { font-size: .68rem; color: var(--ink-2); margin-top: .55rem; line-height: 1.35; }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--hair); }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 600;
  font-size: .98rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: .35rem; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--violet);
  line-height: 1;
}
.faq details[open] summary::after { content: '\2013'; }
.faq details > div { padding: 0 2.5rem 1.3rem 0; color: var(--ink-2); font-size: .93rem; }

/* ---------- Filters ---------- */

.filters {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  align-items: center;
  padding: 0 0 1.8rem;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 2.5rem;
}
.chip {
  font-size: .78rem;
  font-weight: 600;
  padding: .48rem 1rem;
  border: 1.5px solid var(--hair-hard);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filters form { margin-left: auto; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
/* .field is width:100% for stacked forms; inside the filter bar the controls
   sit in a row, so they need to size to content or each one claims the line. */
.filters .field { width: auto; min-width: 148px; }
.filters select.field { min-width: 170px; }

.field {
  font-family: var(--font);
  font-size: .92rem;
  padding: .7rem .95rem;
  border: 1.5px solid var(--hair-hard);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.field:focus { border-color: var(--violet); outline: none; }
.field::placeholder { color: var(--ink-3); }
select.field { cursor: pointer; }

/* ---------- Cart & checkout ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .95fr);
  gap: clamp(1.8rem, 4vw, 3rem);
  align-items: start;
  padding: 2.5rem 0 4rem;
}

.panel {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: clamp(1.3rem, 3vw, 1.9rem);
}
.panel--sticky { position: sticky; top: 96px; }
.panel--mist { background: var(--mist); border-color: transparent; }
.panel h3 { margin-bottom: 1.2rem; }

.line {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--hair);
}
.line:first-of-type { padding-top: 0; }
.line:last-of-type  { border-bottom: 0; padding-bottom: 0; }
.line__name { font-weight: 700; font-size: .98rem; letter-spacing: -.01em; line-height: 1.25; }
.line__meta { font-size: .74rem; color: var(--ink-2); margin-top: .25rem; font-variant-numeric: tabular-nums; }
.line__right { text-align: right; font-weight: 800; font-size: 1.05rem; font-variant-numeric: tabular-nums; }

.tally { list-style: none; margin: 0; padding: 0; }
.tally li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem 0;
  font-size: .93rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.tally li.total {
  border-top: 1px solid var(--hair);
  margin-top: .7rem;
  padding-top: 1rem;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
}
.tally .save-txt { color: var(--violet); font-weight: 600; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-grid label { display: flex; flex-direction: column; gap: .35rem; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.pay { display: grid; gap: .6rem; margin: 1.2rem 0 0; }
.pay label {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  border: 1.5px solid var(--hair);
  border-radius: var(--r-sm);
  padding: .9rem 1.05rem;
  cursor: pointer;
}
.pay label:has(input:checked) { border-color: var(--violet); background: var(--lav-wash); }
.pay b { display: block; font-size: .93rem; }
.pay small { color: var(--ink-2); }

.empty { text-align: center; padding: clamp(3rem, 8vw, 6rem) 1rem; }
.empty h2 { margin-bottom: .8rem; }
.empty p { color: var(--ink-2); margin: 0 auto 2rem; max-width: 44ch; }

/* ---------- Flash ---------- */

.flash { margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.flash div {
  border: 1px solid var(--hair);
  border-left: 3px solid var(--violet);
  border-radius: var(--r-sm);
  background: var(--mist);
  padding: .8rem 1.1rem;
  font-size: .92rem;
}
.flash .err { border-left-color: var(--ink); }

/* ---------- Receipt ---------- */

.receipt {
  max-width: 620px;
  margin: 3rem auto 5rem;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: clamp(1.6rem, 4vw, 2.6rem);
}
.receipt__no {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: .1em;
  background: var(--ink);
  color: #fff;
  display: inline-block;
  padding: .45rem 1rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(255,255,255,.7);
  padding: clamp(2.8rem, 5vw, 4rem) 0 1.8rem;
  margin-top: auto;
}
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.4rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.footer p { color: rgba(255,255,255,.62); font-size: .89rem; }
.footer h4 {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--lav);
  margin: 0 0 1rem;
}
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer ul a { font-size: .89rem; color: rgba(255,255,255,.72); }
.footer ul a:hover { color: #fff; }
.footer__base {
  padding-top: 1.6rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: .72rem;
  color: rgba(255,255,255,.45);
}

.subscribe { display: flex; gap: .5rem; margin-top: 1.1rem; max-width: 340px; }
.subscribe .field {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.22);
  color: #fff;
}
.subscribe .field::placeholder { color: rgba(255,255,255,.42); }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .hero__grid, .pdp, .split { grid-template-columns: 1fr; }
  .pdp__stage, .panel--sticky { position: static; }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .wheel-block { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wheel-stage { max-width: 240px; }
  .wheel-terms { margin-inline: auto !important; }

  .nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--hair);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: .5rem 1.25rem 1.25rem;
  }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; width: 100%; }
  .nav-toggle { display: block; }
  .cart-link { margin-left: .75rem; }
}

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .line { grid-template-columns: 62px minmax(0,1fr); }
  .line__right { grid-column: 2; text-align: left; }
  .buybar .pin, .buybar__meta { display: none; }
  .pdp__price .now { font-size: 2.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .wheel-svg.is-spinning { transition: none; }
}

/* Seller attribution on a marketplace listing. Quiet by design: it is
   provenance, not a headline, and it must not compete with the artwork. */
.soldby {
  font-size: .84rem;
  color: var(--ink-2);
  margin: .9rem 0 0;
}
.soldby a {
  color: var(--violet);
  font-weight: 600;
  border-bottom: 1px solid rgba(84, 30, 220, .3);
}
.soldby a:hover { border-bottom-color: var(--violet); }

/* Footer gained a Sellers column. Five tracks at desktop, and the brand block
   keeps more room than the link lists so the subscribe form still fits. */
.footer__grid--5 { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .footer__grid--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid--5 > *:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .footer__grid--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .footer__grid--5 { grid-template-columns: 1fr; }
}

/* Spec rows in the seller product editor: label and value side by side,
   stacking on narrow screens so the inputs stay usable on a phone. */
.specrows { display: grid; gap: .55rem; }
.specrow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: .55rem;
}
@media (max-width: 560px) { .specrow { grid-template-columns: 1fr; } }
