/* MADHURAVANA — ONE navbar for every page (desktop + mobile hamburger).
   Loaded LAST on every page so it overrides the older per-page header rules
   in style.css / premium.css / magic-upgrade.css / mobile-premium.css /
   madhuravana-home.css / home-premium.css. Edit the navbar ONLY here. */

:root{--nv-h:72px;--nv-ink:#143a23;--nv-gold:#a8710f;--nv-cream:rgba(251,245,230,.94)}

/* ---------- bar ---------- */
html:root body .site-header.site-header{
  position:sticky!important;top:0!important;left:0;right:0;z-index:100;
  height:var(--nv-h);display:flex;align-items:center;
  background:var(--nv-cream)!important;
  backdrop-filter:blur(16px) saturate(1.3);-webkit-backdrop-filter:blur(16px) saturate(1.3);
  border-bottom:1px solid rgba(168,113,15,.18)!important;
  box-shadow:0 6px 24px rgba(60,40,10,.07)!important;
  transition:none;
}
html:root body .site-header .container.nav{
  width:100%;max-width:1240px;margin:0 auto;height:var(--nv-h);
  padding:0 clamp(16px,3vw,32px);
  display:flex;align-items:center;justify-content:space-between;gap:20px;
}

/* ---------- brand ---------- */
html:root body .site-header .brand{
  display:flex;align-items:center;gap:12px;white-space:nowrap;
  font-family:Fraunces,Georgia,serif;font-weight:600;font-size:.98rem;line-height:1.1;
  letter-spacing:.14em;text-transform:uppercase;color:var(--nv-ink);
}
html:root body .site-header .brand small{display:none}
html:root body .site-header .brand:before{
  content:"";display:block;width:27px;height:1px;
  background:linear-gradient(90deg,transparent,#c58b2a);
}

/* ---------- links ---------- */
html:root body .site-header .nav-links{
  display:flex;align-items:center;gap:clamp(16px,2.2vw,32px);
  font-family:inherit;font-size:.8rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
}
html:root body .site-header .nav-links a{
  position:relative;color:#2b2a1c;font-size:.8rem;letter-spacing:.14em;
  text-transform:uppercase;font-weight:600;transition:color .25s;
}
html:root body .site-header .nav-links a:hover{color:var(--nv-gold)}
html:root body .site-header .nav-links a:after{
  content:"";position:absolute;left:0;bottom:-7px;width:0;height:2px;
  background:linear-gradient(90deg,#c58b2a,#f2c566);transition:width .25s;display:block;
}
html:root body .site-header .nav-links a:hover:after{width:100%}
html:root body .site-header .nav-links .cart-link{display:inline-flex;align-items:center;gap:8px}
html:root body .site-header .cart-count{
  min-width:24px;height:24px;display:inline-grid;place-items:center;
  border-radius:99px;background:var(--nv-gold);color:#fff;font-size:.72rem;letter-spacing:0;
}

/* ---------- hamburger (hidden on desktop) ---------- */
html:root body .site-header .menu-btn{
  display:none;width:44px;height:44px;flex:0 0 44px;padding:0;
  place-items:center;border-radius:50%;
  border:1px solid rgba(168,113,15,.35);background:#fffaf0;color:var(--nv-ink);
  font-size:1.2rem;line-height:1;cursor:pointer;
}

/* ---------- mobile / tablet ---------- */
@media(max-width:900px){
  :root{--nv-h:64px}
  html:root body .site-header .brand{font-size:.9rem;letter-spacing:.1em}
  html:root body .site-header .brand:before{display:none}
  html:root body .site-header .menu-btn{display:grid}

  html:root body .site-header .nav-links{display:none}
  html:root body .site-header .nav-links.open{
    display:flex;flex-direction:column;align-items:stretch;gap:2px;
    position:absolute;top:100%;left:0;right:0;
    padding:12px 16px 20px;
    background:rgba(251,245,230,.98);
    backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);
    border-bottom:1px solid rgba(168,113,15,.18);
    border-radius:0 0 24px 24px;box-shadow:0 24px 40px rgba(40,25,5,.18);
  }
  html:root body .site-header .nav-links.open a{
    width:100%;padding:15px 6px;border-radius:0;
    font-size:.82rem;letter-spacing:.16em;color:#1d3a24;
    border-bottom:1px solid rgba(168,113,15,.14);
  }
  html:root body .site-header .nav-links.open a:after{display:none}
  html:root body .site-header .nav-links.open a:hover{background:none;color:var(--nv-gold)}
  html:root body .site-header .nav-links.open .cart-link{
    margin-top:12px;justify-content:center;border:0;border-radius:99px;
    background:linear-gradient(180deg,#f2c566,#d99a2b);color:#2a1706;font-weight:700;
  }
  html:root body .site-header .nav-links.open .cart-count{background:var(--nv-ink);color:#f6d58a}
}
@media(max-width:360px){html:root body .site-header .brand{font-size:.8rem;letter-spacing:.06em}}
