You forgot the cardboard prices.
The name of the game is profit margin and not gross profit. It’s why Frito-Lay, Unilever, and every other conglomerate jack up prices until the breaking point whereby suddenly consumer demand is unexpectedly “softening”.