I put a code that colors the last category chosen in the header menu, but it only stays in the main

Topic summary

Issue: A store header menu customization highlights the last selected category, but the highlight only persists for the main (primary) category. The requester wants the highlight to also apply to the chosen secondary (subcategory) item, using the hex color #bf024b.

Additional request: Remove the visible lines/separators in the header menu for a cleaner look.

Context: A screenshot is attached and appears central to understanding the visual issues (highlight behavior and unwanted lines).

Technical notes: “Header menu” refers to the top navigation. “Secondary category” means a subcategory item under a main category. “#bf024b” is the specific hex color desired for the highlight.

Status: No solutions or code snippets were provided in the thread. No decisions or actions recorded. The request remains open, seeking guidance on CSS/JS adjustments to ensure subcategory highlighting and removal of menu lines.

Summarized with AI on January 17. AI used: gpt-5.

I put a code that colors the last category chosen in the header menu, but it only stays in the main category, I would like it to stay in the secondary category chosen too, in the color #bf024b

And i would like to get rid of those lines to please