Stock that can't oversell
Rings come in specific sizes, often one piece each. A browser-side stock check can't stop two shoppers from buying the last one at the same time.
How it works
- Inventory is stored per size on each product.
- When an order is created, a PocketBase server hook checks every line against stock on hand, reserves it, and rejects the order with a clear message if a size just sold out.
- The cart still shows live availability per size, so shoppers rarely hit that error.



