;; Cart service — inter-service data queries

(defquery cart-summary (&key user-id session-id page-slug)
  "Cart summary for a user or session, optionally filtered by page."
  (service "cart" "cart-summary"
    :user-id user-id :session-id session-id :page-slug page-slug))

(defquery cart-items (&key user-id session-id)
  "Product slugs and quantities in the cart."
  (service "cart-data" "cart-items"
    :user-id user-id :session-id session-id))
