> ## Documentation Index
> Fetch the complete documentation index at: https://docs-loja.usecorvex.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# Referência de tags

> Atributos, eventos, parts e CSS vars dos Corvex Storefront Components.

## `corvex-store`

| Atributo | Default | Descrição |
| - | - | - |
| `store-id` | fixture | ID/slug público da loja |
| `mode` | `mock` | `mock` \| `live` |
| `api-base` | API pública Corvex | Base HTTP (só live) |

Eventos: `corvex:ready`, `corvex:cart-change`, `corvex:add-to-cart`, `corvex:checkout`, `corvex:error`.

API JS no elemento: `addItem`, `updateItem`, `removeItem`, `goToCheckout`, `refreshCart`, `client`, `cart`.

## Catálogo

| Tag | Atributos principais |
| - | - |
| `corvex-product` | `handle`, `product-id` |
| `corvex-product-list` | `collection`, `featured`, `first` |
| `corvex-product-card` | propriedade `.product` |
| `corvex-product-price` | `.price`, `.compareAtPrice` |
| `corvex-product-media` | `.product` / `.image` |
| `corvex-variant-selector` | `.product` → evento `corvex:variant-change` |
| `corvex-collection` | `handle`, `collection-id` |
| `corvex-collection-list` | `first` |

## Carrinho

| Tag | Papel |
| - | - |
| `corvex-add-to-cart` | `.product`, `.variant`, `quantity`, `label` |
| `corvex-cart` | linhas + total + checkout |
| `corvex-cart-count` | badge de `itemCount` |
| `corvex-cart-drawer` | trigger + painel; abre em `corvex:add-to-cart` |

Carrinho usa **`items`** (não `lines`). Atualize/remova por `item.id`.

## CSS

Variáveis: `--corvex-color-accent`, `--corvex-color-text`, `--corvex-color-muted`, `--corvex-color-border`, `--corvex-color-bg`, `--corvex-radius`, `--corvex-gap`, `--corvex-card-min`.

Parts comuns: `button`, `card`, `price`, `compare`, `title`, `list`, `panel`, `trigger`.

## Fora de escopo v1

Busca, menus, cupons, auth de conta, checkout hospedado completo — só via contratos públicos existentes / Theme SDK; componentes dedicados ficam para fases posteriores **sem inventar API**.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.