HONG KONG — The Italian luxury brand Dolce & Gabbana apologized Friday for racist-tinged insults that touched off a growing boycott in China and left the company struggling to return its products to store shelves and e-commerce sites.

However, it was unclear whether the contrition will be enough to stem the punishment and backlash doled out across China over the past week.

Some Dolce & Gabbana stores in Beijing were temporarily shut, and Chinese students in Italy held a small protest in front of the flagship store in Milan, according to Chinese reports.

Earlier this week, a lavish Shanghai fashion show, which had been months in the making, was canceled after a leaked online conversation showed co-founder Stefano Gabbana using several feces emoji and disparaging vocabulary to describe China — the world’s largest market for luxury items.

In a span of five days, the Milan fashion house swung from preparing a historic Shanghai extravaganza — billed as a no-expense-spared tribute to Chinese culture and the biggest runway event in label history — to pleading for forgiveness, its reputation shredded in a country that accounts for more than a third of luxury spending worldwide.

“Our families have always taught us to respect the various cultures in all the world, and that’s why we want to ask for your forgiveness,” co-founder Domenico Dolce said in a video apology Friday with his partner, Gabbana. “We will never forget this experience and lesson, and this sort of thing will never happen again.”

The mea culpa capped a topsy-turvy week that started with the company promoting its “Great Show” in Shanghai, an hour-long event with more than 300 looks, 100 models and 1,500 guests, with a puerile video featuring a Chinese model struggling to eat spaghetti and a large pastry with chopsticks.

After the video was widely criticized in China as insulting, a well-known fashion blogger leaked an Instagram conversation with Gabbana in which the designer fumed about the criticism, referred to China using several poo emoji and then blurted out: “China Ignorant Dirty Smelling Mafia.” (Gabbana later claimed he was hacked.)

With models, event staff and celebrity guests bailing hours before the event and calling for a boycott, the label’s Great Show was in tatters before it started Wednesday.

By Friday, the brand’s reputation was also torn to shreds. Numerous e-commerce sites including Alibaba and JD.com, the country’s two biggest platforms, removed the brand’s products — as did Lane Crawford, a leading luxury department store in China, at least one duty-free shop and the U.S.-based e-commerce site Net-a-Porter.

“We believe that brands need to be aware of the cultural implications of their actions and understand the potential backlash when customers feel their values have been disrespected,” Andrew Keith, the president of Lane Crawford, said in a statement Friday. “Customers have been returning Dolce & Gabbana products to our stores. With respect to our customers, we have taken the decision to remove the brand from all stores in mainland China, online and in Hong Kong.”

China is no stranger to boycotts. Japanese and South Korean companies have been targeted in government-stoked campaigns during periods of geopolitical tension between Beijing and its neighbors. However, Dolce & Gabbana’s troubles this week felt different — more profound — as organic grass-roots anger roiled Chinese social media all week, said Jerry Clode, head of digital and social insight at Resonance, a Shanghai agency that advises luxury brands.

“There wasn’t a national political context. This was grass-roots anger that snowballed into a real catastrophe,” Clode said.

In the weeks leading up to this week’s calamity, Dolce & Gabbana enjoyed particularly strong brand presence in large Chinese cities and overshadowed competitors such as Dior and Burberry when it came to chatter on Weibo about luxury brands, Clode said, citing his social media analysis.

It’s unclear how or when Dolce & Gabbana will recover in its most crucial market, but if history is any indication, it will bounce back.

Gabbana has previously lashed out at gay parents, openly mocked female celebrities as ugly, derided fat people — and reveled in his ability to catch flak by designing ironic white T-shirts that read: “#Boycott Dolce & Gabbana.” They are available for $295.

He recently was criticized for denying the existence of sexual harassment in Italy, for dismissing the #MeToo movement and for voicing support for U.S. first lady Melania Trump in a fashion industry largely opposed to her husband.

Through it all, his label has emerged unscathed and stronger than ever, recording record sales of 1.3 billion euros in 2017.

In a May interview with The Washington Post, Gabbana was unapologetic about his penchant for stirring controversy, saying he was merely unshackled from political correctness.

“I love to be free,” he said. “Free, free, free, free, free. I love to say what I think.”