Japanese health and beauty products, once seen as the gold standard for safety and quality in China, are starting to lose their luster in the world’s largest consumer market.

Online sales of products from Kobayashi Pharmaceutical dropped 54% in the first half from a year earlier on Alibaba’s dominant e-commerce platforms Taobao and Tmall, according to tracking platform Liandanlu Data, after its supplements made from red yeast were suspected of causing dozens of deaths. Shiseido and other cosmetics makers have seen similar declines following the discharge of treated wastewater from the crippled Fukushima No. 1 nuclear plant that has fueled consumer boycotts.

Japanese companies were once seen as the pinnacle of quality after years of scandals in China involving locally-produced food and medical products, such as baby formula and cooking oil. That spurred the country’s growing middle class to seek out alternatives offered by foreign brands. Now, with the Chinese economy decelerating and setbacks for the Japanese companies, a reversal of sorts appears to be underway, and consumers are turning to cheaper mainland rivals.