/* ============================================================
   Pocket Arcana — shop page
   Only what the shop adds; everything else comes from ../styles.css.
   ============================================================ */

/* ---------- buy area: gallery left, offer right -------------- */
.buy {
  position: relative;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: start;
  padding: 24px 32px 96px;
}

.gallery { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.gallery__main {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 28px; background: var(--cream);
}
.gallery__thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery__thumb {
  padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden;
  background: var(--cream); cursor: pointer; aspect-ratio: 1;
  transition: border-color 140ms ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery__thumb:hover { border-color: var(--rule); }
.gallery__thumb.is-on { border-color: var(--ink); }

.offer { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 22px; padding-top: 12px; }
.offer .pill { align-self: flex-start; }
.offer__title { font-size: 64px; line-height: 0.98; letter-spacing: -0.035em; }
.offer__lede { font-size: 19px; line-height: 1.55; color: var(--muted); }
.offer__price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.offer__price strong { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.offer__price .offer__ship { flex-basis: 100%; font-size: 15px; color: var(--muted); }
/* The launch price is for the first batch only, and says so right by the number. */
.offer__tag {
  align-self: center; border-radius: 999px; padding: 6px 12px 5px;
  background: var(--gold); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
}
.offer__early { flex-basis: 100%; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.offer__choice { display: flex; flex-direction: column; gap: 10px; }
.offer__cases { font-size: 16px; line-height: 1.5; color: var(--muted); }
.offer__cases strong { color: var(--ink); }
.offer__fine { font-size: 14px; color: var(--faint); margin-top: 10px; }
.offer__facts {
  margin: 0; padding: 18px 0 0; list-style: none;
  border-top: 2px solid var(--rule);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 15px; line-height: 1.5; color: var(--ink-soft);
}
.offer__facts li::before { content: "✦"; margin-right: 10px; color: var(--gold); }

/* Swatches only preview. The real choice happens at Stripe checkout. */
.swatches { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, max-content); gap: 10px 28px; }
.swatches li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-soft); }
.swatch { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15); }
.swatch--green { background: #5B7330; }
.swatch--clear { background: linear-gradient(135deg, #FFFFFF 0%, #E6ECEF 55%, #CDD6DB 100%); border: 1.5px solid #C4CCD0; }
.swatch--gold  { background: #F2C443; }
.swatch--lilac { background: #C8A8DC; }
.swatch--pink  { background: #F2A7C0; }
.swatch--black { background: #1E1E1E; }

/* ---------- buy states ---------------------------------------
   shop.js sets data-stock on .page. "unknown" looks exactly like
   "available": if we can't tell, we still let people try, and Stripe
   enforces the cap at checkout. */
.btn--buy { text-align: center; }
.btn--off { background: var(--faint); cursor: default; text-align: center; }
.offer .btn--cta { width: 100%; max-width: 420px; }

.state--soon, .state--sold { display: none; }
[data-stock="coming_soon"] .state--open,
[data-stock="sold_out"] .state--open { display: none; }
[data-stock="coming_soon"] .state--soon { display: block; }
[data-stock="sold_out"] .state--sold { display: block; }
.state--sold .waitlist { margin-top: 16px; }
.state--sold .waitlist__done,
.state--sold .waitlist__error { margin-top: 16px; }

/* ---------- sections ---------------------------------------- */
.two-up--wide { max-width: 1180px; gap: 64px; }
.section__title { font-size: 40px; line-height: 1.05; margin: 14px 0 18px; }
.section__text { font-size: 17px; line-height: 1.6; color: var(--muted); margin-bottom: 14px; }

.made { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: center; }
.made__photo { width: 100%; height: auto; border-radius: 28px; }
.made__sign { font-size: 22px; font-weight: 700; margin-top: 8px; }

.closing .cta .btn--cta { min-width: 220px; }

/* ---------- responsive -------------------------------------- */
@media (max-width: 980px) {
  .buy { grid-template-columns: 1fr; gap: 40px; padding: 16px 24px 72px; }
  .gallery { max-width: 560px; }
  .offer__title { font-size: 52px; }
  .two-up--wide { gap: 48px; }
  .made { grid-template-columns: 1fr; gap: 32px; }
  .made__photo { max-width: 420px; }
  .section__title { font-size: 34px; }
}
@media (max-width: 620px) {
  .buy { padding: 8px 16px 56px; }
  .offer__title { font-size: 42px; }
  .offer .btn--cta { max-width: none; }
  .gallery__thumbs { gap: 6px; }
  .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 10px; }
  /* Square and capped, and the price and button moved up under the title,
     so a phone sees the photo, the name, the price and the button at once.
     The colours and cases follow; the button's note says you pick at checkout. */
  .buy { gap: 24px; }
  .gallery__main { aspect-ratio: 1 / 1; max-height: 58vh; }
  .offer { gap: 16px; padding-top: 0; }
  .offer > * { order: 3; }
  .offer .pill { order: 0; }
  .offer__title { order: 1; }
  .offer__lede { order: 1; }
  .offer__price { order: 2; }
  .offer > .state { order: 2; }
  .gallery__main, .made__photo { border-radius: 20px; }
  .section__title { font-size: 28px; }
}

/* ---------- 6. safety and the fine print ---------- */
.safety { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 48px; }
.safety__rules { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.safety__rules li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.safety__rules li::before { content: "✦"; position: absolute; left: 0; top: 0; color: var(--ink); font-size: 12px; line-height: 2; }
.safety__rules strong { color: var(--ink); }
.safety .two-up__col p + p { margin-top: 12px; }
.safety a { text-decoration: underline; text-underline-offset: 2px; }

.offer__facts a { text-decoration: underline; text-underline-offset: 2px; }
.offer__facts strong { color: var(--ink); }
