Where does carbohydrate production occur in a chloroplast?

A. In the cytosol

B. In mitochondria

C. In the thylakoid

D. In the stroma