  }
        });

        // Show "Go to Top" button after scrolling down
        const goTopBtn = document.querySelector(".gotopbtn");
        window.addEventListener("scroll", function () {
            if (window.scrollY > 200) {  // Show the button after scrolling down 200px
                goTopBtn.style.display = "block";
            } else {
                goTopBtn.style.display = "none";
            }
        });

    })();  // IIFE to avoid polluting global scope

    document.getElementById("cart-i