Five years ago Best Buy Co. looked like a retail dinosaur, another victim of e-commerce juggernaut Amazon.com and other online sellers. The big-box electronics chain was suffering dwindling sales and profits due in good part to “showrooming,” when shoppers would come in to a Best Buy store to check...