How did ACETIC turn into CARTE (and then CLARET)?

Vinegar into wine in two stages...