Borrowed from Russian ша́пка (šápka). Ultimately from the Old French chape (“cap”).
šȁpka f (Cyrillic spelling ша̏пка)