.tapsp-search-box{
max-width:550px;
}
.tapsp-search-box {
    position: relative;
    line-height: 100%;
    display: block;
    min-width: auto;
    width: 100%;
    text-align: left;
    margin: 0 auto;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    align-items: center;
    display: flex;
}

.tapsp-search-form{
    margin: 0;
    padding: 0;
    width: 100%;
}

.tapsp-from-wrap{
display:flex;
background:#fff;
border-radius:2rem;
position: relative;
border: 1px solid;
border-color:#e7f5ff;
z-index: 9999;

}
.tapsp-search-autocomplete:focus{
        outline: 0;
}
#tapsp-search-button {
background: #111;
    width: 70px;
    height:36px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius:17px;
    padding: 0;
    border: 0;
   margin:0.3rem;
   color: #fff;
   word-break: initial;
}

#tapsp-search-button:hover{
background:#888;
}
.tapsp-search-form .tapsp-search-autocomplete {
min-height:35px;
line-height:35px;
border:none!important;
font-size: 14px;
width: 100%;
padding: 0.3rem 0.8rem;
margin: 0;
border-radius:2rem!important;
background: transparent;
}


.tapsp-autocomplete-suggestions {border: 1px solid #eee; background: #FFF; overflow: auto; border-radius:7px;margin-top:10px;}
.tapsp-autocomplete-suggestion { padding: 0.5rem; overflow: hidden;margin:0;}
/*.tapsp-autocomplete-selected { background: #f0f0f166; }*/
.tapsp-autocomplete-suggestions strong { font-weight: normal; color: #3399FF; }
.tapsp-autocomplete-group { padding: 0.5rem; }
.tapsp-autocomplete-group strong { display: block; border-bottom: 1px solid #000; 
}
.tapsp-autocomplete-suggestion { 
    cursor: pointer;
}
#tapsp-search-button .th-icon{
    font-size:25px;
}
.tapsp-autocomplete-suggestion{
display:flex;
}

.tapsp-autocomplete-suggestion .tapsp-img{
width:65px;
 margin-right: 1rem;
}

.tapsp-autocomplete-suggestion .tapsp-img img{
border-radius:3px;
width:65px;
}

.tapsp-autocomplete-suggestion .tapsp-price{
font-size:0.89rem;
font-weight:500;
}

.tapsp-suggestion-heading .tapsp-title{
color:#555;
font-size: .875rem;
    text-transform: uppercase;
font-weight:normal;
}
.tapsp-suggestion-heading{
border-bottom:1px solid #e7f5ff;
margin-bottom: 0.5rem;
pointer-events: none;
}

.tapsp-suggestion-taxonomy-post-cat .tapsp-title,.tapsp-suggestion-taxonomy-product-cat .tapsp-title{
font-size:0.89rem;
}
.tapsp-suggestion-taxonomy-product-cat,.tapsp-suggestion-taxonomy-post-cat{
padding: 0.5rem;
}
 .tapsp-title{
color:#333;
font-size:0.89rem;
font-weight:bold;
}
.tapsp-suggestion-heading .tapsp-title strong{
color: #555;
    font-size: .875rem;
    text-transform: uppercase;
    font-weight: normal;
}

.tapsp-suggestion-more strong{
color: #333;
    font-size: 1rem;
    font-weight: bold;
}
.tapsp-content-wrapp{
line-height:normal;
}
.tapsp-price del{
color:#949494;
margin-right:0.3rem;
opacity: 0.5;
}
.tapsp-price ins{
text-decoration:none;
}
.nonce_result_show{
opacity:0.5;
pointer-events: none;
}

.tapsp-preloader{
height: 100%;
    position: absolute;
    right: 0;
    top: 0;
    width: 45px;
    z-index: 1;
    background:none;
    display: none;

}
.tapsp-preloader.tapsp-loading{
    display:block;
}
.tapsp-loading .tapsp_loader-css {
    height: 0;
    width: 0;
    padding: 10px;
    border: 3px solid #cccccc6e;
    border-right-color: #8888887a;
    border-radius: 50%;
    -webkit-animation: rotate 1s infinite linear;
    position: absolute;
    top: 9px;
        right: 10px;
}
.tapsp-preloader img{

    padding: 0.3rem;
    max-width: 100%;
}

.submit-no-active .tapsp-from-wrap .th-icon, 
.bar_style .th-icon,
.icon_style .tapsp-from-wrap .th-icon{
position:absolute;
left:0.5rem;
}
.submit-no-active .tapsp-from-wrap .th-icon{
      color: #111;  
}
.submit-no-active .tapsp-search-autocomplete,.bar_style .tapsp-search-autocomplete,.icon_style .tapsp-search-autocomplete{
padding: 0.3rem 0.3rem 0.3rem 2.8rem;
}
.submit-no-active .tapsp-from-wrap, .bar_style .tapsp-from-wrap,.icon_style .tapsp-from-wrap{
    align-items: center;
}
.tapsp-suggestion-more{
background:#eee;
text-align:center;
margin:0;
}
.tapsp-suggestion-more .tapsp-content-wrapp {
    line-height: normal;
    text-align: center;
    width: 100%;
}
.tapsp-suggestion-more .tapsp-title{
font-size:.89rem;
}
.tapsp-autocomplete-suggestion .tapsp-title{
display:inline-block;
margin-right: 0.6rem;
}
.tapsp-autocomplete-suggestion .tapsp-price{
display:block;
}
.tapsp-sku{
font-size: 0.8rem;
    font-weight: 500;
    color: #555;
}
.tapsp-desc{
font-size:0.8rem;
display:flex;
}

.tapsp-content-wrapp {
    line-height: normal;
    display: flex;
    justify-content: space-between;
    flex-grow: 2;
    align-items: center;
    width: 100%;
}

.tapsp-suggestion-more .tapsp-content-wrapp {

    justify-content: center;
}

.icon_style .tapsp-search-form {
    opacity:0;
    display:none;
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 500px;
    z-index: 1;
}
.icon_style.tapsp-box-open .tapsp-search-form{
    opacity:1;
    display:block;
}

.icon_style .click-icon{
    height: auto;
    cursor: pointer;
}
.tapsp-box-open .tapsp-icon-arrow {
    display: block;
    position: absolute;
    top: calc(100% + 2px);
    left: 0;
    z-index: 5;
    width: 15px;
    height: 15px;
    background: #fff;
        border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
    -webkit-transform: rotate(
45deg
);
    -moz-transform: rotate(45deg);
    -o-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(
45deg
);
}

div.tapsp-autocomplete-suggestions::-webkit-scrollbar-track
{
    
    background-color: #f1f1f1;
}

div.tapsp-autocomplete-suggestions::-webkit-scrollbar
{
    width: 10px;
    background-color: #E5E6E8;
}

div.tapsp-autocomplete-suggestions::-webkit-scrollbar-thumb
{
    background-color: #E5E6E8;

                     
}
.tapsp-sale{
    background: #111;
    color: #fff;
    padding: 0.2rem 0.4rem;
    font-size: 0.7rem;
    border-radius: 0.2rem;
    margin-right: 0.5rem;
    margin-top: 0.2rem;
    margin-bottom: 0.2rem;
    display: inline-block;
}

.tapsp-featured::before {
    content: "\f155";
    font-family: Dashicons;
    text-transform: none;
    -webkit-font-smoothing: antialiased;
    text-indent: 0px;
    font-size:0.867rem;
    color:#dab257;
    margin-right:0.3rem;
}

.tapsp-stock{
font-size: .768rem;
}

.tapsp-suggestion-wrap.tapsp-suggestion-product.cart-btn-show{
display:flex;
align-items: center;
}
.tapsp-suggestion-wrap.tapsp-suggestion-product.cart-btn-show a.tapsp-autocomplete-suggestion{
width:86%;
}
.tapsp-cart-button span{
font-size:0;
}
.tapsp-cart-button:before{
content:'|';
margin:0 0.5rem;
color:#e7f5ff;
font-size:1.5rem;
}

.tapsp-cart-button.ajax_add_to_cart span:before{
content: "\f174";
display: inline-block;
-webkit-font-smoothing: antialiased;
font: normal 20px/1 'dashicons';
font-size:1rem;
}

.tapsp-suggestion-product:hover,
.tapsp-suggestion-more:hover,.nonce_result_show:hover,.tapsp-suggestion-wrap:hover{
background: #f0f0f166
}
.tapsp-cart-button.add_to_cart_button.loading span {
    height: 12px;
    width: 12px;
    border: 3px solid #cccccc6e;
    border-right-color: #8888887a;
    border-radius: 50%;
    -webkit-animation: rotate 1s infinite linear;
    position: absolute;
        top: 50%;
}


@keyframes rotate{
  0%{transform: rotate(0deg);}
  100%{transform: rotate(360deg);}
}

.tapsp-cart-button.add_to_cart_button.added{
opacity: 0.5;

}
.tapsp-cart-button.add_to_cart_button{
    position: relative;
}
.cart-btn-show .added_to_cart{
display: none!important;
}

.tapsp-cart-button span:before {
content: "\f174";
    content: "\f543";
    display: inline-block;
    -webkit-font-smoothing: antialiased;
    font: normal 20px/1 'dashicons';
    font-size: 1rem;
}
.cart-btn-show .added_to_cart:before{
content:'|';
margin:0 0.5rem;
color:#e7f5ff;
font-size:1.5rem;
}
.tapsp-cart-button.add_to_cart_button.loading span:before{
display:none;
}

.tapsp-suggestion-taxonomy-product-cat .tapsp-autocomplete-suggestion,
.tapsp-suggestion-taxonomy-post-cat .tapsp-autocomplete-suggestion{
padding:0;
}

.submit-active #tapsp-search-button .th-icon {
    color: #fff;
}

.bar_style .th-icon, .icon_style .th-icon{
    color:#111;
}

.tapsp-search-box .th-icon{
font-size:1.62rem;
-webkit-font-smoothing: subpixel-antialiased;
}


[type="search"].tapsp-search-autocomplete::-ms-clear {
    display: none;
}

[type="search"].tapsp-search-autocomplete::-webkit-search-decoration {
    -webkit-appearance: none;
}

[type="search"].tapsp-search-autocomplete::-webkit-search-cancel-button {
    display: none;
}

.tapsp-search-form.voice-search-wrapper .voice-search-mic svg {
    width: 80%;
    height: 80%;
}


/* category filter  style*/
select.th-advance-product-search-cate {
  border: none;
  min-height: 35px;
  line-height: 35px;
  font-size: 14px;
  margin: 0;
  border-radius:33px;
  padding: 0 0.8rem;
  /* text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  appearance: none; */
  background: transparent;
  transition: width 0.2s ease;
  width:53.9297px/* auto adjust */
}
select.th-advance-product-search-cate:focus{
    outline:none;
    background:none;
    border:none;
}

select.th-advance-product-search-cate:focus{
outline:none;
box-shadow:none;
}

.tapsp-search-form .filter-divide {
    height: 32px;
    background: #ddd;
    padding: 0.5px;
}

.tapsp-from-wrap{
align-items: center;
}
select.th-advance-product-search-cate{
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23999%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem center;
  background-size: 0.45rem auto;
  padding-right: 1.2rem; /* add space so arrow doesn't overlap text */
}

.tapsp-search-box.bar_style #tapsp-search-button{
width:35px;
height:35px;
line-height:35px;
background:none;
cursor:pointer;
}

.tapsp-search-box.bar_style #thaps-search-button .th-icon{
color:#111;
}

.tapsp-search-box.bar_style .tapsp-search-autocomplete{
padding:0.3rem;
}

#tapsp-search-button:focus{
outline:none;
}

#tapsp-search-button:hover{
cursor:pointer;
}
/***************************/
/* traditional layout  */
/***************************/
.th-traditional .tapsp-products-wrapper { 
    display:flex; 
     flex-wrap:wrap; 
    gap: 10px; 
    padding: 10px; 
    box-sizing: border-box;
}

/* 🔹 Product item wrapper */
.th-traditional .tapsp-products-wrapper .tapsp-suggestion-wrap.tapsp-suggestion-product {
  border: 1px solid #eaeaea;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  width:166px;
}

.th-traditional .tapsp-suggestion-wrap.tapsp-suggestion-product a{
    display:block!important;
    padding: 0;
}
.th-traditional .tapsp-suggestion-wrap.tapsp-suggestion-product a.added_to_cart{
    display:none!important;
}
.th-traditional .tapsp-products-wrapper .tapsp-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.th-traditional .tapsp-products-wrapper .tapsp-img img {
 max-width: 100%;
    width: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.th-traditional .tapsp-products-wrapper .tapsp-cart-button:before{
    content:'';
}

.th-modern .tapsp-products-wrapper{ 
    display:flex; 
    flex-wrap:wrap; 
    gap: 10px; 
    padding: 10px; 
    box-sizing: border-box;
}
.th-modern .tapsp-suggestion-product{
 border: 1px solid #eaeaea;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  width:49%;
}
.th-modern .tapsp-products-wrapper .tapsp-title,
.th-modern .tapsp-products-wrapper .tapsp-desc{
   margin-bottom:0.5rem; 
   display:block;
}

.th-modern .tapsp-suggestion-product .tapsp-img{
    width: 35%;
    margin-right: 0.5rem;
}

/* 🔹 Product Content Area */
.tapsp-products-wrapper .tapsp-content-wrapp {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  align-items: baseline;
}

.th-traditional .tapsp-products-wrapper .tapsp-title,
.th-traditional .tapsp-products-wrapper .tapsp-sku,
.th-traditional .tapsp-products-wrapper .tapsp-desc{
   margin-bottom:0.5rem; 
   display:block;
}
.th-traditional .tapsp-products-wrapper .tapsp-content-right{
    display: block;
    width: 100%;
}
.tapsp-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    display: none;
    z-index:1;
}

.tapsp-search-form,
.tapsp-autocomplete-suggestions {
    position: relative;
}

.tapsp-trending-wrapper{
    display:flex;
    flex-wrap: wrap;
    padding:0rem 0.5rem 0.5rem;
}
.tapsp-trending-wrapper .tapsp-suggestion-wrap:hover{
    background:none;
}
.tapsp-trending-wrapper .tapsp-suggestion-wrap a{
    margin-right:0.5rem;
    margin-top:0.5rem;
    margin-bottom:0.5rem;
    border-radius: 15px;
    background: #f6f6f6;
    padding:0.4rem 0.8rem;
}

.tapsp-trending-wrapper .tapsp-suggestion-wrap a:hover{
    background:#ececec;;
}
.tapsp-trending-wrapper .tapsp-suggestion-wrap  .tapsp-title{
    margin-right:0;
}
/* scroll bar css */
.tapsp-autocomplete-suggestions {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(180,180,180,0.6) transparent;
}

/* Chrome / Safari */
.tapsp-autocomplete-suggestions::-webkit-scrollbar {
    width: 6px;
}

/* Track invisible */
.tapsp-autocomplete-suggestions::-webkit-scrollbar-track {
    background: transparent !important;
}

/* Only thumb (lighter color) */
.tapsp-autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: rgba(180,180,180,0.6); /* ⭐ lighter color */
    border-radius: 4px;
}

/* Hover state (still light, but slightly stronger) */
.tapsp-autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(160,160,160,0.8);
}

/* icon style change css */
.logged-in .tapsp-search-box-top{
   top:32px; 
}
.tapsp-search-box-top {
    position: fixed;
    top:0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 18px 15px;
    box-shadow: 0 -5px 30px rgba(0,0,0,0.12);
    transition:top 0.35s ease;
    opacity:0;
    text-align: -webkit-center;
    visibility: hidden;
    z-index: 999;
}

.tapsp-search-box-top.tapsp-popup-open {
    opacity:1;
    visibility:visible;
    
}
.tapsp-search-box-top .tapsp-search-form{
   max-width:550px;
}
.tapsp-scroll-up {
    top: -100px !important;   /* popup upar slide ho jayega */
}
.tapsp-search-box-inner{
    align-items: center;
    display: flex;
    flex-direction: row;
    min-height: 80px;
    padding-left: 0;
    padding-right: 0;}

.tapsp-search-theme-logo{
    width:18%;
}
.tapsp-search-theme-logo img{
    max-width:100%;
    height:auto;
}
.tapsp-search-form-wrap{
    width:100%;
}
.tapsp-search-box.icon_style{
    max-width:none;
}
@media screen and (max-width: 768px){
.th-modern .tapsp-products-wrapper .tapsp-content-wrapp{
    padding:0;
}
.th-modern .tapsp-suggestion-product{
    width:100%;
}
.tapsp-search-box-inner{
    flex-direction: column;
    gap: 15px;
}
.tapsp-search-theme-logo{
    width:100%;
}
.tapsp-search-form-wrap{
    width:100%;
}
}