Sales had plunged — leading to hundreds of store closings — as consumers continued buying from online retailers like Amazon .