We'll create fresh WordPress site with Category Limit for WooCommerce installed. You have 20 minutes to test the plugin after that site we'll be deleted.
Takes ~10 seconds to install.
About Category Limit for WooCommerce
Woocommerce toolkit to only allow purchase from one or more parent categories for each order.