@charset "UTF-8";
.search-by-json {
    width: 100%;
    /*position: relative;*/
}
.search-by-json .d-none {
    display: none !important;
}
.search-by-json .show-hide {
    transition: all .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 {
    position: relative;
    width: max-content;
}
.search-by-json .input input {
    width: 224px;
    height: 100%;
    padding: 18px 56px 18px 24px;
    min-height: 46px;
    background: #F1F5F9;
    border-radius: 80px;
    border-width: 2px;
    border: 2px solid #DFE9F2;
    color: #707070;
    font-size: 14px;
    font-family: var(--Medium);
}
.search-by-json .input input::placeholder {
    color: #707070;
}
.search-by-json .input .empty {
    font-size: 15px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 14px;
    cursor: pointer;
    color: #707070;
    transition: 0.4s ease;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    &:hover {
        color: var(--danger);
    }
}
.search-by-json .input .icon {
    position: absolute;
    top: 50%;
    right: 24px;
    cursor: pointer;
    color: #707070;
    font-size: 20px;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-by-json .input .icon img {
    width: 20px;
}
.search-by-json .body {
    position: absolute;
    z-index: 99999;
    width: 100%;
    background: #FFF;
    border-radius: 20px;
    text-align: center;
    padding: clamp(18px, 2vw, 32px);
    /* overflow-y: auto; */
    /* -webkit-overflow-scrolling: auto; */
    /* scrollbar-color: var(--color1) #C2D2E4; */
    /* scrollbar-width: thin !important; */
    min-height: 400px;
    margin-top: 26px;
    overflow: hidden;
    box-shadow: 0px 4px 32px 0px #0000002B;
}
/* width */
.search-by-json .body::-webkit-scrollbar {
    height: 4px !important;
    width: 3px !important;
}
/* Track */
.search-by-json .body::-webkit-scrollbar-track {
    background: #eae8e4 !important;
    height: 4px !important;
}
/* Handle */
.search-by-json .body::-webkit-scrollbar-thumb {
    background: rgb(123, 123, 123) !important;
    height: 4px !important;
}
/* Handle on hover */
.search-by-json .body::-webkit-scrollbar-thumb:hover {
    background: var(--color1);
}
.search-by-json .body .default p {
    text-align: center;
    padding-top: 10px;
    color: #8b8b8b;
}
.search-by-json .body .default img {
    border-radius: 32px;
}
.list-category ul,
.search-by-json .body .default .popular,
.search-by-json .body .is-search {
    text-align: right;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.search-by-json .body .default .popular {
    gap: clamp(16px, 2vw, 20px);
    margin-top: clamp(24px, 3vw, 32px);
}
.menu-popular ul {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding-right: 0;
}
.search-by-json .body .default .popular .title-popular {
    font-size: clamp(14px, 2vw, 16px);
    color: var(--black);
    font-family: var(--Medium);
}
.search-by-json .body .default .popular .menu-popular ul,
.search-by-json .body .is-search .list-category ul {
    margin: 10px 0;
}
/*.search-by-json .body .default .popular .menu-popular ul li,*/
/*.search-by-json .body .is-search .list-category ul li {*/
/*    border-radius: 5px;*/
/*    color: var(--color1);*/
/*    background: #ebfaf4;*/
/*    text-align: center;*/
/*    display: inline-block;*/
/*    margin: 0 2px;*/
/*}*/
.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 {
    color: var(--black);
    border-radius: 100px;
    min-width: 115px;
    padding: 14px 16px;
    background-color: #F4832329;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(14px, 2vw, 16px);
    transition: 0.4s;
    font-family: var(--SemiBold);
}
.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(--color2);
    color: white !important;
}
.search-by-json .body .not-found {
    color: #959595;
    font-size: 17px;
    margin-top: 50px;
}
.search-by-json .body .is-search {
    padding: 5px;
}
.search-by-json .body .is-search .category {
    margin-bottom: 25px;
}
.search-by-json .body .is-search .title-category {
    margin-bottom: 18px;
}
.search-by-json .body .is-search .title-category,
.search-by-json .body .is-search .title-posts,
.search-by-json .body .is-search .title-products {
    font-size: clamp(16px, 2vw, 18px);
    color: var(--black);
    font-family: var(--Medium);
}
.search-by-json .body .is-search .list-products .item {
    display: grid;
    grid-template-columns: 2fr 8fr 3fr;
    padding: 8px 12px;
    align-items: center;
    gap: 15px;
    border-radius: 12px;
    background: #EFF7FA;
}
.search-by-json .body .is-search .list-products .item:hover {
    color: var(--color1)
}
.search-by-json .body .is-search .list-products .item .img {
    display: flex;
    justify-content: center;
    align-items: center;
}
.search-by-json .body .is-search .list-products .item .img img {
    width: 75px;
}
.search-by-json .body .is-search .list-products .item .title {
    font-weight: bold;
    font-size: 14px;
}
.search-by-json .body .is-search .list-products .item .price {
    text-align: left;
}
.search-by-json .body .is-search .list-products .item .price .discount {
    display: inline;
    background: #d53343;
    color: #FFF;
    padding: 5px;
    border-radius: 5px;
    margin-left: 5px;
}
.search-by-json .body .is-search .list-products .item .woocommerce-Price-amount bdi {
    font-size: 14px;
}
.search-by-json .body .is-search .list-products .item del .woocommerce-Price-amount bdi {
    font-size: 12px;
}
.search-by-json .body .is-search .list-products .item .woocommerce-Price-currencySymbol {
    font-size: 13px;
    font-weight: normal;
}
.search-by-json .body .is-search .list-products .item del .woocommerce-Price-amount bdi .woocommerce-Price-currencySymbol {
    font-size: 10px;
    font-weight: normal;
}
.list-posts, .list-products {
    overflow: auto;
    max-height: 360px;
    -webkit-overflow-scrolling: auto;
    scrollbar-color: var(--color1) #fff;
    scrollbar-width: thin !important;
    padding-left: 12px;
    gap: 16px;
    display: grid;
}
.search-by-json .body .is-search {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    .categories {
        margin-bottom: clamp(32px, 3vw, 48px);
        grid-column: span 2;
        .list-categories {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
            padding-right: 0;
            a {
                color: var(--black);
                border-radius: 100px;
                min-width: 115px;
                padding: 14px 16px;
                background-color: #F4832329;
                display: flex;
                align-items: center;
                justify-content: center;
                font-size: clamp(14px, 2vw, 16px);
                transition: 0.4s;
                font-family: var(--SemiBold);
            }
        }
    }
    & .product-item {
        background: #F1F5F9;
        border-radius: 24px;
        padding: 12px;
        flex-direction: row;
        gap: clamp(12px, 2vw, 24px) !important;
    }
    & .post-item {
        display: flex;
        align-items: center;
        gap: clamp(16px, 2vw, 24px);
        & .img {
            min-width: 134px;
            height: 84px;
            overflow: hidden;
            border-radius: 18px;
            & img {
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
        div:nth-last-child(1) {
            display: flex;
            align-items: center;
            gap: 20px;
            i {
                color: #707070;
                font-size: 8px;
                line-height: 1;
            }
        }
        & .post-title {
            font-size: clamp(14px, 2vw, 16px);
            margin-bottom: 5px;
            font-family: var(--Medium);
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 2;
            overflow: hidden;
            line-height: 32px;
        }
    }
    & .product-item .img {
        min-width: 84px;
    }
    .title-row {
        display: flex;
        justify-content: space-between;
        margin-bottom: 18px;
        a {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 14px;
            color: var(--color2);
            font-family: var(--SemiBold);
            i {
                font-size: 9px;
            }
        }
    }
}
@media screen and (min-width: 768px) {
    .search-by-json .body {
        width: 100%;
    }
}
@media screen and (min-width: 992px) {
    .search-by-json .body {
        width: 175%;
    }
}
@media screen and (min-width: 1400px) {
    .search-by-json .body {
        width: 100%;
    }
}
@media screen and (max-width: 768px) {
    .search-by-json .body .is-search .title-category, .search-by-json .body .is-search .title-posts, .search-by-json .body .is-search .title-products {
        color: var(--white);
    }
    .search-by-json .body .is-search {
        grid-template-columns: repeat(1, 1fr);
    }
}
@media screen and (max-width: 576px) {
    .search-by-json .body .default .popular .title-popular {
        color: white;
    }
    .search-by-json .body {
        width: 160%;
        max-width: calc(100% - 30px);
        right: 50%;
        transform: translateX(50%);
        background: transparent;
        padding: 0;
    }
    .search-by-json .body .default p {
        font-size: 13px;
    }
    .search-by-json .body .default .popular .menu-popular ul li a, .search-by-json .body .is-search .list-category ul li a {
        font-size: 12px;
    }
}