Why grocery chains are making their biggest changes in decades