.product-page {
  --muted: #5e6057;
}
.product-grid {
  display: grid;
  grid-template: "gallery intro" auto "gallery order" 1fr / minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 18px clamp(36px, 5vw, 84px);
  align-items: start;
}
.product-gallery.issue-preview { grid-area: gallery; min-width: 0; gap: 12px; padding: 0; background: none; justify-items: stretch; }
.product-gallery .preview-pages { position: relative; }
.product-gallery .preview-pages button {
  align-items: center;
  height: clamp(340px, 34vw, 575px);
  border-radius: var(--home-radius);
  background: var(--issue-ground, #e9e1d5);
}
.product-gallery .preview-pages img {
  width: auto;
  height: 82%;
  max-width: 78%;
  box-shadow: 1px 2px 3px #3e342b24, 6px 12px 20px #3e342b30;
  transition: transform 230ms var(--ease);
}
.product-gallery .preview-zoom { width: 42px; height: 42px; transition: background-color 140ms ease; }
.product-gallery .preview-count {
  position: absolute;
  left: clamp(18px, 2vw, 30px);
  bottom: 17px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .05em;
  color: #484a42;
  pointer-events: none;
}
.product-gallery .preview-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border-radius: 0; }
.product-gallery .preview-choices button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  padding: 5px 13px 5px 8px;
  border-radius: 13px;
  border: 1px solid transparent;
  background: #f5f5f0;
  color: var(--ink);
  font-weight: 500;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.product-gallery .preview-choices img { width: 27px; height: 36px; object-fit: contain; }
.product-gallery .preview-choices button[aria-pressed=true] { border-color: #777a6e; background: white; }
.product-intro { grid-area: intro; }
.issue-kicker, .issue-facts, .issue-facts li, .product-rates header, .product-delivery { display: flex; align-items: center; }
.issue-kicker { gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.preorder-tag { border-radius: 40px; padding: 4px 11px; background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 580; }
.product-intro h1 {
  margin: 13px 0 16px;
  font: 520 clamp(36px, 3.95vw, 69px)/1.04 Onest, Arial, sans-serif;
  letter-spacing: -.055em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.issue-facts { list-style: none; gap: 8px 18px; flex-wrap: wrap; padding: 0; margin: 0; color: var(--muted); }
.issue-facts li { gap: 7px; font-size: 14px; }
.product-order { grid-area: order; min-width: 0; }
.issue-desc { max-width: 58ch; margin: 0 0 22px; color: #52544b; font-size: clamp(16px, 1.18vw, 19px); line-height: 1.5; text-wrap: pretty; }
.purchase { background: #f4f4ef; border-radius: clamp(20px, 1.7vw, 28px); padding: clamp(18px, 1.8vw, 30px); }
.purchase-line { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.purchase-label { display: block; margin-bottom: 5px; font-size: 13px; font-weight: 500; color: var(--muted); }
.purchase-price { display: block; font-size: clamp(34px, 3vw, 49px); font-weight: 530; line-height: 1.1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.purchase-prices { display: flex; align-items: baseline; gap: 9px; white-space: nowrap; }
.retail-price { color: var(--muted); font-size: clamp(16px, 1.3vw, 21px); font-variant-numeric: tabular-nums; text-decoration-thickness: 1.5px; }
.quantity { display: inline-flex; align-items: center; padding: 3px; border: 1px solid #cecec5; background: #fff; border-radius: 99px; }
.quantity button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.quantity button::before { content: ''; position: absolute; inset: 2px; border-radius: inherit; background: var(--yellow); opacity: 0; pointer-events: none; transition: opacity 160ms ease-out; }
.quantity button svg { position: relative; transition: transform 140ms ease-out; }
.quantity button:enabled:active::before { opacity: 1; transition-duration: 0s; }
.quantity button:enabled:active svg { transform: scale(.85); transition-duration: 0s; }
.quantity button:focus-visible { outline: 2px solid #53574b; outline-offset: -2px; }
.quantity input { width: 44px; padding: 0; border: 0; outline: 0; text-align: center; background: transparent; appearance: textfield; font-variant-numeric: tabular-nums; }
.quantity input:focus-visible { outline: 2px solid #64675c; outline-offset: 1px; border-radius: 5px; }
.quantity input::-webkit-inner-spin-button, .quantity input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.quantity:has([aria-invalid=true]) { border-color: #a24635; }
.quantity button:disabled { opacity: .38; }
.purchase-action.button {
  width: 100%; margin-top: 18px; padding: 12px 21px; gap: 10px;
  min-height: 52px; border: 0; border-radius: 99px; background: var(--yellow); color: var(--ink);
  font-weight: 570; text-align: left;
}
.action-total { margin-left: auto; font-variant-numeric: tabular-nums; white-space: nowrap; }
.action-total svg { display: block; }
.purchase-action.in-cart { background: var(--ink); color: white; }
.purchase .feedback { min-height: 1.5em; margin: 9px 0 0; font-size: 13px; line-height: 1.45; color: var(--muted); }
.purchase > .text-link { margin-top: 12px; }
.product-rates { margin-top: 10px; border-bottom: 1px solid var(--line); }
.product-rates header, .product-delivery {
  gap: 11px; min-height: 50px; padding: 12px 2px;
  font-size: 15px; font-weight: 520; color: var(--ink);
}
.product-rates h2 { font: inherit; }
.product-rates header small { margin-left: auto; color: var(--muted); font-size: 13px; font-weight: 430; }
.product-rates header svg, .product-delivery svg { flex: none; }
.product-delivery svg:last-child { margin-left: auto; }
.product-rates [data-tiers] { padding-bottom: 12px; }
.product-rates .pricing-note { padding: 0 0 12px; font-size: 14px; }
.product-rates .price-table :is(td,th) { padding: 8px 12px; }
.product-rates .price-table tr.selected { color: var(--ink); background: #fff3bd; }
.product-rates td:has(.tier-choice) { padding: 0; }
.tier-choice { width: 100%; min-height: 40px; padding: 8px 12px; text-align: left; font: inherit; }
.tier-choice:focus-visible { outline-offset: -3px; border-radius: 6px; }
.product-rates tr:has(.tier-choice:enabled) { cursor: pointer; transition: background-color 140ms ease; }
.product-rates tr:has(.tier-choice:enabled):active { background: #ffe478; }
.product-delivery { border-bottom: 1px solid var(--line); }
.product-page .related { margin-top: var(--section-gap); }
@media (hover: hover) and (pointer: fine) {
  .product-rates tr:not(.selected):has(.tier-choice:enabled):hover { background: #f3f3ed; }
  .product-gallery .preview-pages button:hover img { transform: scale(1.025); }
  .product-gallery .preview-choices button[aria-pressed=false]:hover, .quantity button:enabled:hover { background: #e9eae4; }
  .purchase-action:enabled:hover { background: #efc300; }
  .purchase-action.in-cart:hover { background: #41433a; }
  .product-delivery:hover span { text-decoration: underline; text-underline-offset: 3px; }
}
@media (min-width: 761px) {
  .product-gallery.issue-preview { position: sticky; top: clamp(12px, 2vh, 24px); }
  .product-gallery .preview-pages button { max-height: calc(100dvh - 108px); }
}
@media (max-width: 760px) {
  .product-grid { grid-template: "intro" auto "gallery" auto "order" auto / minmax(0, 1fr); gap: var(--heading-gap); }
  .product-intro h1 { margin: 7px 0 10px; }
  .product-gallery .preview-pages button { height: clamp(275px, 77vw, 420px); }
  .product-gallery .preview-choices { gap: 5px; }
  .product-gallery .preview-choices button { min-height: 44px; padding: 4px 9px 4px 5px; gap: 5px; }
  .issue-desc { margin-bottom: 18px; }
}
@media (max-width: 420px) {
  .issue-kicker, .issue-facts li { font-size: 13px; }
  .purchase-action.button { padding-inline: 16px; }
  .product-rates header { gap: 7px; }
  .product-rates header small { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-gallery .preview-pages button:hover img { transform: none; }
  .quantity button:enabled:active svg { transform: none; }
}
@media (forced-colors: active) {
  .quantity input:focus-visible { outline: 2px solid Highlight; }
  .product-gallery .preview-choices button[aria-pressed=true] { border-color: Highlight; }
}
