SHANGHAI, July 9 (Reuters) - Mainland China stocks ended lower on Wednesday, wiping out all intraday gains, due to worries over deepening factory deflation as firms cut prices amid weak demand. Hong Kong shares also fell.
** At the close, the Shanghai Composite index .SSEC was down 0.13% at 3,493.05 points, while the blue-chip CSI300 index .CSI300 was down 0.18%.
** China's producer deflation deepened to its worst level in almost two years in June as the economy grapples with uncertainty over a global trade war and subdued demand at home, piling pressure on policymakers to roll out more support measures.
** "Combined with the persistently negative GDP deflator, deflation remains a concern," said Lynn Song, chief economist for Greater China at ING.
** Citi analysts said in a note that they remain "cautious on the inflation trajectory while waiting for more policy actions."
They added that further guidance from the upcoming Politburo meeting and action plans from the state council and state planner could be worth monitoring.
** On the trade front, U.S. President Donald Trump on Tuesday said he would impose a 50% tariff on imported copper and soon introduce long-threatened levies on semiconductors and pharmaceuticals, broadening his trade war that has rattled markets worldwide.
** Trump also said trade talks have been going well with the European Union and China, though he added he is only days away from sending a tariff letter to the EU.
** "We have had a really good relationship with China lately, and we're getting along with them very well. They've been very fair on our trade deal, honestly," Trump said, adding that he has been speaking regularly with Chinese President Xi Jinping.
** "It may boost market sentiment in the short term," said Deng Lijun, analyst, Huajin Securities.
"The new wave of tariff increases did not involve China, and the United States had lifted export restrictions to China for chip design software developers and ethane, and Sino-U.S. trade tensions have eased in the short term," Deng said, adding that risk appetite for A-shares may rebound once Beijing and Washington reach a tariff deal.
** In Hong Kong, the Hang Seng index .HSI was down 1.06% at 23,892.32 points, while the Hang Seng China Enterprises index .HSCE fell 1.28% to 8,597.27 points.
** Around the region, MSCI's Asia ex-Japan stock index .MIAPJ0000PUS was weaker by 0.42%, while Japan's Nikkei index .N225 closed up 0.33%.