.product-image-container {
    position: relative;
    overflow: hidden;
    display: block;
}

.product-images-slider {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.product-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    display: block;
}

.product-image.active {
    opacity: 1 !important;
    z-index: 2;
}


.image-indicators {
    z-index: 10;
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    background: transparent;
    padding: 4px 0;
}

.product-image-container:hover .image-indicators {
    opacity: 1;
    pointer-events: auto;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    margin: 0 3px;
    border: none;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.indicator.active {
    background: var(--primary-background, #7d1d60);
    opacity: 1;
    width: 24px;
    height: 10px;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(125, 29, 96, 0.3);
}

.indicator:hover:not(.active) {
    opacity: 0.9;
    transform: scale(1.1);
}


@keyframes softPulse {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

.indicator:not(.active):hover {
    animation: softPulse 2s ease-in-out infinite;
}


@keyframes softFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(5px);
    }

    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



.product-images-slider * {
    will-change: opacity, transform;
}

.product-image {
    contain: layout style paint;
}

.product-image img {
    backface-visibility: hidden;
    perspective: 1000px;
    object-fit: cover;
}


.product-image.loading {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}


.product-image-container {
    transition: all 0.3s ease;
}

.product-image-container:hover {
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .image-indicators {
        opacity: 1;
        pointer-events: auto;
        background: transparent;
        padding: 4px 0;
    }

    .indicator {
        width: 8px;
        height: 8px;
        margin: 0 2px;
        background: white;
        opacity: 0.6;
    }

    .indicator.active {
        width: 18px;
        height: 8px;
        border-radius: 4px;
        background: var(--primary-background, #7d1d60);
        opacity: 1;
    }

    .indicator:hover:not(.active) {
        opacity: 0.8;
    }

    .product-image-container:hover {
        transform: none;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }

}


@media (hover: none) and (pointer: coarse) {
    .image-indicators {
        opacity: 1;
        pointer-events: auto;
    }

    .product-image-container:hover .product-image.active img {
        transform: none;
    }
}


@media (prefers-reduced-motion: reduce) {

    .product-image,
    .product-image img,
    .indicator,
    .product-image-container {
        transition: none !important;
        animation: none !important;
    }
}


@media (prefers-color-scheme: dark) {
    .indicator {
        background: rgba(255, 255, 255, 0.5);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    }

    .indicator.active {
        background: var(--primary-background, #7d1d60);
        box-shadow: 0 2px 8px rgba(125, 29, 96, 0.4);
    }

    .indicator:hover:not(.active) {
        background: rgba(255, 255, 255, 0.7);
    }
}