:root {
  --black: #000000;
  --dark-gray: #1a1a1a;
  --gray: #9ca3af;
  --light-gray: #f5f5f5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Questrial", sans-serif;
  background: #f5f5f5;
  color: #111;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: linear-gradient(180deg, #ffffff, #f0f0f0);
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-wrapper {
  padding: 18px 0;
}

.header-wrapper .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.logo {
  font-size: 32px;
  font-weight: 900;
  font-family: "Raleway", sans-serif;
  color: #000;
  text-decoration: none;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo span {
  color: #000;
}

nav {
  flex: 1;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 34px;
  justify-content: center;
}

nav a {
  color: #111;
  text-decoration: none;
  font-size: 14px;
  text-transform: lowercase;
  font-weight: 600;
  letter-spacing: 0.4px;
  position: relative;
  padding-bottom: 6px;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

nav a:hover {
  color: #000;
}

nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.cart-btn {
  background: #ffffff;
  color: #000;
  border: 2px solid #000;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.cart-btn:hover {
  background: #000;
  color: #ffffff;
  transform: translateY(-2px);
}

.cart-badge {
  background: #000;
  color: #ffffff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.login-btn {
  background: transparent;
  color: #000;
  border: 2px solid #000;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: #000;
  color: #ffffff;
  transform: translateY(-2px);
}

.register-btn {
  background: #000;
  color: #ffffff;
  border: 2px solid #000;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: all 0.3s ease;
}

.register-btn:hover {
  background: #222;
  transform: translateY(-2px);
}

.logout-btn {
  background: #000;
  color: #ffffff;
  border: 2px solid #000;
  padding: 10px 20px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.logout-btn:hover {
  background: #222;
  transform: translateY(-2px);
}

.profile-btn {
  padding-left: 8px;
  color: #000;
  transition: transform 0.3s ease, color 0.3s ease;
}

.profile-btn:hover {
  transform: scale(1.15);
  color: #000;
}

@media (max-width: 768px) {
  .header-wrapper .container {
    flex-wrap: wrap;
    justify-content: center;
  }

  .logo {
    width: 100%;
    text-align: center;
    font-size: 28px;
    margin-bottom: 14px;
  }

  nav {
    width: 100%;
    order: 3;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
  }

  .header-actions {
    order: 2;
    margin-bottom: 12px;
  }
}
