A retailer has been ordered to shell out more than £3,800 in fines and costs after selling an e-cigarette to a teenager.