you would need to add the column to your cart object to store the size, it would just be empty for the products which don't have it.
you could do some conditional logic on your cart page to show this information only if it is present
on your product detail page, you could wrap the select list for the size options in a show region if recordset is not empty behavior.