
.sg-header-search-host { position:relative !important; overflow:visible !important; }
.sg-header-dropdown {
  z-index:10050;
  border:1px solid #dfe5ec;
  border-radius:9px;
  background:#fff;
  box-shadow:0 14px 34px rgba(24,39,56,.18);
  overflow:auto;
  text-align:left;
}
.sg-header-dropdown.sg-no-scroll { overflow:hidden; }
.sg-hd-inner { display:grid; grid-template-columns:250px minmax(0,1fr); }
.sg-hd-side { padding:10px; background:#fafbfd; border-right:1px solid #edf0f3; overflow:auto; }
.sg-hd-title { margin:3px 6px 5px; color:#7d8794; font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:.05em; }
.sg-hd-title-manufacturers { margin-top:13px; }
.sg-hd-side-link { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:6px; padding:7px 6px; border-radius:6px; color:#35495f; text-decoration:none !important; font-size:12px; }
.sg-hd-side-link:hover,.sg-hd-side-link.is-direct { background:#eef5ff; color:#1d5f9f; }
.sg-hd-side-link small { color:#98a2ad; }

.sg-hd-main { min-width:0; display:flex; flex-direction:column; }
.sg-hd-main-body { min-width:0; flex:1 1 auto; }
.sg-hd-correction { padding:8px 10px; border-bottom:1px solid #edf0f3; background:#fafbfc; color:#6d7885; font-size:11px; }
.sg-hd-products { display:grid; grid-template-columns:1fr; }
.sg-hd-products.sg-cols-2 { grid-template-columns:1fr 1fr; }
.sg-hd-product { display:grid; grid-template-columns:minmax(0,1fr) 44px; border-bottom:1px solid #edf0f3; }
.sg-hd-products.sg-cols-2 .sg-hd-product { border-right:1px solid #edf0f3; }
.sg-hd-products.sg-cols-2 .sg-hd-product:nth-child(2n) { border-right:0; }
.sg-hd-product-link { display:grid; grid-template-columns:60px minmax(0,1fr) auto; gap:10px; align-items:center; padding:8px 10px; color:inherit; text-decoration:none !important; }
.sg-hd-product-link:hover { background:#f8fbff; }
.sg-hd-thumb { width:56px; height:56px; display:flex; align-items:center; justify-content:center; border-radius:5px; background:#fff; overflow:hidden; }
.sg-hd-thumb img { width:56px; height:56px; object-fit:contain; border-radius:5px; background:#fff; }
.sg-hd-no-image { width:56px; height:56px; display:flex; align-items:center; justify-content:center; color:#c5ccd3; background:#f6f8fa; border-radius:5px; font-size:20px; }
.sg-hd-body { min-width:0; }
.sg-hd-body strong { display:block; color:#263443; font-size:13px; line-height:1.3; }
.sg-hd-body small { display:block; margin-top:2px; color:#8994a0; font-size:10px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.sg-hd-body em { display:block; margin-top:2px; font-style:normal; font-size:10px; }
.sg-hd-body em.is-in { color:#2e8c41; }
.sg-hd-body em.is-out { color:#9b762c; }
.sg-hd-price { color:#d83a30; font-size:13px; font-weight:700; white-space:nowrap; margin-left:6px; }
.sg-hd-cart { align-self:center; width:34px; height:34px; margin-right:7px; border:0; border-radius:6px; background:#75c844; color:#fff; }
.sg-hd-cart:hover { background:#67b73a; }
.sg-hd-all { width:100%; min-height:46px; border:0; border-top:1px solid #dce7f3; background:#f2f7fd; color:#1762ad; font-size:13px; font-weight:700; }
.sg-hd-empty { padding:28px 18px; color:#52606e; text-align:left; font-size:13px; }
.sg-hd-empty strong { display:block; margin-bottom:5px; }
.sg-hd-empty-suggest { color:#7b8794; }
.sg-hd-suggest { padding:0; border:0; background:none; color:#1762ad; font-weight:700; text-decoration:underline; }

@media (max-width:1100px) {
  .sg-hd-inner { grid-template-columns:220px minmax(0,1fr); }
  .sg-hd-product-link { grid-template-columns:52px minmax(0,1fr) auto; }
  .sg-hd-thumb,
  .sg-hd-thumb img,
  .sg-hd-no-image { width:48px; height:48px; }
}

@media (max-width:767px) {
  .sg-header-dropdown { max-height:72vh; }
  .sg-hd-inner { display:block; }

  .sg-hd-side {
    display:block;
    padding:0;
    border-right:0;
    border-bottom:1px solid #e7ebef;
    background:#fafbfd;
    overflow:visible;
  }

  .sg-hd-mobile-facet-tabs {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:0;
  }

  .sg-hd-mobile-facet-toggle {
    display:flex;
    align-items:center;
    justify-content:flex-start;
    gap:6px;
    min-height:38px;
    padding:8px 10px;
    border:0;
    border-right:1px solid #e7ebef;
    background:#f4f7fa;
    color:#526579;
    font-size:11px;
    font-weight:700;
    text-transform:uppercase;
    text-align:left;
  }

  .sg-hd-mobile-facet-toggle:last-child {
    border-right:0;
  }

  .sg-hd-mobile-facet-toggle span {
    color:#98a2ad;
    font-weight:400;
  }

  .sg-hd-mobile-chevron {
    margin-left:auto;
    transition:transform .15s ease;
  }

  .sg-hd-mobile-facet-toggle[aria-expanded="true"] .sg-hd-mobile-chevron {
    transform:rotate(180deg);
  }

  .sg-hd-facet-section {
    display:none;
    padding:7px 8px 8px;
    border-top:1px solid #e7ebef;
    background:#fff;
  }

  .sg-hd-facet-section.is-mobile-open {
    display:block;
  }

  .sg-hd-facet-section .sg-hd-title {
    display:none;
  }

  .sg-hd-side-link {
    padding:7px 5px;
  }

  .sg-hd-products, .sg-hd-products.sg-cols-2 { grid-template-columns:1fr; }
  .sg-hd-products.sg-cols-2 .sg-hd-product { border-right:0; }
  .sg-hd-product-link { grid-template-columns:44px minmax(0,1fr); }
  .sg-hd-thumb,
  .sg-hd-thumb img,
  .sg-hd-no-image { width:40px; height:40px; }
  .sg-hd-price { grid-column:2; margin-left:0; margin-top:3px; }
}


/* SearchGate v0.15.2 */
.sg-hd-inner.sg-no-side {
  grid-template-columns:minmax(0,1fr);
}
.sg-hd-inner.sg-no-side .sg-hd-main {
  grid-column:1 / -1;
}
.sg-hd-inner.sg-no-side .sg-hd-empty {
  min-height:92px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.sg-hd-inner.sg-no-side .sg-hd-all {
  width:100%;
}
@media (min-width:768px) {
  .sg-hd-products.sg-cols-2 .sg-hd-product-link {
    grid-template-columns:52px minmax(0,1fr) auto;
    gap:8px;
    padding:7px 8px;
  }
  .sg-hd-products.sg-cols-2 .sg-hd-thumb,
  .sg-hd-products.sg-cols-2 .sg-hd-thumb img,
  .sg-hd-products.sg-cols-2 .sg-hd-no-image {
    width:48px;
    height:48px;
  }
  .sg-hd-products.sg-cols-2 .sg-hd-body strong {
    font-size:12px;
  }
}


/* SearchGate v0.15.3 */
.sg-header-dropdown {
  box-sizing:border-box !important;
  margin:0 !important;
  transform:none !important;
}

.sg-header-dropdown .sg-hd-inner,
.sg-header-dropdown .sg-hd-main,
.sg-header-dropdown .sg-hd-main-body,
.sg-header-dropdown .sg-hd-products,
.sg-header-dropdown .sg-hd-empty-layout {
  box-sizing:border-box !important;
  width:100% !important;
  min-width:0 !important;
}

.sg-header-dropdown .sg-hd-empty-layout {
  display:block !important;
}

.sg-header-dropdown .sg-hd-empty {
  width:100% !important;
  min-height:95px;
  padding:24px 22px;
}

.sg-header-dropdown .sg-hd-empty-layout .sg-hd-all {
  display:block !important;
  width:100% !important;
}

.sg-header-dropdown .sg-hd-products.sg-cols-1 {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) !important;
}

.sg-header-dropdown .sg-hd-products.sg-cols-2 {
  display:grid !important;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr) !important;
}

.sg-header-dropdown .sg-hd-product {
  width:auto !important;
  min-width:0 !important;
  float:none !important;
  margin:0 !important;
}

@media (max-width:767px) {
  .sg-header-dropdown .sg-hd-products.sg-cols-2 {
    grid-template-columns:minmax(0,1fr) !important;
  }
}


/* SearchGate v0.16.1: primary highlighting belongs in live search */
.sg-header-dropdown .sg-hd-product.is-primary {
  background:linear-gradient(90deg,#fffaf0 0%,#fffdf8 72%,#fff 100%);
  border-bottom-color:#eadfb9;
}
.sg-header-dropdown .sg-hd-product.is-primary .sg-hd-product-link:hover {
  background:rgba(255,248,225,.72);
}


/* SearchGate v0.16.7: live facet icons/counts + compact timing */
.sg-header-dropdown .sg-hd-title {
  display:flex;
  align-items:center;
  gap:5px;
}
.sg-header-dropdown .sg-hd-title > i {
  color:#829bb3;
  width:13px;
  text-align:center;
}
.sg-header-dropdown .sg-hd-side-link {
  grid-template-columns:18px minmax(0,1fr) auto;
  align-items:start;
}
.sg-header-dropdown .sg-hd-side-icon {
  color:#819bb4;
  text-align:center;
  padding-top:1px;
}
.sg-header-dropdown .sg-hd-side-name {
  min-width:0;
}
.sg-header-dropdown .sg-hd-direct-label {
  display:block;
  margin-top:1px;
  color:#8a9db0;
  font-size:9px;
  font-weight:400;
}
.sg-header-dropdown .sg-hd-side-count {
  min-width:14px;
  text-align:right;
  color:#98a2ad;
}
.sg-header-dropdown .sg-hd-debug {
  min-height:20px;
  padding:4px 10px 3px;
  border-top:1px solid #edf0f3;
  background:#fbfcfd;
  color:#929ba8;
  font-size:10px;
  line-height:1.2;
  text-align:right;
}


/* SearchGate v0.16.8: product count + timing header */
.sg-header-dropdown .sg-hd-products-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  min-height:31px;
  padding:6px 10px;
  border-bottom:1px solid #e7ebef;
  background:#fafbfd;
  color:#626f7e;
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.035em;
}
.sg-header-dropdown .sg-hd-products-head strong {
  font-size:10px;
  color:#5e6b79;
}
.sg-header-dropdown .sg-hd-products-count {
  color:#97a2ad;
  font-weight:400;
}
.sg-header-dropdown .sg-hd-products-head .sg-hd-debug {
  min-height:0;
  padding:0;
  border:0;
  background:transparent;
  color:#929ba8;
  font-size:10px;
  line-height:1.2;
  text-align:right;
  text-transform:none;
  letter-spacing:0;
  white-space:nowrap;
}
.sg-header-dropdown .sg-hd-empty-meta {
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:6px 18px;
  border-top:1px solid #edf0f3;
  background:#fafbfd;
  color:#929ba8;
  font-size:10px;
}


/* SearchGate v0.17.1 - Journal 3 compatibility */
.sg-header-dropdown {
  display:block;
}
.sg-header-dropdown[style*="display: none"] {
  display:none !important;
}
#search.sg-header-search-host,
.header-search.sg-header-search-host {
  overflow:visible !important;
}


/* SearchGate v0.17.2: mobile facets restored */
.sg-hd-mobile-facet-tabs {
  display:none;
}

@media (min-width:768px) {
  .sg-hd-facet-section {
    display:block !important;
  }
}

@media (max-width:767px) {
  .sg-hd-mobile-facet-tabs {
    display:grid;
  }
}


/* SearchGate v0.17.3 */
.sg-header-dropdown .sg-hd-cart.is-added {
  background:#5cb85c;
}
