I don't live in the city center, it's a 25 minute bus ride there if there's no traffic, but even here I have local shops everywhere, since we don't have zoning laws that restrict shops in residential areas. Shops are generally open until 21 or 22, some until midnight.
My point is that the dependency on malls is not inevitable, it can be prevented and/or remedied, and changing zoning laws is one of the ways to do it.
My girlfriend lives in a town of 1500 people, and there are 3 grocery stores, several pizzarias and bakeries, as well as other local amenities. Everything is walkable and they have both train and bus connections to the nearest cities. That's how to do it, not the like similarly sized village in Germany she came from, where there are literally no stores, no restaurants, no nothing, and the only transit they have is a bus that runs every hour between 8 and 17 on weekdays. No wonder that town is dead.