Manage the inventory for all your products.
Navigate to Products > select the product > tap Inventory
Enable tracking and add stock qty. Stock amount will be automatically change if order placed or refunded.
If inventory will be 0, product will be automatically marked as Out of stock.
Also you can add SKU for you product
If product has a variants, manage stock for each variant.
Open the variant and tap on Inventory.