The opening hours of shops and restaurants in Barcelona are clearly mediterranean: shops rarely open before 10am, but they will stay opened until 9pm. Many shops close for two hours somewhen between 1 and 5pm. The majority of shops are open for business on saturdays but close on sundays.
Restaurants often stay closed on mondays. To get dinner around midnight usually is no problem on the other hand.