# Frontend

Frontend display classes for the BizzSwatches plugin. Handles script/style enqueuing and swatch HTML rendering on product pages.

## Files

| File                  | Class                                     | Purpose                                        |
| --------------------- | ----------------------------------------- | ---------------------------------------------- |
| `Frontend.php`        | `Bizzswatches\Frontend\Frontend`          | Script/style enqueuing, body classes, taxonomy helpers |
| `SwatchesDisplay.php` | `Bizzswatches\Frontend\SwatchesDisplay`   | Renders color, image, button, and radio swatches       |

## Hooks Provided

- `bizzswatches_frontend_loaded` - Fired when frontend is fully initialized.
- `bizzswatches_get_attribute_taxonomy` - Filter the attribute taxonomy data.

## Swatch Types

| Type     | Rendering Method             | Description                        |
| -------- | ---------------------------- | ---------------------------------- |
| `color`  | `render_color_swatches()`    | Color circles/squares              |
| `image`  | `render_image_swatches()`    | Custom images per variation        |
| `button` | `render_button_swatches()`   | Text label buttons                 |
| `radio`  | `render_radio_swatches()`    | Radio button style selection       |
