Well, I would say it means to act unbothered and chill. Like-“Quick, Susie is coming, act cool so she doesn’t suspect anything”.
But in the sentence you wrote, it would mean like he acts a certain way to attract the girls. Also relaxed, confident and trying to act like he’s not that fazed by anything