the central bus station has a bus that leaves at 3 in the afternoon and in December the cost was 18lv to pamps. It took about 30mins longer than the trip by car with one stop on the way.
Put Sofia bus station in Google and you will be able to look at the full timetable.