@charset "UTF-8";

.search-by-json {
  flex-direction: column;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10002;
}
.card.card-product-cat {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 10px 5px;
  border-radius: 10px;
  background: var(--c-primary);
  color: #fff;
  transition: 0.4s ease;
}
.card.card-product-cat:hover {
  background: var(--c-dark-secondary);
}
.mb-4 {
    margin-bottom: 3rem;
}
.product-card-wrap {
  margin-bottom: 3rem;
}
.mb-2 {
  margin-bottom: 2rem;
}
.search-box .woocommerce-error {
  color: var(--bs-danger);
  text-align: center;
}

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

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


.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.8rem 1.2rem;
  width: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--c-blue-50);
  border-radius: 1.2rem;
  transition: var(--anim);
  border: 1px solid var(--c-blue-100);
}

.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-blue-50);
  padding-right: 1.2rem;
  padding-left: 3.8rem;
}

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

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

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

.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: 2.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: 1rem;
  font-size: var(--fs-20);
}

.search-by-json .body .default .popular .menu-popular ul,
.search-by-json .body .is-search .list-category ul {
  margin: 1rem 0 2rem;
  padding-right: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

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

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

/* .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 {
  background: var(--c-primary);
  color: var(--c-white) !important;
}
.search-banner {
  display: block;
  margin-bottom: 40px;
}
.search-by-json .body .default img {
  border-radius: 16px;
}

.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(--danger);
  font-size: 1.7rem;
  min-height: 10rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-by-json .body .is-search {
  padding: 0.5rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 20px;
  max-height: calc(100vh - 22.7rem);
  overflow-y: auto;
}



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


.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-18);
  align-items: center;
  margin-bottom: 1.5rem;
}

.search-head-title .btn {
  font-size: var(--fs-12);
  color: var(--c-dark-secondary);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  width: unset;
  min-width: unset;
  height: unset;
}

.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: 14px;
  aspect-ratio: 1 / 1;
  background: #fff;
  width: 107px;
  flex: none;
}
.search-by-json .body .is-search .search-list .list-posts .item .img {
  aspect-ratio: 3 / 2;
  width: 142px;
  flex: none;
}
.search-by-json .body .is-search .search-list .item .img img {
  width: 100%;
}

.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 {
  font-weight: 500;
  transition: 0.3s;
  font-size: var(--fs-14);
  line-height: 24px;
  flex-grow: 1;
}

.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;
}
.product-info .price {
  margin-right: auto;
  font-size: var(--fs-13);
  white-space: nowrap;
}
.is-search .search-list {
  width: 100%;
  margin-bottom: 1.5rem;
}
.is-search .search-list a.item {
  width: 100%;
  border: 1px solid #E0DFE3;
  display: flex;
  border-radius: 12px;
  padding: 16px 12px;
  margin-bottom: 16px;
  align-items: center;
  gap: 8px;
  position: relative;
}
.is-search .search-list .list-products a.item {
  padding: 10px;
}
.is-search .search-list a.item .card-stock {
  position: absolute;
  top: 4px;
  right: 4px;
}
.is-search .search-list a.item .product-info {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  align-self: flex-end;
  align-items: center;
}
.is-search .search-list a.item .product-info del .woocommerce-Price-amount {
  font-size: var(--fs-12);

}
.is-search .search-list a.item .product-info .woocommerce-Price-amount {

  font-size: var(--fs-14);
}
.search-close.icon-close {
  display: flex;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  font-size: 2rem;
  color: var(--c-danger);
}

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


.list-products .item .img {
  aspect-ratio: 1/1;
}

.list-posts .item {
  border-radius: 1.2rem;
}

/* 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);
}


/* .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: 86rem;
  background: #fff;
  border-radius: 16px;
  top: calc((100% + 2rem));
  padding: 1.2rem;
}

.desktop .search-div {
  width: 4.3rem;
  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: 1.5rem;
}

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

@media screen and (max-width: 768px) {
 
  .search-by-json .body .default .popular .menu-popular ul li,
   .search-by-json .body .is-search .list-category ul li{
    min-width: 140px;
  }
  .search-by-json .body .is-search .category {
    grid-area: unset;
    margin-top: 1.5rem;
  }
  .search-by-json .body .is-search {

    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    gap: 20px;
    max-height: calc(100vh - 22.7rem);
    overflow-y: auto;
  }
  .is-search .search-list {
    margin-bottom: 0;
  }
  .search-by-json .body .is-search .search-list .list-posts .item .img {

    width: 120px;
   
  }
}