.NavBar {
  width: 100%;
  min-height: 56px;
  height: 7vh;
  padding: 0 1.5vw;
  z-index: 10;
  backdrop-filter: blur(14px) saturate(140%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.NavBar.NavDark {
  background: linear-gradient(110deg, rgba(0, 60, 50, 0.75), rgba(0, 184, 156, 0.18), rgba(0, 60, 50, 0.75));
  color: #e8eaf0;
  box-shadow: 0 12px 28px rgba(2, 6, 23, 0.25);
  border-bottom: 1px solid rgba(0, 214, 185, 0.2);
}

.NavBar.NavLight {
  background: linear-gradient(110deg, rgba(220, 245, 238, 0.85), rgba(0, 184, 156, 0.08), rgba(220, 245, 238, 0.85));
  color: #141d1b;
  box-shadow: 0 4px 16px rgba(0, 40, 34, 0.06);
  border-bottom: 1px solid rgba(0, 184, 156, 0.15);
}

.NavBar::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  display: none;
}

.NavBarList {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 14px;
  margin: 0;
  padding: 0;
}

.NavBarItem {
  list-style: none;
  flex: 0 0 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.NavBarList .NavBarCart,
.NavBarList .NavBarLogin {
  flex: 0 0 auto;
}

.NavBarList .NavBarCart {
  margin-left: auto;
  justify-content: center;
}

.NavBarList .NavBarLogin {
  margin-left: 0;
  justify-content: flex-end;
}

.NavBar2 .NavBarList {
  justify-content: flex-start;
  gap: 14px;
}

.NavBar2 .NavBarItem {
  flex: 0 0 auto;
  justify-content: flex-start;
}

.NavBarIconItem a {
  text-decoration: none;
  width: 40px;
  min-width: 40px;
  height: 36px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.NavBarIconButton {
  width: 40px;
  height: 36px;
  padding: 0;
  background: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.NavBarIconButton > .UserProfileDisplay {
  height: 100%;
}

.NavBarIcon {
  height: 20px;
  width: 20px;
  max-height: 6vh;
  display: block;
  object-fit: contain;
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.NavLight .NavBarIcon {
  filter: invert(1);
}

.NavBarIconItem span {
  display: inline-block;
  padding-left: 10px;
}

.NavBar ul {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.NavDark .NavBarItem a {
  color: #e8eaf0;
}

.NavLight .NavBarItem a {
  color: #141d1b;
}

.NavBarItem a {
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
  position: relative;
  width: auto;
  min-width: max-content;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  border: none;
  box-shadow: none;
}

.NavBarItem > .LanguageButton,
.NavBarItem > .ThemeButton {
  width: min(160px, 100%);
}

.NavDark .NavBarItem a:hover {
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

.NavLight .NavBarItem a:hover {
  color: #009e86;
  text-shadow: none;
}

.NavBarItem a:hover {
  background-color: transparent;
  transform: translateY(-1px);
  box-shadow: none;
}

.NavBarItem a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.NavDark .NavBarItem a::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.74), transparent);
}

.NavLight .NavBarItem a::after {
  background: linear-gradient(90deg, transparent, rgba(0, 184, 156, 0.7), rgba(0, 158, 134, 0.5), transparent);
}

.NavBarItem a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.NavBarThemeToggle {
  margin-left: auto;
}

.NavBarList .NavBarThemeToggle ~ .NavBarCart {
  margin-left: 0;
}

.NavThemeToggleButton {
  color: inherit;
  transition: color 0.2s ease, transform 0.2s ease;
}

.NavThemeToggleButton:hover {
  transform: translateY(-1px);
}

.NavDark .NavThemeToggleButton:hover {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.4));
}

.NavLight .NavThemeToggleButton:hover {
  color: #009e86;
  filter: drop-shadow(0 0 6px rgba(0, 158, 134, 0.3));
}

.NavStickToTop {
  top: 0;
  position: fixed;
}
.LanguageButton {
  background: none;
  border: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
  background: transparent;
  border: none;
  box-shadow: none;
  height: 36px;
}

.LanguageButton:hover {
  background-color: transparent;
  transform: translateY(-1px);
  box-shadow: none;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

.LanguageButton span {
  margin-left: 0.2vw;
}

.ThemeButton {
  background: none;
  border: none;
  color: inherit;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 6px;
  transition: color 0.2s ease, transform 0.2s ease, text-shadow 0.2s ease;
  background: transparent;
  border: none;
  box-shadow: none;
  height: 36px;
}

.ThemeButton:hover {
  background-color: transparent;
  transform: translateY(-1px);
  box-shadow: none;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

.ThemeButton span {
  margin-left: 0.2vw;
}

.Sidebar {
  padding: 6vh;
  height: 100vh;
  position: fixed;
  width: 15vw;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.SidebarRight {
  background-color: lightcoral;
  right: 0;
}

.SidebarList {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  list-style: none;
  gap: 1vh;
}

.SideBarItem {
  width: 100%;
  height: 5vh;
  display: flex;
  justify-content: center;
  align-items: center;
  list-style: none;
  text-decoration: none;
  background-color: antiquewhite;
  margin: 1vh;
  border: black 1px solid;
  border-radius: 1vh;
}

.SidebarToggle {
  width: 3vw;
  aspect-ratio: 1/1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff00;
  border: none;
}

.SidebarToggle > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: none;
}

.SidebarToggleStatic {
  z-index: 10;
  position: fixed;

}
.SidebarToggleStatic > img {
  color: white;
}

.SidebarToggleRight {
  right: 0;
}

@media (max-width: 1024px) {
  .NavBar {
    min-height: 64px;
    height: 64px;
    padding: 0 10px;
  }

  .NavBarList {
    height: 100%;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .NavBarList::-webkit-scrollbar {
    display: none;
  }

  .NavBarList .NavBarCart,
  .NavBarList .NavBarLogin {
    margin-left: 0;
  }

  .NavBarList .NavBarCart {
    margin-left: auto;
  }

  .NavBarItem a,
  .LanguageButton,
  .ThemeButton {
    width: auto;
    min-width: max-content;
    font-size: 0.72rem;
    padding: 6px 10px;
  }

  .NavBarItem > .LanguageButton,
  .NavBarItem > .ThemeButton {
    width: auto;
  }

  .NavBarIcon {
    max-height: 20px;
  }

  .NavBarIconItem a {
    width: 40px;
    min-width: 40px;
    height: 36px;
  }

  .NavBarIconButton {
    width: 40px;
    height: 36px;
  }

  .NavBarIcon {
    width: 20px;
    height: 20px;
  }
}
