Castéra-Loubix is a commune of the Pyrénées-Atlantiques département in the southwestern part of France.