Cart is session-based, totals are calculated server-side, and checkout creates a real order in MySQL.