In addition to facing stiff competition from Walmart and Amazon, it lost liberal customers after scaling back Pride displays and rolling back DEI programs.