.main_header {
  width: 100%;
  padding: 0px 30px;
  /* background: rgba(255, 255, 255, 0.5); */
  /* margin-top: 25px; */

  .search-box {
    top: 20%;
    left: 50%;
    /* transform: translateX(-50%); */
    position: absolute;
    width: 60%;
    max-width: 500px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    padding: 20px;
    transition: transform 0.4s;

    @media (max-width: 768px) {
      left: 60%;
      width: 52%;
    }

    .autocomplete {
      input {
        border: none;
        outline: none;
        flex: 1;
        font-size: 16px;
        background: var(--secondary-color-alt7);
        width: 90%;
      }

      .autocomplete-items {
        padding: 20px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 10px;

        .autocomplete-item {
          width: 100%;

          a {
            border: 1px solid #d4d4d4;
            border-color: var(--text-color-primary-bg);
            color: var(--primary-color);
            border-radius: 20px;
            padding: 8px 12px;

            -webkit-box-orient: vertical;
            /* display: -webkit-box !important; */
            overflow: hidden;
            transition: all 0.3s ease-in-out;
            width: 100%;
            font-size: 16px;
            display: flex;
            align-items: center;
            flex-direction: row;
            justify-content: flex-start;
            gap: 10px;
            transition: all 0.4s ease-in-out;

            &:hover {
              background-color: var(--primary-color);
              color: var(--white-color);
            }

            .autocomplete-img {
              max-height: 80px;
              max-width: 80px;
              display: flex;
              align-items: center;
              margin: auto 0;
              justify-content: center;
              aspect-ratio: 1/1;

              img {
                width: 100%;
                height: 100%;
              }
            }

            .autocomplete-info {
              display: flex;
              align-items: flex-start;
              justify-content: space-between;
              flex-flow: column;
              height: 100%;
              gap: 12px;
            }
          }
        }

        .autocomplete-view-all {
          color: var(--secondary-color-alt1);
          filter: drop-shadow(0px 0px 12px var(--primary-color));

          a {
            color: var(--primary-color);
            transition: all 0.4s ease-in-out;

            &:hover {
              color: var(--secondary-color-alt1);
            }
          }
        }

        .autocomplete-no-results {
          flex-direction: column;
          display: flex;
          align-items: center;
          justify-content: center;
          gap: 10px;
          padding: 5px 20px;
          border-radius: 15px;
          width: 100%;
          height: 65px;
        }
      }
    }
  }

  .close-search {
    margin: 0 10px;
    border: none;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    background: var(--secondary-color);
    border-radius: 50%;
    text-align: center;
    padding: 0;
    height: 25px;
    width: 25px;
    color: red;
    box-shadow: 0 0 8px 0px red;
    transition: all 0.4s ease-in-out;
    position: absolute;
    top: 28px;
    left: 5px;
    right: auto;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      color: var(--black-color);
      box-shadow: 0 0 8px 0px var(--black-color);
    }
  }
}

.fixed-nav-bar .search-box {
  transform: translateX(-50%);
}

.circle-u {
  background: linear-gradient(
    28deg,
    var(--primary-color) 19.42%,
    var(--text-color-primary-bg) 81.15%
  );
  width: 136px;
  height: 136px;
  border-radius: 50%;
  position: absolute;
  top: -45px;
  right: -50px;
  z-index: 1;
}

.circle-b {
  background: linear-gradient(
    200deg,
    var(--primary-color) 19.42%,
    var(--text-color-primary-bg) 81.15%
  );
  width: 136px;
  height: 136px;
  border-radius: 50%;
  position: absolute;
  bottom: -45px;
  left: -50px;
  z-index: 1;
}

[dir="ltr"] {
  .close-search {
    left: auto;
    right: 5px;
  }
}

/* Header Buttons */
.main_header .acc_btn {
  border-radius: 50%;
  padding: 4px;
  border: none;
  background-color: var(--primary-color);
  filter: brightness(20%);
}

.search-toggle-btn:hover {
  transform: translateY(-5px);
}
.search-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  color: var(--header-text-color-primary-bg, var(--text-color-primary-bg));
  font-size: 18px;
  transition: all 0.4s ease-in-out;
}

.fixed-nav-bar .search-overlay {
  top: -20%;
  left: -15%;
  width: 130vw;
}

.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  /* padding-top: 15vh; */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
  width: 111vw;
  height: 105vh;
  transform: translateX(-10%);
  margin-top: -40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.search-toggle-btn {
  padding: 0;
}

.icon-search {
  font-size: 32px;
  color: var(--header-text-color-primary-bg, var(--text-color-primary-bg));
}

.btn-link:hover {
  text-decoration: none;
}

.search-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
    @media (min-width: 1187px) and (max-width: 1410px) {
    .search-box {
      left: 59% !important;
    }
  }

  @media (min-width: 1500px) {
    .search-box {
      left: 50% !important;
    }
  }
  @media (min-width: 1918px) {
    .search-box {
      left: 40% !important;
    }
  }


/* .search-overlay.active .search-box {
  transform: translateY(0);
} */
