ca we do something like
if Cart contains product type= "A" and Cart contains product type= "B" then Shipping is UPS Calculated shipping by weight .
if Cart contains product type= "A" then it Cannot be shipped international
if Cart contains product type= "A" then Shipped Internationally, Less than $100 and $25 Flat Rate USPS Priority
Richard here, from the Shopify Guru Team! Hope you're doing well. At this time, the feature that you're looking for isn't something that is possible with Shopify.
With that said, you can use an app such as BetterShipping (https://apps.shopify.com/better-shipping) to set specific shipping rates/parameters for specific products. It may not be exactly what you're looking to do, but might help you accomplish something similar!
If there's anything else I can do for you, please don't hesitate to get back in touch! :) Feel free to fire me an email at email@example.com
Richard | Shopify