@charset "UTF-8";

.searchOverlay{
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 12;
    opacity:0;
    visibility:hidden;
    transition: 500ms;
}
.searchOverlay.showOverlay{
    opacity:1;
    visibility:visible;
}
.search-by-json {
    width: 100%;
    margin-inline: auto;
}

.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: 214px;
}
.search-by-json .input input {
    width: 100%;
    height: 32px;
    outline: none;
    background-color: #f7f7f7;
    padding: 0.5rem;
    border-radius: 8px;
    font-size: .875rem;
    color: #495057;
    transition: 500ms;
    margin: 0;
    padding-right: 30px;
    border: 1px solid transparent;

}

.search-by-json .input input::placeholder {
    color: #49505780;
}

/* .search-by-json .input .empty:hover {
    background-color: #f1aeb5;
} */

.search-by-json .input .empty {
  font-size: 25px;
  position: absolute;
  font-weight: 300;
  top: 0;
  cursor: pointer;
  display: flex;
  justify-content: center;
  width: 2rem;
  border-radius: 0.25rem;
  left: 0.1rem;
  transition: 500ms;
  color: #d60018;
  line-height: 1;
  bottom: 0;
  margin: auto;
  height: max-content;
}


.search-by-json .input .icon:hover {
    background-color: #c4c8cb;
}

.search-by-json .input .icon {
    position: absolute;
    transition: 500ms;
    /* background: #FFF;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px; */
    /* border: 1px solid #c4c8cb; */
    background-color: transparent;
    border: none;
    top: 0.5rem;
    right: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 0.25rem;
    flex-shrink: 0;

}

.search-by-json .input .icon i {
    color: #e00000;
    font-size: 16px;
    font-weight: 800;
}
.mainHeaderSearchBox{
    z-index:12;
}
.search-by-json .body {
    position: absolute;
    z-index: 99999;
    background-color: #fff;
    border: 1px solid #e9ecef;
    margin-block: 0.25rem;
    text-align: center;
    padding: 15px;
    height: max-content;
    min-width: 450px;
    border-radius: 15px;
    min-height: 300px;
    max-height: 800px;
    right: 0;
    width:100%;
}

.search-by-json .body .default p {
    text-align: center;
    padding-top: .5rem;
    color: #495057;
    /* font-size: 1.125rem; */
    font-size: 14px;
}
.search-by-json .body .default >a {
    display: block;
}

.search-by-json .body .default img {
    width: 100%;
    opacity: 1;
    margin-inline: auto;
}

.search-by-json .body .default .popular,
.search-by-json .body .is-search {
    text-align: right;
}
.search-by-json .body .is-search .products,
.search-by-json .body .is-search .posts{
    height: 300px;
    overflow-y: auto;
    direction: ltr;
    padding-right: 10px;

}
.search-by-json .body .default .popular .title-popular {
    margin-top: 20px;
    font-weight: 400;
    font-size: 14px;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.search-by-json .body .default .popular .menu-popular ul,
.search-by-json .body .is-search .list-category ul,
.search-by-json .body .is-search .list-writer ul {
    margin: .5rem 0;
    gap: 10px;
    display: flex;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 15px;
}

.search-by-json .body .default .popular .menu-popular ul li,
.search-by-json .body .is-search .list-category ul li,
.search-by-json .body .is-search .list-writer ul li {

    text-align: center;
    display: inline-block;
    margin: 0 .125rem;
    width: max-content;
    min-width: 120px;

}

.search-by-json .body .default .popular .menu-popular ul li:first-child,
.search-by-json .body .is-search .list-category ul li:first-child,
.search-by-json .body .is-search .list-writer 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,
.search-by-json .body .is-search .list-writer 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,
.search-by-json .body .is-search .list-writer ul li a {
    display: block;
    font-size: 0.8125rem;
    border: none;
    background-color: rgba(245, 245, 245, 1);
    padding: 10px 15px;
    font-weight: 500;
    color: #000;
    transition: 500ms;
    line-height: 1.5;
    border-radius: 40px;
}

.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-writer ul li a:hover {
    background-color: var(--color3);
    color: #fff;
}

.search-by-json .body .not-found {
    font-size: 1rem;
    margin-top: 4rem;
    color: #d53343;
}

.search-by-json .body .is-search {
    padding: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.search-by-json .body .is-search .products,
.search-by-json .body .is-search .posts,
.search-by-json .body .is-search .writer {
    margin-top: 1.5rem;
    width:48%;
}
.search-by-json .body .is-search .category{
    width:100%;
}
.search-by-json .body .is-search .title-category,
.search-by-json .body .is-search .title-writer,
.search-by-json .body .is-search .title-posts,
.search-by-json .body .is-search .title-products {
    font-weight: bold;
    font-size: 1rem;
    color: #495057;
    direction: rtl;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-by-json .body .is-search .list-products .item:hover,
.search-by-json .body .is-search .list-posts .item:hover {
    border-color: rgba(22, 104, 126, 1);
}
.is-search .fillBtn{
    margin: 0;
    width: max-content !important;
    display: flex;
    align-items: center;
}
.is-search .fillBtn span{
    font-weight: normal;
    line-height: 1;
}
.is-search .fillBtn i{
    font-weight: normal;
    width: 24px;
    height: 24px;
}
.search-by-json .body .is-search .list-products .item,
.search-by-json .body .is-search .list-posts .item {
    transition: 500ms;
    border: 1px solid rgba(218, 236, 241, 1);
    background-color: #fff;
    padding: 10px;
    border-radius: 20px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
}

.search-by-json .body .is-search .list-products .item:hover,
.search-by-json .body .is-search .list-posts .item:hover {
    color: inherit;
}

.search-by-json .body .is-search .list-products .item .img,
.search-by-json .body .is-search .list-posts .item .img {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    padding: 0;
    border-radius: 15px;
    width: 60px;
    height: 60px;
    overflow: hidden;
}

.search-by-json .body .is-search .list-products .item .img img,
.search-by-json .body .is-search .list-posts .item .img img {
    width: 100%;
}

.search-by-json .body .is-search .list-products .item .title,
.search-by-json .body .is-search .list-posts .item .title {
    font-weight: 500;
    font-size: 12px;
    line-height: 1.5;
    color: #495057;
    width: 55%;
    padding: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 5px;
}
.search-by-json .body .is-search .list-posts .item .title {
    width: 80%;
}

.search-by-json .body .is-search .list-products .item .price {
    line-height: 1.5;
    text-align: left;
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    column-gap: 5px;
    width: calc(40% - 70px);
    margin-right: auto;
}

.search-by-json .body .is-search .list-products .item .price .discount {
    display: inline;
    background: #d53343;
    color: #FFF;
    padding: 3px;
    border-radius: .25rem;
    font-size: 10px;
    font-weight: 500;
    position: absolute;
    bottom: 0;
    left: 106%;
}

.search-by-json .body .is-search .list-products .item .price del {
    font-size: 0.875rem;
    font-weight: bold;
    text-decoration-color: #999;
}
.search-by-json .body .is-search .list-products .item .price del .woocommerce-Price-amount bdi{
    font-size: 10px;
}

.search-by-json .body .is-search .list-products .item .price ins {
    display: inline-block;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
}





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

.search-by-json .list-products,
.search-by-json .list-posts {
    /* display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    margin-block: .5rem; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
    direction: rtl;
}

#search-by-json-form img {
    user-select: none;
    /* Prevents selection in modern browsers */
    -webkit-user-select: none;
    /* Prevents selection in Safari */
    -moz-user-select: none;
    /* Prevents selection in Firefox */
    -ms-user-select: none;
    /* Prevents selection in Internet Explorer/Edge */
}

#search-by-json-form a {
    text-decoration: none !important;
    width: 100%;
}


#search-by-json-form .amount bdi {
    /* font-size: 1rem; */
    font-size: 13px;
    font-weight: 500;
    color: #495057;
}

#search-by-json-form del .amount bdi {
    font-size: 10px;
}





@media (max-width:1199.98px) {
    .search-by-json .list-posts,
    .search-by-json .list-products {
        grid-template-columns: 1fr;
    }

    #search-by-json-form .amount bdi {
        color: #495057;
        font-size: 0.875rem;
    }

    #search-by-json-form del .amount bdi {
        font-size: .75rem;
    }

    .search-by-json .body .is-search .list-products .item .price .discount {
        font-size: 10px;
    }

    .search-by-json .body .is-search .list-products .item .price span.woocommerce-Price-currencySymbol {
        font-size: 0.75rem;
    }
    
    .search-by-json .input {
        width: 95%;
    }

}

@media (max-width:991.98px) {}

@media (max-width:767.98px) {}

@media (max-width:1000px) {
    .search-by-json .body .is-search .products, .search-by-json .body .is-search .posts, .search-by-json .body .is-search .writer{
        width:100%;
    }
    .search-by-json .body{
            padding: 15px 5px;
    }
    .search-by-json .body .is-search .products, .search-by-json .body .is-search .posts{
            height: max-content;
    }
    .search-by-json {
        width: calc(100% - 20px);
    }
    .search-by-json .input input{
        height:45px;
        padding-right: 40px;
    }
    
    .search-by-json .input .icon{
        width: 30px;
        height: 30px;
    }
    .search-by-json .body .default p {
        text-align: center;
        padding-top: .5rem;
        color: #495057;
        /* font-size: .9125rem; */
        font-size: 20px;
    }

    .search-by-json .body .default img {
        margin-top: 1.5rem;
    }


    .search-by-json .body .is-search{
        height: 400px;
        overflow-y: auto;
    }

    .search-by-json .body .is-search .list-products .item .img,
    .search-by-json .body .is-search .list-posts .item .img {
        width: 3rem;
        height: 3rem;
        flex: 0 0 3rem;
    }

    .search-by-json .body .is-search .list-products .item .img,
    .search-by-json .body .is-search .list-posts .item .img {

        padding: 0.25rem;
    }

    .search-by-json .body .is-search .list-products .item,
    .search-by-json .body .is-search .list-posts .item {
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
    }

    .search-by-json .body .is-search .list-products .item .title,
    .search-by-json .body .is-search .list-posts .item .title {
        flex: 0 0 75%;padding-left: 0;
    }
}

#search-by-json-form ::-webkit-scrollbar {
    height: 4px;
    width:4px;
  }

#search-by-json-form  ::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(0,0,0,0.1); 
    border-radius: 5px;
}
  
#search-by-json-form   ::-webkit-scrollbar-thumb {
    background: var(--color3); 
    border-radius: 5px;
}
@media only screen and (min-width: 992px) and (max-width: 1100px)  {
    .search-by-json .input{
        width:130px
    }
}
   
  
