/* =====================================================================
   We Mate — Canonical navbar stylesheet (single source of truth)
   --------------------------------------------------------------------
   Lifted from the wm-nav-styles block in /navbar.html. Every non-product
   page links THIS file and no longer ships its own #main-nav / .nav-* /
   .lang-* / .auth-* / .cart-btn / .hamburger / .mobile-menu rules, so the
   navbar renders identically site-wide.

   Scoped under #main-nav (desktop bar) and .mobile-menu (hamburger sheet),
   so it never collides with the rest of a page's CSS. Product pages
   (mint/citrus/mango/merch) keep their bespoke navbar and do NOT load this.

   NOTE: the enlarged mobile language toggle is owned by css/mobile-chrome.css
   (`.mobile-menu .lang-toggle .lang-btn`, higher specificity) — it keeps
   winning on SIZE. The .mobile-menu .lang-* rules here only restore the pill
   background + active colour that used to come from per-page CSS.
   ===================================================================== */

#main-nav { position: sticky; top: 0; z-index: 100; background: rgba(247,245,241,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid #ECE7DE; }
#main-nav *, #main-nav *::before, #main-nav *::after { box-sizing: border-box; }
#main-nav a { text-decoration: none; color: inherit; }
#main-nav .nav-inner { max-width: 1240px; margin: 0 auto; padding: 16px clamp(20px,4vw,40px); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
#main-nav .nav-logo { flex-shrink: 0; display: flex; align-items: center; gap: 11px; }
#main-nav .nav-logo span { font-family: 'Merriweather', Georgia, serif; font-size: 25px; font-weight: 600; color: #1B3A4B; letter-spacing: .2px; white-space: nowrap; }
#main-nav .nav-links { display: flex; align-items: center; gap: clamp(18px,2.4vw,34px); list-style: none; margin: 0; padding: 0; }
#main-nav .nav-links a { font-size: 20px; font-weight: 500; color: #42555E; transition: color .25s ease; }
#main-nav .nav-links a:hover { color: #1B3A4B; }
#main-nav .nav-links a.active { color: #1B3A4B; font-weight: 600; }
#main-nav .nav-right { display: flex; align-items: center; gap: 14px; }
#main-nav .lang-toggle { display: flex; background: #ECE7DE; border-radius: 999px; padding: 3px; gap: 2px; }
#main-nav .lang-btn { padding: 5px 13px; border-radius: 999px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; background: transparent; color: #5A6A72; transition: background .25s ease, color .25s ease; letter-spacing: .05em; font-family: 'Inter', sans-serif; }
#main-nav .lang-btn.active { background: #1B3A4B; color: #F5F0E8; }
#main-nav .lang-btn:hover:not(.active) { color: #1B3A4B; }
#main-nav .auth-login-btn { background: #1B3A4B; color: #F5F0E8; border: none; border-radius: 999px; padding: 9px 22px; font-family: 'Inter', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: .3s cubic-bezier(.4,0,.2,1); }
#main-nav .auth-login-btn:hover { background: #2E6E4E; }
#main-nav .auth-user-btn { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 12px; border-radius: 999px; transition: background .2s; position: relative; }
#main-nav .auth-user-btn:hover { background: #ECE7DE; }
#main-nav .auth-avatar { width: 32px; height: 32px; border-radius: 50%; background: #2E6E4E; color: #F5F0E8; display: flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; }
#main-nav .auth-user-name { font-size: .9rem; font-weight: 500; color: #1B3A4B; }
#main-nav .auth-dropdown { position: absolute; top: calc(100% + 8px); right: 0; background: #FFFFFF; border-radius: 12px; box-shadow: 0 12px 48px rgba(27,58,75,.16); border: 1px solid #ECE7DE; min-width: 190px; opacity: 0; pointer-events: none; transform: translateY(-8px); transition: opacity .2s, transform .2s; z-index: 200; overflow: hidden; }
#main-nav .auth-dropdown.open { opacity: 1; pointer-events: all; transform: translateY(0); }
#main-nav .auth-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 12px 18px; font-size: .85rem; color: #1B3A4B; cursor: pointer; transition: background .18s; border: none; background: none; width: 100%; text-align: left; font-family: 'Inter', sans-serif; }
#main-nav .auth-dropdown-item:hover { background: #F7F5F1; }
#main-nav .auth-dropdown-item.danger { color: #c0392b; }
#main-nav .auth-dropdown-divider { height: 1px; background: #ECE7DE; margin: 4px 0; }
#main-nav .cart-btn { width: 38px; height: 38px; border-radius: 999px; border: 1px solid #E2DCD1; background: #fff; cursor: pointer; color: #1B3A4B; position: relative; display: flex; align-items: center; justify-content: center; transition: border-color .2s; }
#main-nav .cart-btn:hover { border-color: #1B3A4B; }
#main-nav .cart-badge { position: absolute; top: -4px; right: -4px; background: #D9B871; color: #1B3A4B; font-size: .65rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(0); transition: .3s cubic-bezier(.4,0,.2,1); }
#main-nav .cart-badge.visible { opacity: 1; transform: scale(1); }
#main-nav .hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
#main-nav .hamburger span { display: block; width: 24px; height: 2px; background: #1B3A4B; border-radius: 2px; }
.mobile-menu { display: none; position: fixed; top: 69px; left: 0; right: 0; background: rgba(247,245,241,.97); backdrop-filter: blur(12px); padding: 24px; z-index: 99; flex-direction: column; gap: 20px; border-top: 1px solid #ECE7DE; }
.mobile-menu.open { display: flex; }
.mobile-menu a { font-size: 1.1rem; font-weight: 500; color: #1B3A4B; padding: 8px 0; border-bottom: 1px solid #ECE7DE; text-decoration: none; }
/* Mobile-menu language toggle — base appearance only (pill + active colour).
   css/mobile-chrome.css enlarges it and wins on size via higher specificity. */
.mobile-menu .lang-toggle { background: #ECE7DE; border-radius: 999px; }
.mobile-menu .lang-btn { border: none; background: transparent; color: #5A6A72; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif; letter-spacing: .05em; }
.mobile-menu .lang-btn.active { background: #1B3A4B; color: #F5F0E8; }
.mobile-menu .lang-btn:hover:not(.active) { color: #1B3A4B; }
@media (max-width: 960px) { #main-nav .nav-links, #main-nav .nav-right .lang-toggle { display: none; } #main-nav .hamburger { display: flex; } }
