This strategy has worked well for both Shakespeare and Co. in Paris and Shakespeare and Sons in Berlin. Books + Bakery + Coffee. Both of course are set in living pedestrian cities. https://www.shakespeareandsons.com
It has not worked for Borders in Palo Alto.
But that was a chain, maybe other locations forced closured everywhere, and that Borders could have survived. I doubt it, however.
I can’t comment on the shop in Berlin, but the one in Paris is a special case. It’s in a relatively central location in a 11M people metropolis, right on top of a major rail and metro hub and across the river from one of the most touristic monument in the world. And even though it’s not really in a shopping area, there are dozens of cafés within 2 minutes on foot. They don’t really have problems getting people to go there. Plus, considering how long hey’ve been in business, I assume they own the building, which shields them from the rent issue. They could still face problems (like Gibert next door that closed somewhat recently), but their situation is very different from the vast majority of shops in normal European cities (including the UK).