/* @import must be first – rules above @import are invalid and imports get dropped */
@import url("/user/documents/upload/iontmax-breadcrumbs.css?v=2");
@import url("/user/documents/upload/products/iontmax-buy-now-popup.css?v=21");

.type-page header[itemprop="headline"] {
  display: none !important;
}

/* Skrýt řazení produktů na kategoriích (Nejlevnější, Nejdražší, …) */
body.type-category .listSorting,
body.in-category .listSorting,
body.template-category .listSorting,
body.type-search .listSorting {
  display: none !important;
}

/* ── Search results – category/article chips (match category subpages) ── */
body.type-search,
body.in-vyhledavani,
body.template-11 {
  --im-search-pad: var(--im-pad, clamp(16px, 4.2vw, 72px));
  --im-search-max: var(--im-max, 1800px);
  --im-search-text: #111214;
  --im-search-muted: #6b7280;
  --im-search-line: #ececec;
  --im-search-surface: #f6f6f6;
}

body.type-search #content > h2,
body.in-vyhledavani #content > h2,
body.template-11 #content > h2 {
  box-sizing: border-box !important;
  width: min(calc(100% - (var(--im-search-pad) * 2)), var(--im-search-max)) !important;
  max-width: var(--im-search-max) !important;
  margin: 0 auto clamp(20px, 2vw, 28px) !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--im-search-text) !important;
  font-size: clamp(24px, 1.8vw, 32px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
}

body.type-search #content > h2 .highlight,
body.in-vyhledavani #content > h2 .highlight,
body.template-11 #content > h2 .highlight {
  color: inherit !important;
  font-weight: inherit !important;
}

body.type-search .search-results-groups,
body.in-vyhledavani .search-results-groups,
body.template-11 .search-results-groups {
  box-sizing: border-box !important;
  width: min(calc(100% - (var(--im-search-pad) * 2)), var(--im-search-max)) !important;
  max-width: var(--im-search-max) !important;
  margin: 0 auto clamp(24px, 2vw, 32px) !important;
  padding: 0 !important;
}

body.type-search .search-results-group,
body.in-vyhledavani .search-results-group,
body.template-11 .search-results-group {
  margin: 0 0 clamp(20px, 1.8vw, 28px) !important;
  padding: 0 !important;
}

body.type-search .search-results-group:last-child,
body.in-vyhledavani .search-results-group:last-child,
body.template-11 .search-results-group:last-child {
  margin-bottom: 0 !important;
}

body.type-search .search-results-group > h4,
body.in-vyhledavani .search-results-group > h4,
body.template-11 .search-results-group > h4,
body.type-search .search-products-heading,
body.in-vyhledavani .search-products-heading,
body.template-11 .search-products-heading {
  margin: 0 0 clamp(14px, 1.2vw, 18px) !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--im-search-text) !important;
  font-size: clamp(18px, 1.2vw, 22px) !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
}

body.type-search .search-results-group-list,
body.in-vyhledavani .search-results-group-list,
body.template-11 .search-results-group-list {
  margin: 0 !important;
  padding: 0 !important;
}

body.type-search .search-results-group-list > ul,
body.in-vyhledavani .search-results-group-list > ul,
body.template-11 .search-results-group-list > ul {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.type-search .search-results-group-list > ul > li,
body.in-vyhledavani .search-results-group-list > ul > li,
body.template-11 .search-results-group-list > ul > li {
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

body.type-search .search-results-group-list > ul > li::before,
body.in-vyhledavani .search-results-group-list > ul > li::before,
body.template-11 .search-results-group-list > ul > li::before,
body.type-search .search-results-group-list > ul > li::marker,
body.in-vyhledavani .search-results-group-list > ul > li::marker,
body.template-11 .search-results-group-list > ul > li::marker {
  display: none !important;
  content: none !important;
}

body.type-search .search-results-group-list a,
body.in-vyhledavani .search-results-group-list a,
body.template-11 .search-results-group-list a {
  box-sizing: border-box !important;
  display: inline-block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 42px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid var(--im-search-line) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--im-search-text) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 40px !important;
  white-space: nowrap !important;
  text-align: center !important;
  text-decoration: none !important;
  vertical-align: middle !important;
  transition: border-color 0.18s ease, background-color 0.18s ease !important;
}

body.type-search .search-results-group-list a:hover,
body.in-vyhledavani .search-results-group-list a:hover,
body.template-11 .search-results-group-list a:hover,
body.type-search .search-results-group-list a:focus-visible,
body.in-vyhledavani .search-results-group-list a:focus-visible,
body.template-11 .search-results-group-list a:focus-visible {
  border-color: #d8d8d8 !important;
  background: var(--im-search-surface) !important;
  color: var(--im-search-text) !important;
  text-decoration: none !important;
}

body.type-search #products-found.search-results,
body.in-vyhledavani #products-found.search-results,
body.template-11 #products-found.search-results {
  box-sizing: border-box !important;
  width: min(calc(100% - (var(--im-search-pad) * 2)), var(--im-search-max)) !important;
  max-width: var(--im-search-max) !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

@media (max-width: 767px) {
  body.type-search .search-results-groups,
  body.in-vyhledavani .search-results-groups,
  body.template-11 .search-results-groups,
  body.type-search #content > h2,
  body.in-vyhledavani #content > h2,
  body.template-11 #content > h2,
  body.type-search #products-found.search-results,
  body.in-vyhledavani #products-found.search-results,
  body.template-11 #products-found.search-results {
    width: min(calc(100% - 32px), var(--im-search-max)) !important;
  }
}

/* =========================================================
   Shoptet Classic - horní notifikace / toast
   Cíl: nahoře uprostřed, max 500px, vidět cca 2s,
   neblokovat horní menu
   ========================================================= */
