# Cart Drawer

Shopping cart drawer that slides in from the right. Integrated with ecommerce-core store. Displays cart items with images, prices, quantity controls, remove buttons, subtotal calculation, and checkout button.

## Files

| Target | Type |
|--------|------|
| `$modules$/cart-drawer/index.ts` | index |
| `$modules$/cart-drawer/cart-drawer.tsx` | component |
| `$modules$/cart-drawer/lang/en.json` | lang |
| `$modules$/cart-drawer/lang/tr.json` | lang |
| `$modules$/cart-drawer/lang/pt.json` | lang |

## Exports

**Components/Functions:** `CartDrawer`

```typescript
import { CartDrawer } from '@/modules/cart-drawer';
```

## Usage

```
import { CartDrawer } from '@/modules/cart-drawer';

// Cart state is managed by ecommerce-core store
<CartDrawer checkoutHref="/checkout" />

// The drawer opens automatically when items are added to cart
// Or use useCart hook to control it:
import { useCart } from '@/modules/ecommerce-core';
const { setDrawerOpen } = useCart();
setDrawerOpen(true);
```

## Dependencies

This component requires:
- `sheet`
- `button`
- `ecommerce-core`
