/* ========================================
   DESKTOP HEADER COMPONENT
   ======================================== */

/* ────────── Base Header ────────── */
.desktop-header {
  position: sticky;
  top: 0;
  width: 100%;
  background: #000000;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.desktop-header {
  margin-bottom: 0;
}

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

.desktop-header-container {
  margin-bottom: 0;
}

/* ────────── Logo ────────── */
.desktop-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.desktop-logo:hover {
  transform: scale(1.05);
}

.desktop-logo img {
  height: 70px;
  width: auto;
}

/* ────────── Navigation Menu ────────── */
.desktop-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.desktop-menu {
  display: flex;
  align-items: center;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.desktop-menu > li {
  position: relative;
}

.desktop-menu-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #FFFFFF;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
  background: none;
  border: none;
  cursor: pointer;
}

.desktop-menu-link:hover {
  color: #43BDAB;
  background: rgba(67, 189, 171, 0.1);
}

.desktop-menu-link.active {
  color: #43BDAB;
  background: rgba(67, 189, 171, 0.15);
  position: relative;
}

.desktop-menu-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #43BDAB;
  border-radius: 2px 2px 0 0;
}

.desktop-menu-link svg {
  width: 12px;
  height: 12px;
  transition: transform 0.3s ease;
}

/* ────────── Dropdown Menu ────────── */
.desktop-menu-item-dropdown {
  position: relative;
}

.desktop-menu-item-dropdown.open .desktop-dropdown-trigger svg {
  transform: rotate(180deg);
}

.desktop-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 100;
}

.desktop-menu-item-dropdown.open .desktop-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.desktop-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  background: #FFFFFF;
  transform: translateX(-50%) rotate(45deg);
  border-top-left-radius: 2px;
}

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

.desktop-dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #000000;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.desktop-dropdown-menu a:hover {
  background: rgba(67, 189, 171, 0.1);
  color: #43BDAB;
  padding-left: 24px;
}

/* ────────── User Menu (signed-in) ────────── */
.user-menu {
  position: relative;
}

.user-menu-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: transparent;
  border: 1px solid #2dd4bf;
  border-radius: 6px;
  color: white;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  margin-top: 0;
  background: #ffffff;
  border: none;
  border-radius: 12px;
  box-shadow: 0 18px 50px rgba(6,11,15,0.18), 0 6px 18px rgba(6,11,15,0.06);
  min-width: 240px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1000;
}

.user-dropdown a,
.user-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  border: none;
  background: transparent;
  color: #0f1724;
  text-decoration: none;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  transition: background 160ms ease, transform 120ms ease, color 160ms ease;
}

.user-dropdown a:hover,
.user-dropdown button:hover,
.user-dropdown a:focus,
.user-dropdown button:focus {
  background: linear-gradient(90deg, rgba(67,189,171,0.06), rgba(2,132,199,0.03));
  color: #075985;
  transform: translateX(4px);
}

.user-dropdown .divider {
  height: 1px;
  background: #eef2f6;
  margin: 6px 0;
}

.logout-btn {
  color: #b91c1c;
  font-weight: 700;
  background: transparent;
  border-radius: 8px;
}

/* small caret for the dropdown */
.user-dropdown::before {
  content: '';
  position: absolute;
  top: -8px;
  right: 18px;
  width: 12px;
  height: 12px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: -2px -2px 6px rgba(6,11,15,0.03);
}

/* ────────── Cart Icon ────────── */
.desktop-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.desktop-cart:hover {
  background: rgba(67, 189, 171, 0.1);
  color: #43BDAB;
  transform: translateY(-2px);
}

.desktop-cart svg {
  width: 24px;
  height: 24px;
}

.desktop-cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #43BDAB;
  color: #000000;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ────────── Auth Button ────────── */
.auth-button {
  background: transparent;
  color: #FFFFFF;
  border: 1px solid rgba(255,255,255,0.12);
  padding: 6px 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s ease;
}

.auth-button:hover {
  background: rgba(67, 189, 171, 0.06);
  color: #43BDAB;
  border-color: rgba(67, 189, 171, 0.25);
  transform: translateY(-1px);
}

.auth-button.hidden {
  display: none !important;
}

/* Charming sign-in button for desktop */
.sign-in-btn {
  background: transparent;
  color: #43BDAB;
  border: 1px solid rgba(67,189,171,0.9);
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.12s ease, transform 0.12s ease, color 0.12s ease;
}

.sign-in-btn:hover {
  background: rgba(67,189,171,0.08);
  transform: translateY(-1px);
}

.sign-in-btn:active {
  transform: translateY(0);
}

/* ────────── Mobile/Tablet: Hide Desktop Header ────────── */
@media (max-width: 768px) {
  .desktop-header {
    display: none !important;
  }
}

/* ────────── Tablet Adjustments ────────── */
@media (max-width: 1024px) {
  .desktop-header-container {
    padding: 0 30px;
  }
  
  .desktop-menu {
    gap: 28px;
  }
  
  .desktop-menu-link {
    font-size: 14px;
  }
}
