/* ===== Main header / menu ===== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 10;
  height: 160px;
  padding-top: 40px;
  background-color: #fff;
  transition: height .3s ease, padding .3s ease, box-shadow .3s ease;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo img {
  display: block;
  max-width: 260px;
  height: auto;
  transition: max-width .3s ease;
}

.menu-toggle {
  display: none;
}

.main-menu {
  display: flex;
  margin: 0;
  padding: 10px 10px 0 0;
  list-style: none;
}

.main-menu > li {
  position: relative;
  padding: 0 10px;
}

.main-menu a {
  position: relative;
  display: block;
  padding: 0 0 10px;
  font-family: 'Source Sans 3', 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 300;
  text-transform: uppercase;
  text-decoration: none;
  color: #00aeef;
  transition: color .3s;
}

.main-menu a.e-shop {
  color: #b90e40;
}

.main-menu a.e-shop:hover::after {
  border-bottom-color: #b90e40;
}

.main-menu a[aria-current="page"] {
  font-weight: bold;
}

.main-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 7px;
  width: 0;
  border-bottom: 1px solid transparent;
  transition: .5s ease;
}

.main-menu a:hover::after {
  width: 100%;
  border-bottom-color: #00aeef;
}

/* 1024–1199px: logo középen, menü alatta */
@media (min-width: 1024px) and (max-width: 1199px) {
  .main-header {
    padding-top: 25px;
  }
  .logo {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
  }
  .main-menu {
    flex: 0 0 100%;
    justify-content: space-between;
    margin-top: 20px;
  }
}

/* 640–1023px */
@media (min-width: 640px) and (max-width: 1023px) {
  .main-header {
    height: auto;
    min-height: 160px;
    padding: 25px 0 15px;
  }
  .logo {
    flex: 0 0 100%;
    display: flex;
    justify-content: center;
  }
  .main-menu {
    flex: 0 0 100%;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 20px;
    padding-right: 0;
  }
  .main-menu > li {
    padding: 0;
  }
  .main-menu a {
    font-size: 16px;
  }
}

/* Mobil: hamburger menü */
@media (max-width: 639px) {
  .main-header {
    height: 100px;
    padding-top: 0;
  }
  .main-nav {
    position: relative;
    height: 100%;
    padding: 0 5px;
  }
  .logo {
    width: 65%;
  }
  .logo img {
    max-width: 100%;
    max-height: 80px;
  }
  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 44px;
    padding: 0;
    border: 0;
    background: #fff;
    cursor: pointer;
  }
  .menu-toggle span {
    position: relative;
    width: 20px;
    height: 16px;
  }
  .menu-toggle span::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00aeef;
    box-shadow: 0 7px 0 #00aeef, 0 14px 0 #00aeef;
  }
  .main-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 0;
    background: #fff;
  }
  .main-menu.is-open {
    display: flex;
  }
  .main-menu > li {
    padding: 0;
  }
  .main-menu a {
    padding: 10px;
    text-align: center;
  }
  .main-menu a:hover {
    background-color: #00aeef;
    color: #fff;
  }
  .main-menu a::after {
    display: none;
  }
}

/* ===== Görgetés után: kisebb fejléc (640px fölött; mobilon már eleve kicsi) ===== */
@media (min-width: 640px) {
  .main-header.is-scrolled {
    height: min-content;
    min-height: 0;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  }
  .main-header.is-scrolled .main-nav {
    height: 100%;

  }


  .main-header.is-scrolled .main-menu a {
    padding-top: 10px;
  }
}


