@charset "UTF-8";

#search-by-json-form {
  width: 100%;
  max-width: 269px;
  display: flex;
  align-items: center;
  margin-right: 140px;
  background: rgba(255, 255, 255, 0.2);
  height: max-content;
  padding: 7px 12px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
}

.search-by-json {
  width: 100%;
}

.search-by-json .d-none {
  display: none !important;
}

.search-by-json .show-hide {
  transition: all 0.7s;
}

.search-by-json .fast-hide {
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
}

.search-by-json .fast-show {
  opacity: 1;
  visibility: visible;
}

.search-by-json .input {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.search-by-json .input input {
  outline: none;
  border: none;
  background: transparent;
  color: var(--color1);
  font-size: 13px;
  font-family: var(--main_font);
  width: 100%;
}

.search-by-json .input:has(input:focus) {
  border-color: var(--color2);
}

.search-by-json .input input::placeholder {
  color: #6e7780;
  font-size: 14px;
}

.search-by-json .input .empty {
  position: absolute;
  left: 0;
  cursor: pointer;
  color: #820808;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size:14px;
}

.search-by-json .input .icon {
  cursor: pointer;
  color: var(--color1);
  font-size: 21px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-left: 6px;
}

.search-by-json .input.active .icon {
  color: var(--color3);
}

.search-by-json .input .icon img {
  width: 20px;
}

.search-by-json .body {
  position: absolute;
  z-index: 99999;
  width: 100%;
  background: rgba(248, 250, 252, 1);
  margin: auto;
  text-align: center;
  padding: 24px 24px 40px;
  right: 40px;
  left: 40px;
  max-height: 95vh;
  overflow: auto;
  top: 100%;
  box-shadow: 0 0 0 100vmax rgb(13 56 83 / 80%);
    -webkit-clip-path: inset(0 -100vmax -100vmax -100vmax);
    clip-path: inset(0 -100vmax -100vmax -100vmax);
}
html.mobile .search-by-json .body {
	box-shadow: none;
    -webkit-clip-path: unset;
    clip-path: unset;
}
.search-by-json .body .is-search .list-category ul {
  overflow-x: auto;
  text-wrap: nowrap;
  -webkit-overflow-scrolling: auto;
  gap: 16px;
  display: flex;
  padding-bottom: 4px;
}

.search-wrap .list-services,
.search-wrap .list-posts,
.search-wrap .list-products {
  overflow: auto;
  max-height: 250px;
}
.search-wrap .has-vertical-scroll {
     padding-left: 15px;
}
.side-search .search-wrap .list-products{
	margin-bottom:2rem;
}
.search-wrap .list-posts a {
  display: flex;
  align-items: center;
  & .search-post-content{
	   display: flex;
       align-items: center;
	   justify-content:space-between;
	   width: 100%;
	   & i{
		    flex: 0 0 20px;
			text-align: left;
			line-height: 1;
	   }
  }
}

/* .search-wrap .list-posts a .img,
.search-wrap .list-posts a .img img {
  max-width: 100px;
} */
.search-by-json .body .is-search .list-posts .item .img{
	aspect-ratio: 16 / 11;
}
/* width */
.search-by-json .body::-webkit-scrollbar,
.list-posts::-webkit-scrollbar,
.search-wrap .list-products::-webkit-scrollbar {
  height: 4px !important;
  width: 0.3rem !important;
}

/* Track */
.search-by-json .body::-webkit-scrollbar-track,
.list-posts::-webkit-scrollbar-track,
.search-wrap .list-products::-webkit-scrollbar-track {
  background: #eae8e4 !important;
  height: 4px !important;
  border-radius: 0.5rem !important;
}

/* Handle */
.search-by-json .body::-webkit-scrollbar-thumb,
.list-posts::-webkit-scrollbar-thumb,
.search-wrap .list-products::-webkit-scrollbar-thumb {
  background: var(--color1) !important;
  height: 4px !important;
  border-radius: 0.5rem !important;
}

/* Handle on hover */
.search-by-json .body::-webkit-scrollbar-thumb:hover,
.list-posts::-webkit-scrollbar-thumb:hover,
.search-wrap .list-products::-webkit-scrollbar-thumb:hover {
  background: var(--color2);
}

.search-by-json .body .default p {
  text-align: center;
  padding-top: 10px;
  color: #8b8b8b;
}

.search-by-json .body .default .popular,
.search-by-json .body .is-search {
  text-align: right;
}

.search-by-json .body .default .popular .title-popular {
  font-weight: bold;
  font-size: 15px;
  margin-bottom: 1rem;
}

.search-by-json .body .default .popular .menu-popular ul {
  margin: 10px 0 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 10px;
}

.search-by-json .body .is-search .list-category ul li {
  text-align: center;
  display: inline-block;
}

.search-by-json .body .default .popular .menu-popular ul li {
  flex: 0 0 calc(50% - 0.5rem);
  max-width: calc(50% - 0.5rem);
}

.search-by-json .body .default .popular .menu-popular ul li a,
.search-by-json .body .is-search .list-category ul li a {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: rgba(42, 45, 48, 1);
  padding: 12px 20px;
  border: 1px solid rgba(188, 204, 220, 1);
  border-radius: 8px;
  background: #fff;
  transition: 0.3s;
  display: block;
  text-align: center;
}

.search-by-json .body .default .popular .menu-popular ul li a:hover,
.search-by-json .body .is-search .list-category ul li a:hover {
  background: rgba(18, 46, 89, 1);
  color: #fff;
}

.search-by-json .body .not-found {
  color: #e40000;
  font-size: 16px;
  margin: 50px 0;
}

.search-by-json .body .is-search .category {
  margin-bottom: 2rem;
}

.search-by-json .body .is-search .title-category {
  font-size: 15px;
  text-align: right;
  margin: 5px 0;
  color: #151515;
  font-weight: bold;
}

.search-by-json .body .is-search .item {
  padding: 12px;
  margin: 0 0 16px;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(224, 224, 224, 1);
  gap: 16px;
    &:hover {
    a,
    i:before {
      color: #122E59;
    }
  }
}

.search-by-json .body .is-search .item:hover {
  border-color: rgb(1 116 190 / 16%);
  color: var(--color2);
}

.search-by-json .body .is-search .item .img {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.search-by-json .item-link {
  color: #fff;
  position: relative;
  text-align: left;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  background: rgba(239, 235, 225, 1);
  width: 23px;
  height: 23px;
  border-radius: 50%;
}

.search-by-json .body .is-search .item:hover .item-link i {
  color: var(--color2);
}

.search-by-json .item-link i {
  color: rgba(140, 111, 129, 1);
  font-size: 9px;
  transform: rotate(-40deg);
  transition: 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  line-height: 1;
}

.top-title-search {
  margin-bottom: 16px;
}

.top-title-search > div {
    font-weight: 600;
    font-size: 20px;
    line-height: 100%;
    color: #212121;
}

.search-by-json .body .is-search.item .img img {
  width: 64px;
}

.search-by-json .body .is-search .item .title {
  font-weight: 600;
  font-size: clamp(14px,2vw,16px);
  line-height: normal;
  color: #2a2d30;
  overflow: hidden;
}

.search-banner {
  overflow: hidden;
  margin-bottom: 24px;
}

.search-banner img {
  width: 100%;
  transition: 0.3s;
}

.search-banner a:hover img {
  transform: scale(1.1);
}

#search-by-json-form-mobile {
  display: none;
}

.popup-footer-search {
  position: fixed;
  top: 2rem;
  right: 0.5rem;
  left: 0.5rem;
  margin: auto;
  z-index: 9999999;
  width: calc(100% - 2rem);
}

.search-by-json .input input {
  display: block;
}

.search-by-json .body .is-search .list-products .item {
  display: flex;
   &:hover {
    a,
    i:before {
      color: #122E59;
    }
  }
}

.list-products img {
  width: 72px;
  object-fit: cover;
}

.search-by-json .body .is-search .list-products .item .img {
    width: 72px;
    flex: 0 0 72px;
}

.search-by-json .body .is-search .list-products .item-content {
     width: 100%;
     display: flex;
    align-items: center;
    justify-content: space-between;
	
}
.item-content-footer {
    display: flex;
    align-items: center;
    justify-content: end;
    flex: 0 0 20px;
    text-align: left;
    line-height: 1;
}

.search-by-json .body {
  max-width: 1064px;
  width: calc(100% - 80px);
}

.default-search-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 100%;
  text-align: right;
  margin-bottom: 16px;
  color: #212121;
}

.fast-search-body .main-menu-ul {
  overflow-x: auto;
  text-wrap: nowrap;
  -webkit-overflow-scrolling: auto;
  gap: 16px;
  display: flex;
  padding-bottom: 4px;
  align-items: center;
}

.fast-search-body .main-menu-ul li a {
  font-weight: 600;
  font-size: 16px;
  line-height: 20px;
  color: rgba(42, 45, 48, 1);
  padding: 12px 20px;
  border: 1px solid rgba(188, 204, 220, 1);
  border-radius: 8px;
  background: #fff;
  transition: 0.3s;
  display: block;
  text-align: center;
}

.fast-search-body .main-menu-ul li a:hover {
  background: rgba(18, 46, 89, 1);
  color: #fff;
}

.side-search #search-by-json-form {
  max-width: 100%;
  position: relative;
}

.side-search .search-by-json .body {
  width: 100%;
  max-width: 100%;
  top: 0;
  margin-top: 47px;
    max-height: 760px;
}

.side-search .search-by-json {
  position: unset;
}

.side-search .fast-search-body .main-menu-ul {
  flex-wrap: wrap;
}
.side-search .body .is-search .list-category ul {
  flex-wrap: wrap;
}

@media screen and (max-width: 576px) {
  #search-by-json-mobile .input input {
    width: 100%;
    max-width: 100%;
  }

  #search-by-json-mobile .input {
    position: absolute;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #fff;
    padding: 0.5rem;
    margin-top: 1.5rem;
  }

  .header-search .icon-search {
    font-size: 1.5rem;
  }
}

.search-by-json .body::-webkit-scrollbar {
  width: 0.5rem;
}

/* Track */
.search-by-json .body::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 0.5rem;
}

/* Handle */
.search-by-json .body::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 0.5rem;
}

/* Handle on hover */
.search-by-json .body::-webkit-scrollbar-thumb:hover {
  background: #555;
}

@media screen and (min-width: 768px) {
  .search-by-json .body .default .popular .menu-popular ul li {
    flex: auto;
    max-width: fit-content;
    min-width: 120px;
  }
}

@media screen and (min-width: 992px) {
  #fast-search-body-mobile .products,
  #fast-search-body-mobile .posts {
    flex: 0 0 48%;
    max-width: 50%;
  }

  #fast-search-body-mobile .category {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .search-by-json .body .is-search {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
  }
}

@media (max-width: 991px) {
  .side-search #search-by-json-form {
    margin: 0;
    background: #ffffff;
  }
  .side-search .search-by-json .body {
    right: 0;
    left: 0;
  }
}
