Retail sales rose 4.2% to $56.2 billion in June as public health restrictions were eased in many parts of the country, Statistics Canada said Friday.

However, the agency said its preliminary estimate for July, which will be revised, suggests retail sales fell 1.7% last month.

TD Bank economist Ksenia Bushmeneva said retail sales continue to ebb and flow with the tightening and easing of the public health restrictions.

“While consumers have been enjoying their newly found access to stores, they have also started shifting their spending patterns away from goods and toward services such as dining out, recreation and travel,” Bushmeneva wrote in a report.

“This transition likely weighed on retail sales in July, as indicated by the decline in the advance estimate. That said, improvement in spending on high-touch services, in addition to robust retail expenditure, bodes well for GDP growth in the third quarter.”

For June, retail sales increased in eight of the 11 subsectors as clothing and clothing accessories stores led the way with a gain of 49.1% following two months of declines.

Sales at general merchandise stores rose 7.4%, while motor vehicle and parts dealers gained 2.7%.

Sales at food and beverage stores fell 2.6% as sales at supermarkets and other grocery stores dropped 3.5%. Sales at building material and garden equipment and supplies dealers fell 3.1%.

Core retail sales — which exclude gasoline stations and motor vehicle and parts dealers — rose 4.6%.

Regionally, sales were up in six provinces in June, with Ontario gaining 9.8% on higher sales at clothing and clothing accessories stores and general merchandise stores.

Retail sales in volume terms rose 4.1% in June.