.product-gallery {
    min-width: 0;
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    background: transparent;
}
.product-gallery-thumbs {
    max-height: 600px;
    padding-right: 3px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.product-gallery-thumb {
    position: relative;
    width: 78px;
    height: 78px;
    flex: 0 0 78px;
    padding: 3px;
    border: 1px solid #d8e0e5;
    background: #fff;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.product-gallery-thumb:hover,
.product-gallery-thumb:focus-visible,
.product-gallery-thumb.active {
    border-color: var(--orange);
    box-shadow: inset 0 0 0 1px var(--orange);
    outline: 0;
}
.product-gallery .product-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.product-gallery-main { min-width: 0; }
.product-gallery-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    display: block;
    overflow: hidden;
    border: 1px solid #e1e7eb;
    background: #f4f6f7;
    cursor: zoom-in;
}
.product-gallery .product-gallery-main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    transform: scale(1);
    transform-origin: 50% 50%;
    transition: transform .22s ease;
    user-select: none;
}
.product-gallery-stage.is-zoomed { cursor: zoom-out; touch-action: none; }
.product-gallery-stage.is-zoomed .product-gallery-main-image { transform: scale(2); transition: transform .16s ease; }
.product-gallery-zoom-hint {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 7px 10px;
    background: rgba(16, 38, 59, .82);
    color: #fff;
    font-size: 10px;
    letter-spacing: .04em;
    pointer-events: none;
    transition: opacity .2s;
}
.product-gallery-stage.is-zoomed .product-gallery-zoom-hint { opacity: 0; }
@media (max-width: 980px) {
    .product-gallery { grid-template-columns: 76px minmax(0, 1fr); }
    .product-gallery-thumbs { max-height: 520px; }
    .product-gallery-thumb { width: 72px; height: 72px; flex-basis: 72px; }
}
@media (max-width: 768px) {
    .product-gallery { grid-template-columns: minmax(0, 1fr); gap: 11px; }
    .product-gallery-main { grid-row: 1; }
    .product-gallery-thumbs {
        grid-row: 2;
        max-height: none;
        margin: 0 -16px;
        padding: 0 16px 5px;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x proximity;
    }
    .product-gallery-thumb { width: 66px; height: 66px; flex-basis: 66px; scroll-snap-align: start; }
    .product-gallery-stage.is-zoomed .product-gallery-main-image { transform: scale(1.8); }
    .product-gallery-zoom-hint { right: 10px; bottom: 10px; }
}
