In general you would identify the product type from a list of a lot of product types and then let your sales tax calculator as a service provider sort out what needs taxed and at what rate.
IMO, the federal government's responsibility to regulate interstate commerce should include creating a standard of product categories. States can then tax those categories at whatever level they see fit.