html {
  overflow-y: scroll;
  overflow-x: hidden;
}
body {
  background-color: beige;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", Arial, sans-serif;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 60px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 100;
  line-height: normal;
}

/* Logo */
.logo-ala-link {
  text-decoration: none;
}
.logo-ala {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo {
  height: 55px;
}
.logo-tekst {
  font-size: 1.5rem;
  font-weight: bold;
  color: #fff;
  text-transform: uppercase;
  transition: all 0.3s ease;
}
.logo-ala-link:hover .logo-tekst {
  color: #f1c40f;
  text-shadow: 0 0 8px #f1c40f;
}

/* Navigatsioonimenüü (Keskosa) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 35px;
}
.nav-lingid {
  list-style: none;
  display: flex;
  gap: 35px;
}
.nav-lingid a {
  text-decoration: none;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}
.nav-lingid a:hover {
  color: #f1c40f;
  text-shadow: 0 0 8px #f1c40f;
}

/* Nupud (Sisselogimine / Väljalogimine) */
.nav-nupud {
  display: flex;
  gap: 15px;
}
#auth-buttons,
#user-info {
  display: flex;
  gap: 10px;
  align-items: center;
}
#user-name {
  padding: 8px 16px;
  pointer-events: none;
  color: #fff;
  font-weight: 600;
}
.nupp-kontuuria {
  border: 2px solid #fff;
  padding: 6px 14px;
  border-radius: 25px;
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}
.nupp-kontuuria:hover {
  background-color: #fff;
  color: #333;
}
.nupp-taidetud {
  background-color: #f1c40f;
  color: #333;
  padding: 6px 14px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}
.nupp-taidetud:hover {
  background-color: #e1b000;
}
#logout-btn {
  font-family: inherit;
  font-size: inherit;
  border: 2px solid #fff;
  padding: 6px 14px;
  border-radius: 25px;
  background: transparent;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}
#logout-btn:hover {
  background-color: #fff;
  color: #333;
}

/* Parempoolne plokk (Ostukorv + Hamburger) */
.parem-pool {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Ostukorv (Alati nähtav) */
.ostukorv {
  position: relative;
  text-decoration: none;
}
.ostukorv img {
  width: 26px;
  height: 26px;
  filter: invert(100%);
  transition: transform 0.2s ease;
}
.ostukorv img:hover {
  transform: scale(1.15);
}
.ostukorv-number {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #f1c40f;
  color: #333;
  font-size: 12px;
  font-weight: bold;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Hamburgeri nupp (vaikimisi peidus) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}


/*
=========================================
 RESPONSIIVSUS (Mobiilivaade)
=========================================
*/
@media (max-width: 900px) {
  .navbar {
    padding: 15px 25px;
  }

  /* Näita hamburgeri nuppu */
  .hamburger {
    display: flex;
  }

  /* Peida kogu menüü sisu */
  .nav-menu {
    display: none; /* Vaikimisi peidus */
    position: absolute;
    top: 80px; /* Alustab päise alt */
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);

    /* Menüü sisu on nüüd vertikaalne */
    flex-direction: column;
    padding: 20px 0;
    gap: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  /* Kui menüü on aktiivne, kuva see */
  .nav-menu.active {
    display: flex;
  }

  /* Muuda linkide paigutus vertikaalseks */
  .nav-lingid {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .nav-lingid li {
    width: 100%;
    text-align: center;
  }
  .nav-lingid a {
    padding: 15px 0;
    display: block;
    width: 100%;
  }

  /* Muuda nuppude paigutus vertikaalseks */
  .nav-nupud {
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    align-items: stretch;
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  .nav-nupud #auth-buttons,
  .nav-nupud #user-info {
    flex-direction: column;
    width: 100%;
    align-items: stretch;
  }
  .nav-nupud .nupp-kontuuria,
  .nav-nupud .nupp-taidetud,
  .nav-nupud #logout-btn {
    text-align: center;
  }

  /* Hamburgeri animatsioon */
  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}