@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;
}

form#search-by-json-form {
    transition: all .7s;
    position: relative;
    box-shadow: none;
}

form#search-by-json-form.active {
    box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 48%);
    -webkit-clip-path: inset(0 -100vmax -100vmax -100vmax);
    clip-path: inset(-100vmax -100vmax -100vmax);
    z-index: 1;
}

.search-by-json .input {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    justify-content: space-between;
    width: 100%;
}

.search-by-json .input input {
    outline: none;
    border: none;
    background: transparent;
    color: var(--bg_light);
    font-size: 12px;
    font-family: var(--medium_font), inherit;
}

.search-by-json .input:has(input:focus) {
    border-color: var(--color2);
}

.search-by-json .input input::placeholder {
    color: #ABADB6;
    font-size: 14px;
    font-family: inherit;
}

.search-by-json .input .empty {
    position: absolute;
    cursor: pointer;
    color: #820808;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-by-json .input .icon {
    cursor: pointer;
    color: #6B677A;
    font-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0.875rem;
    top: auto;
    bottom: 50%;
    transform: translateY(50%);
}

.search-by-json .input.active .icon {
    color: var(--color3);
}

.search-by-json .input .icon img {
    width: 20px;
}

.search-by-json .body {
    position: absolute;
    z-index: 99999;
    width: 100%;
    background: #FFF;
    margin-top: 5px;
    text-align: center;
    padding: 1rem;
    left: 0;
    max-height: 95vh;
    overflow: auto;
}

.search-by-json .body .is-search .list-category ul {
    overflow-x: auto;
    text-wrap: nowrap;
    -webkit-overflow-scrolling: auto;
    scrollbar-color: var(--color1) #C2D2E4;
    scrollbar-width: thin !important;
    padding-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
}

.list-services,
.list-posts,
.list-products {
    overflow: auto;
    max-height: 250px;
    padding-left: 15px;
}

/* 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: right;
}

.search-by-json .body .default .popular .title-popular {
    margin-top: 20px;
    font-size: 13.7px;
    color: var(--color1);
    font-family: var(--medium_font);
    line-height: 1.6;
}

.search-by-json .body .default .popular .menu-popular ul {
    margin: 10px 0 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.search-by-json .body .is-search .list-category 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 {
    background: transparent;
    font-size: 12px;
    color: #949494;
    padding: 6px 12px;
    border: 1px solid #BBBBBB;
    transition: 0.4s ease;
}

.search-by-json .body .default .popular .menu-popular ul li a:hover,
.search-by-json .body .is-search .list-category ul li a:hover {
    border: 1px solid var(--color1);
    color: var(--color1);
}

.search-by-json .body .not-found {
    color: #e40000;
    font-size: 16px;
    margin: 50px 0;
}

.search-by-json .body .is-search .category {
    margin-bottom: 10px;
}

.search-by-json .body .is-search .title-posts,
.search-by-json .body .is-search .title-category,
.search-by-json .body .is-search .title-products {
    font-size: 16px;
    text-align: right;
    margin: 10px 0;
    color: var(--color1);
    font-family: var(--medium_font);
}

.search-by-json .body .is-search .item {
    display: grid;
    grid-template-columns: 4fr 9fr;
    align-items: center;
    gap: 16px;
    margin: 10px 0;
}

.search-by-json .body .is-search .product-search-item-more,
.search-by-json .body .is-search .post-search-item-more {
    margin-top: 0.5rem;
    font-size: 11px;
    color: #6B677A;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    letter-spacing: 1.5px;
    transition: 0.3s;
}

.search-by-json .body .is-search .product-search-item-more::after,
.search-by-json .body .is-search .post-search-item-more::after {
    content: '';
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 5px 10px 5px 0;
    border-color: transparent #DAB066 transparent transparent;
    transform: rotate(0deg);
}

.search-by-json .body .is-search .item:hover {
    color: #DAB066;
}

.search-by-json .body .is-search .item .img {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.search-by-json .item-link {
    color: #fff;
    position: relative;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    background: var(--color1);
    width: 32px;
    height: 32px;
    margin-right: auto;
}

.search-by-json .body .is-search .item:hover .item-link i {
    color: var(--color2);
}

.search-by-json .item-link i {
    font-size: 20px;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
}

.search-by-json .body .is-search.item .img img {
    width: 64px;
}

.search-by-json .body .is-search .item .title {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
    font-weight: 600;
}

.search-banner {
    border-radius: 50px;
    overflow: hidden;
}

.search-banner img {
    width: 100%;
}

#search-by-json-form-mobile {
    display: none;
}

.search-by-json .body {
    width: 100%;
}

.search-by-json .body {
    max-height: 85vh
}

.popup-footer-search {
    position: fixed;
    top: 2rem;
    right: 0.5rem;
    left: 0.5rem;
    margin: auto;
    z-index: 9999999;
    width: calc(100% - 2rem);
}

.search-by-json .input input {
    display: block;
    text-align: left;
    padding: 0.5rem 0.875rem;
    border: 1px solid #EBEBEB;
    min-width: 305px;
    max-height: 2.5rem;
    align-items: center;
    justify-content: space-between;
}

.search-by-json .body .is-search .list-products .item {
    display: grid;
    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-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    grid-area: 1 / 2 / 3 / 3;
}

.search-by-json .body {
    width: 200%;
    max-width: 200%;
    right: 100%;
    transform: translateX(50%);
    margin-top: 0.5rem;
}

#search-by-json-mobile .input input {
    width: 100%;
	min-width:auto
}

#search-by-json-mobile .input {
    position: absolute;
    display: flex;
    align-items: center;
    width: 100%;
    background-color: #fff;
    padding: 1rem 0.5rem;
    margin-top: 1.5rem;
}

.header-search .icon-search {
    font-size: 1.5rem;
}

.search-by-json .body::-webkit-scrollbar {
    width: .5rem;
}

.search-results .search-box h3 {
    background: var(--color1);
    color: #fff;
    text-align: center;
    padding: 0.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: 1200px) {

    #fast-search-body-mobile .products,
    #fast-search-body-mobile .posts {
        flex: 0 0 48%;
        max-width: 50%;
    }

    #fast-search-body-mobile .category {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .search-by-json .body .is-search {
        display: flex;
        align-items: baseline;
        flex-wrap: wrap;
    }

    .search-by-json .input .empty {
        right: 11px;
    }
}

@media screen and (max-width: 1200px) {
    .search-by-json .input input {
        text-align: right;
        border: none;
    }

    .search-by-json .body {
        width: 100%;
        max-width: 100%;
        right: 50%;
        margin-top: 6rem;
    }

    .search-by-json .input .empty {
        left: 11px;
    }

    .search-by-json .body .is-search .item .title {
        font-size: 0.875rem;
    }
}