nt = useModalMode ? 
    "showModal() - Modal dialog (blocks interaction)" : 
    "show() - Non-modal dialog";
});

// Render items to the list
function renderItems() {
  itemList.innerHTML = "";
  items.forEach(item => {
    const itemCard = document.createElement("div");
    itemCard.className = "item-card";
    itemCard.innerHTML = `
      <h3>${item.title}</h3>
      <p>${item.category}</p>
      <p>${item.price}</p>
    `;
    itemCard.addEventListener("click", () => showItemDetails(item));
    itemLis