Skip to content
document.addEventListener('DOMContentLoaded', () => {
document.querySelectorAll('.product-card-carousel').forEach(carousel => {
const images = carousel.querySelectorAll('.carousel-image');
if (images.length < 2) return;
let index = 0;
setInterval(() => {
images[index].classList.remove('active');
index = (index + 1) % images.length;
images[index].classList.add('active');
}, 2000); // change speed here (ms)
});
});