There are plenty of places to buy groceries in Castle Douglas, including a Tesco Superstore to the east of town. Make sure to also visit independent shops and try some local produce for which the town is known.