The retail industry’s tumultuous year began before the pandemic.