.predictive__search--box{
    /* bottom: 0; */
    height: 100vh;
    overflow: auto;
}

.predictive__search--box .btn {
    /* background: #2c5f2d; */
    /* color: white; */
    padding: 0 1em;
    /* border: none; */
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
    line-height: unset;
}
.predictive__search--box .blog__section--inner {
        padding: 1rem
}
.predictive__search--box h3,.predictive__search--box .h3 {
    
    line-height: 2.8rem;
    /* font-weight: 400; */
}

@media only screen and (min-width: 992px) {
    .predictive__search--box h3,.predictive__search--box .h3 {
      
        line-height: 3.2rem;
    }
}
@media only screen and (min-width: 1200px) {
    .predictive__search--box h3,.predictive__search--box .h3 {
       
        line-height: 3.5rem;
    }
}
@media only screen and (min-width: 1600px) {
    .predictive__search--box h3,.predictive__search--box .h3 {
        
        line-height: 4rem;
    }
}
/* #search-results {
            min-height: 200px;
        }
        
        .loading-spinner {
            text-align: center;
            padding: 50px;
            font-size: 18px;
            color: #666;
        }
        
        .error-message {
            text-align: center;
            padding: 50px;
            color: #d32f2f;
        }
        
        .category__box_wrap {
            background: white;
            padding: 30px;
            margin-bottom: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        }
        
        .category__box_wrap h3 {
            font-size: 22px;
            font-weight: bold;
            margin-bottom: 20px;
            color: #2c5f4f;
            border-bottom: 2px solid #2c5f4f;
            padding-bottom: 10px;
        }
        
        .result__wrap {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .result__item {
            background: white;
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s, box-shadow 0.3s;
        }
        
        .result__item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
        }
        
        .blog__thumbnail {
            position: relative;
            padding-top: 100%;
            overflow: hidden;
            background: #f5f5f5;
        }
        
        .blog__thumbnail img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.3s;
        }
        
        .result__item:hover .blog__thumbnail img {
            transform: scale(1.1);
        }
        
        .empty-results {
            text-align: center;
            padding: 50px;
            color: #999;
            font-size: 18px;
        } */
                 div.single__widget.widget__bg{
-webkit-box-shadow: none;
    box-shadow: none;
        }
        /* .result__item{
           width: 357px;
        } */
      .result__item-thumbnail {
  /* width: 357px; */
  height: 505.58px;
      display: flex;
    align-items: center;
    overflow: clip;
    /* border: 1px solid grey; */
}
.blog__thumbnail-catalog__img{
width: 100%;
  }
  .result__item{

    margin: 0.5rem;

        border-radius: 10px 10px 0 0;
    box-shadow: 0 3px 6px rgba(68, 68, 68, 0.2);
  }

  .result__item .blog__content3{
    height:fit-content;
    text-align: center;
  }

  .blog__content3 a{
        font-weight: bold;
    text-align: center;
    color: var(--bs-gray-dark);
  }
/* @media (min-width: 320px) {
  .result__item{
           width: 220px;
        }
  .result__item-thumbnail {
    width: 220px;
  height: 311.19px;
  }
}
@media (min-width: 425px) {
  .result__item{
           width: 300px;
        }
  .result__item-thumbnail {
    width: 300px;
  height: 424.35px;
  }
}

@media (min-width: 768px) {
  .result__item{
           width: 201px;
        }
  .result__item-thumbnail {
    width: 201px;
    height: 284.31px;
  }
}

@media (min-width: 1350px) {
  .result__item{
           width: 277px;
        }
  .result__item-thumbnail {
    width: 277px;
    height: 391.82px;
  }
}

@media (min-width: 1440px) {
  .result__item{
           width: 300px;
        }
  .result__item-thumbnail {
    width: 300px;
    height: 424.35px;
  }
  
} */
/* 
.category__box_wrap{
  padding: 6px;
  border-radius: 0.5em;
}
.category__box_wrap:nth-child(odd){
  background: #f3f3f3;

}
.category__box_wrap:nth-child(even){
  background: #ffffffff;

}
h3.autoShow {
    padding: 6px;
    margin-bottom: 6px;
}
.blog__content3 {
    text-align: center !important;
}
*/
.category__box_wrap{
  padding: 6px;
}
.autoShow {
  /* width: fit-content; */

  margin-bottom: 0;
  position: relative; /* เพิ่มเพื่อใช้ position ใน ::before */
      /* border-bottom: 1px solid rgba(0, 0, 0, 0.6); */
    /* padding-bottom: 6px; */
    /* margin-bottom: 6px; */
    font-size:1.9rem !important;
    text-align: left;
}
.category__box_wrap{
    margin-bottom: 2em;
}
@media (min-width: 320px) {
    .result__wrap{
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px; 
      
        padding: 10px;
    }
    .result__item-thumbnail{
        height: 150px;
    }
}
@media (min-width: 768px) {
.result__wrap{
        /* display: grid; */
        grid-template-columns: repeat(3, 1fr); 
        gap: 10px; 
       
        padding: 10px;
    }
    .result__item-thumbnail{
        height: 200px;
    }
}
@media (min-width: 1440px) {
    .result__wrap{
        /* display: grid; */
        grid-template-columns: repeat(4, 1fr); 
        gap: 10px; 
       
        padding: 10px;
    }
    .result__item-thumbnail{
        height: 200px;
    }

}

@media only screen and (min-width: 992px) {
    .predictive__search--box__inner {
        padding: 30px 20vw !important;
    }
}

.blog__contents{
    text-align: left;
     /* text-align: center; */
    /* padding: 0.5em 0; */
    font-size: small;
}
.fs-bold{
    font-weight: bold;
}
.m-0{
    margin: 0;
}
.section-heading{
    display: flex;
    justify-content: space-between;
    position: relative;
}

.section-heading::after {
    content: '';
    position: absolute;
    /* border: 1px solid black; */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color2);
}
.see_all_result{
    border:solid 1px var(--secondary-color);
    height: fit-content;
}
.empty-results{
    padding: 10px;
}



.product .result__item-thumbnail {
    /* border-top: 0; */
    border-radius: 10px 10px 0 0;
    position: relative;
    overflow: hidden;
    line-height: 1;
    height: 180px;
            --thumbnail-img-height: calc(180px - 2rem);
        
    padding: 1rem;
    display: flex;
    align-items: center;
        justify-content: center;
}


@media only screen and (max-width: 374px) {
    .product .result__item-thumbnail { height: 180px; --thumbnail-img-height: calc(180px - 2rem);}
}
@media only screen and (min-width: 375px) and (max-width: 767px) {
    .product .result__item-thumbnail { height: 200px; --thumbnail-img-height: calc(200px - 2rem);}
}
@media only screen and (min-width: 768px) and (max-width: 834px) {
    .product .result__item-thumbnail { height: 235px; --thumbnail-img-height: calc(235px - 2rem);}
    
}
@media only screen and (min-width: 835px) and (max-width: 1200px) {
    .product .result__item-thumbnail { height: 200px; --thumbnail-img-height: calc(200px - 2rem);}
}

@media only screen and (min-width: 1201px) and (max-width: 1280px) {
    .product .result__item-thumbnail { height: 235px;padding:2rem; --thumbnail-img-height: calc(235px - 4rem);}
}
@media only screen and (min-width: 1281px) and (max-width: 1599px) {
    .product .result__item-thumbnail { height: 235px;padding:4rem; --thumbnail-img-height: calc(235px - 8rem);}
}
@media only screen and (min-width: 1600px) and (max-width: 1919px) {
    .product .result__item-thumbnail { height: 235px;padding:2rem; --thumbnail-img-height: calc(235px - 4rem);}
}
@media only screen and (min-width: 1920px) {
        
        .product .result__item-thumbnail {
        height: 235px;
        /* padding:2rem; */
        padding:0rem;
        --thumbnail-img-height: calc(235px - 2rem);
        }
    }
    @media only screen and (min-width: 2560px) {
        
        .product .result__item-thumbnail {
            padding:8rem;
            --thumbnail-img-height: calc(235px - 4rem);
        }
    }
.product .result__item-thumbnail img {
  /* height: var(--thumbnail-img-height); */
}

.blog__contents {
    
  padding: 0rem 1rem 1.5rem;
}
.product .blog__contents {
  border-radius: 0 0 10px 10px;
    border-top: 0;
    height: 180px;
    /* -webkit-box-shadow: 0 3px 6px rgba(68, 68, 68, 0.2);
    box-shadow: 0 3px 6px rgba(68, 68, 68, 0.2); */
position: relative;
}
@media only screen and (max-width: 1200px) {
  .blog__contents {
    
    padding: 0 1.5rem 1.8rem;
  }
    .product .blog__contents {
        border-top: 0;
        border-radius: 0 0 10px 10px;
        /* height: 250px; */
        height: 200px;
        /* -webkit-box-shadow: 0 3px 6px rgba(68, 68, 68, 0.2);
        box-shadow: 0 3px 6px rgba(68, 68, 68, 0.2); */
    }

}
@media only screen and (max-width: 400px) {
  .blog__contents {

    padding: 0 1rem 2rem;
  }
    .product .blog__contents {
        border-radius: 0 0 10px 10px;
        border-top: 0;
        height: 180px;
        /* -webkit-box-shadow: 0 3px 6px rgba(68, 68, 68, 0.2);
        box-shadow: 0 3px 6px rgba(68, 68, 68, 0.2); */
    }
 
}
.result__item-thumbnail{
  position: relative;
}
.project .result__item-thumbnail img,.mockup .result__item-thumbnail img{
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left:0;
  right: 0;
  bottom: 0;
}

.tip .result__item-thumbnail img{
  /* height: 190px; */
  width: 100%;
}
.catalog .result__item-thumbnail {
  width: 357px;
  height: 505.58px;
  display: flex;
  align-items: center;
}

@media (min-width: 320px) {
  .catalog .result__item-thumbnail {
    width: 220px;
    height: 311.19px;
  }
}
@media (min-width: 425px) {
  .catalog .result__item-thumbnail {
    width: 300px;
    height: 424.35px;
  }
}

@media (min-width: 768px) {
  .catalog .result__item-thumbnail {
    width: 201px;
    height: 284.31px;
  }
}
@media (min-width: 1350px) {
  .catalog .result__item-thumbnail {
    width: 277px;
    height: 391.82px;
  }
}
@media (min-width: 1440px) {
    .catalog .result__item-thumbnail {
        width: 300px;
        height: 424.35px;
    }
}
.catalog .result__item-thumbnail img{
  
}
/* .predictive__search--box.active{
  display: flex;
} */

.result__wrap .result__item:nth-of-type(8) {
    /* box-shadow: none; */
}
.result__wrap .result__item:nth-of-type(8) .result__item-thumbnail {
    
    justify-content: center;
    align-items: center;
        border-radius: 0;
        height: 100%;




}

.predictive__search--box__inner{
  position:unset;
  transform: none;
}
.predictive__search--box__inner.emphasize
 {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    
}
.emphasize .predictive__search--title{
  font-size: 2.6rem;
}
