Why can’t a WooCommerce product variation be added to cart?
Inspect the selected variation, not just the parent product. A purchasable WooCommerce variation needs the appropriate enabled state and a price. The customer must select required attributes, and the combination must match an available variation.