We develop a framework for studying trade in horizontally and vertically differentiated products. In our model, consumers with heterogeneous incomes and tastes purchase a homogeneous good and make a discrete choice of quality and variety of a differentiated product. The distribution of preferences generates a nested-logit demand structuresuch that the fraction of consumers who buy a higher-quality product rises with income. The model features a home-market effect that helps to explain why richer countries export higher-quality goods. It provides a tractable tool for studying the welfare consequences of trade and trade policy for different income groups in an economy.