Endogenous Markups, International Trade, and the Product Mix