Yes it's feasible using the products as attributes for the hamper, itself a product, and then you price the hampers by attributes. But it could become very cumbersome from a maintenance point of view, specifically from a pricing aspect as each attribute would need the price setting...oh, and perhaps the weight.

I haven't got time at the moment to think this through but in principle, yes it's doable.