01
Progressive pricing by quantity
Each product has its own table (1–99 · 100+ · 300+). The tier is earned by the sum of all models of the same product in the cart, which shows how much is left for the next step. The server validates the table and recalculates everything on the order.
02
Brand → model compatibility
A global registry of 6 brands and 293 models, linked product by product. The catalog filters by device, the product page shows the models as chips in the order defined in the panel and allows a price exception per model (the A16 case costs more).
03
Wholesale cart
Persisted in localStorage, grouped by product, with the newly added item on top. Color selection with per-unit distribution, men's/women's version, connectors (USB-C tip, Micro USB, Lightning), and real shipping rates by CEP via SuperFrete or in-store pickup.
04
WhatsApp checkout
POST /api/orders registers the order, recalculates prices from the database, generates the code, and returns the WhatsApp URL with the message ready. The consultant checks the item-by-item detail in the panel; the conversation gets only the summary.
05
Store owner panel
Products with a form that changes by category (a speaker doesn't ask for a phone model), bulk selection, image upload with validation and resizing, categories, banners, testimonials, brands & models with drag-to-reorder, and site settings.
06
Excel and PDF export without a library
Order list (two sheets) or order by order (picking sheet, one per page). Both formats are written in the browser with custom code — PDF xref and zip CRC covered by tests — so there is no need to load hundreds of kB for a simple case.
07
Meta Pixel + Conversions API tracking
Browser events with cookie consent and deduplication against the events sent by the server. The CAPI token lives only in the API; the panel shows the integration status and fires a test event.
08
Security and operations
JWT + bcrypt, ADMIN/EDITOR roles, Zod on every input, Helmet, CORS allowlist, per-route rate limiting, Pino logs with credential redaction, uploads validated by file content, and a panel PWA with an offline page.