@charset "UTF-8";

.search-by-json {
  width: 100%;
  position: relative;
}

.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;
}

.empty .icon-close {
  font-size: 0.75rem;
}

.search-wrap {
  width: 100%;
  transition: 0.4s ease;
  border-radius: 24px;
  position: relative;
  z-index: 999999;
  background: #fff;
}

.search-mask {
  position: fixed;
  z-index: 99999;
  background: #1424384a;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  backdrop-filter: blur(3px);
  pointer-events: auto;
}

.search-mask.visible {
  display: block;
}

.search-box {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.search-area .search-box {
  display: block;
}
.search-area .search-box .searcch-head {
  text-align: center;
  margin-bottom: 1rem;
  font-size: clamp(16px, 2vw, 20px);
  display: flex;
  justify-content: center;
  background: var(--bg_light);
  padding: 10px;
}
.search-by-json .input {
  position: relative;
  border-radius: 20px;
  transition: 0.4s ease;
  display: flex;
  align-items: center;
  padding-right: 60px;
  border: none;
  background-color: transparent;
  height: 58px;
}

.search-by-json .input.expanded {
  padding-right: 20px;
}

.top-title-search .search-btn-wrapper .button {
  font-size: 12px;
  padding: 2px 6px;
}

.search-by-json .input input {
  height: 100%;
  outline: none;
  border: none;
  background: transparent;
  padding: 0 6px 0 0;
  color: #212121;
  width: 100%;
  direction: ltr !important;
  text-align: right !important;
  unicode-bidi: plaintext !important;
}

.search-by-json .input:has(input:focus) {
  border-color: var(--color3);
}

.search-by-json .input input::placeholder {
  color: var(--gray);
  font-size: 0.875rem;
}

.search-by-json .input .empty {
  font-size: 14px;
  position: absolute;
  top: 50%;
  left: 15px;
  cursor: pointer;
  color: var(--color1);
  line-height: 1;
  bottom: 0;
  height: 18px;
  display: flex;
  justify-content: center;
  transform: translateY(-50%);
  align-items: center;
}

.search-by-json .input .icon {
  cursor: pointer;
  color: var(--color1);
  font-size: 20px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.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: #fff;
  /* border: 1px solid rgba(78, 54, 70, 0.36); */
  border-radius: 24px;
  margin-top: 24px;
  text-align: center;
  padding: 20px;
  margin-bottom: 10px;
  left: 0;
  max-height: 95vh;
  overflow: auto;
}

.search-by-json .body .is-search .list-category ul {
  overflow-x: auto;
  text-wrap: nowrap;
  -webkit-overflow-scrolling: auto;
  scrollbar-color: var(--color1) #c2d2e4;
  scrollbar-width: thin !important;
  padding-bottom: 15px;
}

.search-wrap .products-alls {
  gap: 8px;
  color: var(--color1);
  transition: 0.3s;
  font-size: 14px;
}

.search-wrap .products-alls:hover {
  color: var(--color2);
  gap: 12px;
}

.search-wrap .posts-alls {
  gap: 8px;
  color: var(--color2);
  transition: 0.3s;
  font-size: 14px;
}

.search-wrap .posts-alls:hover {
  color: var(--color1);
  gap: 12px;
}

.list-posts,
.list-products {
  overflow: auto;
  /* max-height: 250px; */
  /* padding-left: 15px; */
}

/* width */
.list-posts::-webkit-scrollbar,
.list-products::-webkit-scrollbar {
  height: 4px !important;
  width: 0.3rem !important;
}

/* Track */
.list-posts::-webkit-scrollbar-track,
.list-products::-webkit-scrollbar-track {
  background: #eae8e4 !important;
  height: 4px !important;
  border-radius: 0.5rem !important;
}

/* Handle */
.list-posts::-webkit-scrollbar-thumb,
.list-products::-webkit-scrollbar-thumb {
  background: var(--color1) !important;
  height: 4px !important;
  border-radius: 0.5rem !important;
}

/* Handle on hover */
.list-posts::-webkit-scrollbar-thumb:hover,
.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 {
  margin-top: 20px;
  font-size: 15px;
}

.search-by-json .body .default .popular .menu-popular ul {
  margin: 10px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px 10px;
}

.search-by-json .body .is-search .list-category ul li {
  margin: 2px 0.125rem;
  text-align: center;
  display: inline-block;
}

.search-by-json .body .default .popular .menu-popular ul li a,
.search-by-json .body .is-search .list-category ul li a {
  background: #e9eaeb;
  border-radius: 8px;
  font-size: 14px;
  color: var(--color1);
  padding: 8px 15px;
  transition: 0.4s ease;
}

.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-color: var(--color1);
  color: #fff;
}

.search-by-json .body .not-found {
  color: var(--color2);
  font-size: 16px;
  margin: 50px 0;
}

.search-by-json .body .is-search {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 10px 20px;
}

.search-by-json .body .is-search .category {
  flex: 0 0 100%;
  width: 100%;
  grid-area: 1 / 1 / 2 / 3;
}

.search-by-json .body .is-search .products {
  grid-area: 2 / 1 / 3 / 3;
}

.search-by-json .body .is-search .list-products {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.is-search .search-list {
  width: 100%;
  /* margin-bottom: 1.5rem; */
}

.search-by-json .body .is-search .title-posts,
.search-by-json .body .is-search .title-category,
.search-by-json .body .is-search .title-products {
  font-size: 18px;
  text-align: right;
  margin: 5px 0;
  color: #121212;
  display: flex;
  align-items: center;
}

.search-head-title .btn {
  color: #fff;
  margin-right: auto;
  font-size: 14px;
  font-family: var(--thin_font);
  height: 42px;
  padding: 6px 12px 3px;
}
.search-head-title .btn:focus {
  color: #fff;
}
.search-head-title .btn i {
  color: #fff;
  margin-bottom: 3px;
  transform: rotate(0);
}
.search-head-title .btn:hover {
  color: var(--color1);
}
.search-head-title .btn:hover i {
  color: var(--color1);
  transform: rotate(-45deg);
}
.search-by-json .body .is-search .item {
  border: 1px solid #e6e6e6;
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: repeat(2, 1fr);
  padding: 10px;
  align-items: center;
  gap: 0 15px;
  border-radius: 6px;
  min-height: 80px;
}

.item .product-item-link {
  margin-right: auto;
}

.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;
  border-radius: 5px;
  overflow: hidden;
  grid-area: 1 / 1 / 3 / 2;
}

.search-by-json .item-link {
  color: #121212;
  position: relative;
  text-align: left;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  margin-left: 10px;
}

.search-by-json .body .is-search .products .item:hover .item-link i {
  color: var(--color1);
}

.list-products .icon-service {
  color: var(--color2);
}

.search-by-json .body .is-search .item:hover .item-link i {
  color: var(--color2);
}

.search-by-json .item-link i {
  font-size: 1rem;
  transition: 0.3s;
}

.search-by-json .body .is-search .item .img img {
  width: 64px;
  aspect-ratio: 1 / 1.3;
}

.search-by-json .body .is-search .item .title {
  font-size: 14px;
  line-height: 1.5rem;
}

.list-products .product-info {
  display: flex;
  align-items: center;
  padding: 0;
}

.search-by-json .body .is-search .list-products .item .price {
  text-align: left;
  align-items: flex-end;
}

.search-by-json .body .is-search .list-products .item .price .discount {
  display: inline;
  background: #d53343;
  color: #fff;
  padding: 5px;
  border-radius: 5px;
  margin-left: 5px;
}

.search-by-json
  .body
  .is-search
  .list-products
  .item
  .woocommerce-Price-amount
  bdi {
  font-size: 14px;
}
.search-by-json
  .body
  .is-search
  .list-products
  .item
  .woocommerce-Price-amount
  bdi
  .woocommerce-Price-currencySymbol:after {
  font-size: 14px;
}
.search-by-json
  .body
  .is-search
  .list-products
  .item
  del
  .woocommerce-Price-amount
  bdi {
  font-size: 12px;
}

.search-by-json
  .body
  .is-search
  .list-products
  .item
  del
  .woocommerce-Price-amount
  bdi
  .woocommerce-Price-currencySymbol {
  font-size: 10px;
  font-weight: normal;
}

.item .readmore {
  position: unset;
  width: 40px;
  height: 40px;
  font-size: 21px;
  margin-right: auto;
}

.search-banner {
  border-radius: 12px;
  overflow: hidden;
  display:none;
}
.fast-show .search-banner{
     display:block; 
}
.search-banner img {
  width: 100%;
  border-radius: 12px;
}

.mobile .search-by-json .body .is-search .products,
.mobile .search-by-json .body .is-search .posts {
  flex: 0 0 100%;
  max-width: 100%;
}

.mobile .search-by-json .body {
  padding: 1rem;
}

.search-close {
  display: none;
}

.mobile .search-by-json {
  position: fixed;
  inset: 10px;
  z-index: 9999;
  padding: 0;
  margin-top: 64px;
  height: fit-content;
  max-height: 100%;
  width: calc(100% - 20px);
  display: none;
}

.mobile .is-search .list-posts .btn-3 {
  min-width: auto;
}

@media screen and (min-width: 768px) {
  .search-by-json .body {
    width: 780px;
    max-width: 71vw;
  }
}

@media screen and (min-width: 992px) {
  .popup-footer-search {
    width: 175%;
    display: none;
  }
}

@media screen and (max-width: 1299.9px) {
  .search-by-json .input {
    padding-right: 18px;
  }
}
@media screen and (max-width: 992px) {
  .search-by-json .body {
    max-height: 85vh;
  }

  #search-by-json-form-mobile {
    display: none;
  }

  #search-by-json-mobile {
    position: fixed;
    top: 2rem;
    right: 1rem;
    left: 1rem;
    margin: auto;
    z-index: 9999999;
    width: calc(100% - 2rem);
  }

  .search-by-json .input {
    height: 48px;
    padding-right: 10px;
  }
}

@media screen and (max-width: 767.99px) {
  .search-by-json .body .is-search {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 10px;
    max-height: calc(100vh - 13rem);
    overflow-y: auto;
    padding-left: 10px;
  }

  .search-by-json .body .is-search .category {
    grid-area: unset;
  }

  .search-by-json .body .is-search .products {
    grid-area: unset;
  }

  .search-by-json .body .is-search .list-products {
    grid-template-columns: 1fr;
  }

  .search-by-json .body {
    margin-top: 8px;
  }

  .search-by-json .input input {
    display: block;
  }

  .search-by-json .input {
    background: #fff;
    border: 1px solid transparent;
  }

  .search-by-json .input:focus {
    border-color: var(--color3);
  }

  .search-by-json .input .icon {
    color: var(--color1);
    background-color: transparent;
  }

  .search-by-json .body .is-search .list-products .item {
    display: grid;
    grid-template-columns: 2fr 6fr;
    grid-template-rows: repeat(2, auto);
    gap: 0 10px;
  }

  .search-by-json .body .is-search .list-products .item .img {
    grid-area: 1 / 1 / 3 / 2;
  }

  .search-by-json .body .is-search .list-products .item .title {
    grid-area: 1 / 2 / 2 / 3;
  }

  .search-by-json .body .is-search .list-products .item .price {
    grid-area: 2 / 2 / 3 / 3;
  }

  .search-close {
    display: flex;
    margin-left: auto;
    font-size: 1.2rem;
    color: var(--danger);
    margin-bottom: 1rem;
  }
}

@media screen and (max-width: 576px) {
}

@media screen and (max-width: 370px) {
  .search-by-json .input input {
    min-width: 258px;
  }
}

.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;
}
