.product-carousel {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 20px;
    overflow: hidden;
    user-select: none;
    touch-action: pan-y;
}

.product-carousel__track {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
}

@supports not (aspect-ratio: 1 / 1) {
    .product-carousel__track { height: 0; padding-bottom: 100%; }
}

.product-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.product-carousel__slide.is-active {
    opacity: 1;
    z-index: 1;
}

.product-carousel__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 36px;
    height: 36px;
    margin-top: -18px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 26px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.product-carousel__arrow--prev { left: 10px; }
.product-carousel__arrow--next { right: 10px; }

.product-carousel:hover .product-carousel__arrow,
.product-carousel__arrow:focus-visible { opacity: 1; }

.product-carousel__arrow:hover { background: rgba(0, 0, 0, 0.7); }

.product-carousel__dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.product-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.4);
}

.product-carousel__dot.is-active { background: #fff; }

@media (hover: none) {
    .product-carousel__arrow { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .product-carousel__slide { transition: none; }
}
