.header-container {
  background-color: #ffffff;
  position:sticky;
  top: 0;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  width: 100%;
  z-index: 10;
  height: 5rem;
  display: flex;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  width: 100%;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  max-width: 1200px;
}

.header-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.logo-link {
  height: 3rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
}

.logo-image {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: 0.5rem;
  gap: 0.5rem;
  position: relative;
  flex-shrink: 0;
}

.login-button {
  padding: 0.5rem 0.75rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #3f3f3f;
  background-color: #ffffff;
  border: 1px solid #dbdbdb;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border-radius: 0.25rem;
}

.dropdown-container {
  position: relative;
}

.user-dropdown,
.more-dropdown {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #3f3f3f;
  font-weight: 500;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0.5rem;
  white-space: nowrap;
}

.more-dropdown {
  display: none;
}

.cart-link {
  display: flex;
  align-items: center;
  font-size: 1rem;
  color: #3f3f3f; 
  font-weight: 500;
  gap: 0.25rem;
  position: relative;
  padding: 0.5rem;
  white-space: nowrap;
}

.cart-item-count {
  width: 1.25rem;
  height: 1.25rem;
  background-color: #ef4444;
  color: white;
  font-size: 0.75rem;
  border-radius: 50%;
  position: absolute;
  top: -0.25rem;
  left: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid #ffffff;
  font-weight: bold;
}

@media (max-width: 480px) {
  .header-container {
    height: 4rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .header-content {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .logo-link {
    height: 2.5rem;
    margin-right: 0.25rem;
  }

  .header-right {
    gap: 0.25rem;
    margin-left: 0.25rem;
  }

  .login-button {
    padding: 0.25rem 0.5rem;
    height: 2rem;
    font-size: 0.875rem;
  }

  .user-dropdown,
  .more-dropdown {
    font-size: 0.875rem;
    padding: 0.25rem;
  }

  .cart-link {
    font-size: 0.875rem;
    gap: 0.125rem;
    padding: 0.25rem;
  }

  .cart-item-count {
    width: 1rem;
    height: 1rem;
    font-size: 0.625rem;
    top: -0.125rem;
    left: 0.375rem;
  }

  .cart-link span:last-child {
    display: none;
  }

  .user-dropdown {
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  .header-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .logo-link {
    height: 3.5rem;
    margin-right: 0.75rem;
  }

  .header-right {
    gap: 0.75rem;
  }

  .login-button {
    padding: 0.5rem 1rem;
    height: 2.75rem;
    font-size: 1.1rem;
  }

  .user-dropdown,
  .more-dropdown {
    font-size: 1.1rem;
  }

  .cart-link {
    font-size: 1.1rem;
    gap: 0.375rem;
  }
}

@media (min-width: 641px) {
  .header-content {
    width: 90%;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .logo-link {
    height: 4rem;
    margin-right: 1rem;
  }

  .header-right {
    margin-left: 0;
    gap: 1.5rem;
  }

  .login-button {
    padding: 0.75rem 2rem;
    height: 3rem;
    font-size: 1.2rem;
  }
  
  .more-dropdown {
    display: flex;
  }

  .user-dropdown,
  .more-dropdown {
    font-size: 1.2rem;
  }

  .cart-link {
    font-size: 1.2rem;
    gap: 0.5rem;
  }
}

@media (min-width: 1024px) {
  .header-content {
    width: 80%;
  }

  .header-right {
    gap: 2rem;
  }

  .login-button {
    padding: 0.75rem 2.5rem;
    font-size: 1.3rem;
  }

  .user-dropdown,
  .more-dropdown {
    font-size: 1.3rem;
  }

  .cart-link {
    font-size: 1.3rem;
  }
}

@media (min-width: 1440px) {
  .header-content {
    width: 75%;
  }

  .header-right {
    gap: 2.5rem;
  }
}