Every trip to the grocery store used to be more or less simple—grab your essentials, maybe a treat or two, and head home.