Shifting purchasing behavior and uneven geographic and product category recoveries are helping to transform the business.