header {
  width: 100%;
  color: #fff;
  height: 90px;
  margin-bottom: 80px;
}

header .header-top {
  width: 100%;
  height: 85px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  background-color: #111;
  color: #fff;
}

header .logo {
  width: 60%;
}

header .logo img {
  width: 120px;
  height: 80px;
}

header .main-link {
  width: 40%;
  height: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
}

header .main-link ul {
  display: flex;
}

header .main-link ul li {
  width: 220px;
  margin: 10px;
  padding: 10px 20px;
  text-align: center;
  border: 2px solid #fdd52d;
  border-radius: 5px;
  cursor: pointer;
  align-content: center;
  transition: all 0.3s ease-in-out;
}

header .header-bottom {
  width: 100%;
  height: 65px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 2px solid #fed52e;
  box-shadow: 5px 5px 10px 3px #ccc;
  background-color: #fff;
  color: #202020;
}

header form {
  width: 25%;
  height: 45px;
  display: flex;
  gap: 5px;
  border-radius: 5px;
  overflow: hidden;
}

#search {
  width: 70%;
  padding: 8px;
  border: 2px solid #858585;
  border-radius: 5px;
  color: #202020;
}

header form input[type="text"]:focus {
  outline: none;
}

header form input[type="submit"] {
  width: 30%;
  height: 100%;
  background-color: #202020;
  color: #fff;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

header nav {
  width: 70%;
  height: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
}

header nav ul {
  display: flex;
  gap: 60px;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #202020;
}

header nav ul li a {
  color: #202020;
  text-decoration: none;
  transition: color 0.3s ease;
}

header nav ul li a:hover {
  color: #fed52e;
}

header .mobile-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 19px;
  cursor: pointer;
  margin-left: 15px;
}

.mobile-hamburger .bar {
  width: 100%;
  height: 3px;
  background-color: #fdd52d;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.main-nav{
  z-index: 1000;
}
.main-nav form {
  width: 0;
  opacity: 0;
}

#applyFilters,
#apply {
  background: #202020;
  transition: all 0.3s linear;
}

#applyFilters:hover,
#apply:hover {
  background-color: #414141;
}

@media (max-width: 1025px) {
  header nav ul {
    gap: 40px;
  }

  header form {
    width: 35%;
  }

  header {
    width: 100%;
    color: #fff;
    height: 90px;
    margin-bottom: 10px;
  }

}

@media (max-width: 825px) {
  header .header-bottom {
    height: 0;
    border: none;
    box-shadow: none;
  }

  header .main-nav form {
    width: 90%;
    opacity: 1;
    color: #fff;
    border: 1px solid #111;
  }

  header .main-nav form input[type="text"],
  header .main-nav form input[type="submit"] {
    border-radius: 0;
  }

  header form {
    display: none;
  }

  header .main-link {
    display: none;
  }

  /* منوی موبایل */
  header nav {
    position: absolute;
    top: 75px;
    right: 0;
    width: 100%;
    height: 390px;
    flex-direction: column;
    align-items: center;
    background-color: #111;
    display: flex;
    overflow: hidden;
    max-height: 0;
    padding: 0;
    transition: max-height 0.5s ease, padding 0.5s ease;
  }

  header nav ul {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  header nav ul li a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 15px 0;
    font-size: 16px;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-top: 1px solid #fdd52d;
  }

  header nav form {
    width: 90%;
    display: flex;
    margin-bottom: 10px;
  }

  header nav form input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border: none;
    border-radius: 5px 0 0 5px;
  }

  header nav form input[type="submit"] {
    padding: 8px 15px;
    background-color: #202020;
    color: #fff;
    border: none;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
  }

  header .mobile-hamburger {
    display: flex;
  }

  header.nav-open nav {
    display: flex;
    padding: 10px 0;
    max-height: 500px;
  }

}