Inherited from Latin castaneum or castaneus. The Daco-Romanian equivalent castan, on the other hand, is a later loanword.
cãstãnj m (plural cãstãnj)