That's a calculation for each company to make. When your costs go up, what combination of raising prices, cutting quality, finding new sources, finding new markets, introducing new products, and accepting lower profits do you choose?
It ain't supposed to be easy.