/* Scoped additions: keeps the existing shop.css and main page untouched. */
.product-detail-v2 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 60px); align-items: start; }
.product-back { display: inline-block; color: var(--blue, #14537d); font-size: 14px; }
.product-detail-v2 .product-gallery { min-width: 0; }
.product-gallery .gallery-thumbnails { display: none; }
.product-gallery:focus-visible { outline: 3px solid #1b80b9; outline-offset: 5px; border-radius: 10px; }
.product-gallery.is-enhanced { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; position: sticky; top: 136px; }
.product-gallery.is-enhanced .gallery-thumbnails { display: flex; flex-direction: column; gap: 10px; max-height: min(630px, 70vh); overflow-y: auto; overflow-x: hidden; padding: 3px; scrollbar-width: thin; scrollbar-color: #b9d1e1 transparent; }
.product-gallery .gallery-thumbnail { flex: 0 0 auto; width: 68px; height: 76px; min-height: 0; padding: 5px; border: 1px solid var(--line, #e0e9ef); border-radius: 7px; background: #fff; cursor: pointer; }
.product-gallery .gallery-thumbnail:hover { border-color: #4b84a7; background: #f4f9fc; }
.product-gallery .gallery-thumbnail.is-active { border: 2px solid var(--blue, #14537d); padding: 4px; box-shadow: 0 0 0 2px #14537d12; }
.product-gallery .gallery-thumbnail img { display: block; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 3px; object-fit: contain; }
.product-gallery .gallery-stage { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line, #e0e9ef); border-radius: 10px; background: #fff; touch-action: pan-y pinch-zoom; }
.product-gallery.is-enhanced .gallery-slides { position: relative; aspect-ratio: 1 / 1.16; }
.product-gallery .gallery-slide { display: block; width: 100%; height: auto; margin: 0; padding: 24px; border: 0; border-radius: 0; object-fit: contain; background: #fff; }
.product-gallery.is-enhanced .gallery-slide { position: absolute; inset: 0; height: 100%; }
.product-gallery .gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; display: grid; place-items: center; width: 38px; height: 44px; min-height: 0; padding: 0 0 4px; border: 1px solid #d4e2ec; border-radius: 6px; background: #ffffffed; color: var(--navy, #08253b); font-size: 32px; line-height: 1; box-shadow: 0 2px 10px #08253b0b; }
.product-gallery .gallery-arrow:hover { background: var(--ice, #eaf4fa); }
.product-gallery .gallery-arrow-prev { left: 10px; }
.product-gallery .gallery-arrow-next { right: 10px; }
.product-gallery .gallery-counter { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); padding: 4px 11px; border-radius: 20px; background: #edf5faeb; color: var(--muted, #60768a); font-size: 12px; font-variant-numeric: tabular-nums; }
.product-gallery .gallery-empty { grid-column: 1 / -1; height: auto; min-height: 320px; aspect-ratio: 1 / 1; border-radius: 10px; }
.product-gallery [hidden] { display: none !important; }
.product-detail-v2 .product-summary { min-width: 0; }
.product-summary .variant-picker { padding: 20px 0 4px; }
.product-summary .variant-picker label { margin-bottom: 8px; }
.product-summary .variant-stock { margin: 14px 0 8px; font-size: 14px; font-weight: 700; color: #14537d; }
.product-summary .variant-stock[data-available='false'] { color: var(--muted, #60768a); }
.product-summary .product-description { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line, #e0e9ef); }
.product-summary .product-description h2 { margin-bottom: 14px; font-size: 21px; }
.product-summary .description { margin-top: 0; }
.product-summary .product-all-variants { margin-top: 26px; }
.product-summary .product-all-variants summary { margin-bottom: 15px; }
.product-summary .product-all-variants td { overflow-wrap: anywhere; }
@media (max-width: 1000px) and (min-width: 761px) {
 .product-gallery.is-enhanced { grid-template-columns: 56px minmax(0, 1fr); gap: 8px; }
 .product-gallery .gallery-thumbnail { width: 50px; height: 60px; }
 .product-gallery .gallery-slide { padding: 16px; }
}
@media (max-width: 760px) {
 .product-detail-v2 { grid-template-columns: minmax(0, 1fr); gap: 28px; }
 .product-gallery.is-enhanced { grid-template-columns: 62px minmax(0, 1fr); gap: 10px; position: static; }
 .product-gallery.is-enhanced .gallery-thumbnails { max-height: 360px; }
 .product-gallery .gallery-thumbnail { width: 54px; height: 64px; }
 .product-gallery .gallery-slide { padding: 14px; }
 .product-gallery .gallery-arrow { width: 32px; height: 40px; }
 .product-gallery .gallery-arrow-prev { left: 6px; }
 .product-gallery .gallery-arrow-next { right: 6px; }
 .product-gallery .gallery-empty { min-height: 240px; }
}
@media (max-width: 380px) {
 .product-gallery.is-enhanced { grid-template-columns: 50px minmax(0, 1fr); gap: 7px; }
 .product-gallery .gallery-thumbnail { width: 44px; height: 54px; }
 .product-gallery.is-enhanced .gallery-thumbnails { max-height: 290px; }
}
@media (prefers-reduced-motion: reduce) {
 .product-gallery *, .product-gallery *::before, .product-gallery *::after { transition: none !important; scroll-behavior: auto !important; }
}
