Endogenous markups, international trade, and the product mix