.header-parent {
  display: block;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  width: 100%;
  padding: 0 min(5vw, 50px);
  background-color: var(--colour-4);
  box-shadow: 0 1px 8px var(--shadow-navy);
  transition: background-color 0.3s, box-shadow 0.3s;
}

.header.sticky {
  background-color: var(--colour-4);
  box-shadow: 0 1px 8px var(--shadow-navy);
}

.header .logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header .logo > img {
  width: 160px;
  height: auto;
}

.header .menu-links {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.header .menu-links li a {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--colour-5);
  text-decoration: none;
}

.header .menu-links li a:hover,
.header .menu-links li a.active {
  color: var(--color-light-blue);
}

.header .nav-utils {
  display: none;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.header .nav-utils a {
  display: flex;
  align-items: center;
}

.header .nav-utils a>button {
  font-family: "Inter", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.7em 1.4em;
  color: var(--colour-4);
  background-color: var(--color-red);
  border-radius: 12px;
  border: none;
  cursor: pointer;
  &:hover {
    background-color: var(--color-dark-blue);
  }
}

.header .nav-utils img {
  width: 30px;
  height: auto;
}
.header .nav-utils .cart {
  position: relative;
}
.header .nav-utils .cart .cart-icon {
  position: relative;
  &>.number-of-items {
    position: absolute;
    font-size: 0.6rem;
    text-align: center;
    background-color: var(--color-red);
    padding: 2px;
    border-radius: 50%;
    color: white;
    width: 15px;
    height: 15px;
    aspect-ratio: 1/1;
    top: -4px;
    right: -8px;
  }
}
.menu-left {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle-icon {
  width: 24px;
  height: 24px;
  display: block;
  object-fit: contain;
}

.overflow-hide {
  overflow: hidden;
}

.mobile-menu {
  display: block;
  opacity: 0;
  inset: 0;
  right: 100%;
  transition: 0.5s;
}

.mobile-menu.active {
  position: fixed;
  height: 100vh;
  height: 100dvh;
  overflow: auto;
  inset: 0;
  opacity: 1;
  width: auto;
  background-color: color-mix(in srgb, var(--color-dark-blue) 95%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 11;
  transition: 0.5s;
}

.mobile-menu .close-button {
  display: none;
  color: var(--colour-4);
  position: absolute;
  top: 24px;
  right: 24px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.mobile-menu .close-button.active {
  display: block;
}

.mobile-menu > .menu-links {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: start;
  padding: 120px 40px 40px;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

.mobile-menu > .menu-links > li > a {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--colour-4);
  text-decoration: none;
}

.mobile-menu > .menu-links > li > a:hover {
  color: var(--color-yellow);
}

@media screen and (min-width: 769px) {
  .menu-toggle {
    display: none;
  }

  .menu-left {
    display: none;
  }

  .header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
  }

  .header .logo {
    justify-self: start;
  }

  .header .menu-links {
    display: flex;
    justify-self: center;
  }

  .header .nav-utils {
    display: flex;
    justify-self: end;
  }

  .mobile-menu,
  .mobile-menu.active {
    display: none;
  }
}

@media screen and (min-width: 1024px) {
  .header .menu-links {
    gap: 2.5rem;
  }
}
