That's pipe dream. There is a problem in NY and SF because people want to go the same place. That's the appeal of big cities: lot of job or activities in a limited space.
I have all of that in the shit area I live in London. I have a variety of restaurant, a street market 3 times a week, loads of shops ( food mostly ) all within 5 min walk. All good, except for work. That's all in the City or Canary Warf, you still need to get there. Despite being shit, the area is still expensive because the connection to the City is not bad.
You can get all of that in a lot of place but the price only become affordable once you can't commute with the City anymore.
I've never lived in a dense city so I don't know how this is done.
I doubt I could carry a week of groceries for my modest family (2 adults, 2 children) 1 block, let alone several. Do you maybe use personal carts or what?
The other grocer in our neighbordhood does deliveries. Go shopping as you normally do, at checkout groceries are loaded into a big plastic tote instead of a grocery bag. It's delivered to your door within the hour.
I grew up outside the cities (denser, working class suburbs, not mcmansion-style suburbs) and after city living most of my adult life I can't realistically go back.
Or you buy your own cart, you see them all over in NYC, for groceries and laundry.
Invariably, I forget something so I usually have a smaller midweek trip for things I forgot. The walk to Trader Joe's is about 20min each way.
Edit: more like a 20min walk; not 30.
You just run over to get some things for dinner or for a couple of days. You can fit a surprising amount of food in a single grocery bag.
The walk to my grocery store is under 5 minutes. I shop every other day because I can shop before 7AM. But if I had to shop later than 7AM, I would only go once a week, because the lines grow too long.
NYC is the only place I've seen bouncers outside of grocery stores to control the entrance (I'm looking at you 72 street Trader Joe's).
A farmer in the middle of nowhere (US or Canada - other countries have different situations that I cannot comment on) is looking at more than 30 minutes to the nearest grocery store if he drives. To walk would be 10 hours each way.
As we go down we hit the suburbs - 10 minutes to the store, but still 2 hours to walk. (if you took the same route as the car it would be about an hour, but that means walking on a busy road with no sidewalks, so you end up having to take a much longer route)
High density allows stores and restaurants to exist just to serve the people within a couple blocks. You take the elevator downstairs, and within a couple blocks is everything you need to buy, and the job you need to earn money to buy it with. When this is the world you rarely drive anywhere so you are not adding to congestion.
Now there is still congestion all those stores/business need to be provided with goods to sell. However a truck that takes up 4 cars worth of space is bringing enough goods to last 400 people for the day, where the cars in the other examples where for 1 person (all facts in this sentence were made up - they seem reasonable but I don't know how to find the right ones). This limits how dense we can get with just surface streets.
Note that the above is a should. Zoning laws often put high density far enough away from stores that you have to drive anyway - this makes congestion worse.