@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 {
}
.search-by-json .body {
  transition: 0.7s;
  transform: translateY(5rem);
  opacity: 0;
  transition: 0.3s;
}
.active.search-by-json .body {
  transform: translateY(0rem);
  opacity: 1;
  transition: 0.7s;
  transition-delay: 0.3s;
}
.search-by-json .fast-hide {
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
}

.search-by-json .fast-show {
  opacity: 1;
  visibility: visible;
  /* transform: translateY(0rem); */
}

.search-by-json .input {
  margin: 1rem 0 2rem;
  position: relative;
  padding: 0.7rem 1.2rem;
  width: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-primary-light-1);
  border-radius: var(--radius-xs);
  transition: 0.3s;
  border: 1px solid transparent;
  font-size: 1.8rem;
}
.search-by-json .input input::placeholder {
  color: var(--c-primary-text2) !important;
  font-size: 1.6rem !important;
}

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

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

.search-by-json .input input {
  width: 100%;
  text-align: right;
  border: none;
  padding-right: 1rem;
  padding-left: 3.8rem;
}

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

.search-by-json .input .empty {
  font-size: 1.2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0.5rem;
  cursor: pointer;
  color: var(--c-primary-light-6);
  line-height: 1;
  transition: 0.3s;
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  width: 4rem;
}

.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 {
  /* text-align: right; */
  margin-bottom: 2rem;
}
.search-by-json .body .title-category,
.search-by-json .body .default .popular .title-popular {
  font-size: 2rem;
  font-variation-settings: var(--fw-500);
  text-align: right;
}

.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 a:hover,
.search-by-json .body .is-search .list-category ul li a:hover {
  background-color: var(--c-primary) !important;
  color: var(--c-comb) !important;
}

.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: var(--radius-xs);
  text-align: center;
  background: #fff;
  padding: 0.6rem 1rem;
  transition: 0.3s;
  font-weight: bold;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  border: 1px solid var(--c-primary);
  color: var(--c-primary-text);
}
.menu-popular {
  margin-top: 0.5rem;
}
/* .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 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: #808080;
  background-color: #f6f5f6;
  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;
  overflow-y: auto;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  max-height: calc(var(--vh, 1vh) * 100 - 20rem);
}
@media (width>=1024px) {
  .search-by-json .body .is-search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.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(1, minmax(0, 1fr));
  gap: 1rem;
}

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

.list-brands {
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow-x: auto;
  gap: 4.5rem;
  row-gap: 2rem;
  margin-top: 2rem;
  /* flex-wrap: wrap; */
}

.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;
  flex: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.list-brands .item::before {
  content: "";
  width: 1.5px;
  height: 5rem;
  background-color: var(--c-primary-light-1);
  position: absolute;
  left: -2.5rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  border-radius: 1rem;
  box-shadow: 0 0 12px hsl(from var(--c-accent) h s l / 0.3);
}
.list-brands .item:last-child::before {
  display: none;
}
.list-brands .item .img {
  border: 1px solid var(--c-primary-light-1);
  padding: 0.6rem;
  flex: none;
  border-radius: 50%;
  position: relative;
  width: 6rem;
  height: 6rem;
}

.list-brands .item .title {
  text-align: center;
  font-size: 1.4rem;
  margin-top: 0.5rem;
  font-variation-settings: "wght" 550;
}
.list-brands .item .en-title {
  font-family: var(--ff-en);
  color: var(--c-primary-light-6);
  font-variation-settings: "wght" 550;
  font-size: 1.2rem;
}
.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-variation-settings: "wght" 500;
  font-size: 2rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.search-head-title .btn {
  font-size: 1.6rem;
  height: 3.5rem;
  min-width: auto;
  color: var(--c-secondary);
}
.search-head-title .btn:hover {
  color: var(--c-primary);
}
.search-head-title .btn::after {
  content: "\e906";
  font-family: var(--ff-icon);
  display: block;
  position: static;
  transform: none;
  font-size: 0.8rem;
  vertical-align: middle;
}
.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: var(--radius-xs);
  background: var(--c-white);
  border: 1px solid var(--c-primary-light-1);
  padding: 0.6rem;
}

.search-by-json .body .is-search .search-list .item .img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-base);
  aspect-ratio: 1 / 1;
  /* padding: 1rem; */
  background: radial-gradient(
    #fff 30%,
    hsl(from var(--c-primary) h 26% 80% / 0.3)
  );
}
.search-by-json .body .is-search .list-products .item .img img {
  padding: 1.5rem;
}
.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: 1.6rem;
  display: flex;
  flex-direction: column;
  font-variation-settings: "wght" 500;
}
.search-by-json .body .is-search .search-list .item .title p {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.search-by-json .body .is-search .search-list .item .entitle {
  font-family: var(--ff-en);
  font-size: 1.4rem;
  color: var(--c-primary-light-6);
  margin-top: 0.4rem;
}
.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;
  display: block;
}

.is-search .search-list a.item {
  width: 100%;
  display: flex;
  gap: 1rem;
  align-items: center;
  text-align: right;
}

.search-close.icon-close {
  display: flex;
  margin-right: auto;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-comb);
}

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

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

.list-posts .item .post-date {
  color: var(--c-primary-light-6);
  background: var(--c-primary-light-1);
  border-radius: 0.6rem;
  width: max-content;
  padding: 0.4rem 1rem 0.3rem;
  font-size: 1.4rem;
  font-variation-settings:
    "wght" 450,
    "FANU" 1;
  display: inline-flex;
  margin: 1rem 0;
}

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

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

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

.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 */
.search-by-json {
  background: hsl(345deg 6% 13% / 43%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  position: fixed;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: 0.7s;
  transition-delay: 0.3s;
}
.search-by-json.active {
  transition: 0.7s;
  transition-delay: 0s;
  opacity: 1 !important;
  pointer-events: auto;
  visibility: visible;
}

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

/* .search-by-json .input.expanded {
    width: 21.5rem;
  } */

/* .search-by-json .input {
    position: absolute;
    left: 0;
    width: 4.3rem;
    margin: 0;
  } */

/* mobile */
.search-by-json .body {
  position: fixed;
  inset: 3rem 0;
  z-index: 9999;
  background: #ffffff;
  padding: 1.5rem;
  max-width: 96%;
  margin: 0 auto;
  width: 88rem;
  /* max-height: calc(var(--vh, 1vh) * 100 - 6rem); */
  bottom: auto;
  /* min-height: 30rem; */
  border-radius: var(--radius-lg);
  overflow-y: auto;
}

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