/* ============================================================
   PRODUCT PAGE — Season 1 booster pack (and future SKUs)
   inherits theme tokens from ../styles.css
   ============================================================ */

[hidden] { display: none !important; }

.product-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px;
}
@media (max-width: 800px) {
  .product-page { padding: 24px 18px; }
}

/* -------- product hero (image + buy panel) -------- */
.product-hero {
  display: grid;
  grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 56px;
  margin-bottom: 64px;
  align-items: start;
}
@media (max-width: 800px) {
  .product-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 40px;
  }
}

.product-hero-art {
  position: sticky;
  top: 24px;
}
@media (max-width: 800px) {
  .product-hero-art { position: static; }
}

.pack-art-large {
  display: block;
  width: 100%;
  height: auto;
  max-width: 380px;
  margin: 0 auto;
  border-radius: 6px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

/* -------- buy panel -------- */
.product-hero-buy .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.product-hero-buy h1 {
  font-family: var(--sans);
  font-size: 38px;
  line-height: 1.1;
  margin: 0 0 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
@media (max-width: 800px) {
  .product-hero-buy h1 { font-size: 28px; }
}

.product-deck {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0 0 28px;
}
@media (max-width: 800px) {
  .product-deck { font-size: 15px; }
}

.buy-panel {
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 6px;
  padding: 22px 24px 20px;
}

.buy-panel-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 16px;
  font-weight: 600;
}

.buy-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 14px 16px;
  margin: 0 -16px;
  border-radius: 4px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
.buy-row + .buy-row { margin-top: 6px; }
.buy-row:hover {
  background: var(--bg-panel);
  border-color: var(--border);
}

.buy-row-featured {
  background: var(--bg-panel);
  border-color: var(--amber-dim);
}
.buy-row-featured:hover {
  border-color: var(--amber);
}

.buy-row-main { display: flex; flex-direction: column; gap: 2px; }
.buy-row-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.buy-row-detail {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}
.buy-row-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
  width: max-content;
}

.buy-row-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.price-num {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.price-unit {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
}

/* ============================================================
   SKU SELECTOR TILES (replaces buy-row anchors)
   ============================================================ */

.sku-tile {
  display: grid;
  grid-template-columns: 1fr auto 28px;
  gap: 14px;
  align-items: center;
  width: 100%;
  text-align: left;
  cursor: pointer;
  padding: 14px 16px;
  margin: 0 -16px;
  background: transparent;
  color: inherit;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.sku-tile + .sku-tile { margin-top: 4px; }
.sku-tile:hover {
  background: var(--bg-panel);
  border-color: var(--border);
}
.sku-tile.is-selected {
  background: rgba(232, 179, 57, 0.06);
  border-color: var(--amber);
  box-shadow: 0 0 0 1px var(--amber);
}
/* "Most popular" is signaled by the inline tag, not by an outline —
   an outline reads as "selected" and confuses the radio-button affordance. */
.sku-tile-featured { /* no styling beyond default; tag carries the signal */ }

.sku-tile-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.sku-tile-name {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.sku-tile-detail {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--ink-muted);
  font-style: italic;
}
.sku-tile-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  color: var(--amber);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-top: 4px;
  width: max-content;
}

.sku-tile-price {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

/* check-mark indicator on selected tile */
.sku-tile-check {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.sku-tile.is-selected .sku-tile-check {
  border-color: var(--amber);
  background: var(--amber);
}
.sku-tile.is-selected .sku-tile-check::after {
  content: '';
  position: absolute;
  inset: 4px 5px 4px 5px;
  border: solid #0b0d10;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -2px);
  width: 6px;
  height: 10px;
  border-radius: 1px;
}

/* ============================================================
   QUANTITY STEPPER + ADD TO CART
   ============================================================ */

.add-to-cart-row {
  display: flex;
  gap: 12px;
  margin: 18px 0 10px;
  align-items: center;
  flex-wrap: wrap;
}

.qty-stepper {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  overflow: hidden;
  height: 40px;
}
.qty-btn {
  width: 32px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.qty-btn:hover { background: var(--bg-panel); }
.qty-stepper input {
  width: 38px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: center;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  -moz-appearance: textfield;
  appearance: textfield;
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-stepper input:focus { outline: none; }

.add-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 18px;
  background: var(--amber);
  color: #0b0d10;
  border: 0;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s ease;
  white-space: nowrap;
}
.add-cart-btn:hover { background: #f6cf6a; }
.add-cart-btn:active { transform: translateY(1px); }
.add-cart-total {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding-left: 12px;
  border-left: 1px solid rgba(11,13,16,0.25);
}

/* ============================================================
   CART PREVIEW (in product page buy-panel)
   ============================================================ */

.cart-preview {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
}
.cart-preview-title {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 10px;
  font-weight: 600;
}

.cart-preview-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: 13px;
}
.cart-preview-row:last-child { border-bottom: 0; }
.cart-preview-name {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--ink);
}
.cart-preview-qty {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  color: var(--ink-muted);
}
.cart-preview-qty button {
  width: 22px;
  height: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
  font-family: var(--mono);
  line-height: 1;
}
.cart-preview-qty button:hover { border-color: var(--amber-dim); }

.cart-preview-price {
  font-family: var(--mono);
  color: var(--amber);
  font-size: 13px;
  font-weight: 600;
}
.cart-preview-remove {
  background: transparent;
  border: 0;
  color: var(--ink-faint);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 0 4px;
}
.cart-preview-remove:hover { color: var(--red); }

.cart-preview-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-soft);
}
.cart-preview-total {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--amber);
}
.checkout-link {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  text-decoration: none;
  border: 1px solid var(--amber);
  padding: 8px 14px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}
.checkout-link:hover { background: var(--amber); color: #0b0d10; }

/* ============================================================
   ADD-TO-CART TOAST
   ============================================================ */

.add-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 24px;
  border-radius: 4px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 1000;
  pointer-events: none;
}
.add-toast.is-showing {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.buy-panel-meta {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--border-soft);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.buy-panel-meta li { padding: 2px 0; }

/* -------- generic content section -------- */
.product-section {
  max-width: 760px;
  margin: 0 auto 64px;
}
.product-section .kicker {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.product-section h2 {
  font-family: var(--sans);
  font-size: 30px;
  line-height: 1.2;
  margin: 0 0 22px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
@media (max-width: 800px) {
  .product-section h2 { font-size: 22px; }
}
.product-section p {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-muted);
  margin: 0 0 16px;
}
@media (max-width: 800px) {
  .product-section p { font-size: 15px; }
}

/* -------- pack composition grid -------- */
.composition-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 0 22px;
}
@media (max-width: 700px) {
  .composition-grid { grid-template-columns: repeat(2, 1fr); }
}

.comp-cell {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 14px;
  background: var(--bg-elev);
}
.comp-tier {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.comp-common  .comp-tier { color: var(--ink-muted); }
.comp-uncommon .comp-tier { color: var(--blue); }
.comp-rare    .comp-tier { color: var(--purple); }
.comp-foil    .comp-tier { color: var(--amber); }
.comp-foil    { border-color: var(--amber-dim); }

.comp-count {
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.comp-pool {
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-bottom: 8px;
}
.comp-odds {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.comp-note {
  font-style: italic;
  font-size: 14px !important;
  color: var(--ink-faint) !important;
}

/* -------- gallery -------- */
.gallery-intro {
  margin-bottom: 28px !important;
}

.gallery-section { margin-bottom: 28px; }

.gallery-tier-head {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 12px;
  font-weight: 600;
}

.card-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.gcard {
  aspect-ratio: 5/7;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 8px;
  position: relative;
  overflow: hidden;
}
.gcard::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, transparent 50%, rgba(255,255,255,0.02) 50%);
  background-size: 8px 8px;
  pointer-events: none;
}
.gcard-slot {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.gcard-status {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.gcard.t-common  .gcard-slot { color: var(--ink-muted); }
.gcard.t-uncommon { border-color: rgba(109,172,216,0.4); }
.gcard.t-uncommon .gcard-slot { color: var(--blue); }
.gcard.t-rare { border-color: rgba(179,138,224,0.4); }
.gcard.t-rare .gcard-slot { color: var(--purple); }
.gcard.t-foil {
  border-color: var(--amber);
  background: linear-gradient(135deg, var(--bg-elev), rgba(232,179,57,0.08));
}
.gcard.t-foil .gcard-slot { color: var(--amber); }
.gcard.t-foil .gcard-status { color: var(--amber-dim); }

.gcard.gcard-todo {
  opacity: 0.55;
}
.gcard.gcard-todo::after {
  content: 'WIP';
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  color: var(--ink-faint);
  background: var(--bg);
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid var(--border);
}

/* -------- policies -------- */
.policy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 28px;
  margin: 0 0 22px;
}
@media (max-width: 700px) {
  .policy-grid { grid-template-columns: 1fr; }
}

.policy-cell h4 {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--amber);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 8px;
}
.policy-cell p {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-muted);
  margin: 0;
}

.policies-footer {
  font-family: var(--mono) !important;
  font-size: 11px !important;
  color: var(--ink-faint) !important;
  letter-spacing: 0.06em;
  margin-top: 24px !important;
  padding-top: 16px;
  border-top: 1px solid var(--border-soft);
  font-style: normal !important;
}

/* -------- back link -------- */
.back-link-row {
  text-align: center;
  margin: 48px 0 32px;
}
.back-link {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--amber);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--amber-dim);
  padding-bottom: 2px;
}
.back-link:hover { border-color: var(--amber); }
