Possible solutions to this include 1. More stores introduce a paid membership. This is not a bad idea, a store pays for the cost of the physical location with the membership fee and has similar prices to online stores, and they have an incentive to maintain product quality, Costco is very successful with this model, but I'd be worried that that the model is begging for enshitiffication, you could really cash out on the store's reputation by lowering the product quality and increasing the costs and relying on the friction of the existing membership to keep customers for a fair while. 2. Stores focus on being an enjoyable experience, and hope that if you're spending enough time there, you're going to want to buy something. This is what Barnes and Nobles is doing, and most surviving malls. 3. Some sort of policy fix. I'd be in favor of an online shopping "tariff" designed to bring online prices in line with what it costs to run physical locations, collected by the feds and redistributed to localities. Has the minor downside that everyone but me would hate it, and it would be so monstrously unpopular that it could never happen. If we could figure out a way around that, though, it could be quite good.
There are still goods that are primarily bought in person, hazardous and large where shipping is prohibitive.