@charset "UTF-8";

.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: var(--fs-26);
  padding: 4rem 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: 2rem 0;
  position: relative;
  padding: 0.5rem 1.2rem;
  width: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-neutral-50);
  border-radius: 100vw;
  transition: var(--anim);
  border: 1px solid transparent;
}

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

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

.header-search {
  flex: 1;
  max-width: 43rem;
}

.search-by-json .input input {
  width: 100%;
  text-align: right;
  border: none;

  background: var(--c-neutral-50);
  padding-right: 0.6rem;
  padding-left: 3.8rem;
}

.search-by-json .input input::placeholder {
  font-size: var(--fs-14);
  color: var(--c-blue-150);
}

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

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

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

.search-by-json .input .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  font-size: 2rem;
  line-height: 1;
  transition: var(--anim);
}

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

.search-by-json .input .icon img {
  width: 2rem;
}

.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: 0.4rem;
}

.search-by-json .body .is-search::-webkit-scrollbar-track {
  background: #f2f2f2;
  border-radius: 0.4rem;
}

.search-by-json .body .is-search::-webkit-scrollbar-thumb {
  background-color: var(--c2);
  border-radius: 0.4rem;
}

.search-by-json .body .default p {
  text-align: center;
  padding-top: 1rem;
  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: 2rem;
  font-size: var(--fs-16);
  font-weight: bold;
}

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

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

.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: 2.5rem;
  text-align: center;
  background: #fff;
  padding: .6rem 1rem;
  transition: 0.3s;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-14);
  border: 1px solid var(--c-neutral-100);
}

/* .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: 1.2rem;
  font-size: 1.1rem;
} */
.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(--c-primary);
  color: var(--c-primary) !important;
}

.search-by-json .body .default img {
  border-radius: 2.2rem;
}

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

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

.search-by-json .body .not-found {
  color: var(--c-neutral-600);
  background: var(--c-neutral-50);
  font-size: 1.7rem;
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.2rem;
}

.search-by-json .body .is-search {
  padding: 0.5rem;
  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 - var(--header-h));
}

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

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

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

.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: 1.2rem;
}

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

.list-brands .item {
  display: flex;
  flex-direction: column;
  width: 8rem;
  flex: none;
}

.list-brands .item .img {
  border: 1px solid var(--c-neutral-150);
  padding: 1.5rem;
  flex: none;
  border-radius: 1.8rem;
  position: relative;
}

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

.list-brands .item .title {
  text-align: center;
  font-size: var(--fs-14);
  margin-top: .5rem;
}

.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: 1rem;
  font-weight: bold;
  font-size: var(--fs-16);
  align-items: center;
  margin-bottom: 0.5rem;
}

.search-head-title .btn {
  font-size: var(--fs-14);
  height: 3.5rem;
  min-width: auto;
}

.search-head-title .btn.btn--primary i {
  width: 2.8rem;
  height: 2.8rem;
}

.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: 1.2rem;
  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: 1rem;
  text-align: center;
}

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

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

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

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

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

.search-close.icon-closeCircle {
  display: flex;
  margin-right: auto;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 3.1rem;
}

.mobile .search-by-json .body .is-search .posts {
  margin-top: 2rem;
}

.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: 1rem;
}

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

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

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

.list-posts .item .post-date::before {
  content: '\e909';
  font-family: var(--ff-icon);
  color: var(--c-secondary);
  font-size: 1.4rem;
}

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

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

.list-products .item .product-info {
  margin-top: auto;
  padding-top: .5rem;
}

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


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

.list-products .item .woocommerce-Price-amount {
  font-size: var(--fs-15);
}

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




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

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


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

.list-posts,
.list-products {
  margin-top: 2rem;
  display: grid;
  gap: 1.5rem;
}

/* .search-by-json .input.expanded {
    width: 21.5rem;
  } */
.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.3rem;
    margin: 0;
  } */
.desktop .search-by-json .body {
  position: absolute;
  width: 60rem;
  background: #fff;
  border-radius: 2.4rem;
  top: calc((100% + 2rem));
  padding: 1.2rem;
}

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

.desktop .search-close.icon-closeCircle {
  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: 1.5rem;
}

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