You can put the tax into the category field, or into the product field, or into an associated table for tax. The important thing is that when you add the item to the cart you also add the tax rate associated with that item so that the correct tax amount can be charged.