;
  }, 100);
}

// Handle feedback submission
submitButton.addEventListener("click", () => {
  const itemId = submitButton.dataset.itemId;
  const name = nameInput.value.trim();
  const feedback = feedbackInput.value.trim();
  
  if (name && feedback) {
    console.log(`Feedback for item #${itemId}:`, { name, feedback });
    alert("Thank you for your feedback!");
    nameInput.value = "";
    feedbackInput.value = "";
  } else {
    alert("Please fill out both fields to submit feedback.");
  }
});

// Init