/* ============================= */
/* HEADER STYLES - Kingston Groom Suits */
/* ============================= */

/* Header container */
#siteHeader {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(0,0,0,0.8);
  backdrop-blur: 4px;
  border-bottom: 1px solid #333;
  transition: all 0.3s;
}

#siteHeader.shadow {
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
  background: rgba(0,0,0,0.95);
}

/* Layout */
#siteHeader .container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #D4AF37;
  font-family: serif;
  font-size: 1.125rem;
  font-weight: 500;
}
.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #D4AF37;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-links a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.25s;
}
.nav-links a:hover { 
  color: #D4AF37; 
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-content {
  position: absolute;
  top: 100%;
  left: 0;
  background: #000;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  display: none;
  flex-direction: column;
  min-width: 14rem;
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top center;
  transition: all 0.25s ease;
}
.dropdown:hover .dropdown-content {
  display: flex;
  opacity: 1;
  transform: scaleY(1);
}
.dropdown-content a {
  padding: 0.5rem 1rem;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s;
}
.dropdown-content a:hover {
  color: #D4AF37;
  background: rgba(212,175,55,0.1);
  padding-left: 1.25rem;
}

/* Search */
.header-search {
  display: flex;
  flex: 1;
  max-width: 320px;
}
.header-search input {
  flex: 1;
  padding: 0.5rem 1rem;
  border: 1px solid #D4AF37;
  border-right: none;
  border-radius: 9999px 0 0 9999px;
  background: transparent;
  color: #fff;
}
.header-search input::placeholder { color: #aaa; }
.header-search button {
  padding: 0.5rem 1rem;
  background: #D4AF37;
  color: #000;
  border: 1px solid #D4AF37;
  border-radius: 0 9999px 9999px 0;
  cursor: pointer;
  transition: background 0.25s;
}
.header-search button:hover { background: #b89525; }

/* Right icons */
.header-right { display: flex; align-items: center; gap: 0.5rem; }
.cart-icon { position: relative; color: #D4AF37; }
.cart-count {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background: #D4AF37;
  color: #000;
  font-size: 0.625rem;
  font-weight: bold;
  border-radius: 9999px;
  padding: 0 0.25rem;
}

/* Profile menu */
.profile-menu { position: relative; }
#profileDropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #111;
  border: 1px solid rgba(212,175,55,0.4);
  border-radius: 0.5rem;
  padding: 0.5rem 0;
  display: none;
  width: 11rem;
  flex-direction: column;
}
#profileDropdown a {
  padding: 0.5rem 1rem;
  color: #ccc;
  text-decoration: none;
}
#profileDropdown a:hover { 
  color: #D4AF37; 
  background: rgba(212,175,55,0.1); 
}
#profileDropdown a.logout { color: #f87171; }

/* Mobile Menu */
#mobileMenu {
  position: fixed;
  top: 0;
  right: 0;
  width: 16rem;
  height: 100%;
  background: #000;
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.3s;
  z-index: 40;
  display: flex;
  flex-direction: column;
}
#mobileMenu .mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #333;
}
.mobile-nav { display: flex; flex-direction: column; padding: 1.5rem; gap: 0.75rem; }
.mobile-nav hr { border-color: #333; }

/* Overlay */
#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-blur: 2px;
  z-index: 30;
  display: none;
}
#menuOverlay.show { display: block; }
