Dropdown menu

Hello everyone,
I’m facing a problem with an interactive component for a dropdown menu.
How can I avoid the shop button from appearing once I want to close the menu buttons?
the shop button has a separate interaction once the mouse leaves. Why once I click on the menu tab to close the all buttons? The shop button appears and doesn’t get under the main menu button like the others. Could somebody share his recommendation to fix this issue?
Thank you