/* Product Card Album - Fade Slideshow */
.product-album {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.product-album img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    animation: album-fade 16s linear infinite;
    transition: transform 0.4s ease;
    will-change: opacity, transform;
    backface-visibility: hidden;
}

/* Hover zoom effect */
.product-album:hover img {
    transform: scale(1.08);
}

.product-album:hover {
    animation-play-state: paused;
}

/*4 images: each visible for4s (25% of16s) */
.product-album img:nth-child(1) { animation-delay: 0s; }
.product-album img:nth-child(2) { animation-delay: 4s; }
.product-album img:nth-child(3) { animation-delay: 8s; }
.product-album img:nth-child(4) { animation-delay: 12s; }

@keyframes album-fade {
    0% { opacity: 0; }
    5% { opacity: 1; }
    25% { opacity: 1; }
    30% { opacity: 0; }
    100% { opacity: 0; }
}

/* Zoom icon overlay on hover */
.product-album .zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 10;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    pointer-events: none;
}

.product-album:hover .zoom-icon {
    transform: translate(-50%, -50%) scale(1);
}

.zoom-icon svg {
    width: 24px;
    height: 24px;
    color: #3a2916;
}

/* Dots indicator */
.album-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}

.album-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    animation: dot-cycle 16s linear infinite;
}

.album-dots span:nth-child(1) { animation-delay: 0s; }
.album-dots span:nth-child(2) { animation-delay: 4s; }
.album-dots span:nth-child(3) { animation-delay: 8s; }
.album-dots span:nth-child(4) { animation-delay: 12s; }

@keyframes dot-cycle {
    0% { background: rgba(255, 255, 255, 0.5); }
    3% { background: rgba(255, 255, 255, 1); }
    25% { background: rgba(255, 255, 255, 1); }
    28% { background: rgba(255, 255, 255, 0.5); }
    100% { background: rgba(255, 255, 255, 0.5); }
}
