The do-it-yourself chain posted strong foot traffic and growth in sales of higher-end items in the most recent quarter, making the company one of only a handful of retailers to raise its full-year profit forecast so far this quarter.