@charset "UTF-8";

#search-by-json-form {
  width: 100%;
  height: 100%;
  max-width: 25px;
  transition: 0.3s;
}

#search-by-json-form.active {
  max-width: 258px;
}

#search-by-json-form.active .input {
  background: rgba(241, 245, 249, 1);
}

#search-by-json-form.active .icon-search::before {
  color: #f15b2a;
}

.search-by-json .icon-search::before {
  color: #fff;
  transition: 0.3s;
}

#search-by-json-form .empty {
  display: none;
  line-height: 1;
}

#search-by-json-form.active .empty {
  display: block;
  cursor: pointer;
}

.search-by-json .icon-search {
  cursor: pointer;
}

.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 .default {
    pointer-events: none;
} */

.search-by-json .fast-hide {
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
}

/* Disable pointer events when popup is closed */
.popup-footer-search:not(.active) #search-by-json-form #fast-search-body,
.popup-footer-search:not(.active) #search-by-json-form #fast-search-body * {
  pointer-events: none !important;
}

.search-by-json .fast-show {
  opacity: 1;
  visibility: visible;
}

.search-by-json .input {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 11px;
  background: none;
  border-radius: 6px;
  max-width: 552px;
  width: 100%;
  transition: 0.3s;
  gap: 8px;
}

.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: var(--color1);
  font-size: 14px;
}

.search-by-json .input .empty {
  position: absolute;
  left: 11px;
  cursor: pointer;
  color: #820808;
  display: flex;
  align-items: center;
  justify-content: center;
}

.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: rgb(41 41 41 / 80%);
  backdrop-filter: blur(20px);
  margin-top: 25px;
  text-align: center;
  padding: 32px;
  left: 0;
  max-height: 95vh;
  min-width: 762px;
  overflow: auto;
  box-shadow: 0 0px 20px #00000033;
  border: 1px solid #dfdfdf36;
}

.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;
  flex-wrap: nowrap;
}

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

.search-wrap .list-posts a {
  display: flex;
  align-items: center;
}

.search-wrap .list-posts a .img {
  width: 105px;
  height: 64px;
  overflow: hidden;
  border-radius: 4px;
}

.search-post-content {
  width: 163px;
}

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

/* Track */
.list-services::-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 */
.list-services::-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 */
.list-services::-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;
  color: rgba(95, 104, 112, 1);
  border: 1.06px solid rgba(224, 179, 162, 1);
  background: rgba(249, 242, 241, 1);
  min-width: 168px;
  padding: 10px;
  display: block;
}

.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(224, 179, 162, 1);
  color: #fff;
}

.search-by-json .body .not-found {
  color: #e40000;
  font-size: 16px;
  margin: 50px 0;
}

.search-by-json .body .is-search {
  padding: 5px;
  row-gap: 20px;
}

/* .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;
  align-items: center;
  margin: 0 0 16px;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(224, 224, 224, 1);
  gap: 16px;
}

.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: 500;
  font-size: 16px;
  line-height: 100%;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.search-more,
.products-alls,
.posts-alls {
  font-size: 12px;
  color: #f15b2a;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition:
    color 0.3s ease,
    opacity 0.3s ease;
  cursor: pointer;
}

.search-more:hover,
.products-alls:hover,
.posts-alls:hover {
  color: #ff784d;
  opacity: 0.9;
}

.search-more i,
.search-more i::before,
.products-alls i,
.products-alls i::before,
.posts-alls i,
.posts-alls i::before {
  color: #f15b2a;
  transition: color 0.3s ease;
}

.search-more:hover i,
.search-more:hover i::before,
.products-alls:hover i,
.products-alls:hover i::before,
.posts-alls:hover i,
.posts-alls:hover i::before {
  color: #ff784d;
}

.search-by-json .body .is-search.item .img img {
  width: 64px;
}

.search-by-json .body .is-search .item .search-post-date {
  font-size: 12px;
  color: #676868;
  margin-bottom: 8px;
  display: block;
}

.search-by-json .body .is-search .item .title {
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  margin-bottom: 0;
  color: rgba(42, 45, 48, 1);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.search-by-json .body::before,
.search-by-json .body::after,
.search-by-json .body .corner-dots::before,
.search-by-json .body .corner-dots::after {
  content: "";
  width: 6px;
  height: 6px;
  background: #e1e8eb;
  border-radius: 50%;
  position: absolute;
  transition: 0.3s;
}

.search-by-json .body::before {
  top: 16px;
  left: 16px;
}

.search-by-json .body::after {
  top: 16px;
  right: 16px;
}

.search-by-json .body .corner-dots::before {
  bottom: 16px;
  left: 16px;
}

.search-by-json .body .corner-dots::after {
  bottom: 16px;
  right: 16px;
}

.search-banner {
  overflow: hidden;
}

.search-banner img {
  width: 100%;
}

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

.search-by-json .body {
  max-height: calc(100vh - 150px);
  width: 100%;
}

.popup-footer-search {
  position: fixed;
  margin: auto;
  z-index: 9999999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000000bd;
  right: 0;
  padding: 12px 17px;

  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.popup-footer-search.active {
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
}

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

.search-by-json .body .is-search .list-products .item {
  display: flex;
}

.search-by-json .body .is-search .list-products .item .img {
  width: 42%;
}

.search-by-json .body .is-search .list-products .item-content {
  width: 100%;
}

.search-by-json .body .is-search .list-products .button {
}

.item-content-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.search-by-json .body {
  width: 150%;
}

.default-search-title {
  font-weight: 500;
  font-size: 16px;
  text-align: right;
  color: #fff;
  margin-bottom: 24px;
  line-height: 100%;
}

.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;
  margin-bottom: 34px;
  /* justify-content: space-between; */
}

.fast-search-body .main-menu-ul li a {
  font-weight: 600;
  font-size: 12px;
  color: #121212;
  background: rgba(249, 242, 241, 1);
  min-width: 168px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 2px;
}

.fast-search-body .main-menu-ul li a:hover {
  background: #f15b2a;
  color: #fff;
}

.fast-search-body .main-menu-ul li a::after {
  content: "\e902";
  font-family: "icomoon" !important;
  transform: rotate(45deg);
}

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

.popup-footer-search-title {
  font-size: 20px;
  color: #fff;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.popup-footer-search-title .icon-plus {
  transform: rotate(45deg);
  background: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.popup-footer-search-title .icon-plus::before {
  color: #000;
}
@media screen and (max-width: 992px) {
  .popup-footer-search #search-by-json-form {
    max-width: 100%;
    background: none;
    border-radius: 2px;
  }

  .popup-footer-search .input {
    background: #fff;
    border-radius: 2px;
  }

  .popup-footer-search .search-by-json .icon-search::before {
    color: #f15b2a;
  }

  .popup-footer-search #search-by-json-form .empty {
    display: block;
  }

  .popup-footer-search .fast-search-body {
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    min-width: 100% !important;
    width: 100% !important;
    padding: 32px 16px !important;
    backdrop-filter: blur(20px);
    border: 1px solid #e1e8eb;
    border-radius: 6px;
  }

  .popup-footer-search .container {
    padding: 0;
  }

  .fast-search-body .main-menu-ul {
    flex-wrap: wrap;
    gap: 16px 12px;
  }

  .fast-search-body .main-menu-ul li a {
    min-width: 120px;
  }
}
