A country has a comparative advantage in a good if
It can produce more of the good than another country.
It can produce a good at a lower opportunity cost relative to another country.
It can specialize only in two goods.
It also has an absolute advantage in the production of the good.