Five years ago, during the COVID-19 pandemic, companies and consumers learned what can happen when supply chains get snarled. In a global economy, where a product can pass through several countries before it reaches a store’s shelves, shoppers encountered shortages of products from new clothes to new cars.