/* Shared layout and design tokens are defined in site.css. */
.product-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.product-page .breadcrumbs { flex-wrap: wrap; white-space: normal; align-items: center; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs b { overflow-wrap: anywhere; min-width: 0; }
.breadcrumbs .product-context-back { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
.product-context-back svg { transform: rotate(180deg); }
#product-content { scroll-margin-top: 88px; }
.main-image { display: block; cursor: zoom-in; }
.main-image[aria-busy="true"] { cursor: progress; }
.main-image > img { width: 100%; height: 100%; }
.product-page .thumbs { position: relative; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88px; justify-content: start; gap: 8px; min-width: 0; overflow-x: auto; padding: 3px 2px 7px; scrollbar-width: thin; scrollbar-color: #45454a transparent; }
.product-page .thumbs button { width: 88px; height: 56px; aspect-ratio: auto; padding: 0; overflow: hidden; border-radius: 5px; transition: border-color 180ms ease, opacity 180ms ease; }
.product-page .thumbs button:focus-visible { outline: 1px solid var(--text); outline-offset: 1px; }
.product-page .thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-page .main-image:is(:hover, :focus-visible) > img,
.product-page .thumbs button:is(:hover, :focus-visible) img {
  filter: grayscale(0.35) contrast(1.1);
}
.purchase-panel { min-width: 0; }
.detail-merch-badges:empty { display: none; }
.purchase-panel h1, .purchase-panel > p, .product-dependencies b { overflow-wrap: anywhere; }
.purchase-price { grid-template-columns: auto minmax(0, 1fr); }
.purchase-price strong { white-space: nowrap; }
.purchase-panel > .product-monthly { color: var(--muted); font-size: 13px; margin: 8px 0 18px; }
.product-social { display: flex; align-items: center; gap: 20px; margin-top: 18px; color: var(--muted); font-size: 12px; }
.product-social .like { display: inline-flex; align-items: center; gap: 7px; }
.facts b { overflow-wrap: anywhere; }
.facts a:hover { text-decoration: underline; }
.purchase-btn { margin-top: 12px; }
.btn:disabled { cursor: not-allowed; opacity: .45; }
.product-muted { font-size: 13px; color: var(--muted); }
.product-description, .faq { min-width: 0; }
.product-description { overflow-wrap: anywhere; }
.product-description h3 { font-size: 20px; margin: 24px 0 12px; }
.product-description h4 { font-size: 16px; margin: 22px 0 10px; }
.product-description p { margin: 14px 0; }
.product-description ul { list-style: disc; margin: 14px 0; }
.product-description li { margin: 6px 0; }
.product-description code { font-size: .9em; border: 1px solid var(--line); border-radius: 4px; padding: 2px 4px; background: var(--raised); }
.product-description a { text-decoration: underline; text-underline-offset: 3px; }
.faq summary { gap: 20px; }
.product-page .comments h2 { font-size: 27px; }
.product-share-fallback { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 18px; }
.product-share-fallback input { width: 100%; border: 1px solid var(--line); border-radius: 5px; padding: 10px; color: var(--text); }
.product-error h1 { font-size: 28px; color: var(--text); }
body.product-modal-open { overflow: hidden; }
.product-access-dialog { position: fixed; inset: 0; width: min(520px, calc(100% - 32px)); max-width: none; height: fit-content; margin: auto; color: var(--text); }
.product-access-dialog::backdrop { background: #000c; backdrop-filter: blur(5px); }
.product-access-dialog h2 { overflow-wrap: anywhere; padding-right: 18px; }
.product-access-dialog .plan-list { padding: 0; margin: 0 0 18px; min-width: 0; }
.product-access-dialog .plan { position: relative; cursor: pointer; }
.plan:has(input:focus-visible) { outline: 2px solid #fff; outline-offset: 3px; }
.plan input:checked + .radio { border: 4px solid #eee; }
.product-preview-note { margin: 18px 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.product-dialog-login { width: 100%; }
.product-balance { margin-top: 14px; color: var(--muted); font-size: 13px; }
.product-offer-link { margin-top: 16px; font-size: 12px; line-height: 1.6; color: var(--dim); }
.product-offer-link a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 660px) {
  .breadcrumbs .product-context-back { width: 100%; margin-left: 0; margin-top: 7px; }
  .product-page .purchase-price span { font-size: 12px; }
  .product-page .product-content { gap: 30px; }
  .product-page .comments h2 { font-size: 24px; }
  .plan strong { white-space: nowrap; }
  .plan div { min-width: 0; }
}


@media (max-width: 600px) {
  .product-page .thumbs { grid-auto-columns: 72px; gap: 6px; }
  .product-page .thumbs button { width: 72px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .product-page .thumbs button { transition: none; }
}
