/* ============================================
   Unified Site Navigation (matches index.html)
   ============================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 2rem);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
  transition: background 0.35s ease, backdrop-filter 0.35s ease, box-shadow 0.35s ease;
}
/* Push the nav down below the announcement bar only when it is actually visible. */
.announcement-bar:not(.hidden) + .nav { top: 32px; }
.nav.scrolled {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0.75) 100%);
  backdrop-filter: blur(30px) saturate(140%);
  -webkit-backdrop-filter: blur(30px) saturate(140%);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}
.nav-center {
  display: none;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  height: 72px;
  line-height: 1;
}
.nav-logo img {
  height: 46px;
  width: auto;
  display: block;
  border-radius: 0;
  object-fit: contain;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #1a1a1a;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.3s ease;
  text-decoration: none;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background-color: #c8956c;
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-link:hover { color: #c8956c; }
.nav-link:hover::after { width: 100%; }

.nav-icon {
  background: none;
  border: none;
  color: var(--accent, #c8956c);
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.nav-icon:hover { color: var(--accent-dark, #a07450); }
.nav-icon svg { width: 20px; height: 20px; }

.cart-count::after {
  content: attr(data-count);
  position: absolute;
  top: -6px;
  right: -6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #c8956c;
  color: #0a0a0a;
  font-size: 0.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-hamburger {
  display: flex;
  background: none;
  border: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  padding: 0.5rem;
  cursor: pointer;
  z-index: 1101;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  border-radius: 0;
  background: var(--accent, #c8956c);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.25s ease,
              top 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: absolute;
  left: 50%;
  margin-left: -11px;
}
.nav-hamburger span:nth-child(1) { top: 11px; }
.nav-hamburger span:nth-child(2) { top: 17.5px; }
.nav-hamburger span:nth-child(3) { top: 24px; }
.nav-hamburger.active span:nth-child(1) { top: 17.5px; transform: rotate(45deg); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { top: 17.5px; transform: rotate(-45deg); }
.nav.scrolled .nav-hamburger span { background: var(--accent, #c8956c); }

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #ffffff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.1em;
  transition: color 0.3s ease;
}
.mobile-menu a:hover { color: #c8956c; }
/* "Login or Sign-up" link rendered in gold across every page. */
[data-account-link][data-account-label],
.mobile-menu a[data-account-link],
.mobile-drawer a[data-account-link] {
  color: #d4a04a !important;
  font-weight: 600;
  letter-spacing: 0.1em;
}
[data-account-link][data-account-label]:hover,
.mobile-menu a[data-account-link]:hover,
.mobile-drawer a[data-account-link]:hover {
  color: #e0b466 !important;
}

/* Announcement bar shared styles (kept in normal flow above nav) */
.announcement-bar {
  background: #c8956c;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  height: 32px;
  position: relative;
  white-space: nowrap;
  overflow: hidden;
}
.announcement-bar.hidden { display: none; }
.announcement-close {
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0 0.3rem;
  opacity: 0.7;
  transition: opacity 0.3s;
}
.announcement-close:hover { opacity: 1; }
@media (max-width: 768px) {
  .announcement-bar { font-size: 0.55rem; letter-spacing: 0.02em; }
}

/* Body spacer so fixed nav doesn't overlap content.
   Use .nav-spacer just after the announcement bar + nav */
.nav-spacer { height: 72px; }
