Sustained high gas prices? That'll push more people into its target demographic. It will increase shipping costs, but that's a problem for all Wal-Mart competitors, too.
I don't know if Amazon has any plans to target the down-market niche. I am guessing that some things like clothing, food, and housewares most people will never buy online. Also, I don't know that it will ever be as efficient to ship to individual homes as it is to ship to large retail locations. So, I don't think Amazon will ever win out on price.
Maybe not, but that seems like the wrong comparison. The question is if it will ever be as efficient to ship to individual homes as it is to ship to large retail locations, plus have people get to those locations to pick up the goods.
In the long run I think online shopping is going to win as long as shipping costs stay low enough. Delivery costs relate to the number of packages drooped off in the same area so they should drop as online delivery becomes more popular. Toss in all the people who use catalogs and I expect a significant portion of purchases don't require wondering though a physical store.
Take food off that list. AmazonFresh delivers grocery to your home (sorry, Seattle area only for now). I've used this and am really happy with it.