Chiral nematic and fluctuation-induced first-order phase transitions in AB-stacked kagome bilayers