Faced with rising costs and ingredient scrutiny, shoppers are cutting back on some snacks while paying more for others, signaling a new era of competing priorities.