I did that, change the padding in header and also applied the CSS you shared above.
How can I place the menus https://prnt.sc/uvb2tu in one line as in the example site? And also how can I move menus only to right side, beside the cart button?
to make those menu items all fit on one row – you would have to reduce the Typography > Primary Navigation to around 10px and the menu item width to around 5px for to fit on the smallest mobile devices.
The problem with that is those links become difficult to click and google will flag that as a UI/UX issue.