.store-product-page { display: flex; flex-direction: column; gap: var(--store-space-7); }
.store-product-page__summary { align-items: start; display: grid; gap: var(--store-space-7); grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr); }
.store-product-page__gallery { min-width: 0; }
.store-product-gallery__main { aspect-ratio: 1 / 1; background: var(--store-color-surface-muted); border: 1px solid var(--store-color-border); border-radius: var(--store-radius-lg); overflow: hidden; position: relative; }
.store-product-gallery__image { display: block; height: 100%; object-fit: contain; width: 100%; }
.store-product-gallery__image.store-image-broken { display: none; }
.store-product-gallery__fallback { align-items: center; color: var(--store-color-text-muted); display: flex; flex-direction: column; font-size: 0.875rem; gap: var(--store-space-2); inset: 0; justify-content: center; position: absolute; }
.store-product-gallery__fallback[hidden] { display: none; }
.store-product-gallery__thumbs { display: flex; gap: var(--store-space-3); margin-top: var(--store-space-3); max-width: 100%; overflow-x: auto; padding: 2px; }
.store-product-gallery__thumb { background: var(--store-color-surface-muted); border: 2px solid transparent; border-radius: var(--store-radius-md); cursor: pointer; flex: 0 0 82px; height: 82px; overflow: hidden; padding: 0; }
.store-product-gallery__thumb:hover, .store-product-gallery__thumb.is-active { border-color: var(--store-color-accent); }
.store-product-gallery__thumb img { display: block; height: 100%; object-fit: contain; width: 100%; }

.store-product-page__details { background: var(--store-color-surface); border: 1px solid var(--store-color-border); border-radius: var(--store-radius-lg); box-shadow: var(--store-shadow-sm); min-width: 0; padding: clamp(var(--store-space-5), 4vw, var(--store-space-7)); }
.store-product-page__eyebrow { align-items: center; color: var(--store-color-text-muted); display: flex; flex-wrap: wrap; font-size: 0.875rem; gap: var(--store-space-2); margin-bottom: var(--store-space-3); }
.store-product-page__eyebrow a { color: var(--store-color-accent); font-weight: 600; }
.store-product-page__badges { display: flex; flex-wrap: wrap; gap: var(--store-space-2); margin-bottom: var(--store-space-3); }
.store-product-page__title { color: var(--store-color-text); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; letter-spacing: -.02em; line-height: 1; margin: 0 0 var(--store-space-2); overflow-wrap: anywhere; }
.store-product-page__sku { color: var(--store-color-text-muted); font-size: 0.8125rem; margin: 0 0 var(--store-space-5); }
.store-product-page__price { border-bottom: 1px solid var(--store-color-border); border-top: 1px solid var(--store-color-border); margin-block: var(--store-space-5); padding-block: var(--store-space-5); }
.store-product-page__price .store-price { align-items: baseline; display: flex; flex-wrap: wrap; gap: var(--store-space-3); font-size: 1.75rem; }
.store-product-page__price .store-price__old { font-size: 0.9375rem; }
.store-product-page__price .store-price__current { color: var(--store-color-text); font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 900; }
.store-product-page__availability { align-items: center; display: flex; font-size: 0.875rem; font-weight: 700; gap: var(--store-space-2); margin: 0 0 var(--store-space-5); }
.store-product-page__availability--available { color: var(--store-color-success); }
.store-product-page__availability--unavailable { color: var(--store-color-danger); }

.store-product-purchase { display: flex; flex-direction: column; gap: var(--store-space-5); }
.store-product-options { border: 0; margin: 0; min-width: 0; padding: 0; }
.store-product-options legend { color: var(--store-color-text); font-size: 1rem; font-weight: 700; margin-bottom: var(--store-space-3); }
.store-product-option + .store-product-option { margin-top: var(--store-space-4); }
.store-product-option__items { display: flex; flex-wrap: wrap; gap: var(--store-space-2); }
.store-product-option__input { clip: rect(0 0 0 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.store-product-option__label { background: var(--store-color-surface); border: 1px solid var(--store-color-border); border-radius: var(--store-radius-pill); cursor: pointer; min-width: 52px; padding: var(--store-space-2) var(--store-space-3); text-align: center; }
.store-product-option__label:hover, .store-product-option__input:checked + .store-product-option__label { background: var(--store-color-accent); border-color: var(--store-color-accent); color: #fff; }
.store-product-option__input:focus-visible + .store-product-option__label { outline: 3px solid rgba(37, 99, 235, 0.3); outline-offset: 2px; }
.store-product-option__input:disabled + .store-product-option__label { cursor: not-allowed; opacity: 0.5; text-decoration: line-through; }
.store-product-purchase__row { align-items: end; display: flex; gap: var(--store-space-4); }
.store-product-quantity { flex: 0 0 auto; }
.store-product-quantity__control { align-items: center; display: flex; }
.store-product-quantity__control .store-button { border-radius: 0; min-height: 42px; }
.store-product-quantity__control .store-button:first-child { border-radius: var(--store-radius-sm) 0 0 var(--store-radius-sm); }
.store-product-quantity__control .store-button:last-child { border-radius: 0 var(--store-radius-sm) var(--store-radius-sm) 0; }
.store-product-quantity__input { border: 1px solid var(--store-color-border); min-height: 42px; text-align: center; width: 64px; }
.store-product-purchase__submit { border-radius: var(--store-radius-pill); flex: 1 1 auto; font-weight: 900; min-height: 54px; }
.store-product-shipping { background: var(--store-color-surface-muted); border: 1px solid var(--store-color-border); border-radius: var(--store-radius-lg); margin-top: var(--store-space-2); padding: var(--store-space-5); }
.store-product-shipping h2 { color: var(--store-color-text); font-size: 1rem; margin: 0 0 var(--store-space-3); }
.store-product-shipping__form { align-items: end; display: flex; gap: var(--store-space-3); }
.store-product-shipping__form > div { flex: 1; }
.store-product-shipping__form .store-button { min-height: 38px; }
.store-product-shipping__result { margin-top: var(--store-space-3); }

.store-product-content { display: flex; flex-direction: column; gap: var(--store-space-3); }
.store-product-content__section { background: var(--store-color-surface); border: 1px solid var(--store-color-border); border-radius: var(--store-radius-lg); overflow: hidden; }
.store-product-content__section summary { align-items: center; cursor: pointer; display: flex; font-size: 1.125rem; font-weight: 700; justify-content: space-between; list-style: none; padding: var(--store-space-4) var(--store-space-5); }
.store-product-content__section summary::-webkit-details-marker { display: none; }
.store-product-content__section summary::after { color: var(--store-color-text-muted); content: '+'; font-size: 1.25rem; }
.store-product-content__section[open] summary::after { content: '−'; }
.store-product-content__body { border-top: 1px solid var(--store-color-border); padding: var(--store-space-5); }
.store-product-content__empty { color: var(--store-color-text-muted); }
.store-rich-text { line-height: 1.7; max-width: 78ch; overflow-wrap: anywhere; }
.store-rich-text :first-child { margin-top: 0; }
.store-rich-text :last-child { margin-bottom: 0; }
.store-product-specifications { margin: 0; }
.store-product-specifications > div { border-bottom: 1px solid var(--store-color-border); display: grid; gap: var(--store-space-4); grid-template-columns: minmax(120px, 0.35fr) 1fr; padding-block: var(--store-space-3); }
.store-product-specifications > div:first-child { padding-top: 0; }
.store-product-specifications > div:last-child { border-bottom: 0; padding-bottom: 0; }
.store-product-specifications dt { font-weight: 700; }
.store-product-specifications dd { margin: 0; }
.store-product-comments { display: grid; gap: var(--store-space-3); margin-bottom: var(--store-space-5); }
.store-product-comment { border-bottom: 1px solid var(--store-color-border); padding-bottom: var(--store-space-4); }
.store-product-comment__meta { display: flex; flex-wrap: wrap; gap: var(--store-space-2); justify-content: space-between; }
.store-product-comment__meta span { color: var(--store-color-text-muted); font-size: 0.8125rem; }
.store-product-comment__rating { color: var(--store-color-border); margin-block: var(--store-space-2); }
.store-product-comment__rating .is-active { color: var(--store-color-warning); }
.store-product-comment p { margin: 0; }
.store-product-rating-summary { color: var(--store-color-text-muted); margin-bottom: var(--store-space-4); }
.store-product-comment-form { margin-top: var(--store-space-4); max-width: 620px; }
.store-product-comment-form[hidden] { display: none; }
.store-product-comment-form form { display: grid; gap: var(--store-space-2); }
.store-product-comment-form .store-form-label:not(:first-child) { margin-top: var(--store-space-2); }

@media (max-width: 991.98px) {
    .store-product-page__summary { gap: var(--store-space-5); grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr); }
    .store-product-page__title { font-size: 1.875rem; }
}
@media (max-width: 767.98px) {
    .store-product-page { gap: var(--store-space-5); }
    .store-product-page__summary { display: flex; flex-direction: column; gap: var(--store-space-5); }
    .store-product-page__gallery { order: 0; }
    .store-product-page__details { order: 1; }
    .store-product-page__title { font-size: 1.75rem; }
    .store-product-purchase__row { align-items: stretch; flex-direction: column; }
    .store-product-quantity { width: 100%; }
    .store-product-quantity__control { max-width: 180px; }
    .store-product-purchase__submit { width: 100%; }
}
@media (max-width: 575.98px) {
    .store-product-gallery__thumb { flex-basis: 64px; height: 64px; }
    .store-product-page__price .store-price { font-size: 1.5rem; }
    .store-product-shipping__form { align-items: stretch; flex-direction: column; }
    .store-product-shipping__form .store-button { width: 100%; }
    .store-product-content__section summary, .store-product-content__body { padding-inline: var(--store-space-4); }
    .store-product-specifications > div { gap: var(--store-space-2); grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .store-product-gallery__thumb { transition: none; }
}
