cool (Middle English) comes from Middle English pek, from Middle English pike, from Old English pīc, from Proto-Germanic *pīk, from Latin pix, from Proto-Indo-European pik-, from Proto-Indo-European pi- — sap, juice.
Ancestry of “cool”, step by step
cool traces back through two separate lines of ancestry.