/* Optimized header styles without flickering transitions */

/* Header Base Styles */
.header {
  background: #000000 !important;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #1a1a1a !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3) !important;
}

.navbar {
  padding: 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand-text {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 2px;
  text-decoration: none;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
}

.nav-item {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-link {
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  height: 70px;
  line-height: 1;
}

.nav-link:hover {
  color: #cccccc;
}

.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20px;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: -10px;
  background: rgba(0, 0, 0, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  padding: 0.5rem 0;
  border-radius: 8px;
  min-width: 200px;
  list-style: none;
  border: 1px solid #333333;
  margin-top: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.35s ease 0.75s, visibility 0.35s ease 0.75s, transform 0.35s ease 0.75s;
  padding-top: 0.75rem;
}

/* Large invisible bridge to keep hover alive between link and menu */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -30px;
  left: -20px;
  width: calc(100% + 40px);
  height: 30px;
  background: transparent;
}

.dropdown:hover .dropdown-menu {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
}

.dropdown-menu li {
  padding: 0;
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.7rem 1.5rem;
  color: #cccccc;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background: #1a1a1a;
  color: #ffffff;
  padding-left: 2rem;
}

.nav-actions {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

/* Wishlist icon with badge */
.wishlist-icon-container {
  position: relative;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wishlist-icon {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.wishlist-badge {
  position: absolute;
  top: 0;
  right: 0;
  background: #ffffff;
  color: #000000;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Cart icon - clean container */
.cart-icon-container {
  position: relative;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.cart-icon-container:hover {
  opacity: 0.7;
  transform: scale(1.08);
}

.cart-icon {
  width: 24px;
  height: 24px;
  color: #ffffff !important;
  fill: none !important;
  stroke: #ffffff !important;
  stroke-width: 2;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #ffffff !important;
  color: #000000 !important;
  border-radius: 50% !important;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  border: 2px solid #000000 !important;
  outline: none !important;
  box-shadow: none !important;
  line-height: 1;
  min-width: 20px;
  min-height: 20px;
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.bar {
  width: 25px;
  height: 3px;
  background: #ffffff;
  border-radius: 3px;
}

/* Authentication Buttons */
.nav-auth-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
  letter-spacing: 0.3px;
  margin-left: 5px;
}

.nav-auth-btn.sign-in {
  background: #111111;
  color: #ffffff;
  border: 1px solid #333333;
}

.nav-auth-btn.sign-in:hover {
  background: #222222;
  border-color: #555555;
}

.nav-auth-btn.sign-up {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.nav-auth-btn.sign-up:hover {
  background: #f1f5f9;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: #000000;
    width: 100%;
    text-align: center;
    border-top: 1px solid #333333;
    gap: 0;
    padding: 2rem 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }

  .dropdown-menu {
    position: static;
    display: none;
    background: #1a1a1a;
    border: none;
    border-radius: 0;
    margin-top: 1rem;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }
}


/* Announcement Bar */
.announcement-bar {
  background-color: #ffffff;
  color: #000;
  text-align: center;
  padding: 8px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}
.announcement-bar p {
  margin: 0;
  padding: 0;
}

/* Dropdown styles consolidated above */
