#skip-nav {
  background: white;
  left: 0;
  padding: 8px;
  position: absolute;
  transform: translateY(-100%);
  transition: transform 0.3s;
  box-shadow: 0 0 15px 0px rgba(0, 0, 0, 0.1);
}

#skip-nav:focus {
  transform: translateY(0%);
}

header {
  all: unset;
  /* border-bottom: 1px solid black; */
  padding: var(--header-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  background: var(--color-background);
  z-index: 100;

  --header-font-size: 12px;
  --header-height: 110px; /* computed by js */
}

header .logo-wrapper {
  position: relative;
  flex: 0 0 clamp(100px, 10vw, 150px);
  padding: 10px;
  box-sizing: border-box;
}

header .logo-wrapper img {
  width: 100%;
}

header > nav {
  font-size: var(--header-font-size);
  text-transform: uppercase;
  flex: 0 0 40%;
}

header > nav ul {
  display: flex;
  gap: 32pt;
  margin-bottom: 0 !important;
  position: relative;
}

header > nav:last-of-type ul {
  justify-content: flex-end;
}

header > nav:last-child ul {
  justify-content: flex-end;
}

header > nav ul li {
  display: inline;
  position: relative;
  white-space: nowrap;
}

header > nav ul li.language-switch {
  display: flex;
  gap: 10px;
}

header > nav ul li input {
  font-size: var(--header-font-size);
  background: none;
  border: none;
  vertical-align: middle;
  text-transform: uppercase;
  width: clamp(150px, 10%, 250px);
  vertical-align: top;
}

header > nav ul li input::placeholder {
  opacity: 1;
  font-family: var(--font-family);
  text-transform: uppercase;
}

header > nav ul li input ~ .search-indicator {
  position: absolute;
  bottom: -5pt;

  height: 1px;
  width: 0;
  background: black;
  opacity: 0.2;

  transition: 0.2s all ease-in-out;
}

/* TODO: move to global input def */
header > nav ul li input:active,
header > nav ul li input:focus {
  outline: 0;
}

header > nav ul li input:active::placeholder,
header > nav ul li input:focus::placeholder {
  opacity: 0.3;
}

header > nav ul li input:active ~ .search-indicator,
header > nav ul li input:not(:placeholder-shown) ~ .search-indicator,
header > nav ul li input:focus ~ .search-indicator {
  opacity: 1;
  width: 100%;
}

header > nav ul li.cart-reservation-time {
  position: absolute;
  top: -150%;
}

header .mobile-nav .cart-reservation-time {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 32px;
}

/* Mobile Nav */
header > nav .mobile-nav { display: none; gap: 20px; }

header #menu-checkbox {
  position: absolute;
  opacity: 0;
}

header > nav .mobile-nav.burger-container .burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: clamp(20px, 10vw, 30px);
  aspect-ratio: 1/1;
  gap: 6px;
  padding: 10px 0;
}

header > nav .mobile-nav.burger-container .burger > div {
  width: 100%;
  height: 1px;
  background: black;
  transition: 0.2s all ease-in-out;
}

header > nav:last-of-type .mobile-nav {
  align-items: center;
  justify-content: flex-end;
}

header #menu-checkbox:checked ~ .burger {
  gap: 0;
}

header #menu-checkbox:checked ~ .burger > div:nth-child(1) {
  position: relative;
  transform: translateY(100%) rotateZ(45deg) scale(0.8);
}

header #menu-checkbox:checked ~ .burger > div:nth-child(2) {
  display: none;
}

header #menu-checkbox:checked ~ .burger > div:nth-child(3) {
  position: relative;
  transform: rotateZ(-45deg) scale(0.8);
}

header > nav:not(.mobile-nav) .shopping-cart {
  display: flex;
  gap: 5px;
}

header > nav .mobile-nav .shopping-cart {
  position: relative;
}

header > nav .mobile-nav .shopping-cart svg {
  width: 25px;
}

header > nav .mobile-nav .shopping-cart .indicator {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7pt;
  font-weight: 700;
  color: #ffffff;
  border-radius: 50%;
  background: #A89090;
  position: absolute;
  top: 0px;
  left: 9px;
}

header > nav .mobile-nav .language-switch {
  font-size: 14px;
}

/* Mobile Menu */
header > nav .mobile-menu {
  position: fixed;
  top: var(--header-height);
  background: var(--color-background);
  left: 0;
  padding: var(--header-padding-mobile);
  width: 100%;
  height: 100%;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: 100px;

  opacity: 0;
  transform: translateX(-50px);
  pointer-events: none;
  transition: 0.2s opacity ease-in-out, 0.2s transform ease-in-out;
}

header > nav .mobile-menu.visible {
  opacity: 1;
  transform: translateX(0);
  pointer-events: all;
}

@media screen and (min-width: 960px) {
  header > nav .mobile-menu {
    display: none;
  }
}

header > nav .mobile-menu input,
header > nav .mobile-menu ul {
  font-size: 16px;
}

header > nav .mobile-menu ul {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

@media screen and (max-width: 960px) {
  header {
    padding: var(--header-padding-mobile);
  }
  header > nav {
    flex: 0 0 30%;
  }
  header > nav > ul {
    display: none;
  }

  header .logo-wrapper {
    max-width: 80px;
  }

  header .logo-wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  header > nav .mobile-nav {
    display: flex;
  }
}

@media screen and (max-width: 400px) {
  header.reservation-timeout > nav {
    flex: auto;
  }
}
