Typing
Gender typing is the cognitive process where a child becomes aware of their own gender, including the expectations, roles, and stereotypes of that gender.
In this example, Stanford realizes his own gender is male, which is not associated with the color pink. He has been typed to believe that pink is not a masculine color. The toy aisle having mostly pink toys goes against this typing, causing confusion and distress from him, leading to his refusal to go near them.