there are a few ways this could be done, the best way depends on how you want it to work.
you could create a shipping cost column and add amount for shipping that product, the shipping would then be the subtotal of shipping cost column
or you could add a category column and create a shipping rule for each category where the subtotal is multiplied by the shipping percentage for that category.