#site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(3,6,16,0.92), transparent);
}
.nav-brand {
  font-family: 'Poiret One', serif;
  font-size: 1.4rem;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, #c8ac6a, #e0c684, #c8ac6a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}
.nav-links {
  display: flex;
  gap: 2.5rem;
}
.nav-links a {
  color: #a8a090;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: #c8ac6a;
}
@media (max-width: 768px) {
  #site-nav { padding: 1.25rem 1.5rem; }
  .nav-links { gap: 1.5rem; }
  .nav-links a { font-size: 0.65rem; letter-spacing: 0.15em; }
}
/* Hamburger + overlay: phone-only. Hidden above 500px so desktop is untouched. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 1px;
  background: #c8ac6a;
}
.nav-toggle:focus-visible,
.mobile-menu-close:focus-visible,
.mobile-menu-links a:focus-visible {
  outline: 1px solid #c8ac6a;
  outline-offset: 4px;
}

.mobile-menu[hidden] { display: none; }
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #030610;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.35rem;
  padding: 0.25rem 0.5rem;
  background: none;
  border: 0;
  color: #c8ac6a;
  font-size: 1.9rem;
  line-height: 1;
  cursor: pointer;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.mobile-menu-links a {
  color: #a8a090;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.3s;
}
.mobile-menu-links a:hover,
.mobile-menu-links a.active {
  color: #c8ac6a;
}
body.nav-menu-open { overflow: hidden; }

/* Scoped to #site-nav on purpose: index.html re-declares a bare `.nav-links`
   rule in an inline <style> that loads AFTER this file, so an unscoped
   `.nav-links { display: none }` loses on source order and the links used to
   overflow the phone viewport. ID + class outranks it. */
@media (max-width: 500px) {
  /* Hide the SECTION links only — they move into the overlay. cart.js appends
     #cart-trigger and account.js appends #account-nav into this same container,
     so blanking the whole thing takes the cart and the login link off every
     phone viewport with it. */
  #site-nav .nav-links > a { display: none; }
  #site-nav .nav-links { gap: 1.1rem; }
  #site-nav .nav-toggle { display: flex; }
}

/* Belt and braces: the panel can never paint on a desktop viewport, whatever
   state the toggle was left in. */
@media (min-width: 501px) {
  .mobile-menu { display: none !important; }
}
