Denim makers have registered the effects. In April, denim company True Religion filed for bankruptcy. Lucky Brand and G-Star Raw followed in July. Even a category leader like Levi’s isn’t immune.

This week the company reported a 27% drop in total sales in the three months through Aug. 23 compared to last year. That included a 29% decline in the Americas, its largest market. And those results were better than Wall Street analysts expected after the prior quarter, when Levi’s reported a 62% fall in its total sales.

The company’s efforts in recent years to build out its direct-to-consumer sales, especially online, and to appeal to more women have helped shore up its business. Levi’s is also working to adjust to the current environment. “As people seek out more casual comfort, we’re defining and leading trends with the launch of new, looser, more relaxed silhouettes across bottoms and tops,” CEO Chip Bergh told investors and analysts on a call this week.

Jeans, which started out as the workwear of choice for miners and cowboys because of their toughness, may still face an uphill battle, however, to become the preferred workwear of the work-from-home era.

📬 Sign up for the Daily Brief

Our free, fast, and fun briefing on the global economy, delivered every weekday morning.