Blaz Kavic shocked sixth seed Marcos Baghdatis to reach the quarter-finals of the ATP Zagreb Indoors.