
.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:var(--sg-side-width,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:var(--sg-accent,#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:var(--sg-cart,#05a9c3); 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:var(--sg-accent,#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:var(--sg-accent,#1762ad); font-weight:700; text-decoration:underline; }

@media (max-width:1100px) {
  .sg-hd-inner { grid-template-columns:min(220px,var(--sg-side-width,250px)) 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;
}

/* SearchGate v0.18.2 – nabídka před psaním */
.sg-discover{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(230px,.75fr) minmax(480px,1.8fr);min-height:360px;background:#fff;}
.sg-discover h4{margin:0 0 12px;color:#263443;font-size:12px;font-weight:700;letter-spacing:.03em;}
.sg-discover-side{padding:18px;background:#faf7ee;border-right:1px solid #eee7d8;}
.sg-discover-section+.sg-discover-section{margin-top:18px;padding-top:18px;border-top:1px solid #ece5d6;}
.sg-discover-section h4 i{color:var(--sg-accent,#1762ad);margin-right:5px;}
.sg-discover-chips{display:flex;flex-wrap:wrap;gap:7px;}
.sg-discover-query{border:1px solid #dbe3eb;border-radius:18px;background:#fff;padding:6px 11px;color:#405264;font-size:11px;}
.sg-discover-query:hover{border-color:var(--sg-accent,#1762ad);color:var(--sg-accent,#1762ad);}
.sg-discover-category{display:flex;justify-content:space-between;gap:10px;padding:7px 2px;color:#34495e;text-decoration:none!important;font-size:12px;}
.sg-discover-category:hover{color:var(--sg-accent,#1762ad);}
.sg-discover-category small{color:#9aa4ae;}
.sg-discover-top{padding:18px;border-right:1px solid #edf0f3;text-align:center;}
.sg-discover-top-card{position:relative;display:flex;min-height:300px;flex-direction:column;align-items:center;gap:8px;color:inherit;text-decoration:none!important;}
.sg-discover-top-badge{position:absolute;top:0;left:0;padding:5px 11px;border-radius:5px;background:#f3ce67;color:#21344b;font-size:11px;font-weight:700;}
.sg-discover-top-image{width:100%;height:190px;display:flex;align-items:center;justify-content:center;background:#fafafa;border:1px solid #eee;border-radius:6px;overflow:hidden;}
.sg-discover-top-image img{max-width:100%;max-height:100%;object-fit:contain;}
.sg-discover-top-card strong{max-width:210px;color:#263443;font-size:14px;line-height:1.3;}
.sg-discover-top-card em,.sg-discover-product em{font-style:normal;font-size:11px;}
.sg-discover-top-card em.is-in,.sg-discover-product em.is-in{color:#2e8c41;}
.sg-discover-top-card em.is-out,.sg-discover-product em.is-out{color:#9b762c;}
.sg-discover-top-card b,.sg-discover-product b{color:#d83a30;font-size:13px;}
.sg-discover-products{padding:18px;min-width:0;}
.sg-discover-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;}
.sg-discover-product{position:relative;min-width:0;border:1px solid #e5e9ed;border-radius:6px;background:#fff;overflow:hidden;}
.sg-discover-product-link{display:flex;min-height:180px;flex-direction:column;gap:5px;padding:10px 10px 42px;color:inherit;text-decoration:none!important;}
.sg-discover-product-image{height:92px;display:flex;align-items:center;justify-content:center;}
.sg-discover-product-image img{max-width:100%;max-height:92px;object-fit:contain;}
.sg-discover-product strong{color:#263443;font-size:12px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.sg-discover-cart{position:absolute;right:8px;bottom:8px;margin:0;}
@media(max-width:1000px){.sg-discover{grid-template-columns:250px minmax(0,1fr);}.sg-discover-top{display:none;}.sg-discover-grid{grid-template-columns:repeat(2,minmax(0,1fr));}}
@media(max-width:767px){.sg-discover{display:block;min-height:0;}.sg-discover-side{border-right:0;border-bottom:1px solid #eee7d8;}.sg-discover-top{display:none;}.sg-discover-products{padding:10px;}.sg-discover-grid{grid-template-columns:1fr 1fr;gap:7px;}.sg-discover-product-link{min-height:150px;padding:8px 8px 38px;}.sg-discover-product-image{height:70px;}.sg-discover-product-image img{max-height:70px;}}


/* SearchGate v0.18.4 – test-page host only */
#searchgate-test-host {
  position:relative;
  max-width:none;
  margin:18px 0 28px;
}
#searchgate-test-host .sg-test-input-group {
  display:flex;
  width:100%;
  border:1px solid #b8c7d8;
  border-radius:8px;
  background:#fff;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(36,67,98,.08);
}
#searchgate-test-host input[name="search"] {
  flex:1 1 auto;
  min-width:0;
  height:56px;
  padding:0 16px;
  border:0;
  outline:0;
  background:#fff;
  font-size:18px;
  color:#364657;
}
#searchgate-test-host .sg-test-search-button {
  flex:0 0 64px;
  border:0;
  border-left:1px solid #e1e7ed;
  background:var(--sg-accent,#1762ad);
  color:#fff;
  font-size:20px;
}
#searchgate-test-note {
  margin:8px 0 0;
  color:#7f8b96;
  font-size:12px;
}


/* SearchGate v0.18.8 – configurable font size */
.sg-header-dropdown.sg-font-medium .sg-hd-title{font-size:11px}.sg-header-dropdown.sg-font-large .sg-hd-title{font-size:12px}
.sg-header-dropdown.sg-font-medium .sg-hd-side-link{font-size:13px}.sg-header-dropdown.sg-font-large .sg-hd-side-link{font-size:14px}
.sg-header-dropdown.sg-font-medium .sg-hd-body strong{font-size:14px}.sg-header-dropdown.sg-font-large .sg-hd-body strong{font-size:15px}
.sg-header-dropdown.sg-font-medium .sg-hd-body small,.sg-header-dropdown.sg-font-medium .sg-hd-body em{font-size:11px}.sg-header-dropdown.sg-font-large .sg-hd-body small,.sg-header-dropdown.sg-font-large .sg-hd-body em{font-size:12px}
.sg-header-dropdown.sg-font-medium .sg-hd-price{font-size:14px}.sg-header-dropdown.sg-font-large .sg-hd-price{font-size:15px}
.sg-header-dropdown.sg-font-medium .sg-hd-all,.sg-header-dropdown.sg-font-medium .sg-hd-empty{font-size:14px}.sg-header-dropdown.sg-font-large .sg-hd-all,.sg-header-dropdown.sg-font-large .sg-hd-empty{font-size:15px}
.sg-header-dropdown.sg-font-medium .sg-discover h4{font-size:13px}.sg-header-dropdown.sg-font-large .sg-discover h4{font-size:14px}
.sg-header-dropdown.sg-font-medium .sg-discover-query{font-size:12px}.sg-header-dropdown.sg-font-large .sg-discover-query{font-size:13px}
.sg-header-dropdown.sg-font-medium .sg-discover-category{font-size:13px}.sg-header-dropdown.sg-font-large .sg-discover-category{font-size:14px}
.sg-header-dropdown.sg-font-medium .sg-discover-product strong{font-size:13px}.sg-header-dropdown.sg-font-large .sg-discover-product strong{font-size:14px}
.sg-header-dropdown.sg-font-medium .sg-discover-top-card strong{font-size:15px}.sg-header-dropdown.sg-font-large .sg-discover-top-card strong{font-size:16px}
.sg-header-dropdown.sg-font-medium .sg-discover-product em,.sg-header-dropdown.sg-font-medium .sg-discover-top-card em{font-size:12px}.sg-header-dropdown.sg-font-large .sg-discover-product em,.sg-header-dropdown.sg-font-large .sg-discover-top-card em{font-size:13px}
.sg-header-dropdown.sg-font-medium .sg-discover-product b,.sg-header-dropdown.sg-font-medium .sg-discover-top-card b{font-size:14px}.sg-header-dropdown.sg-font-large .sg-discover-product b,.sg-header-dropdown.sg-font-large .sg-discover-top-card b{font-size:15px}


/* SearchGate v0.19.2 – compact discovery promo layout */
.sg-discover{grid-template-columns:minmax(200px,.62fr) minmax(300px,.88fr) minmax(650px,2.15fr);min-height:0}
.sg-discover-side{padding:16px 14px}.sg-discover-top{padding:16px 14px}.sg-discover-products{padding:16px 14px}
.sg-discover-top-card{min-height:300px}.sg-discover-top-image{height:185px}
.sg-discover-featured-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.sg-discover-featured .sg-discover-product-link{min-height:250px}
.sg-discover-featured .sg-discover-product-image{height:125px}
.sg-discover-featured .sg-discover-product-image img{max-height:125px}
.sg-discover-compact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 10px;margin-top:12px;padding-top:12px;border-top:1px solid #e8edf2}
.sg-discover-compact{position:relative;min-width:0;min-height:86px;border:1px solid #e5e9ed;border-radius:6px;background:#fff;overflow:hidden}
.sg-discover-compact-link{display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:86px;padding:8px 52px 8px 8px;color:inherit;text-decoration:none!important}
.sg-discover-compact-image{width:72px;height:66px;display:flex;align-items:center;justify-content:center}
.sg-discover-compact-image img{max-width:72px;max-height:66px;object-fit:contain}
.sg-discover-compact-body{min-width:0;display:flex;flex-direction:column;gap:4px}
.sg-discover-compact strong{color:#263443;font-size:12px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.sg-discover-compact em{font-style:normal;font-size:11px}.sg-discover-compact em.is-in{color:#2e8c41}.sg-discover-compact em.is-out{color:#9b762c}
.sg-discover-compact b{white-space:nowrap;color:#d83a30;font-size:13px}
.sg-discover-compact-cart{position:absolute;right:8px;bottom:50%;transform:translateY(50%)}
.sg-header-dropdown.sg-font-medium .sg-discover-compact strong{font-size:13px}.sg-header-dropdown.sg-font-large .sg-discover-compact strong{font-size:14px}
.sg-header-dropdown.sg-font-medium .sg-discover-compact em{font-size:12px}.sg-header-dropdown.sg-font-large .sg-discover-compact em{font-size:13px}
.sg-header-dropdown.sg-font-medium .sg-discover-compact b{font-size:14px}.sg-header-dropdown.sg-font-large .sg-discover-compact b{font-size:15px}
@media(max-width:1200px){.sg-discover{grid-template-columns:minmax(190px,.58fr) minmax(270px,.82fr) minmax(540px,1.9fr)}.sg-discover-compact-link{grid-template-columns:62px minmax(0,1fr) auto}.sg-discover-compact-image{width:62px}.sg-discover-compact-image img{max-width:62px}}
@media(max-width:1000px){.sg-discover{grid-template-columns:220px minmax(0,1fr)}.sg-discover-top{display:none}.sg-discover-featured-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.sg-discover-compact-grid{grid-template-columns:1fr 1fr}}
@media(max-width:767px){.sg-discover{display:block}.sg-discover-featured-grid{grid-template-columns:1fr 1fr}.sg-discover-featured .sg-discover-product-link{min-height:160px}.sg-discover-featured .sg-discover-product-image{height:76px}.sg-discover-featured .sg-discover-product-image img{max-height:76px}.sg-discover-compact-grid{grid-template-columns:1fr}}


/* SearchGate v0.19.3 – top cart + global discover hover */
.sg-discover-top-box{position:relative;min-height:300px;padding-bottom:54px}
.sg-discover-top-card{min-height:0;height:100%;padding:0 0 2px;border:1px solid transparent;border-radius:8px;transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.sg-discover-top-card strong,.sg-discover-top-card em,.sg-discover-top-card b{transition:color .18s ease}
.sg-discover-top-cart{position:absolute;left:50%;bottom:8px;transform:translateX(-50%)}

.sg-discover-category,
.sg-discover-product,
.sg-discover-compact,
.sg-discover-top-card,
.sg-discover-query{transition:background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease,color .18s ease}

.sg-discover-category{border:1px solid transparent;border-radius:6px;padding:8px 10px;margin:0 -10px}
.sg-discover-category:hover{background:#f8fbff;border-color:#d9e7f5;color:var(--sg-accent,#1762ad);transform:translateY(-1px)}
.sg-discover-category:hover small{color:#7c8ea0}

.sg-discover-top-card:hover,
.sg-discover-product:hover,
.sg-discover-compact:hover{background:#fbfdff;border-color:#d9e7f5;box-shadow:0 6px 18px rgba(26,65,104,.08);transform:translateY(-1px)}
.sg-discover-top-card:hover strong,
.sg-discover-product:hover strong,
.sg-discover-compact:hover strong{color:var(--sg-accent,#1762ad)}
.sg-discover-top-card:hover .sg-discover-top-image,
.sg-discover-product:hover .sg-discover-product-image,
.sg-discover-compact:hover .sg-discover-compact-image{background:#fcfdff}

.sg-discover-featured .sg-discover-product-link,
.sg-discover-compact-link{transition:none}

@media(max-width:767px){
  .sg-discover-top-box{min-height:0;padding-bottom:50px}
}


/* SearchGate v0.19.4 – stronger TOP product visual */
.sg-discover-top-box{min-height:430px}
.sg-discover-top-image{height:278px}
.sg-discover-top-card{min-height:360px}
.sg-discover-top-image img{max-height:278px}
@media(max-width:1200px){.sg-discover-top-image{height:245px}.sg-discover-top-image img{max-height:245px}.sg-discover-top-box{min-height:395px}}


/* SearchGate v0.20.4 – OC2.1 discovery layout fixes
   Use the configured sidebar width also before typing. */
@media (min-width:1001px) {
  .sg-discover {
    grid-template-columns:
      var(--sg-side-width,250px)
      minmax(300px,.88fr)
      minmax(650px,2.15fr) !important;
  }
}

@media (min-width:768px) and (max-width:1000px) {
  .sg-discover {
    grid-template-columns:
      var(--sg-side-width,250px)
      minmax(0,1fr) !important;
  }
}

/* When content fits, don't reserve an internal scrollbar/gutter. */


/* SearchGate v0.20.5 – keep discovery fully inside the white popup */
.sg-header-dropdown {
  overflow-x: hidden !important;
}

.sg-discover,
.sg-discover > section,
.sg-discover-side,
.sg-discover-top,
.sg-discover-products,
.sg-discover-grid,
.sg-discover-featured-grid,
.sg-discover-compact-grid {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Keep the configured left column exact, but let the TOP and product areas
   shrink to the real popup width. The old hard 650px minimum forced cards
   outside the popup on hkzabradli.cz. */
@media (min-width:1001px) {
  .sg-discover {
    grid-template-columns:
      var(--sg-side-width,250px)
      minmax(250px,.86fr)
      minmax(0,2.14fr) !important;
    width: 100%;
  }
}

@media (min-width:768px) and (max-width:1000px) {
  .sg-discover {
    grid-template-columns:
      var(--sg-side-width,250px)
      minmax(0,1fr) !important;
    width: 100%;
  }
}

/* If everything fits vertically, suppress the scrollbar, but never allow
   child elements to escape horizontally or paint beyond the white box. */
.sg-header-dropdown.sg-no-scroll {
  overflow-x: hidden !important;
  overflow-y: hidden !important;
}
