Gold prices rose on Wednesday as a weaker dollar and simmering trade tension between the United States and China lifted demand for the safe-haven metal.

Spot gold was up 0.3% at $3,361.73 an ounce, as of 1003 GMT. U.S. gold futures firmed 0.3% to $3,385.80.

The dollar index, which measures the currency against six major peers, fell 0.1%, making gold more attractive for other currency holders.

"I think we are seeing the same concerns around trade talks, not much progress and that is adding to uncertainty over where tariffs will land, and that's driving gold prices right now," said Nitesh Shah, commodities strategist at WisdomTree.

Donald Trump said on Wednesday that Chinese President Xi Jinping is tough and "extremely hard to make a deal with," days after the U.S. President accused China of violating an agreement to roll back tariffs and trade restrictions.

Washington doubled its tariffs on steel and aluminium imports on Wednesday, the same day the Trump administration expects trading partners to make "best offers" to avoid other punishing import levies from taking effect in early July.

The focus will be on Friday's U.S. non-farm payrolls data for more cues on the Federal Reserve's policy path. Fed officials have reiterated their cautious policy stance, citing risks from trade tensions and economic uncertainty.

"If the data is stronger than expected, interest rate cut expectations are likely to wane, which would weigh on the gold price," said Commerzbank analyst Carsten Fritsch.

"We see gold trading in a range between $3,300 and $3,400 per troy ounce in the short term."

Gold, a safe-haven asset during times of political and economic uncertainty, tends to thrive in a low-interest-rate environment.

Elsewhere, spot silver was steady at $34.49 an ounce, platinum rose 1% to $1,084.80 and palladium lost 1.2% to $998.30.

(Reporting by Brijesh Patel and Anushree Mukherjee in Bengaluru; Editing by Eileen Soreng and Shailesh Kuber)