Virtually unlimited hats, comprising three different sizes (6)
I believe the answer is:
almost
'virtually' is the definition.
(synonyms)
I can't explain the rest of the clue.
Can you help me to learn more?
(Other definitions for almost that I've seen before include "As good as" , "Not totally" , "Well-nigh" , "Slightly short of" , "Nearly, not quite" .)