let productCount = document.querySelectorAll('.product-item').length;
function addProduct() {
const container = document.getElementById('product-container');
const newProduct = document.createElement('div');
newProduct.classList.add('product-item');
newProduct.id = `product-item-${productCount}`;
newProduct.innerHTML = `
`;
container.appendChild(newProduct);
productCount++;
}
function removeProduct(index) {
const productItem = document.getElementById(`product-item-${index}`);
if (productItem) {
productItem.remove();
}
}