.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  align-items: center;
}
header {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  border-bottom: 1px solid black;
  height: 50px;
  width: 100%;
  background-color: var(--color-header);
  z-index: 10;
  box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.185);
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}
.header-logo {
  display: block;
  height: 49px;
  width: 49px;
}
.mobile-nav-toggle .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.main-nav {
  overflow: auto;
  border: 1px solid black;
  border-radius: 10px;
  position: fixed;
  top: 60px;
  right: 10px;
  height: auto;
  padding: 10px 0 10px 0;
  width: 70%;
  max-width: 300px;
  background-color: var(--color-mobile-transparent);
  color: var(--color-primary);
  transform: scale(0);
  transform-origin: right top;
  transition: transform 0.3s ease-in-out;
  max-height: calc(100dvh - 70px);
}
.main-nav.nav-open {
  transform: scale(100%);
  box-shadow: -5px 5px 5px 0 rgba(0, 0, 0, 0.2);
}
.nav-list {
  list-style: none;
  padding: 0.5rem 1rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.nav-link {
  position: relative;
  color: var(--color-primary);
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 10px;
  display: block;
  transition: color 0.2s ease;
}
.nav-link:hover {
  color: var(--color-hover);
}
#nav-objednavka {
  background-color: var(--color-accent);
  border-radius: 5px;
  transition: background-color 0.1s ease-in-out, transform 0.1s ease-in-out;
}
#nav-objednavka:hover {
  background-color: var(--color-accent-hover);
  transform: scale(1.01);
}
#nav-objednavka > .nav-link {
  color: var(--color-primary);
}
#nav-objednavka > .nav-link:hover::after {
  transform: scaleX(0);
}
.nav-item {
  width: 100%;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-hover);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s ease-in-out;
}
.nav-link:hover::after {
  transform: scaleX(1);
}
#titulek {
  display: flex;
  align-items: center;
  height: 49px;
  font-size: 1.3rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
.mobile-nav-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  background: transparent;
  border: none;
  width: 55px;
  height: 49px;
  padding: 13px;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-hamburger);
  border-radius: 2px;
  transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  transform-origin: center;
}
body:has(.main-nav.nav-open) .hamburger-line:nth-child(2) {
  opacity: 0;
}
body:has(.main-nav.nav-open) .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg); 
}
body:has(.main-nav.nav-open) .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}
@media (min-width: 768px) {
  header {
    display: flex;
    flex-direction: row;
    border-bottom: 1px solid black;
    height: 90px;
  }
  #titulek {
    display: none;
  }
  .header-logo {
    display: block;
    height: 89px;
    width: 89px;
  }
  .mobile-nav-toggle {
    display: none;
  }
  .main-nav {
    position: static;
    transform: none;
    height: auto;
    width: 100%;
    max-width: none;
    background: none;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
  }
  .nav-item {
    flex: 1;
    margin: 10px 5px;
  }
  .nav-list {
    flex-direction: row;
    padding: 0;
    gap: 0;
  }
  .nav-link {
    color: var(--color-primary);
    font-size: 1.3rem;
    height: 69px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
}
@media (prefers-color-scheme: dark) {
  #nav-objednavka > .nav-link {
    color: black !important;
  }
}