@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;
}
.search-by-json .input input {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    background: transparent;
    padding: 8px 34px 8px 25px;
    color: #212121;
    font-size: 13px;
}
.search-by-json .input input::placeholder {
    color: #808080;
}
.search-by-json .input .empty {
    font-size: 15px;
    position: absolute;
    top: 20px;
    left: 48px;
    cursor: pointer;
    color: #820808;
    transition: 0.4s ease;
}
.search-by-json .input .empty:hover {
    color: #dc1111;
}
.search-by-json .input .icon {
    position: absolute;
    top: 9px;
    right: 12px;
    cursor: pointer;
    color: var(--color1);
    font-size: 17px;
}
.search-by-json .input .icon img {
    width: 20px;
}
.search-by-json .body {
    position: absolute;
    z-index: 99999;
    width: clamp(300px, 57vw, 872px);
    top: calc(100% + 8px);
    right: clamp(32px, 4vw, 64px);
    background: #FFF;
    text-align: center;
    padding: 32px;
    max-height: calc(100vh - 185px);
    overflow-y: auto;
    /* -webkit-overflow-scrolling: auto; */
    /* scrollbar-color: var(--color1) #C2D2E4; */
    /* scrollbar-width: thin !important; */
    min-height: 400px;
    margin-top: 0;
    box-shadow: 0px 4px 80px 0px #0000001A;
    border-radius: clamp(32px, 4vw, 48px);
}
/* 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 {
    margin-bottom: 24px;
    border-radius: 24px;
}
.search-by-json .body .default .popular {
    flex-direction: column;
    gap: 16px;
    align-items: start;
}
.menu-popular ul {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding-right: 0;
}
.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 {
    min-width: 140px;
    background-color: #F1F5F9;
    color: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: 0.4s;
    font-family: var(--Regular);
    line-height: 32px;
    background: #F7F6F2;
    border-radius: 12px;
    min-height: 60px;
    padding: 13px 12px;
    &:hover {
        background: var(--color1);
        color: white;
    }
}
.search-by-json .body .not-found {
    color: #959595;
    font-size: 17px;
    margin-block: 16px;
}
.search-by-json .title-popular,
.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: 22px;
    color: var(--black);
    font-family: var(--SemiBold);
    margin-bottom: 16px;
    text-align: right;
}
.search-by-json .body .is-search .title-products {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.search-by-json .body .is-search .title-products a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--black);
    font-family: var(--Regular);
    font-size: 14px;
    transition: 0.3s;
}
.search-by-json .body .is-search .title-products a:hover {
    color: var(--color1);
}
.search-by-json .body .is-search .title-products a i {
    font-size: 10px;
}
.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;
}
.search-by-json .body .is-search {
    display: flex;
    flex-direction: column;
    gap: clamp(32px, 4vw, 48px);
    .products,
    .category {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }
    .category ul {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        padding-right: 0;
    }
    .brand ul a {
        flex-direction: column;
        transition: 0.4s;
        min-height: 80px !important;
        padding: 7px 12px !important;
        font-size: 18px;
        .brand-title-en {
            color: var(--gray);
            font-size: 16px;
            font-family: var(--En);
            transition: 0.4s;
        }
        &:hover .brand-title-en {
            color: white;
        }
    }
    .products .list-products {
        overflow: auto;
        -webkit-overflow-scrolling: auto;
        scrollbar-color: var(--color1) #fff;
        scrollbar-width: thin !important;
        padding-left: 12px;
        gap: 16px 32px;
        display: grid;
        width: 100%;
        grid-template-columns: repeat(1, 1fr);
        max-height: max-content;
        .product-item-search-sale {
            .product-price {
                padding-right: 34px;
            }
        }
        .product-item-search {
            display: flex;
            align-items: center;
            gap: 16px;
            border-radius: 32px;
            padding: 16px;
            background: white;
            box-shadow: -4px -4px 50px 0px #00000008;
            min-height: 178px;
            & .img {
                max-width: clamp(104px, 2vw, 152px);
                max-height: clamp(104px, 2vw, 152px);
                overflow: hidden;
                background: white;
                & img {
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
            .product-body {
                width: auto;
                min-width: 0;
                flex: 1 1 auto;
                display: flex;
                flex-direction: column;
                align-items: flex-end;
                gap: 24px;
                & .product-title {
                    font-size: 16px;
                    font-family: var(--Medium);
                    display: -webkit-box;
                    -webkit-box-orient: vertical;
                    -webkit-line-clamp: 2;
                    overflow: hidden;
                    line-height: 24px;
                    text-align: right;
                    width: 100%;
                }
                .product-price-body {
                    display: flex;
                    align-items: center;
                    width: 100%;
                    justify-content: space-between;
                }
                .woocommerce-Price-amount:not(del .woocommerce-Price-amount) {
                    color: var(--black);
                    font-size: 16px;
                    text-decoration: none;
                    transition: 0.3s;
                    font-family: var(--SemiBold);
                    line-height: 18px;
                    .woocommerce-Price-currencySymbol {
                        font-size: 14px;
                        font-family: var(--SemiBold);
                        margin-right: 4px;
                    }
                }
                .product-price {
                    font-size: 14px;
                    position: relative;
                    display: flex;
                    flex-direction: column;
                    width: 100%;
                    justify-content: space-between;
                    text-align: right;
                    del {
                        color: var(--gray);
                        font-size: 14px;
                        font-family: var(--Regular);
                        line-height: 14px;
                        text-align: right;
                        .woocommerce-Price-currencySymbol {
                            font-size: inherit;
                            display: none;
                        }
                    }
                    ins {
                        color: var(--black);
                        font-size: 16px;
                        text-decoration: none;
                        transition: 0.3s;
                        font-family: var(--SemiBold);
                        line-height: 18px;
                        .woocommerce-Price-currencySymbol {
                            font-size: 14px;
                            font-family: var(--SemiBold);
                            margin-right: 4px;
                        }
                    }
                    .on-sale {
                        position: absolute;
                        top: 50%;
                        transform: translateY(-50%);
                        right: 0;
                        font-size: 10px;
                        display: flex;
                        align-items: center;
                        justify-content: center;
                        color: white;
                        background: var(--color2);
                        width: 30px;
                        height: 40px;
                        border-radius: 8px;
                        font-family: var(--En);
                    }
                }
            }
            .product-search-icon {
                width: 52px;
                height: 52px;
                flex: 0 0 52px;
                display: flex;
                align-items: center;
                justify-content: center;
                border-radius: 12px;
                background: #F7F6F2;
                color: var(--black);
                & i {
                    font-size: 22px;
                }
            }
        }
    }
}
@media only screen and (min-width: 992px) {
    .products .list-products {
        max-height: 372px !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media screen and (max-width: 768px) {
    .search-by-json .body {
        right: 0;
        width: 100%;
    }
    .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;
    }
    .search-by-json .input {
        input {
            min-width: clamp(150px, 28vw, 460px);
            background: #F7F6F2;
            border-radius: 12px;
            padding-inline: 16px;
            display: flex;
            min-height: 56px;
            align-items: center;
            gap: 8px;
        }
        & .icon {
            width: 24px;
            height: 24px;
            cursor: pointer;
            color: var(--black);
            padding: 0 !important;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 19px;
            left: 16px;
            right: auto;
            top: 50%;
            transform: translateY(-50%);
        }
    }
}
/*.search-pup-up .search-by-json .body {
    position: static;
    width: 100%;
    max-height: calc(100vh - 140px);
    min-height: 0;
    margin-top: 16px;
    transform: none;
    background: transparent;
    padding: 0;
}*/
#mask_search {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    /*background-color: #12121236;
    backdrop-filter: blur(12px);*/
    z-index: 11;
    display: none;
}
body.top_bar_popup #mask_search {
    height: calc(100% - 107px);
}
@media only screen and (max-width: 768px) {
}
