Chocolate makers and candy companies buy cocoa, sugar, and dairy, and sell through retailers in a market dominated by a handful of global brands.