metonymy
Noun
B2 – Upper-Intermediate
A figure of speech in which something is referred to by the name of something closely associated with it.
Metonymy differs from synecdoche, where a part stands for the whole, as in calling a car 'wheels'.