Summarize cart totals from arrays of item objects.
A cart contains items with a `price` and `quantity`. Build a summary that calculates subtotal, discount, tax, and final total.