/*
 * bmxmotos.net/shop: the race-night tees. Loaded by shop.html beside styles.css
 * (site/shop/build.mjs writes the page). Same "Race Decal" look: navy, orange,
 * checker strips, white number plates.
 */
.shop-hero { position: relative; overflow: hidden; padding: 56px 0 44px; }
.shop-hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 36px; align-items: center; }
.shop-hero .lede { max-width: 560px; }
.shop-hero .stripe { top: -120px; height: 1000px; }
.hero-tees { position: relative; height: 420px; }
.hero-tees .stage-wrap { position: absolute; width: 58%; filter: drop-shadow(0 18px 24px rgba(5, 8, 15, 0.45)); }
.hero-tees .stage-wrap.a { left: 0; top: 40px; transform: rotate(-7deg); }
.hero-tees .stage-wrap.b { right: 0; top: 0; transform: rotate(5deg); }
.order-pill { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #ffffff; border: 3px solid #ffffff; border-radius: 10px; padding: 12px 20px; font: 700 20px/1.1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; }
.order-pill b { background: var(--orange); color: var(--plate-ink); border-radius: 6px; padding: 2px 9px; font: 900 16px/1.4 var(--display); }
.order-pill:hover { color: #ffb36b; border-color: #ffb36b; }

/* copy that belongs to one mode (pre-order vs card checkout) stays hidden whatever its display rule says */
[data-mode][hidden] { display: none !important; }

/* a drawn shirt: a 560 x 700 stage scaled to the box it sits in (shop.js sets --k) */
.stage-wrap { position: relative; aspect-ratio: 560 / 700; overflow: visible; }
/* the stage is absolute so its 560 px never widens the box; the box's aspect ratio gives it height */
.stage-wrap .stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--k, 0.5)); }
.stage-wrap .stage[hidden] { display: none; }

/* the line: eight cards */
.tee-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.tee-card { background: #ffffff; color: var(--plate-ink); border: 4px solid var(--ink); border-radius: 18px; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 10px; }
/* back large (the graphic), front beside it, both standing on the same line */
.tee-views { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2px; align-items: end; margin: -4px -2px 2px; }
.view-col { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 0; }
.view-col .stage-wrap { width: 100%; }
.view-col:last-child .stage-wrap { margin-bottom: 2%; }
.view-label { font: 700 11px/1 var(--label); letter-spacing: 0.16em; text-transform: uppercase; color: #3a4556; }
.tee-card .no { font: 900 22px/1 var(--display); color: var(--navy); }
.tee-card h3 { margin: 0; font: 900 20px/1.15 var(--display); color: var(--navy); text-transform: uppercase; }
.tee-card p { margin: 0; font-size: 15.5px; color: #3a4556; flex: 1; }
.dots { display: flex; gap: 7px; align-items: center; margin: 0; padding: 0; list-style: none; }
.dots li { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(11, 18, 32, 0.25); }
.tee-card .btn { font-size: 19px; padding: 12px 18px; text-align: center; width: 100%; border: 0; cursor: pointer; font-family: var(--label); }
.tee-card .btn.primary { border: 3px solid var(--ink); }

/* made to last: three plates under the line */
.quality { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.q-plate { background: #ffffff; color: var(--plate-ink); border: 4px solid var(--ink); border-radius: 18px; padding: 24px 26px 26px; }
.q-plate h3 { margin: 0 0 10px; font: 900 22px/1.1 var(--display); color: var(--navy); text-transform: uppercase; }
.q-plate ul { margin: 0; padding: 0 0 0 20px; font-size: 16px; color: #1c2533; }
.q-plate li { margin: 0 0 6px; }
.q-lead { margin: 0 0 8px; font-weight: 600; color: #1c2533; }
.q-note { margin: 12px 0 0; font-size: 15px; color: #3a4556; }
.q-plate.hot { background: var(--orange); }
.q-plate.hot h3, .q-plate.hot ul, .q-plate.hot .q-note { color: var(--plate-ink); }
.q-plate.hot ul { font-weight: 600; }
.pick-blank { margin: 8px 0 0; font-size: 14px; color: #3a4556; }
.pick-blank a { color: #1f5fd1; }

/* the picker */
.pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.pick-view { position: sticky; top: 92px; }
.pick-view .stage-wrap { max-width: 560px; margin: 0 auto; }
.sides { display: flex; justify-content: center; gap: 8px; margin: 12px 0 0; }
.sides button, .chips button, .swatches button, .qty button { font-family: var(--label); cursor: pointer; }
.sides button { background: transparent; color: var(--soft); border: 2px solid #4f6a9a; border-radius: 8px; padding: 8px 18px; font: 700 17px/1 var(--label); letter-spacing: 0.08em; text-transform: uppercase; }
.sides button[aria-pressed="true"] { background: #ffffff; color: var(--navy); border-color: #ffffff; }
.pick-sheet { background: #ffffff; color: var(--plate-ink); border: 4px solid var(--ink); border-radius: 18px; padding: 26px 28px 28px; }
.pick-sheet .no { font: 900 16px/1 var(--label); letter-spacing: 0.14em; text-transform: uppercase; color: #3a4556; }
.pick-sheet h3 { margin: 6px 0 10px; font: 900 clamp(26px, 4vw, 36px)/1.05 var(--display); color: var(--navy); text-transform: uppercase; }
.pick-sheet .blurb { margin: 0 0 16px; color: #1c2533; font-size: 17px; }
.spec { margin: 0 0 18px; padding: 0; display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 6px 14px; font-size: 15px; }
.spec dt { font: 700 13px/1.6 var(--label); letter-spacing: 0.1em; text-transform: uppercase; color: #3a4556; }
.spec dd { margin: 0; color: #1c2533; font-weight: 600; }
.field { margin: 0 0 16px; }
.field > span, .field label > span, legend { display: block; font: 700 14px/1.2 var(--label); letter-spacing: 0.12em; text-transform: uppercase; color: #3a4556; margin: 0 0 8px; }
fieldset.field { border: 0; padding: 0; min-width: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { display: flex; align-items: center; gap: 8px; background: #f2f5f9; border: 2px solid #c9d2e0; border-radius: 999px; padding: 6px 12px 6px 6px; font: 600 15px/1 var(--body); color: var(--plate-ink); }
.swatches button i { display: block; width: 24px; height: 24px; border-radius: 50%; border: 2px solid rgba(11, 18, 32, 0.25); }
.swatches button[aria-checked="true"] { border-color: var(--navy); background: #ffffff; box-shadow: 0 0 0 2px var(--navy) inset; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-width: 52px; background: #f2f5f9; border: 2px solid #c9d2e0; border-radius: 8px; padding: 9px 12px; font: 700 16px/1 var(--label); letter-spacing: 0.06em; color: var(--plate-ink); }
.chips button[aria-checked="true"] { background: var(--navy); border-color: var(--navy); color: #ffffff; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: end; }
.qty { display: inline-flex; align-items: center; border: 2px solid #c9d2e0; border-radius: 8px; overflow: hidden; }
.qty button { width: 42px; height: 44px; background: #f2f5f9; border: 0; font: 700 22px/1 var(--body); color: var(--navy); }
.qty output { min-width: 44px; text-align: center; font: 700 18px/1 var(--body); }
.text { width: 100%; border: 2px solid #c9d2e0; border-radius: 8px; padding: 11px 12px; font: 400 17px/1.3 var(--body); color: var(--plate-ink); background: #ffffff; }
.text:focus { outline: 3px solid var(--orange); outline-offset: 1px; border-color: var(--navy); }
.hint { margin: 6px 0 0; font-size: 14px; color: #3a4556; }
.price { font: 900 22px/1 var(--display); color: var(--navy); }
.price small { font: 600 14px/1.3 var(--body); color: #3a4556; }
.add { width: 100%; margin-top: 6px; border: 3px solid var(--ink); background: var(--orange); color: var(--plate-ink); border-radius: 10px; padding: 15px 20px; font: 700 21px/1.1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.add:hover { background: #ff8f26; }
.added { margin: 10px 0 0; font-weight: 600; color: #146c2e; min-height: 1.4em; }

/* your order */
.order { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px; align-items: start; }
.order-sheet { background: #ffffff; color: var(--plate-ink); border: 4px solid var(--ink); border-radius: 18px; padding: 24px 26px 26px; }
.lines { margin: 0; padding: 0; list-style: none; }
.lines li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid #c9d2e0; }
.lines li:first-child { border-top: 0; padding-top: 0; }
.lines .stage-wrap { width: 64px; }
.lines .what { font-weight: 700; }
.lines .how { font-size: 14.5px; color: #3a4556; }
.lines .remove { background: none; border: 0; color: #b42318; font: 600 14px/1 var(--body); cursor: pointer; padding: 6px 0 0; text-align: left; }
.lines .qty { transform: scale(0.86); transform-origin: right center; }
.order-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 2px solid var(--plate-ink); margin-top: 8px; padding-top: 12px; font: 700 18px/1.2 var(--body); }
.order-total b { font: 900 22px/1 var(--display); color: var(--navy); }
.empty { color: #3a4556; margin: 0; }
.order-money { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; font-size: 16px; color: #1c2533; }
.order-money div { display: flex; justify-content: space-between; }
.order-money .sum { border-top: 2px solid var(--plate-ink); margin-top: 6px; padding-top: 8px; font-weight: 700; font-size: 18px; }
.order-money .sum b { font: 900 22px/1 var(--display); color: var(--navy); }
.reserve { width: 100%; margin-top: 8px; border: 3px solid var(--ink); background: var(--orange); color: var(--plate-ink); border-radius: 10px; padding: 16px 20px; font: 700 22px/1.1 var(--label); letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; }
.reserve:hover { background: #ff8f26; }
.reserve[disabled] { opacity: 0.5; cursor: default; }
.status { margin: 12px 0 0; font-weight: 600; min-height: 1.4em; }
.status.bad { color: #b42318; }
.status.good { color: #146c2e; }
.done { background: var(--orange); color: var(--plate-ink); border: 4px solid var(--ink); border-radius: 18px; padding: 24px 26px; }
.done h3 { margin: 0 0 8px; font: 900 26px/1.1 var(--display); text-transform: uppercase; }
.done p { margin: 0 0 8px; }
.paused { background: #ffffff; color: #b42318; border: 4px solid var(--ink); border-radius: 12px; padding: 14px 18px; font-weight: 700; margin: 0 0 20px; }
.shop-fine { color: var(--dim); font-size: 15px; margin: 16px 0 0; }

@media (max-width: 1024px) {
  .tee-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 880px) {
  .shop-hero .wrap { grid-template-columns: 1fr; }
  .quality { grid-template-columns: 1fr; }
  .hero-tees { height: 300px; max-width: 420px; margin: 0 auto; }
  .shop-hero .stripe { top: auto; bottom: -120px; height: 620px; }
  .tee-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pick, .order { grid-template-columns: 1fr; }
  .pick-view { position: static; }
  .pick-view .stage-wrap { max-width: 400px; }
}
@media (max-width: 600px) {
  .tee-grid { grid-template-columns: 1fr; }
  .tee-card { padding: 14px 14px 16px; }
  .pick-sheet, .order-sheet { padding: 20px 18px 22px; }
  /* an order line: the stepper drops under the words */
  .lines li { grid-template-columns: 56px minmax(0, 1fr); }
  .lines .stage-wrap { width: 56px; }
  .lines .qty { grid-column: 2; justify-self: start; transform: none; margin-top: 2px; }
  .row2 { grid-template-columns: 1fr; }
  .order-pill { width: 100%; justify-content: center; }
}
