document.querySelector('.newsletter-form').addEventListener('submit', function (e) {
  e.preventDefault();
  const email = this.querySelector('.newsletter-input').value;

  alert(`Thank you for subscribing with: ${email}\nYou'll hear from us soon!`);
  this.querySelector('.newsletter-input').value = '';
});

document.querySelectorAll('.product-card-home').forEach(card => {
  card.addEventListener('mouseenter', function () {
    const img = this.querySelector('img');
    if (img) {
      img.style.transform = 'scale(1.05)';
      img.style.transition = 'transform 0.3s ease';
    }
  });

  card.addEventListener('mouseleave', function () {
    const img = this.querySelector('img');
    if (img) {
      img.style.transform = 'scale(1)';
    }
  });
});
