/* SavBuy Smart Search v2 */
.savbuy-smart-search-v2{position:relative;width:100%;max-width:780px;margin:0 auto;z-index:10}
.savbuy-smart-search-form{height:54px;display:flex;flex-wrap:nowrap;align-items:center;background:#fff;border:1px solid #d4d4d4;border-radius:28px;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.06)}
.savbuy-smart-search-form:focus-within{border-color:#111;box-shadow:0 5px 22px rgba(0,0,0,.12)}
.savbuy-search-icon{display:none!important}
.savbuy-search-input{flex:1 1 auto;min-width:0;height:100%;border:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;padding:0 12px;font-size:16px}
.savbuy-search-input::-webkit-search-cancel-button{display:none}
.savbuy-search-clear,.savbuy-search-submit{border:0;cursor:pointer;height:100%;background:transparent}
.savbuy-search-clear{width:45px;font-size:24px;color:#777}.savbuy-search-submit{width:48px;margin:4px;height:46px;border-radius:50%;background:#111;color:#fff;font-size:25px}
.savbuy-search-panel{position:absolute;top:62px;left:0;right:0;background:#fff!important;background-color:#fff!important;opacity:1!important;visibility:visible;isolation:isolate;border:1px solid #e4e4e4;border-radius:16px;box-shadow:0 15px 40px rgba(0,0,0,.16);max-height:min(650px,72vh);overflow:auto;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}.savbuy-search-content{background:#fff!important;opacity:1!important}.savbuy-search-panel>*{opacity:1!important}.savbuy-search-panel a,.savbuy-search-panel button{opacity:1!important}
.savbuy-section-title{padding:14px 18px 7px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.07em;color:#777}
.savbuy-category,.savbuy-popular{display:flex;align-items:center;gap:12px;width:100%;padding:11px 18px;border:0;background:#fff!important;background-color:#fff!important;color:#222;text-decoration:none;text-align:left;cursor:pointer}
.savbuy-category:hover,.savbuy-popular:hover,.savbuy-product:hover{background:#f7f7f7}
.savbuy-category i,.savbuy-popular i{margin-left:auto;color:#888;font-style:normal}.savbuy-category span,.savbuy-popular span:first-child{font-size:20px;color:#777}
.savbuy-product{display:flex;background:#fff!important;background-color:#fff!important;align-items:center;gap:13px;padding:10px 18px;text-decoration:none;color:#222}
.savbuy-thumb{width:58px;height:58px;flex:0 0 58px;border-radius:9px;background:#f5f5f5;overflow:hidden}.savbuy-thumb img{width:100%;height:100%;object-fit:cover}
.savbuy-product-info{min-width:0;display:flex;flex-direction:column;gap:3px}.savbuy-product-info strong{font-size:14px;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.savbuy-product-info small{font-size:11px;color:#777}.savbuy-product-info em{font-size:11px;color:#666;font-style:normal}.savbuy-price{font-size:13px;font-weight:800}
.savbuy-view-all{display:flex;background:#fafafa!important;background-color:#fafafa!important;justify-content:space-between;padding:14px 18px;border-top:1px solid #eee;background:#fafafa;color:#111;text-decoration:none;font-weight:700}.savbuy-no-results{text-align:center;background:#fff!important;background-color:#fff!important;padding:28px 18px;color:#555}.savbuy-search-loading{padding:10px 18px;background:#fff!important;background-color:#fff!important;color:#777;font-size:12px}
@media(max-width:767px){
 .savbuy-smart-search-v2{max-width:none}
 .savbuy-smart-search-form{height:49px}
 .savbuy-search-input{font-size:15px}
 /* Mobile: suggestions stay BELOW the search field so they never cover the input. */
 .savbuy-mobile-fullscreen.open .savbuy-search-panel{
   position:absolute;
   top:calc(100% + 8px);
   left:0;
   right:0;
   bottom:auto;
   max-height:min(62vh,560px);
   border-radius:14px;
   z-index:100001;
 }
 body.savbuy-search-open{overflow:visible}
}

/* v2.0.1: keep the dropdown separate from the search field. */
.savbuy-smart-search-v2 .savbuy-search-panel[hidden]{display:none!important}


/* v2.0.4: WoodMart mobile off-canvas menu must always sit above homepage search. */
@media(max-width:767px){
  .savbuy-smart-search-v2{z-index:1!important}
  body:has(.mobile-nav.wd-opened) .savbuy-smart-search-v2,
  body:has(.mobile-nav.wd-side-hidden.wd-opened) .savbuy-smart-search-v2,
  body:has(.mobile-nav.wd-side-hidden-nav.wd-opened) .savbuy-smart-search-v2,
  body:has(.wd-close-side.wd-opened) .savbuy-smart-search-v2,
  html:has(.mobile-nav.wd-opened) .savbuy-smart-search-v2,
  html:has(.wd-close-side.wd-opened) .savbuy-smart-search-v2,
  body.savbuy-woodmart-mobile-menu-open .savbuy-smart-search-v2{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    z-index:-1!important;
  }

  /* Keep WoodMart's drawer/overlay above page content even if another header
     or Elementor wrapper creates a high stacking context. */
  .mobile-nav.wd-opened,
  .mobile-nav.wd-side-hidden.wd-opened,
  .wd-close-side.wd-opened{
    z-index:1000000!important;
  }
}


/* v2.0.6: render the results panel in document.body so Elementor/WoodMart
   ancestor opacity, filters and stacking contexts cannot make the results
   translucent. The panel and every result row are fully opaque. */
.savbuy-search-panel.savbuy-search-panel-portal{
  position:fixed!important;
  z-index:2147483000!important;
  background:#fff!important;
  background-color:#fff!important;
  background-image:none!important;
  opacity:1!important;
  visibility:visible!important;
  filter:none!important;
  -webkit-filter:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  mix-blend-mode:normal!important;
  isolation:isolate!important;
  overflow:auto!important;
  box-sizing:border-box!important;
}
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-search-content,
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-section-title,
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-category,
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-popular,
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-product,
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-view-all,
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-no-results,
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-search-loading{
  opacity:1!important;
  background:#fff!important;
  background-color:#fff!important;
  background-image:none!important;
  filter:none!important;
  mix-blend-mode:normal!important;
}
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-view-all{background:#fafafa!important;background-color:#fafafa!important}
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-product:hover,
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-category:hover,
.savbuy-search-panel.savbuy-search-panel-portal .savbuy-popular:hover{background:#f7f7f7!important}
@media(max-width:767px){
  .savbuy-search-panel.savbuy-search-panel-portal{max-height:min(62vh,560px)!important;border-radius:14px!important;}
}
