To change a line's quantity, POST /cart/change.js with { id: key, quantity: nextQty }. It returns the updated cart. Pass that to render and let the server settle the numbers.
Don't bind a handler to each button. The list re-renders, so those handlers vanish. Put one listener on the list and check what was clicked. That's event delegation, one handler that survives every re-render.
itemsEl.addEventListener("click", function (e) {
var inc = e.target.closest("[data-qty-inc]");
var dec = e.target.closest("[data-qty-dec]");
if (!inc && !dec) return;
var line = e.target.closest("[data-line]");
var key = line.getAttribute("data-line-key");
var qty = Number(line.getAttribute("data-quantity"));
// change to qty + 1 (inc) or qty - 1 (dec), then render the result
});
AI tell: `qtyEl.textContent = qty + 1` with no server call, or a handler per button that dies on the next render. Delegate, change on the server, re-render.