:root{
  --smartsearch-bg:#fff;
  --smartsearch-border:rgba(0,0,0,.1);
  --smartsearch-sep:rgba(0,0,0,.06);
  --smartsearch-shadow:0 16px 40px rgba(0,0,0,.14);
  --smartsearch-radius:10px;
  --smartsearch-text:rgba(0,0,0,.86);
  --smartsearch-muted:rgba(0,0,0,.58);
  --smartsearch-card-hover-bg:#efefef;
  --smartsearch-card-hover-border:#dfdfdf;
  --smartsearch-focus:rgba(13,110,253,.2);
  --smartsearch-head-h:54px;
  --smartsearch-foot-h:58px;
  --smartsearch-max-h:74vh;
}

body.smartsearch-open::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(255,255,255,.15);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(8px);
  z-index:99998;
  pointer-events:none;
}
body:not(.smartsearch-open)::before{content:none}

#smartsearch-overlay.smartsearch-dd{
  position:fixed;
  left:50%;
  transform:translateX(-50%);
  top:var(--smartsearch-top,120px);
  width:1102px;
  max-width:calc(100vw - 24px);
  background:var(--smartsearch-bg);
  border:1px solid var(--smartsearch-border);
  border-radius:var(--smartsearch-radius);
  box-shadow:var(--smartsearch-shadow);
  z-index:99999;
  display:flex;
  flex-direction:column;
  max-height:76vh;
  opacity:0;
  transition:opacity .1s ease-out;
}
#smartsearch-overlay[aria-hidden="false"]{opacity:1}
#smartsearch-overlay[aria-hidden="true"]{pointer-events:none!important;visibility:hidden!important;opacity:0}
#smartsearch-overlay[aria-hidden="false"]{pointer-events:auto!important;visibility:visible!important}

@media (min-width:992px) and (max-width:1199.98px){
  #smartsearch-overlay.smartsearch-dd{width:922px;border-radius:14px}
}
@media (min-width:1200px){
  #smartsearch-overlay.smartsearch-dd{width:1202px}
  #smartsearch-overlay img.smartsearch-img{height:200px!important}
}

#smartsearch-overlay .smartsearch-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom:1px solid var(--smartsearch-sep);
}
#smartsearch-overlay .smartsearch-head-title{
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--smartsearch-muted);
  line-height:1.1;
  margin:0 0 2px;
}
#smartsearch-overlay .smartsearch-head-query{
  font-size:14px;
  color:var(--smartsearch-text);
  line-height:1.2;
  max-width:42ch;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
#smartsearch-overlay .smartsearch-head-right{display:flex;align-items:center;gap:10px}
#smartsearch-overlay .smartsearch-head-count{
  font-size:12px;
  color:var(--smartsearch-muted);
  background:rgba(0,0,0,.04);
  border:1px solid rgba(0,0,0,.06);
  padding:4px 8px;
  border-radius:999px;
  white-space:nowrap;
}
#smartsearch-overlay [data-action="close"]{
  border:0;
  background:transparent;
  font-size:22px;
  line-height:1;
  cursor:pointer;
  padding:2px 6px;
  opacity:.75;
  color:#c00036;
  z-index:5;
  position:relative;
  pointer-events:auto!important;
  touch-action:manipulation;
}
#smartsearch-overlay [data-action="close"]:hover{opacity:1}

#smartsearch-overlay .smartsearch-body{
  flex:1 1 auto;
  overflow-y:auto;
  overflow-x:hidden;
  max-height:calc(var(--smartsearch-max-h) - var(--smartsearch-head-h) - var(--smartsearch-foot-h));
  display:grid;
  grid-template-columns:280px minmax(0,1fr);
  gap:18px;
  align-items:start;
  padding:12px 14px 14px;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,.25) rgba(0,0,0,.06);
}
#smartsearch-overlay .smartsearch-body::-webkit-scrollbar{width:10px}
#smartsearch-overlay .smartsearch-body::-webkit-scrollbar-track{background:rgba(0,0,0,.04)}
#smartsearch-overlay .smartsearch-body::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,.2);
  border-radius:999px;
  border:2px solid rgba(255,255,255,.6);
}
#smartsearch-overlay .smartsearch-body::-webkit-scrollbar-thumb:hover{background:rgba(0,0,0,.28)}

#smartsearch-overlay .smartsearch-section-title{
  margin:8px 0 10px;
  padding:0;
  font-size:14px;
  font-weight:800;
  letter-spacing:.02em;
  text-transform:uppercase;
  color:rgba(0,0,0,.68);
  text-align:left;
}

#smartsearch-overlay .smartsearch-cats{display:flex;flex-wrap:wrap;gap:10px;justify-content:flex-start}
#smartsearch-overlay .smartsearch-cat{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  text-decoration:none;
  color:var(--smartsearch-text);
  font-size:13px;
  line-height:1.1;
  max-width:100%;
}
#smartsearch-overlay .smartsearch-cat:hover{background:rgba(0,0,0,.04);border-color:rgba(0,0,0,.16)}
#smartsearch-overlay .smartsearch-cat:focus{outline:0;box-shadow:0 0 0 3px var(--smartsearch-focus)}
.smartsearch-cat__count::before{content:"\00a0"}

#smartsearch-overlay [data-role="prods"]{
  display:grid;
  gap:10px;
  align-content:start;
  grid-template-columns:repeat(4,minmax(0,1fr));
}
@media (min-width:992px) and (max-width:1199.98px){
  #smartsearch-overlay [data-role="prods"]{grid-template-columns:repeat(3,minmax(0,1fr))}
}

#smartsearch-overlay a.smartsearch-item{
  display:block;
  padding:.4rem;
  background:#fff;
  border:1px solid transparent;
  border-radius:10px;
  text-decoration:none;
  color:inherit;
}
#smartsearch-overlay a.smartsearch-item:hover{
  background:var(--smartsearch-card-hover-bg);
  border-color:var(--smartsearch-card-hover-border);
  transform:translateY(-2px);
  transition:transform .15s ease;
}
#smartsearch-overlay a.smartsearch-item:focus{outline:0;box-shadow:0 0 0 3px var(--smartsearch-focus)}

#smartsearch-overlay .smartsearch-imgwrap{position:relative;display:block;width:100%;margin:0 0 .5rem;overflow:visible}
#smartsearch-overlay img.smartsearch-img{
  width:100%;
  height:140px;
  object-fit:contain;
  display:block;
  margin:0 auto;
}

#smartsearch-overlay .smartsearch-meta{display:block;text-align:center;padding:0 .3rem}
#smartsearch-overlay .smartsearch-name{
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  line-clamp:2;
  overflow:hidden;
  font-weight:600;
  font-size:13px;
  line-height:17px;
  white-space:normal;
  word-break:break-word;
}
@supports not (-webkit-line-clamp:2){
  #smartsearch-overlay .smartsearch-name{max-height:34px}
}
#smartsearch-overlay .smartsearch-sub{display:none}
#smartsearch-overlay .smartsearch-mfg{
  display:block;
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:rgba(0,0,0,.55);
  margin-bottom:3px;
}
#smartsearch-overlay .smartsearch-price{font-weight:800;font-size:19px;color:#c00036;white-space:nowrap;line-height:1}
#smartsearch-overlay .smartsearch-price-wrap{
  display:flex;
  align-items:baseline;
  justify-content:center;
  gap:6px;
  margin-top:.35rem;
}
#smartsearch-overlay .smartsearch-vat{font-size:11px;color:rgba(0,0,0,.55);line-height:1;white-space:nowrap}

#smartsearch-overlay .smartsearch-stock-badge{
  position:absolute;
  top:10px;
  left:10px;
  z-index:3;
  padding:3px 7px;
  font-size:10px;
  font-weight:600;
  border-radius:5px;
  line-height:1;
  color:#fff;
  box-shadow:0 2px 10px rgba(0,0,0,.18);
}
.smartsearch-stockbadge--in{background:#27b548;border:1px solid rgba(255,255,255,.25)}
.smartsearch-stockbadge--low{background:#ef6c00}
.smartsearch-stockbadge--out{background:#c62828}

#smartsearch-overlay .smartsearch-prods-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:4px 0 10px;
}
#smartsearch-overlay .smartsearch-prods-head .smartsearch-section-title{margin:0}
#smartsearch-overlay .smartsearch-sort{display:flex;align-items:center;gap:8px;margin:0;white-space:nowrap}
#smartsearch-overlay .smartsearch-sort__label{font-size:14px;color:rgba(0,0,0,.55)}
#smartsearch-overlay .smartsearch-sort__select{
  font-size:12px;
  padding:4px 10px;
  border-radius:20px;
  border:1px solid rgba(0,0,0,.12);
  background:#fff;
  color:rgba(0,0,0,.8);
  min-width:110px;
}
#smartsearch-overlay .smartsearch-sort__select:focus{box-shadow:0 0 0 3px var(--smartsearch-focus)}

.smartsearch-chipsbar{margin:10px 0 14px;display:flex;flex-wrap:wrap;gap:8px;overflow:visible;padding-bottom:0}
.smartsearch-chipbtn{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:4px;
  border:1px solid #dee2e6;
  background:#f1f3f5;
  font-size:13px;
  line-height:1;
  white-space:nowrap;
  cursor:pointer;
  color:#495057;
  transition:background .15s ease,border-color .15s ease,color .15s ease;
}
.smartsearch-chipbtn:hover{background:#dee2e6}
.smartsearch-chipbtn[aria-pressed="true"]{background:#6c757d;color:#fff;border-color:#6c757d}
.smartsearch-chipbtn:not([aria-pressed="true"]):hover{background:#e9ecef}
.smartsearch-chipbtn__x{font-weight:600;opacity:.7}
.smartsearch-mt{margin-top:14px}

.smartsearch-mfgs{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}
.smartsearch-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:10px;
  border:1px solid #dee2e6;
  background:#e9ecef;
  color:#495057;
  font-size:13px;
  line-height:1;
  cursor:pointer;
  user-select:none;
}
.smartsearch-pill:hover{background:#eef1f4}
.smartsearch-pill.is-active{background:#6c757d;color:#fff;border-color:#6c757d}
.smartsearch-pill__count{opacity:.7}

#smartsearch-overlay .smartsearch-foot{
  padding:18px 14px 22px;
  border-top:1px solid var(--smartsearch-sep);
  background:rgba(0,0,0,.01);
  display:flex;
  justify-content:center;
}
#smartsearch-overlay .smartsearch-more{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:340px;
  padding:14px 18px;
  border-radius:999px;
  background:linear-gradient(180deg,#fff 0%,#f7f8fb 100%);
  border:1px solid rgba(0,0,0,.1);
  color:rgba(0,0,0,.84);
  font-size:15px;
  font-weight:700;
  letter-spacing:.2px;
  box-shadow:0 10px 24px rgba(0,0,0,.08),inset 0 1px 0 rgba(255,255,255,.85);
  transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease,background .15s ease;
}
@media (hover:hover){
  #smartsearch-overlay .smartsearch-more:hover{
    transform:translateY(-1px);
    border-color:rgba(0,0,0,.16);
    background:linear-gradient(180deg,#fff 0%,#f3f5f9 100%);
    box-shadow:0 14px 30px rgba(0,0,0,.1),inset 0 1px 0 rgba(255,255,255,.92);
  }
}
#smartsearch-overlay .smartsearch-more:active{
  transform:translateY(0);
  box-shadow:0 8px 18px rgba(0,0,0,.08),inset 0 1px 0 rgba(255,255,255,.8);
}
#smartsearch-overlay .smartsearch-more:focus{outline:0}
#smartsearch-overlay .smartsearch-more:focus-visible{
  outline:0;
  box-shadow:0 0 0 3px rgba(0,0,0,.1),0 10px 24px rgba(0,0,0,.08),inset 0 1px 0 rgba(255,255,255,.85);
}

.smartsearch-col--prods{position:relative}
.smartsearch-footnote{
  position:absolute;
  left:24px;
  bottom:16px;
  font-size:11px;
  color:rgba(0,0,0,.38);
  pointer-events:none;
}

#smartsearch-overlay .smartsearch-cat__x{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:18px;
  height:18px;
  margin-left:6px;
  border-radius:999px;
  border:1px solid rgba(192,0,54,.25);
  background:rgba(192,0,54,.08);
  font-size:0;
}
#smartsearch-overlay .smartsearch-cat__x::before{
  content:"";
  width:12px;
  height:12px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%23C00036' d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 1 0 5.7 7.11L10.59 12l-4.9 4.89a1 1 0 1 0 1.42 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4Z'/%3E%3C/svg%3E") no-repeat center/12px 12px;
}
#smartsearch-overlay .smartsearch-cat.is-active{
  border-color:rgba(192,0,54,.35);
  background:rgba(192,0,54,.05);
}

@media (min-width:992px){
  #smartsearch-overlay .smartsearch-head{
    align-items:center;
    justify-content:flex-start;
  }

  #smartsearch-overlay .smartsearch-head-left{
    flex:0 0 auto;
    min-width:160px;
  }

  #smartsearch-overlay .smartsearch-head-right{
    flex:0 0 auto;
    margin-left:auto;
  }

  #smartsearch-overlay .smartsearch-head-mid{
    flex:1 1 auto;
    display:flex;
    justify-content:center;
    align-items:center;
    min-width:240px;
  }

  #smartsearch-overlay .smartsearch-head-query{
    display:none;
  }

  #smartsearch-hint-search_query_top{
    display:none !important;
  }

  #smartsearch-overlay .smartsearch-qwrap--desktop{
    position:relative;
    width:min(860px,62vw);
    max-width:860px;
  }

  #smartsearch-overlay .smartsearch-head-input--desktop{
    width:100%;
    height:36px;
    padding:0 56px 0 14px;
    font-size:16px;
    font-weight:600;
    font-family:inherit;
    color:rgba(0,0,0,.88);
    background:#fff;
    border:1.5px solid rgba(0,0,0,.14);
    border-radius:12px;
    outline:none;
    box-shadow:none;
    -webkit-appearance:none;
    appearance:none;
    transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
  }

  #smartsearch-overlay .smartsearch-head-input--desktop::placeholder{
    color:rgba(0,0,0,.40);
    font-weight:500;
  }

  #smartsearch-overlay .smartsearch-head-input--desktop:hover{
    border-color:rgba(0,0,0,.22);
  }

  #smartsearch-overlay .smartsearch-head-input--desktop:focus{
    border-color:#C00036;
    box-shadow:0 0 0 3px rgba(192,0,54,.14);
  }

  #smartsearch-overlay .smartsearch-head-input--desktop:focus-visible{
    outline:none;
  }

  #smartsearch-overlay .smartsearch-head-input--desktop::-webkit-search-cancel-button{
    -webkit-appearance:none;
    appearance:none;
    display:none;
  }

  #smartsearch-overlay .smartsearch-head-mid .smartsearch-qclear{
    position:absolute;
    right:14px;
    top:50%;
    transform:translateY(-50%);
    width:26px;
    height:26px;
    border-radius:999px;
    border:1px solid rgba(192,0,54,.22);
    background-color:rgba(192,0,54,.06);
    padding:0;
    cursor:pointer;
    touch-action:manipulation;
    -webkit-tap-highlight-color:rgba(0,0,0,0);
  }

  #smartsearch-overlay .smartsearch-head-mid .smartsearch-qclear::before{
    content:"";
    display:block;
    width:100%;
    height:100%;
    background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24'%3E%3Cpath fill='%23C00036' d='M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7A1 1 0 1 0 5.7 7.11L10.59 12l-4.9 4.89a1 1 0 1 0 1.42 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4Z'/%3E%3C/svg%3E") no-repeat center/18px 18px;
  }

  #smartsearch-overlay .smartsearch-head-mid .smartsearch-qclear:active{
    background-color:rgba(192,0,54,.12);
    border-color:rgba(192,0,54,.30);
  }

  #smartsearch-overlay .smartsearch-head-input--desktop:placeholder-shown + .smartsearch-qclear{
    opacity:0;
    pointer-events:none;
  }

  @media (min-width:1200px){
    #smartsearch-overlay .smartsearch-qwrap--desktop{
      width:min(920px,58vw);
      max-width:920px;
    }
  }
}