/* ===== COLLEX v2: card product page (Extend Art) =====
   Loaded after /kit.css and /styles.css. Kit tokens only. Scoped to .ea-page / .ea-buy
   so it overrides legacy .product-* / .buy-* rules without touching other pages. */

.ea-page [hidden], .ea-buy [hidden] { display: none !important; }

.ea-page__crumb { padding-top: 40px; }
.ea-page__hero { padding-top: 32px; padding-bottom: 96px; }
.ea-page__media { min-width: 0; }
.ea-page__buy { min-width: 0; display: flex; flex-direction: column; gap: 32px; padding-top: 8px; }
.ea-page__head { display: flex; flex-direction: column; gap: 14px; }
.ea-page__head .t-body { margin-top: 6px; }

/* ---- gallery: stage + 96x120 thumbs ---- */
.ea-page .product-gallery { display: flex; flex-direction: column; gap: 16px; }
.ea-page .product-gallery__frame {
  position: relative; aspect-ratio: 4 / 5; background: var(--stage);
  border-radius: 12px; overflow: hidden;
}
.ea-page .product-gallery__main {
  width: 100%; height: 100%; max-height: none; object-fit: contain; display: block;
}
.ea-page .product-gallery__nav {
  position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; padding: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 999px;
  background: var(--chrome); border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
}
.ea-page .product-gallery__nav:hover { background: var(--surface); border-color: var(--muted); }
.ea-page .product-gallery__nav--prev { left: 16px; }
.ea-page .product-gallery__nav--next { right: 16px; }
.ea-page .product-gallery__thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.ea-page .product-gallery__thumb {
  width: 96px; height: 120px; min-width: 44px; padding: 0; border-radius: 12px; overflow: hidden;
  background: var(--stage); border: 1px solid var(--line); cursor: pointer; opacity: 1;
}
.ea-page .product-gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ea-page .product-gallery__thumb:hover { border-color: var(--line-strong); }
.ea-page .product-gallery__thumb.is-active { border-color: var(--text); }

/* ---- buy column ---- */
.ea-buy { display: flex; flex-direction: column; gap: 32px; max-width: none; margin: 0; padding: 0; }
.ea-buy .buy-panel__type { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }
.ea-buy .buy-panel__format--single { display: none; }
.ea-buy__pricing { display: flex; flex-direction: column; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.ea-buy__price { display: flex; align-items: baseline; gap: 12px; margin: 0; }
.ea-bundle { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 12px; }
.ea-bundle__tier { padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.ea-bundle__tier + .ea-bundle__tier { border-left: 1px solid var(--line); }
.ea-buy__fields { display: flex; flex-direction: column; gap: 24px; }
.ea-buy__intl { display: flex; flex-direction: column; gap: 8px; }
.ea-buy__intl ul { margin: 0; padding-left: 18px; }
.ea-buy__cta { display: flex; flex-direction: column; gap: 16px; }
.ea-buy__cta .t-small { margin: 0; text-align: center; }
.ea-buy .btn--primary {
  background: var(--red-fill); color: #fff; box-shadow: var(--halo); transform: none; border: 1px solid transparent;
  flex-direction: row; min-height: 48px; padding: 0 24px;
}
.ea-buy .btn--primary:hover { background: var(--red-press); color: #fff; transform: none; }
.ea-buy .btn--secondary { background: none; border: 1px solid var(--line-strong); color: var(--text); }
.ea-buy .btn--secondary:hover { background: var(--surface); border-color: var(--muted); color: var(--strong); }
.ea-buy .btn[disabled] { opacity: .5; cursor: progress; }
.ea-buy .select { min-height: 48px; }
.ea-buy__trust, .ea-buy .pdp-trust {
  display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; margin: 0; padding: 0; color: var(--muted);
}
.ea-buy__trust li, .ea-buy .pdp-trust li { margin: 0; }
.ea-buy__dm .panel__body { display: flex; flex-direction: column; gap: 12px; }
.ea-buy__dm-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ea-buy .buy-dm__copy { cursor: pointer; min-height: 44px; }
.ea-buy__dm .t-data { overflow-wrap: anywhere; color: var(--text); margin: 0; }

/* ---- about + order steps + sizing (restyled legacy sections) ---- */
.ea-page .product-details, .ea-page .product-explore {
  max-width: 1376px; margin: 0 auto; padding: 96px 48px; border-top: 1px solid var(--line); background: none;
}
.ea-page .product-details__inner { max-width: none; }
.ea-page .product-details__heading, .ea-page .product-explore__heading {
  font-family: var(--display); font-weight: 700; font-size: 40px; line-height: 1.1; letter-spacing: -.02em;
  color: var(--strong); margin: 0 0 28px; text-transform: none;
}
.ea-page .product-details__lede { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 68ch; margin: 0 0 40px; }
.ea-page .product-details__list {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; list-style: none; margin: 0 0 40px; padding: 0;
}
.ea-page .product-details__item h3 { font-family: var(--display); font-weight: 600; font-size: 22px; color: var(--strong); margin: 0 0 12px; }
.ea-page .product-details__item p { color: var(--muted); font-size: 16px; line-height: 1.65; margin: 0; }
.ea-page .pdp-acc { border-top: 1px solid var(--line); padding: 0; margin: 0; max-width: 880px; }
.ea-page .pdp-acc:last-of-type { border-bottom: 1px solid var(--line); }
.ea-page .pdp-acc summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 0;
  font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); cursor: pointer; list-style: none;
}
.ea-page .pdp-acc summary::-webkit-details-marker { display: none; }
.ea-page .pdp-acc summary::after { color: var(--muted); font-size: 20px; }
.ea-page .pdp-acc__body { color: var(--muted); font-size: 15px; line-height: 1.65; padding: 0 0 20px; margin: 0; max-width: 68ch; }
.ea-page .pdp-acc__body a { text-decoration: underline; text-underline-offset: 3px; }
.ea-page .order-steps { max-width: 68ch; margin: 0 0 20px; }
.ea-page .order-step__dot { border-color: var(--red); color: var(--red); background: none; font-family: var(--mono); }
.ea-page .order-step__body b { color: var(--text); font-family: var(--body); font-weight: 600; }
.ea-page .order-step__body span { color: var(--muted); font-size: 14px; }

/* ---- more from ---- */
.ea-page .product-explore__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.ea-page .product-explore__card { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--text); }
.ea-page .product-explore__card img {
  width: 100%; height: auto; aspect-ratio: 3 / 5; object-fit: cover; border-radius: 12px; background: var(--stage);
}
.ea-page .product-explore__title { font-family: var(--body); letter-spacing: 0; text-transform: none; font-weight: 600; font-size: 15px; line-height: 1.35; margin: 8px 0 0; color: var(--text); }

@media (max-width: 1100px) {
  .ea-page .product-explore__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .ea-page__crumb { padding-top: 28px; }
  .ea-page__hero { padding-bottom: 64px; }
  .ea-page .product-details, .ea-page .product-explore { padding: 64px 20px; }
  .ea-page .product-details__heading, .ea-page .product-explore__heading { font-size: 28px; margin-bottom: 24px; }
  .ea-page .product-details__list { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .ea-page .product-explore__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .ea-page .product-gallery__thumb { width: 72px; height: 90px; }
  .ea-page .product-gallery__nav--prev { left: 12px; }
  .ea-page .product-gallery__nav--next { right: 12px; }
  .ea-bundle__tier { padding: 12px; }
}
