Grocery stores look friendly and ordinary on the surface, but behind the bright lights and polished aisles is a carefully engineered system designed to influence what you buy and how long you stay.