# Cart Module

Session-based shopping cart for BERNIE grocery delivery.

## Entities

- **CartItem**: session_id, product_id, product_name, price, unit, unit_price, image_url, quantity

## API Endpoints

| Method | Endpoint | Description |
|--------|----------|-------------|
| GET | `/api/cart` | Get cart items |
| GET | `/api/cart/summary` | Get cart with totals |
| POST | `/api/cart` | Add item to cart |
| PUT | `/api/cart/{id}` | Update item quantity |
| DELETE | `/api/cart/{id}` | Remove item |
| DELETE | `/api/cart` | Clear cart |

## Layers

- **Model**: `Modules\Cart\Models\CartItem`
- **Repository**: `Modules\Cart\Repositories\CartRepository`
- **Interface**: `Modules\Cart\Repositories\Interfaces\CartRepositoryInterface`
- **Service**: `Modules\Cart\Services\CartService`
- **Controller**: `Modules\Cart\Http\Controllers\CartController`
