A transgender former employee is suing Abercrombie & Fitch for $35 million because, he claims, he was humiliated and fired for his refusal to wear women’s clothing on the job.

Maha Shalaby, who was born female but identifies as a male, said he was badgered to wear Abercrombie & Fitch’s “girls uniform” while working at the retailer’s flagship store on Fifth Avenue in Manhattan.

The New York resident had been OK’d to wear men’s clothes when he was hired, but was later told he was forbidden to do so under the company’s “look policy,” he says in his Manhattan federal lawsuit.

A store manager told Shalaby he could “only wear a girls uniform because that’s what customers want to see,” the lawsuit alleges.

Shalaby claims that the pressure from his bosses brought him to tears and that he was told to leave if he couldn’t get the look right.

Before being fired, he was offered a night position in which he could wear a male uniform but not be seen by customers, the lawsuit says.

Abercrombie has been widely mocked for its “look policy” dress code, which let guys walk around bare-chested while imposing a dress, hair and makeup code on women.

Last year, the retailer loosened that dress code, and stopped calling its store workers “models,” after the US Supreme Court ruled that it was wrong to refuse to hire a Muslim woman because she wore a headscarf.

Shalaby was fired in 2012, before the change.

He had been waiting for a ruling by the federal Equal Employment Opportunity Commission, which found in February that he was subjected to sexual discrimination, paving the way for the lawsuit, he said.

Abercrombie & Fitch spokeswoman Mackenzie Bruce declined to comment.