Technology, social sharing and shifts in buying behavior are transforming retail.