.navbar {
  background: #faf8f5;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e8e0d8;
  backdrop-filter: blur(10px);
}

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

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo-image {
  height: 52px;
  width: auto;
  display: block;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 3rem;
  align-items: center;
}

.nav-login-mobile {
  display: none;
}

.nav-menu a {
  color: #3a3a3a;
  font-weight: 500;
  font-size: 0.95rem;
  .last-order-btn {
    margin-right: 0.6rem;
    padding: 0.5rem 0.8rem;
    background: #f1efe9;
    border: 1px solid #e6d7ca;
    color: #5c4033;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
  }
  transition: color 0.3s ease;
  text-decoration: none;
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #a0826d;
  transition: width 0.3s ease;
}

.nav-menu a:hover {
  color: #5c4033;
}

.nav-menu a:hover::after {
  width: 100%;
}

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

.cart-btn {
  position: relative;
  background: #5c4033;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 4px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
}

.cart-btn:hover {
  background: #3e2723;
  transform: none;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #a0826d;
  color: #5c4033;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
}

.login-btn {
  display: none !important;
}

.login-btn:hover {
  display: none !important;
}

.user-menu {
  display: none !important;
}

.user-btn {
  display: none !important;
}

.user-btn:hover {
  display: none !important;
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  min-width: 220px;
  margin-top: 0.75rem;
  display: block;
  z-index: 1001;
  padding: 0.75rem 0;
  border: 1px solid #e8e0d8;
}

.user-info {
  padding: 1rem;
  border-bottom: 1px solid #e8e0d8;
}

.user-info p {
  margin: 0;
  color: #5c4033;
  font-size: 0.9rem;
}

.user-info p strong {
  font-weight: 600;
}

.user-email {
  opacity: 0.7;
  font-size: 0.85rem !important;
}

.logout-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  color: #5c4033;
  font-weight: 500;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.logout-btn:hover {
  background: #f5f1ed;
}

.menu-toggle {
  display: none;
  background: none;
  color: #1a3d2e;
  font-size: 1.5rem;
  border: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: white;
    gap: 0;
    display: none;
    border-bottom: 1px solid #e8e0d8;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid #e8e0d8;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .nav-container {
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  .nav-logo {
    order: 1;
    flex-grow: 1;
  }

  .nav-right {
    order: 2;
    margin-right: 1rem;
  }

  .user-name {
    display: inline;
  }

  .user-dropdown {
    position: relative;
    top: 0;
    right: 0;
    margin-top: 0;
    box-shadow: none;
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }

}
