nav {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  background-color: #ff6b6b;
  padding: 10px 40px;
}

.nav-mobile {
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

#logo {
  font-size: 22px;
  font-weight: bold;
  color: white;
  display: flex;
}

nav ul {
  display: flex;
  gap: 32px;
}

nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 18px;
}

nav ul li a span:first-child {
  font-weight: 600;
  color: #ffffff;
  transition: 0.3s ease-in;
}

nav ul li a span:last-child {
  font-size: 14px;
  color: #e0dfdf;
  margin-top: -2px;
}

nav ul li a span:first-child:hover {
  color: #7f5151;
}

#search-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

#search-btn div:first-child {
  font-weight: 600;
  color: #ffffff;
}

#search-btn div:last-child {
  font-size: 14px;
  color: #e0dfdf;
  margin-top: 3px;
}

#search-btn div:first-child:hover {
  color: #7f5151;
  transition: 0.3s ease-in;
}

#search-popup {
  display: none;
  position: fixed;
  background: rgba(0, 0, 0, 0.7);
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 100;
  justify-content: center;
  align-items: center;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  border-bottom: 1px solid #eee;
  color: black;
}

.search-item:hover {
  background-color: #cacaca;
}

.search-item img:hover {
  opacity: 0.8;
}

.search-item img {
  width: 150px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

#search-popup.active {
  display: flex;
}

#search-popup input {
  width: 700px;
  padding: 16px;
  font-size: 18px;
  border-radius: 8px;
  border: none;
  outline: none;
}

#search-results {
  position: absolute;
  top: 210px;
  background: white;
  width: 700px;
  border-radius: 10px;
  overflow: hidden;
  max-height: 400px;
  overflow-y: auto;
}

#close-search {
  position: absolute;
  bottom: 40%;
  background: none;
  border: none;
  color: white;
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 768px) {
  nav {
    padding-bottom: 0px;
  }
  .nav-menu {
    display: none;
  }

  #logo {
    display: none;
  }

  .nav-mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    flex-wrap: wrap;
  }

  .nav-mobile img {
    width: 100%;
    height: 100px;
  }

  #search-popup-mobile {
    display: flex;
    margin: 0;
    height: 50px;
    width: 100%;
    justify-content: center;
    align-items: center;
    position: relative;
  }

  #search-popup-mobile input {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
  }

  #search-results-mobile {
    position: absolute;
    top: 50px;
    z-index: 200;
    background: white;
    width: 100%;
    border-radius: 8px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
  }

  /* nav {
    flex-direction: column; 
    align-items: center;
  }

  #logo {
    align-self: center;
  }

  .nav-menu {
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  nav ul {
    display: grid;
    justify-content: center;
    flex-wrap: wrap;
    order: 1;
  }

  #search-btn {
    order: 2;
    align-self: center;
  } 
*/
}
