Most shops in Amsterdam close at around 17.00. Most supermarkets remain open till 20.00, while some of them close to the city centre stay open till 22.00. On thursadays , all supermarkets stay open till 21.00.
Most restaurants keep their kitchens open till 21.00, while some are open till 23.00.
As for the pubs in the city centre, they are open till 03.00 everyday. So even if there's nothing to eat, there's plenty to drink
Never argue with idiots. They will bring you down to their level, and beat you with experience.