ctive class
    });
});

 // Add item to the cart function
 function addToCart(name, price, image) {
    // Retrieve cart from localStorage or initialize it as an empty array
    let cart = JSON.parse(localStorage.getItem('cart')) || [];

    // Add new item to the cart array
    cart.push({ name, price, image, quantity: 1 });

    // Save updated cart back to localStorage
    localStorage.setItem('cart', JSON.stringify(cart));

    alert(name + ' has been added to the cart');
  }
</script>
<button id="scro