.javaj-search-overlay{

    position:fixed;

    inset:0;

    z-index:9999;

    display:flex;

    justify-content:center;

    align-items:flex-start;

    padding-top:80px;

    backdrop-filter:blur(18px);

    background:rgba(255,255,255,.52);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:.45s cubic-bezier(.22,.61,.36,1);

}
.javaj-search-overlay.active{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

}
.javaj-search-container{

    width:min(980px,92%);

    transform:translateY(120px);

    transition:.6s cubic-bezier(.22,.61,.36,1);

}
.javaj-search-overlay.active
.javaj-search-container{

    transform:translateY(0);

}
.javaj-search-input{

    display:flex;

    overflow:hidden;

    border-radius:18px;

    background:#fff;

    box-shadow:

        0 16px 45px rgba(0,0,0,.08);

}
.javaj-search-input input{

    flex:1;

    height:68px;

    border:none;

    outline:none;

    padding-inline:28px;

    font-size:18px;

}
.javaj-search-input button{

    width:72px;

    border:none;

    background:none;

    cursor:pointer;

}


.search-pup-up-javaj {
    position: fixed;
    top: 100%;
    left: 0;
    background: #fafafacc;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    width: 100%;
    height: 100%;
    z-index: 1000;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 50px;
    transition: 0.5s;
}
.search-pup-up-javaj.popup-search-active {
    top: 0;
}
.javaj-outer {
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 10;
}
.javaj-inner{
    width: 3rem;
    text-align: center;
}
.javaj-outer:is(:hover, :focus) .javaj-inner:before, .javaj-outer:is(:hover, :focus) .javaj-inner:after {
    transform: rotate(0);
    background: var(--color-2);
}


.javaj-inner:before {
    top: 14px;
    transform: rotate(45deg);
}
.javaj-inner:after {
    top: 14px;
    transform: rotate(-45deg);
}
.javaj-inner:before, .javaj-inner:after {
    content: "";
    position: absolute;
    height: 2px;
    width: inherit;
    background: #0000008e;
    right: 0;
    transition: all 0.3s ease-in;
}
.form-wrap {
    padding-top: 14rem;
    position: relative;
    padding-inline: 1.5rem;
}
.search-by-json {
    width: 100%;
    margin-inline: auto;
    position: relative;
}
.search-by-json .input {
    position: relative;
}
.search-by-json .input input {
    color: #495057;
    background: #FFF;
    border: 1px solid #00000012;
    border-radius: 12px;
    outline: none;
    width: 100%;
    margin: 0;
    padding: 1rem 6rem 1rem 1rem;
    font-size: 16px;
    transition: all .5s;
    box-shadow: 0 3px 10px #00000012;
}
.search-by-json .input .icon {
    color: var(--color-1);
    cursor: pointer;
    border: 1px solid var(--color-1);;
    border-radius: 6px;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
    transition: all .5s;
    display: flex;
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    opacity: .3;
}

.search-by-json .body {
    z-index: 99999;
    text-align: center;
    border-radius: .25rem;
    width: 100%;
    margin-top: 1.5rem;
    padding: .5rem;
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column-reverse;
    align-items: center;
    transition: all .6s;
}

.search-by-json .body .default p {
    text-align: center;
    color: var(--color-2);
    font-size: 1rem;
    padding-top: 1.5rem;
}
.search-by-json .body .default img {
    opacity: .4;
    margin-top: 2rem;
    width: 8rem;
    margin-inline: auto;
}
.search-by-json .body .default .popular, .search-by-json .body .is-search {
    text-align: right;
}
.search-by-json .body .default .popular .title-popular {
    color: var(--color-2);
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: bold;
}
.javaj-inner {
    width: 3rem;
    text-align: center;
}
body.search-popup-open{
    overflow: hidden;
}
.search-section-title {
    font-size: 18px;
    background: var(--color-1);
    color: #FFF;
    border: 1px solid #FFFF;
    border-radius: 12px;
    margin-bottom: 3rem;
    padding: .5rem 2rem;
    font-weight: 500;
    display: block;
    line-height: 2;
}
.search-result-date,
.search-result-price {
    display: flex;
    text-decoration: none;
    justify-content: center;
    gap: .5rem;
}
.search-result-date,
.search-result-price span {
    display: flex;
    justify-content: center;
    font-size: .9rem;
    font-weight: bold;
    color: var(--color-1);
    gap: .3rem;
    flex-direction: row-reverse;
}
.search-result-price ins {
    text-decoration: none;
}

.products .search-result-thumb {
    background: #FFF;
    border: 1px solid var(--color-1);
    border-radius: 12px;
    flex: 1;
    margin-left: 1rem;
    overflow: hidden;
    position: relative;
    z-index: 2;
    max-width: 11rem;
    min-width: 11rem;
    width: 100% !important;
    height: 100% !important;
    border: 1px solid var(--color-1);
}
.posts .search-result-thumb {
    background: #FFF;
    border: 1px solid var(--color-1);
    border-radius: 12px;
    margin-left: 1rem;
    overflow: hidden;
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    max-width: 11rem;
    min-height: 11rem;
}
.posts.search-detail h3 a {
    width: 100%;
    max-width: 18rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: relative;
    left: -95px;
}

.products .list-posts
.posts .list-posts {
    margin-top: 1rem;
}

.search-title_pro,
.search-title_pro{
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-2);
}

.javaj-search-menu {
    display: flex;
    gap: .75rem;
    align-items: center;
}

.javaj-search-menu li {
    position: relative;
    overflow: hidden;
    display: block;
    border: 1px solid var(--color-1);
    border-radius: 20px;
    margin: .2rem;
    transition: .4s;
}

.javaj-search-menu li::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-1);
    border-radius: inherit;
    transform: translateX(-100%);
    transition: transform .4s ease;
    z-index: 0;
}

.javaj-search-menu li:hover::before {
    transform: translateX(0);
}

.javaj-search-menu li a {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: .5rem 1rem;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.5;
    color: var(--color-2);
    text-decoration: none;
    transition: color .6s ease;
}

.javaj-search-menu li:hover a {
    color: #fff;
}
.not-found {
    font-size: 1.2rem;
    color: var(--color-2);
    font-weight: bold;
    margin-top: 2rem;
    width: fit-content;
    padding: 1rem;
    border-radius: 25px;
}
.not-found-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: 20rem;
}
.not-found-photo {
    display: flex;
    justify-content: center;
}







.input{
    position: relative;
}

.input .empty{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 45px; /* با توجه به جای آیکون سرچ تنظیم کن */
}

.mobile___close{
    display: block;
    width: 18px;
    height: 18px;
    position: relative;
    cursor: pointer;
}

.mobile___close::before,
.mobile___close::after{
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: #777;
    border-radius: 20px;
}

.mobile___close::before{
    transform: translate(-50%, -50%) rotate(45deg);
}

.mobile___close::after{
    transform: translate(-50%, -50%) rotate(-45deg);
}


.posts,
.products {
    width: 100% !important;
    position: relative;
}


.search-detail h3 {
    position: absolute;
    background: #FFF;
    padding: .5rem;
    border-radius: 12px;
    left: 0;
    top: 2rem;
    z-index: 1;
    width: 77%;
    min-height: 6rem;
    align-items: center;
    text-align: center;
    box-shadow: 2px 2px 14px #00000012;
}

.products .search-detail a .search-result-thumb img,
.posts .search-detail a .search-result-thumb img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    aspect-ratio: 1;
}
.search-detail a .search-result-thumb img {
    object-fit: cover;
    border-radius: 15px;
}



@media (max-width: 1399.98px) {
  /* استایل‌ها برای عرض تا 1399.98px */
  .javaj-search-menu {
    gap: .4rem;
}
.search-detail h3 {
    width: 68%;
}


}




@media (max-width: 1199.98px) {
  /* استایل‌ها برای عرض تا 1199.98px */
  .javaj-search-menu {
    gap: .5rem;
}

.javaj-search-menu li a {
    font-size: 11px;
    padding: .3rem .5rem;
}

.search-detail h3 {
    width: 60%;
}
.search-title_pro {
    font-size: .8rem;
}
.search-result-price span {
    font-size: .8rem;
}
.posts .search-image,
.products .search-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.posts .search-detail,
.products .search-detail {
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.search-detail h3 {
    width: 100%;
}
.search-detail h3 {
    background: #FFF;
    padding: .5rem;
    border-radius: 12px;
    z-index: 1;
    width: 100%;
    min-height: 6rem;
    align-items: center;
    text-align: center;
    box-shadow: 2px 2px 14px #00000012;
    position: unset;
}
.search-title_pro {
    font-size: 1rem;
}







}


@media (max-width: 991.98px) {
  /* استایل‌ها برای عرض تا 991.98px */
}

@media (max-width: 767.98px) {
  /* استایل‌ها برای عرض تا 767.98px */
 .javaj-search-menu li a {
    font-size: 13px;
    padding: .3rem .5rem;
}
.javaj-search-menu {
    display: flex;
    gap: .75rem;
    align-items: stretch;
    flex-direction: column;
}
  
}

@media (max-width: 575.98px) {
  /* استایل‌ها برای عرض تا 575.98px */
  .is-search .row {
    display: flex;
    flex-direction: column;
}
}

