/* ============================================================
   SCENTIFYMEE — Unified Navbar Stylesheet
   Single source of truth for header, navigation, search & mobile menu
   ============================================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  width: 100%;
  background: rgba(13, 11, 10, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-header .header-inner {
  max-width: 1400px !important;
  width: calc(100% - 40px) !important;
  height: 62px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================
   BRAND / LOGO
   ============================================ */
.site-header .logo {
  font-family: "Cormorant Garamond", serif;
  font-weight: 600;
  font-size: clamp(1.75rem, 2vw, 2.35rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text, #f1ece3);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-header .logo-accent {
  color: var(--gold, #c9a45c);
}

/* ============================================
   DESKTOP NAVIGATION LINKS
   ============================================ */
.site-header .main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.8vw, 28px);
  flex: 1;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.site-header .main-nav a {
  color: rgba(242, 239, 233, 0.88);
  white-space: nowrap;
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: color 0.25s ease, border-color 0.25s ease;
}

.site-header .main-nav a:hover,
.site-header .main-nav a:focus-visible {
  color: var(--gold, #c9a45c);
}

.site-header .main-nav a.active {
  color: var(--gold, #c9a45c);
  border-color: rgba(241, 236, 227, 0.4);
  background: transparent;
}

/* ============================================
   HEADER ICONS & CART BADGE
   ============================================ */
.site-header .header-icons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-shrink: 0;
}

.site-header .icon-btn {
  width: 20px;
  height: 20px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text, #f1ece3);
  position: relative;
  padding: 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-header .icon-btn:hover,
.site-header .icon-btn:focus-visible {
  color: var(--gold, #c9a45c);
  background: transparent;
}

.site-header .icon-btn svg {
  width: 100%;
  height: 100%;
  display: block;
}

.site-header .icon-btn [data-cart-count] {
  position: absolute;
  top: -6px;
  right: -8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #f3efe7;
  color: #0b0b0a;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid rgba(0, 0, 0, 0.25);
}

.site-header .icon-btn [data-cart-count][hidden] {
  display: none !important;
}

.site-header .hamburger-btn {
  display: none;
}

/* ============================================
   SEARCH PANEL OVERLAY
   ============================================ */
.search-panel {
  max-height: 0;
  overflow: hidden;
  background: var(--card, #151311);
  border-bottom: 1px solid transparent;
  transition: max-height 0.35s ease, border-color 0.35s ease;
}

.search-panel.open {
  max-height: 500px;
  border-color: rgba(255, 255, 255, 0.08);
}

.search-panel-inner {
  max-width: 1400px;
  width: calc(100% - 40px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0;
  box-sizing: border-box;
}

.search-panel-icon {
  width: 20px;
  height: 20px;
  color: var(--muted, #8d8880);
  flex-shrink: 0;
}

.search-panel-inner input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text, #f1ece3);
  font-size: 16px;
  font-family: "Inter", sans-serif;
}

.search-panel-inner input::placeholder {
  color: var(--muted, #8d8880);
}

.search-panel-inner button {
  background: transparent;
  border: none;
  font-size: 24px;
  color: var(--muted, #8d8880);
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.search-panel-inner button:hover {
  color: var(--gold, #c9a45c);
}

.search-results {
  max-width: 1400px;
  width: calc(100% - 40px);
  margin: 0 auto;
  padding: 0 0 16px 0;
  box-sizing: border-box;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
}

.search-result-item:hover .sr-name {
  color: var(--gold, #c9a45c);
}

.search-result-item img {
  width: 46px;
  height: 46px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-result-item .sr-brand {
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--gold, #c9a45c);
  text-transform: uppercase;
}

.search-result-item .sr-name {
  font-size: 14px;
  color: var(--text, #f1ece3);
  transition: color 0.2s ease;
}

.search-empty {
  padding: 20px 0 30px;
  color: var(--muted, #8d8880);
  font-size: 14px;
}

/* ============================================
   MOBILE NAVIGATION DRAWER
   ============================================ */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 80vw);
  height: 100%;
  padding: 28px 24px;
  background: var(--card, #151311);
  border-left: 1px solid var(--border, rgba(201, 164, 92, 0.25));
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  box-sizing: border-box;
}

.mobile-nav-overlay.open .mobile-nav-panel {
  transform: translateX(0);
}

.mobile-nav-panel a {
  font-size: 16px;
  letter-spacing: 0.5px;
  color: var(--text, #f1ece3);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 0.2s ease;
}

.mobile-nav-panel a:hover,
.mobile-nav-panel a.active {
  color: var(--gold, #c9a45c);
}

.mobile-nav-close {
  align-self: flex-end;
  background: transparent;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--muted, #8d8880);
  cursor: pointer;
  margin-bottom: 10px;
  padding: 0;
  transition: color 0.2s ease;
}

.mobile-nav-close:hover {
  color: var(--gold, #c9a45c);
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 900px) {
  .site-header .main-nav {
    display: none !important;
  }

  .site-header .hamburger-btn {
    display: inline-flex !important;
  }
}

@media (max-width: 600px) {
  .site-header .header-inner {
    width: calc(100% - 24px) !important;
    gap: 10px;
  }

  .site-header .header-icons {
    gap: 10px;
    flex-shrink: 0;
  }

  .site-header .logo {
    font-size: 1.2rem;
    letter-spacing: 0.14em;
    flex-shrink: 0;
  }
}
