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.