con").addEventListener("click", function() {
    window.location.href = "cart.html";
});

// Select all share buttons and share option containers
const shareButtons = document.querySelectorAll('.share-icon');
const shareOptions = document.querySelectorAll('.share-options');

// Loop through each share button and attach event listener
shareButtons.forEach((shareBtn, index) => {
    shareBtn.addEventListener('click', () => {
        console.log(`Share button ${index + 1} clicked`);
        shareOptions[index]