.ba-product-gallery {
    width: 100%;
}

.ba-product-gallery__main {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f4f4f4;
}

.ba-product-gallery__image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}

.ba-product-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 42px;
    height: 42px;
    min-width: 42px;
    min-height: 42px;
    max-width: 42px;
    max-height: 42px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 6px;
    background: #1554ff;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
}

.ba-product-gallery__prev { left: 12px; }
.ba-product-gallery__next { right: 12px; }

.ba-product-gallery__nav:hover {
    background: #0d3fcc;
}

.ba-product-gallery__nav-icon {
    width: 20px;
    height: 20px;
    color: #fff;
    fill: currentColor;
    pointer-events: none;
}

.ba-product-gallery__thumbs { margin-top: 12px; }
.ba-product-gallery__thumbs-viewport { overflow-x: auto; scrollbar-width: thin; }
.ba-product-gallery__thumbs-track { display: flex; gap: 10px; padding: 3px; }

.ba-product-gallery__thumb-button {
    flex: 0 0 88px;
    height: 80px;
    box-sizing: border-box;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}

.ba-product-gallery__thumb-button.is-active { border-color: #1554ff; }

.ba-product-gallery__thumb-button:focus-visible {
    outline: 2px solid #005fcc;
    outline-offset: -2px;
}

.ba-product-gallery__thumb-image {
    display: block;
    width: 100%;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
    .ba-product-gallery *,
    .ba-product-gallery *::before,
    .ba-product-gallery *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
