Go to admin->modules->order total and select quantity discounts. Press Edit. Select Total Basis: Discount by Category. Press Update.