A Lancaster city centre shop has been ordered to close for three months after the sale of illicit tobacco products and illegally selling a vape to a child during test operations.