That’s actually an interesting idea.
If it actually worked that way, there would be an amazingly high incentive for sellers to minimize packaging waste.
It would also have a side effect of making high-waste packaged goods much more expensive than low-waste packaged food, promoting the purchase of eco-friendly packaging.
I wonder if there’s a less radical way to implement these kind of market incentives.