@charset "UTF-8";

:root {
  --header-h: 0px;
  --c-neutral-50: #f1f5f9;
  --c-neutral-100: #eaeaea;
  --c-neutral-150: #e2e2e2;
  --c-neutral-500: #9e9e9e;
  --c-neutral-600: #808080;
}
.search-by-json {
  flex-direction: column;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10002;
}

.search-box .woocommerce-error {
  color: var(--bs-danger);
  text-align: center;
}

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

a.search-banner:hover {
  opacity: 0.9;
}

.search-area {
  background-color: #f7f7f7;
}

.search-box > h3 {
  font-size: 26px;
  padding: 40px 0 0rem;
  text-align: center;
}

#search-by-json-form {
  /* 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;
}

.search-by-json .input {
  margin: 20px 0;
  position: relative;
  padding: 8.5px 12px;
  width: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-neutral-50);
  transition: 0.3s;
  border: 1px solid transparent;
}

.mobile .search-by-json .input {
  padding: 10px 12px;
  flex: none;
}

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

.header-search {
  flex: 1;
  max-width: 430px;
  line-height: 1.6;
}
.header-search i {
  pointer-events: none;
}
.search-by-json .input input {
  width: 100%;
  text-align: right;
  border: none;

  background: var(--c-neutral-50);
  padding-right: 6px;
  padding-left: 38px;
}

.search-by-json .input input::placeholder {
  font-size: 14px;
  opacity: 0.5;
}

.search-by-json .input.desktop {
  display: none;
}

.search-by-json .input .empty {
  font-size: 18px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 8px;
  cursor: pointer;
  color: var(--c-neutral-500);
  line-height: 1;
  transition: 0.3s;
  display: flex;
}

.search-by-json .input .empty:hover {
  opacity: 0.8;
  color: var(--color1);
}

.search-by-json .input .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color1);
  font-size: 20px;
  line-height: 1;
  transition: 0.3s;
}

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

.search-by-json .input .icon img {
  width: 20px;
}

.search-by-json .body {
  z-index: 99999;
  text-align: center;
}

.search-div.side .search-by-json .body {
  left: 0;
}

.search-by-json .body .is-search::-webkit-scrollbar {
  width: 4px;
}

.search-by-json .body .is-search::-webkit-scrollbar-track {
  background: #f2f2f2;
  /* border-radius: 4px; */
}

.search-by-json .body .is-search::-webkit-scrollbar-thumb {
  background-color: var(--color1);
  /* border-radius: 4px; */
}

.search-by-json .body .default p {
  text-align: center;
  padding-top: 10px;
  color: #8b8b8b;
}

.search-by-json .body ul.menu {
  padding: 0;
}

.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: 16px;
  font-variation-settings: "wght" 500;
  margin-bottom: 8px;
}

.search-by-json .body .default .popular .menu-popular ul,
.search-by-json .body .is-search .list-category ul {
  padding-right: 0;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 0;
}

.search-by-json .body .default .popular .menu-popular ul li,
.search-by-json .body .is-search .list-category ul li {
  display: inline-block;
  margin: 4px;
}

.search-by-json .body .default .popular .menu-popular ul li:first-child,
.search-by-json .body .is-search .list-category ul li:first-child {
  margin-right: 0;
}

.search-by-json .body .default .popular .menu-popular ul li:last-child,
.search-by-json .body .is-search .list-category ul li:last-child {
  margin-left: 0;
}

.search-by-json .body .default .popular .menu-popular ul li a,
.search-by-json .body .is-search .list-category ul li a {
  display: flex;
  /* border-radius: 25px; */
  text-align: center;
  background: #fff;
  padding: 6px 10px;
  transition: 0.3s;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 1px solid var(--c-neutral-100);
}
.search-by-json .body .default {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
/* .search-by-json .body .default .popular .menu-popular ul li a:after,
.search-by-json .body .is-search .list-category ul li a:after {
  content: "e910";
  font-family: "icomoon";
  color: #dad8d8;
  margin-right: 12px;
  font-size: 1.10px;
} */
.search-by-json .body .default .popular .menu-popular ul li a:hover,
.search-by-json .body .is-search .list-category ul li a:hover {
  border-color: var(--color1);
  color: var(--color1) !important;
}

.search-by-json .body .default img {
  /* border-radius: 2.2px; */
}

.search-by-json .body .default .search-banner img {
  width: 100%;
}

.search-by-json .body .default .placeholder {
  max-width: 130px;
  margin: 0 auto;
  opacity: 0.2;
}

.search-by-json .body .not-found {
  color: var(--c-neutral-600);
  background: var(--c-neutral-50);
  font-size: 17px;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  /* border-radius: 12px; */
}

.search-by-json .body .is-search {
  padding: 5px;
  display: grid;
  flex-wrap: wrap;
  flex: 1;
  overflow-y: auto;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.desktop .search-by-json .body .is-search {
  max-height: calc(100vh - 130px);
}

.search-by-json .body .is-search .products,
.search-by-json .body .is-search .posts {
  padding: 0 10px;
}

.search-by-json .body .is-search .brands,
.search-by-json .body .is-search .category {
  margin-bottom: 25px;
  flex: 0 0 100%;
  width: 100%;
  grid-column: 1/-1;
}

.list-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mobile .list-posts {
  grid-template-columns: repeat(1, 1fr);
}

.desktop .list-brands {
  flex-wrap: wrap;
}

.list-brands {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
  gap: 12px;
}

.mobile .list-brands {
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 1) 44px,
    rgba(0, 0, 0, 1) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    rgba(0, 0, 0, 1) 44px,
    rgba(0, 0, 0, 1) 96%,
    transparent 100%
  );
  padding-right: 5px;
}

.list-brands .item {
  display: flex;
  flex-direction: column;
  width: 80px;
  flex: none;
}

.list-brands .item .img {
  border: 1px solid var(--c-neutral-150);
  padding: 15px;
  flex: none;
  /* border-radius: 18px; */
  position: relative;
}

.list-brands .item .img::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 50%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  height: 4px;
  border-radius: 6px 6px 0 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--c-neutral-100);
}

.list-brands .item .title {
  text-align: center;
  font-size: 14px;
  margin-top: 6px;
}

.list-brands .item .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.search-by-json .body .is-search .search-list .item {
  transition: 0.3s;
}

.search-head-title {
  display: flex;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
  font-weight: bold;
  font-size: 16px;
  align-items: center;
  margin-bottom: 5px;
}

.search-head-title .btn {
  font-size: 14px;
  height: 36px;
  min-width: auto;
}

.search-head-title .btn.btn--primary i {
  width: 28px;
  height: 28px;
}

.search-by-json .body .is-search .search-list .item:hover {
  transition: 0.3s;
}

.search-by-json .body .is-search .search-list .item .img {
  overflow: hidden;
  /* border-radius: 12px; */
  background: var(--c-white);
}

.search-by-json .body .is-search .search-list .item .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.search-by-json .body .is-search .search-list .item .datail {
  padding-top: 10px;
  text-align: center;
}

.search-by-json .body .is-search .search-list .item .title {
  transition: 0.3s;
  font-size: 13px;
  display: flex;
  flex-direction: column;
}

.search-by-json .body .is-search .search-list .item .artist {
  opacity: 0.6;
  margin-top: 0.3px;
  font-size: 14px;
}

.search-by-json .body .is-search .search-list .item:hover .title {
  color: var(--color1);
  transition: 0.3s;
}

.is-search .search-list {
  width: 100%;
  margin-bottom: 15px;
}

.is-search .search-list a.item {
  width: 100%;
  display: flex;
  gap: 10px;
  box-shadow:
    0 0 20px #dddddd3b,
    2px -6px 36px #d2d2d25c;
  /* border-radius: 20px; */
  padding: 10px;
}

.search-close.icon-close {
  display: flex;
  margin-right: auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 22px;
}

.mobile .search-by-json .body .is-search .posts {
  margin-top: 20px;
}

.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 {
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.list-products .item {
  background: #fff;
}

.list-products .item .img {
  width: 28%;
  flex: none;
  padding: 6px;
}

.list-posts .item .img {
  width: 30%;
  flex: none;
}

.list-posts .item .post-date::before {
  content: "\e914";
  font-family: "icomoon";
  color: var(--color1);
  font-size: 14px;
}

.list-posts .item .post-date {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 10px;
  line-height: 1;
}

.list-posts .item .img img {
  object-fit: cover !important;
}

.list-products .item .product-info {
  margin-top: auto;
  padding-top: 6px;
}

.list-products .item .product-info .price .call {
  color: var(--color1);
}

.list-products .item .product-info .price .nostock {
  color: var(--c-danger);
}

.list-products .item .woocommerce-Price-amount {
  font-size: 15px;
}

.list-products .item .discount-percentage {
  min-width: auto;
  height: 25px;
  padding: 0 0.3px;
}

/* desktop */
.desktop .search-by-json .input {
  margin: 0rem;
}

.desktop .search-by-json.active {
  box-shadow: 0 0px 0rem 100vmax rgb(0 0 0 / 50%);
  /* clip-path: inset(-2.4px -100vmax -100vmax -100vmax); */
}

.desktop .list-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.list-posts,
.list-products {
  margin-top: 20px;
  display: grid;
  gap: 15px;
}

/* .search-by-json .input.expanded {
    width: 215px;
  } */
.desktop .icon-search.mobile {
  display: none;
}

.desktop .search-by-json {
  /* border-radius: 100vw; */
  flex-direction: row;
}

/* .search-by-json .input {
    position: absolute;
    left: 0;
    width: 4.30px;
    margin: 0;
  } */
.desktop .search-by-json .body {
  position: absolute;
  width: 600px;
  background: #fff;
  /* border-radius: 2.4px; */
  top: calc((100% + 20px));
  padding: 12px;
}

.desktop .search-div {
  width: 4.3px;
  position: relative;
}

.desktop .search-close.icon-close {
  display: none;
}

.desktop .search-by-json .input.desktop {
  display: flex;
}

.desktop .search-by-json .input.mobile {
  display: none;
}

/* mobile */
.mobile .search-by-json .body {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  padding: 15px;
  line-height: 1.6;
}

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