@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;
}

.empty .icon-close {
    font-size: 0.75rem;
}

.search-wrap {
    width: 100%;
}

.search-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-by-json .input {
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    background-color: #F5F5F5;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    margin-right: auto;
}

.search-page .search-area .search-box {
    flex-direction: column;
}

.search-page .search-area .search-box.search-posts {
    margin-top: 4rem !important;
}

.search-by-json .input input {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    background: transparent;
    padding: 0 1rem 0 2.5rem;
    color: #212121;
    font-size: 16px;
    min-width: 245px;
    min-height: 3rem;

}

.search-by-json .input:has(input:focus) {
    border-color: var(--color1);
}

.search-by-json .input input::placeholder {
    color: #D3D4D4;
    font-size: 13px;
    font-variation-settings: 'wght' 500;
}

.search-by-json .input .icon img {
    width: 20px;
}

.search-by-json .body {
    position: absolute;
    z-index: 99999;
    width: 100%;
    background: #FFF;
    border-radius: 1.25rem;
    margin-top: 5px;
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
    left: 0;
    right: 0;
    transform: translateX(90%);
    max-height: 95vh;
    overflow: auto;
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 48%);
    -webkit-clip-path: inset(0 -100vmax -100vmax -100vmax);
    clip-path: inset(0 -100vmax -100vmax -100vmax);
	top:2rem
}

.search-by-json .body .is-search .list-category ul,
.search-by-json .body .is-search .list-post-categories ul {
    overflow-x: auto;
    text-wrap: nowrap;
    -webkit-overflow-scrolling: auto;
    scrollbar-color: var(--color1) #C2D2E4;
    scrollbar-width: thin !important;
    padding-bottom: 24px;
    text-align: right
}

.products-alls {
    gap: 8px;
    color: var(--color1);
    transition: 0.3s;
    font-size: 15px;
}

.products-alls .icon-direction {
    font-size: 12px;
}

.search-wrap .products-alls:hover {
    color: var(--color2);
    gap: 12px;
}

.search-wrap .posts-alls {
    gap: 8px;
    color: var(--color2);
    transition: 0.3s;
    font-size: 14px;
}

.search-wrap .posts-alls:hover {
    color: var(--color1);
    gap: 12px;
}

.list-services,
.list-posts,
.list-products {
    overflow: auto;
    max-height: 70vh;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* width */
.list-services::-webkit-scrollbar,
.list-posts::-webkit-scrollbar,
.list-products::-webkit-scrollbar {
    height: 4px !important;
    width: .3rem !important;
}

/* Track */
.list-services::-webkit-scrollbar-track,
.list-posts::-webkit-scrollbar-track,
.list-products::-webkit-scrollbar-track {
    background: #eae8e4 !important;
    height: 4px !important;
    border-radius: 0.5rem !important;
}

/* Handle */
.list-services::-webkit-scrollbar-thumb,
.list-posts::-webkit-scrollbar-thumb,
.list-products::-webkit-scrollbar-thumb {
    background: var(--color1) !important;
    height: 4px !important;
    border-radius: 0.5rem !important;
}

/* Handle on hover */
.list-services::-webkit-scrollbar-thumb:hover,
.list-posts::-webkit-scrollbar-thumb:hover,
.list-products::-webkit-scrollbar-thumb:hover {
    background: var(--color2);
}

.search-by-json .body .default p {
    text-align: center;
    padding-top: 10px;
    color: #8b8b8b;
}

.search-by-json .body .default .popular,
.search-by-json .body .is-search {
    text-align: left;
}

.search-by-json .body .default .popular .title-popular {
    margin-top: 34px;
    font-size: 16px;
    text-align: right;
    font-variation-settings: 'wght' 600;
    color: #212121;
    line-height: 1.3;
}

.search-by-json .body .default .popular .menu-popular ul {
    margin: 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.search-by-json .body .default .popular .menu-popular ul li {
    flex: 0 0 calc(50% - 10px);
    max-width: calc(50% - 10px);
}

.search-by-json .body .is-search .list-category ul li,
.search-by-json .body .is-search .list-post-categories ul li {
    margin: 2px .125rem;
    text-align: center;
    display: inline-block;
}

.search-by-json .body .default .popular .menu-popular ul li a,
.search-by-json .body .is-search .list-category ul li a,
.search-by-json .body .is-search .list-post-categories ul li a {
    background: #F5F7FB;
    font-size: 14px;
    color: #212121;
    width: 100%;
    height: 41px;
    transition: 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.25rem;
    border-radius: 0.75rem;
}

.search-by-json .body .default .popular .menu-popular ul li a:hover,
.search-by-json .body .is-search .list-category ul li a:hover,
.search-by-json .body .is-search .list-post-categories ul li a:hover {
    background-color: var(--color1);
    color: #fff;
}

.search-by-json .body .not-found {
    color: var(--color2);
    font-size: 16px;
    margin: 50px 0;
}

.search-by-json .body .is-search {
    padding: 5px;
}

.search-by-json .body .is-search .category {
    margin-bottom: 10px;
}

.search-by-json .body .is-search .title-services,
.search-by-json .body .is-search .title-posts,
.search-by-json .body .is-search .title-category,
.search-by-json .body .is-search .title-post-categories,
.search-by-json .body .is-search .title-products {
    font-size: 18px;
    text-align: left;
    color: #121212;
    font-variation-settings: 'wght' 700;
    margin-bottom: 12px;
}

.search-by-json .body .is-search .list-posts .img img {
    border-radius: 12px;
}

.search-by-json .body .is-search .item {
    background-color: #fff;
    box-shadow: 0px 0px 48px 0px #2121210F;
    display: grid;
    grid-template-columns: 2fr 8fr;
    padding: 6px 16px 6px 8px;
    align-items: center;
    gap: 16px;
    min-height: 80px;
    border: 1px solid transparent;
    border-radius: 12px;
}

.search-by-json .body .is-search .item .icon-direction-right-top {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.25rem;
    color: var(--color1);
    transition: 0.3s;
    background-color: transparent;
    border-radius: 0.75rem;
        transform: scaleX(-1);
}

.search-by-json .body .is-search .item:hover .icon-direction-right-top {
    background-color: var(--color1);
    color: #fff;
}

.search-by-json .body .is-search .item:hover .title {
    color: var(--color1);
}

.search-by-json .body .is-search .item .img {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.search-by-json #fast-search-body-mobile.body .is-search .item .img {
    max-width: 60px;
    grid-row: 1;
    grid-column: 1;
}

#search-by-json-mobile .body .is-search .item {
    grid-template-columns: 1fr 4fr;
    gap: 10px;
    min-height: auto;
    width: 100%;
}

#search-by-json-mobile .body .is-search .search-content {
    grid-row: 1;
    grid-column: 2;
}

#search-by-json-mobile .body .is-search .search-content_inner {
    grid-row: 2;
    grid-column: 1 / 3;
}

.search-by-json .item-link {
    color: #121212;
    position: relative;
    text-align: left;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-left: 10px;
}

.search-by-json .body .is-search .products .item:hover .item-link i {
    color: var(--color1);
}

.search-content_inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-content_inner .size-content {
    display: flex;
    align-items: center;
    gap: 4px;
}

.search-content_inner .size-content .size {
    font-size: 14px;
}

.search-content_inner .size-content .size-count {
    color: #939896;
    font-size: 12px;
}

.search-by-json .body .is-search .item:hover .price i {
    color: var(--color2);
}

.search-by-json .price i {
    font-size: 1rem;
    transition: 0.3s;
    color: var(--color1);
}

.search-by-json .body .is-search.item .img img {
    width: 64px;
}

.search-by-json .body .is-search .item .title {
    font-size: 16px;
    line-height: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #121212;
    text-align: right;
    font-variation-settings: 'wght' 600;
    text-transform: capitalize;
    max-width: 95%;
}

.search-by-json .body .is-search .search-content .sku,
.search-by-json .body .is-search .search-content .category,
.search-by-json .body .is-search .search-content .post-category {
    color: #939896;
    font-size: 12px;
    line-height: 1;
    text-transform: capitalize;
    margin-bottom: 0;
}

.search-by-json .body .is-search .search-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-banner,
.search-banner-sec {
    overflow: hidden;
}

.search-banner-sec img {
    margin-top: 0.75rem;
    border-radius: 1.25rem;
}

.search-banner img,
.search-banner-sec img {
    width: 100%;
    border-radius: 0.75rem;
}

@media screen and (min-width: 768px) {
    .desktop .search-by-json .body {
        width: 424%;
        padding: 2rem;
    }

    .desktop .search-by-json .body .default .popular .menu-popular ul li {
        width: max-content;
        flex: auto;
    }

    .search-by-json .body {
        max-height: 86vh;
        margin-top: 2rem;
    }

    .search-by-json .body .is-search .item {
        width: calc(50% - 0.75rem);
    }
}

@media screen and (min-width: 992px) {
    .popup-footer-search {
        width: 175%;
        display: none;
    }


    .search-by-json .input.expanded {
        width: 100%;
        height: auto;
    }

    .search-by-json .input input {
        width: 0;
        opacity: 0;
        transition: all 0.4s ease;
        border: none;
        outline: none;
        background: transparent;
        padding: 0 0.5rem 0 0;
    }

    .search-by-json .input.expanded input {
        width: 100%;
        opacity: 1;
    }

    .search-by-json .input .icon {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        transition: all 0.4s ease;
        color: #9E9E9E;
        font-size: 1.125rem;
        cursor: pointer;
        font-size: 18px;
    }

    .search-by-json .input.expanded .icon {
        left: 0.75rem;
        transform: translateY(-50%);
        color: var(--color1);
    }

    .search-by-json .input .empty {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        opacity: 0;
        transition: all 0.4s ease;
        color: var(--danger);
    }

    .search-by-json .input.expanded .empty {
        opacity: 1;
    }

    .search-by-json .input.expanded .body {
        display: block;
    }
}

@media screen and (max-width: 992px) {
    .search-by-json .body {
        max-height: 70vh
    }

    #search-by-json-form-mobile {
        display: none;
    }

    #search-by-json-mobile {
        position: fixed;
        top: 2rem;
        right: 2rem;
        left: 2rem;
        margin: auto;
        z-index: 9999999;
        width: calc(100% - 4rem);
    }

    .search-by-json .input input {
        display: block;
    }

    .search-by-json .input {
        border: 1px solid var(--color1);
        background: #fff;
        width: 100%;
        top: 64px;
    }

    .search-by-json .input .icon {
        color: var(--color1);
        background-color: transparent;
        margin-left: 0.75rem;
    }

    .search-by-json .body .is-search .item .title {
        -webkit-line-clamp: 2;
    }

    .search-by-json .body .is-search .item {
        padding: 0.875rem;
    }

    .empty .icon-close {
        margin-left: 0.75rem;
        color: var(--danger);
    }
}

@media screen and (max-width: 768px) {
    .search-by-json .body .is-search .list-products .item {
        display: grid;
        grid-template-columns: 2fr 6fr;
        grid-template-rows: repeat(2, auto);
        gap: 0 10px;
    }

    .search-by-json .body .is-search .list-products .item .img {
        grid-area: 1 / 1 / 3 / 2;
    }

    .search-by-json .body .is-search .list-products .item .title {
        grid-area: 1 / 2 / 2 / 3;
    }

    .search-by-json .body .is-search .list-products .item .price {
        grid-area: 2 / 2 / 3 / 3;
    }

    .search-by-json .body .default .popular .menu-popular ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: auto;
        scrollbar-color: var(--color1) #C2D2E4;
        scrollbar-width: thin !important;
        padding-bottom: 0.875rem;
        text-align: right;
    }

    .search-by-json .body .is-search .item .icon-direction-right-top {
        display: none;
    }
}

@media screen and (max-width: 576px) {
    .search-by-json .body {
        width: 160%;
        max-width: 100%;
        right: -50%;
        transform: translateX(-50%);
        top: 7rem;
        box-shadow: none;
        border-radius: 0.75rem;
    }

}

@media screen and (max-width: 370px) {
    .search-by-json .input input {
        min-width: 258px;
    }

}

.search-by-json .body::-webkit-scrollbar {
    width: .5rem;
}

/* Track */
.search-by-json .body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 0.5rem;
}

/* Handle */
.search-by-json .body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 0.5rem;
}

/* Handle on hover */
.search-by-json .body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

@media screen and (min-width: 1400px) {
    .search-by-json .body {
        transform: translateX(95%);
    }
}