@charset "UTF-8";

.search-wrap {
    position: relative;
    width: 100%;
    z-index: 100;
}

.search-desktop-mask {
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(66, 66, 66, 0.2);
    backdrop-filter: blur(12px);
    display: none;
}

.search-by-json {
    width: 100%;
    position: relative;
    z-index: 2;
}

.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-box {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.search-by-json .input {
    position: relative;
    border-radius: 60px;
    transition: 0.4s ease;
    display: flex;
    align-items: center;
    background-color: #EEEEEE;
    padding: 0 1rem;
}

.top-title-search .search-btn-wrapper .button {
    background-color: transparent;
    color: var(--color1);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    box-shadow: none;
    padding: 0;
    backdrop-filter: none;
}

.top-title-search .search-btn-wrapper .button .icon-arrow-left {
    width: 1rem;
    height: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.top-title-search .search-btn-wrapper .button:hover {
    color: var(--color3);
}

.search-by-json .input input {
    width: 100%;
    height: 100%;
    outline: none;
    border: none;
    background: transparent;
    color: var(--color2);
    font-size: 13px;
    min-width: 245px;
    min-height: 3rem;
}

.search-by-json .input:has(input:focus) {
    border-color: var(--color2);
}

.search-by-json .input input::placeholder {
    color: #9D9D9D;
    font-size: 13px;
}

.search-by-json .input .empty {
    font-size: 19px;
    position: absolute;
    top: 0;
    left: 10px;
    cursor: pointer;
    color: var(--color1);
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.search-by-json .input .icon {
    cursor: pointer;
    color: #9D9D9D;
    font-size: 20px;
    min-width: 24px;
    height: 24px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.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;
    border-radius: 2rem;
    margin-top: 12px;
    text-align: center;
    padding: 1rem 2rem 2rem;
    margin-bottom: 10px;
    max-height: 95vh;
    overflow: auto;
}

.search-by-json .body .is-search .list-category ul {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 18px 4px;
}

.search-wrap .products-alls {
    gap: 8px;
    color: var(--color1);
    transition: 0.3s;
    font-size: 14px;
}

.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:not(.wc-products-compare .list-products) {
    overflow: auto;
    max-height: 250px;
    padding-left: 15px;
}

/* width */
.list-services::-webkit-scrollbar,
.list-posts::-webkit-scrollbar,
.list-products:not(.wc-products-compare .list-products)::-webkit-scrollbar {
    height: 4px !important;
    width: .3rem !important;
}

/* Track */
.list-services::-webkit-scrollbar-track,
.list-posts::-webkit-scrollbar-track,
.list-products:not(.wc-products-compare .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:not(.wc-products-compare .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:not(.wc-products-compare .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: 1.75rem;
    font-size: 1.125rem;
    line-height: 1.5;
    color: var(--color2);
    margin-bottom: 1.75rem;
}

.search-by-json .body .default .popular .menu-popular ul {
    display: flex;
    flex-wrap: wrap;
    gap: 30px 0.75rem;
}

.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: #EBF7F7;
    border-radius: 60px;
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--color2);
    padding: clamp(0.75rem, 1vw, 1rem);
    transition: 0.3s 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 {
    background-color: var(--color1);
    color: #fff;
}

.search-by-json .body .not-found {
    color: var(--color3);
    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>.products,
.search-by-json .body .is-search>.posts {
    margin-bottom: 10px;
}

.search-by-json .body .is-search>.posts {
    margin-top: 0;
}

.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-products {
    font-size: 18px;
    text-align: right;
    margin: 5px 0;
    color: var(--color2);
}

.search-by-json .body .is-search .title-category {
    margin-bottom: 1rem;
}

.search-by-json .body .is-search .item {
    display: grid;
    grid-template-columns: 4fr 7fr 1fr;
    align-items: center;
    gap: 8px;
    margin: 14px 0;
    min-height: 80px;
}

.search-by-json .body .is-search .list-products .item {
    background-color: rgba(235, 247, 247, 0.57);
    border-radius: 1rem;
    padding: 1rem;
}

.search-by-json .body .is-search .list-posts .item {
    grid-template-columns: 6fr 7fr;
}

.search-by-json .body .is-search .item:hover {
    border-color: rgb(1 116 190 / 16%);
    color: var(--color2);
}

.search-by-json .body .is-search .item .img {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    overflow: hidden;
}

.search-by-json .body .is-search .list-posts .item .img {
    position: relative;
}


.search-by-json .body .is-search .list-posts .item .img::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(1.5rem);
    display: flex;
    border-radius: 1rem;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.search-by-json .body .is-search .list-posts .item .img::after {
    content: "";
    transition: 0.3s;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    opacity: 0;
    background: url(../../../../assets/img/search-post-image.svg);
    background-position: center;
    background-repeat: no-repeat;
}

.search-by-json .body .is-search .list-posts .item:hover .img::before {
    opacity: 1;
}

.search-by-json .body .is-search .list-posts .item:hover .img::after {
    opacity: 1;
}

.search-by-json .item-link {
    color: var(--color1);
    position: relative;
    text-align: left;
    display: inline-flex;
    gap: 10px;
    background-color: rgba(181, 217, 218, 1);
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.search-by-json .list-products .item:hover .item-link {
    color: var(--white);
    background-color: var(--color1);
}

.search-by-json .body .is-search .products .item:hover .item-link i {
    color: var(--white) !important;
}

.list-products .icon-service {
    color: var(--color2);
}

.search-by-json .body .is-search .item:hover .item-link i {
    color: var(--color2);
}

.search-by-json .item-link i {
    font-size: 1rem;
    transition: 0.3s
}

.search-by-json .body .is-search.item .img img {
    width: 64px;
}

.search-by-json .body .is-search .list-products .item .title-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: right;
    min-width: 0;
}

.search-by-json .body .is-search .item .title {
    font-size: 16px;
    line-height: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--color2);
    transition: 0.3s;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.3s;
}

.search-by-json .body .is-search .list-products .item .fast-search-product-english-title {
    font-family: var(--english);
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1.35;
    color: var(--color2);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.3s;
}

.search-by-json .body .is-search .list-posts .item .item-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-by-json .body .is-search .list-posts .item .post-item-date {
    font-size: 14px;
    color: var(--color2);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-by-json .body .is-search .list-posts .item .post-item-date .icon-calender {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: var(--color1);
    background-color: rgba(0, 114, 139, 0.1);
    border-radius: 50%;
}

.search-by-json .body .is-search .list-products .item .price {
    text-align: left;
    align-items: flex-end;
}

.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-banner {
    border-radius: 12px;
    overflow: hidden;
}

#search-by-json-mobile .search-banner {
    display: table;
    margin: auto;
}

.search-banner img {
    border-radius: 12px;
}

@media screen and (min-width: 992px) {
    .search-by-json .body {
        width: 200%;
    }
}

@media screen and (min-width: 992px) {
    .popup-footer-search {
        width: 175%;
        display: none;
    }
}

@media screen and (max-width: 992px) {
    .search-by-json .body {
        max-height: 85vh;
        padding: 2rem 1rem;
    }

    #search-by-json-form-mobile {
        display: none;
    }

    #search-by-json-mobile {
        position: fixed;
        top: 2rem;
        right: 1rem;
        left: 1rem;
        margin: auto;
        z-index: 9999999;
        width: calc(100% - 2rem);
    }

    .search-by-json .input input {
        display: block;
    }

    .search-by-json .input {
        border: 1px solid var(--color1);
        background: #fff;
    }

    .search-by-json .input .icon {
        color: var(--color1);
        background-color: transparent;
    }
}

@media screen and (max-width: 768px) {
    .search-by-json .body .is-search>.posts {
        margin-top: 10px;
    }

    /* مقالات: همان چیدمان دو ستونه */
    .search-by-json .body .is-search .list-posts .item {
        display: grid;
        grid-template-columns: 4fr 6fr;
        grid-template-rows: repeat(2, auto);
        gap: 0 10px;
    }

    .search-by-json .body .is-search .list-posts .item .img {
        grid-area: 1 / 1 / 3 / 2;
    }

    .search-by-json .body .is-search .list-posts .item .item-content {
        grid-area: 1 / 2 / 3 / 3;
    }

    .search-by-json .body .is-search .list-products .item {
        display: grid;
        grid-template-columns: minmax(52px, 30%) minmax(0, 1fr) auto;
        grid-template-rows: auto;
        align-items: center;
        gap: 8px 10px;
    }

    .search-by-json .body .is-search .list-products .item .img {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
    }

    .search-by-json .body .is-search .list-products .item .title-cell {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    .search-by-json .body .is-search .list-products .item .item-link {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        justify-self: center;
        flex-shrink: 0;
    }

    .search-by-json .body .is-search .list-products .item .price {
        grid-column: 2 / 4;
        grid-row: 2;
    }
}

@media screen and (max-width: 576px) {
    .search-by-json .body {
        width: 160%;
        max-width: 100%;
        right: 50%;
        transform: translateX(50%);
    }

}

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