.header {
  width: 100%;
  background-color: var(--body-color);
  position: fixed;
  top: 0;
  right: 0;
  z-index: var(--z-fixed);
}

.my-nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__toggle,
.nav__close {
  color: var(--title-color);
  display: none;
}

.nav__toggle {
  font-size: 1.25rem;
  cursor: pointer;
}

.nav__close {
  font-size: 1.5rem;
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  cursor: pointer;
}
.nav__list {
  display: flex;
  flex-direction: row;
  row-gap: 1.5rem;
  column-gap: 3rem;
}

.nav__link {
  color: var(--title-color);
  font-weight: var(--font-medium);
  transition: 0.3s;
}
.nav__link:hover {
  color: var(--first-color);
}

.show-menu {
  left: 0 !important;
}

.nav__menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
}

.scrolled {
  box-shadow: 0 1px 4px hsla(var(--hue), 4%, 15%, 0.1);
  background: white;
}

.user-dropdown {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.nav-logout-btn {
  font-size: 14px;
  background-color: transparent;
  border: none;
}

.dropdown-menu a {
  margin-bottom: 8px;
}

.nav-signin {
  height: 40px;
  border: 1px solid var(--first-color);
  background-color: var(--first-color);
  color: white;
  transition: all 200ms ease-in-out;
}
.nav-signin:hover {
  box-shadow: 0 0 3px 0;
  background-color: white;
  color: var(--first-color);
}
.nav-signin a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.navbar-brand {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.cart-signin {
  gap: 16px;
}
.nav-cart {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  transition-duration: 200ms;
}
.nav-cart:hover .nav-cart-counter {
  background-color: var(--first-color-alt);
}

.cart-icon svg {
  width: 24px;
  height: 24px;
}
.nav-cart-counter {
  position: absolute;
  bottom: 0;
  right: 0;
  border: 2px solid #fff;
  border-radius: 6px;
  width: 20px;
  height: 20px;
  background-color: var(--first-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 600;
}

/* Active link */
.active-nav {
  position: relative;
  color: var(--first-color);
}

.active-nav::after {
  content: "";
  position: absolute;
  bottom: -0.5rem;
  right: 0;
  width: 50%;
  height: 2px;
  background-color: var(--first-color);
}

.dashboard-dropdown ul li {
  font-size: 14px;
}

.user-title {
  font-size: 14px;
  max-width: 180px;
}
.navbar-nav {
  gap: 16px;
}
.search-form {
  margin-left: 24px;
}
.search-form .btn {
  background-color: var(--first-color-light);
  color: var(--title-color);
}
.search-form .btn:hover {
  background-color: var(--first-color-alt);
  color: var(--white);
}

@media screen and (max-width: 900px) {
  .nav__menu {
    gap: 3rem;
    position: fixed;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    background-color: var(--container-color);
    width: 80%;
    height: 100%;
    top: 0;
    left: -100%;
    box-shadow: -2px 0 4px hsla(var(--hue), 24%, 15%, 0.1);
    padding: 4rem 3rem;
    border-radius: 0 1rem 1rem 0;
    transition: 0.3s;
    z-index: var(--z-fixed);
  }

  .nav__list {
    flex-direction: column;
  }

  .nav__toggle {
    display: inline-flex;
  }
  .nav__close {
    display: block;
  }

  .nav__item .dropdown-menu {
    position: relative !important;
    transition: 0.3s;
    border-bottom: 2px solid var(--text-color);
    border-right: none;
    border-left: none;
    border-top: none;
    border-radius: 0;
    margin-bottom: 10px !important;
  }

  .navbar-nav {
    filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.2));
    background-color: var(--white);
    border-radius: 8px;
    padding: 8px;
    gap: 8px;
    max-width: 50vw;
  }
  .navbar-nav li {
    margin-bottom: 8px;
  }
  .navbar {
    height: 60px;
  }
  .navbar-brand img {
    width: 55px;
    height: 55px;
  }
  .container-fluid {
    padding: 0 8px;
  }

  .navbar-collapse {
    margin-right: 0;
  }
  .cart-signin {
    gap: 8px;

    margin-right: auto;
  }

  .user-title {
    font-size: 12px;
    max-width: 150px;
    gap: 4px;
  }
  .user-title svg {
    width: 1.2rem;
    height: 1.2rem;
  }
  .nav-cart {
    height: 35px;
    width: 35px;
  }
  .nav-cart-counter {
    width: 18px;
    height: 18px;
    font-size: 10px;
  }
  .search-form {
    margin-left: 0;
  }
}
