Spain's outdoor markets — the weekly mercadillo that's a genuine fixture of daily life in most towns, and the larger covered mercado central found in bigger cities — are generally relaxed about a well-behaved, leashed dog walking through with you, the same way any pedestrian street would be. Individual stallholders, particularly those selling fresh food directly, can still ask a dog to keep its distance from the produce on hygiene grounds.
Stepping inside a small indoor food shop — a panaderÃa, carnicerÃa or pescaderÃa — is treated as food-handling space rather than general public access, so it follows a stricter hygiene logic than Ley 7/2023's general pets-welcome default for hospitality venues: these areas can reasonably keep animals out regardless of the venue's own general pet policy, the same way a restaurant's kitchen is off-limits even when its dining room welcomes dogs.
Supermarkets are more consistently dog-free indoors for the same food-hygiene reason, though a small dog in a carrier is sometimes an exception depending on the specific store's own policy. If in doubt, a glance at the entrance for any signage, or a quick question to staff, resolves it faster than guessing.

