It’s easy to romanticize modern commerce: Tap a screen, and in hours or even minutes, groceries, gadgets and garments appear at your door. But behind...