Here in Norway consumers enjoy a 5 year warranty on products that are meant to last, and 2 years on other non-consumables.
So if my fridge dies due to a manufacturing flaw within 5 years, the store I purchased it on has to repair free of charge, replace it with an equal or better product, or give a full refund. If the product keeps breaking in the same way, the customer can demand a full refund.
And it's up to the store to convincingly argue it's not a manufacturing flaw if they don't want to do that.
This provides similar disincentive to import crappy goods.
Sure, you're disincentivizing crappy goods, but then you'd also barr a strata of society who can only afford those crappy goods. While it's not as much of a problem in Norway I suppose, it is a problem in the majority of the world.
Maybe instead of a charge this could be a credit. If the recycling happens after a long time the company gets a bigger payback than if it happens before. The money is collected on checkout so the company can't claim bankruptcy or low profits to make the payment.