Dining is not the only part of Spanish life with a bizarre timetable. Outside of major cities most shops shut in the afternoons from 2 to 5, when shopkeepers go home to eat the main meal of the day, and perhaps snooze for a while. It's best to work this into your plans on an "if you can't beat them, join them" basis, taking a quick siesta after lunch in preparation for a long night out on the town.