/* Single product only. The existing storefront palette and cards remain unchanged. */
.single-product.woocommerce div.product div.images,
.single-product.woocommerce div.product div.images .flex-viewport,
.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image,
.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image a {background:#fff}
.single-product.woocommerce div.product div.images {--mt-viewer-height:clamp(320px,48vw,620px);padding:6px}
.single-product.woocommerce div.product div.images .flex-viewport {height:var(--mt-viewer-height)!important}
.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image {height:var(--mt-viewer-height);overflow:hidden}
.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image a {width:100%;height:100%;display:flex;justify-content:center;align-items:flex-start;border-radius:0}
.single-product.woocommerce div.product div.images .woocommerce-product-gallery__image img {width:100%!important;height:100%!important;max-height:100%;object-fit:contain;object-position:center top;aspect-ratio:auto!important;transform:none;transition:transform 220ms ease;transform-origin:center top}
.single-product.woocommerce div.product div.images .flex-control-thumbs img {object-fit:contain;aspect-ratio:1;height:auto}
.single-product.woocommerce div.product .product-notes details {padding-block:11px}
.single-product.woocommerce div.product .product-notes details>p {margin-block:10px 2px}
.single-product.woocommerce div.product>.mt-product-details,
.single-product.woocommerce div.product>.mt-media-section {clear:both;margin:0 0 28px;padding:0;min-height:0}
.single-product.woocommerce div.product>.mt-product-details {padding-top:8px}
.single-product.woocommerce div.product>.mt-product-details>h2,
.single-product.woocommerce div.product>.mt-media-section>h2 {margin:0 0 16px;font-size:clamp(24px,3vw,32px)}
.single-product .mt-product-details>:last-child {margin-bottom:0}
.single-product .mt-product-details .wp-video {width:auto!important;max-width:100%!important;margin:0}
.single-product .mt-product-details img {height:auto;max-width:100%;object-fit:contain}
.single-product .mt-product-details video {display:block;width:auto!important;height:auto!important;max-width:100%;max-height:480px;object-fit:contain;margin-inline:auto;aspect-ratio:var(--mt-video-ratio,auto)}
.single-product .mt-product-details .mejs-container,.single-product .mt-product-details .mejs-overlay {max-width:100%}
.single-product .mt-product-details iframe {max-width:100%}
.single-product .mt-media-section .mt-product-media {display:grid;grid-template-columns:repeat(var(--mt-media-columns),minmax(0,1fr));gap:16px;align-items:start;max-width:100%;padding:0;margin:0;clear:none}
.single-product .mt-media-section .mt-product-media:has(>figure:only-child) {max-width:640px;margin-inline:auto}
.single-product .mt-media-section .mt-product-media figure {width:100%;max-width:100%;margin:0;padding:0;background:transparent;text-align:center;justify-self:stretch}
.single-product .mt-media-section .mt-product-media figcaption {margin:0 0 8px;font-size:13px}
.single-product .mt-media-section .mt-product-media img,
.single-product .mt-media-section .mt-product-media video {display:block;width:auto;max-width:100%;height:auto;max-height:500px;aspect-ratio:auto;object-fit:contain;margin-inline:auto}
.single-product.woocommerce div.product>.related {clear:both;margin-top:28px;padding-top:0}
@media(max-width:760px){
 .single-product.woocommerce div.product div.images {--mt-viewer-height:clamp(300px,110vw,480px);margin-bottom:20px}
 .single-product .mt-media-section .mt-product-media {grid-template-columns:minmax(0,1fr);gap:20px}
 .single-product .mt-media-section .mt-product-media img,.single-product .mt-media-section .mt-product-media video {max-height:560px}
 .single-product.woocommerce div.product>.mt-product-details,.single-product.woocommerce div.product>.mt-media-section {margin-bottom:24px}
}
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
 .single-product.woocommerce div.product div.images:not(.zoom-enabled) .woocommerce-product-gallery__image a:hover img {transform:scale(1.025)}
}
@media(prefers-reduced-motion:reduce){
 .single-product.woocommerce div.product div.images .woocommerce-product-gallery__image img {transform:none!important;transition:none!important}
}
/* A media-only native Description stays visible, with factual attributes beside it. */
.single-product .mt-details-media-only {display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.4fr);gap:16px 28px;align-items:start}
.single-product .mt-details-media-only>h2 {grid-column:1/-1;margin-bottom:0!important}
.single-product .mt-details-media-only .mt-native-description {min-width:0}
.single-product .mt-details-media-only .mt-native-description video {max-height:400px;width:auto!important;background:#fff}
.single-product .mt-details-media-only .mt-native-description p {margin-block:0}
.single-product .mt-details-media-only>div:only-of-type {grid-column:1/-1}
.single-product .mt-product-details h3 {margin-top:0}
@media(max-width:760px){.single-product .mt-details-media-only {grid-template-columns:minmax(0,1fr)}.single-product .mt-details-media-only .mt-native-description video {max-height:440px}}
