Don’t quite understand what your getting at.
There are inventory products which act as a way to group sub inventory for example a Burger Patty inventory product would be something like minced beef, chopped onion, suet, salt, pepper, breadcrumbs etc.
Then say a cheeseburger menu item/order product would be; Burger Patty inventory product + bun+cheese etc.
See inventory details here;
As for your example you could use order tags for all the toppings etc and then rather than have a margarita product, add basic pizza to menu multiple times, then use the menu item properties settings table to change the header to margarita and preselect the toppings tags