/* Catalog cards keep native pricing and availability on both layouts. */
html[data-lxf-ux-shop] body:is(.type-category, .type-search) #content .products-block .product .p-desc {
  display: none !important;
}

body.type-search #products-found .lxf-search-count {
  color: #555;
  font-size: 14px;
  margin: 0 0 16px;
}

body.type-search #search-group-categories [data-lxf-forward-result],
body.type-search #search-group-categories[data-lxf-forward-only] {
  display: none !important;
}

body.type-search .lxf-search-empty {
  max-width: 680px;
  margin: 12px 0 28px;
  padding: clamp(16px, 3vw, 28px);
  border: 1px solid #dedede;
  border-radius: 8px;
  background: #f8f8f8;
}

.lxf-search-empty p { margin: 0 0 12px; }
.lxf-search-empty ul {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  padding: 0;
  list-style: none;
}

.lxf-search-empty a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

[data-lxf-search-code] {
  display: block;
  margin-top: 3px;
  color: #595959;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

html[data-lxf-ux-shop="lxf-cz"] .lxf-category-group { display: none; }

@media (max-width: 767px) {
  html[data-lxf-ux-shop="lxf-cz"] body.type-category
  #category-header:has(> .listSorting:not(.dk-sorting--desktop)) {
    min-block-size: 44px;
    margin-block-end: 0;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category
  .category-content-wrapper:has(#category-header > .listSorting:not(.dk-sorting--desktop)) > #products {
    margin-block-start: 12px;
  }

  /* DKLab moves the real filters and leaves an empty wrapper above the grid. */
  html[data-lxf-ux-shop="lxf-cz"] body.type-category
  .category-content-wrapper:has(#category-header > .listSorting:not(.dk-sorting--desktop)) > #filters-wrapper:not(:has(#filters)) {
    margin-block-end: 0;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .category-perex > ul.seo-subcategories.with-image[data-lxf-category-row] {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    overflow: visible !important;
    margin: 6px 0 14px !important;
    padding: 0 !important;
    scroll-snap-type: none;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .category-perex > ul.seo-subcategories.with-image[data-lxf-category-row] > li > a {
    min-height: 46px;
    height: 100% !important;
    padding: 6px 8px !important;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .category-perex > ul.seo-subcategories.with-image[data-lxf-category-row] :is(.image, img) {
    width: 26px !important;
    height: 26px !important;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .category-perex > ul.seo-subcategories.with-image[data-lxf-category-row] .image {
    flex-basis: 26px;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .category-perex > ul.seo-subcategories.with-image[data-lxf-category-row] a:focus-visible,
  html[data-lxf-ux-shop="lxf-cz"] body.type-category .fvstudio-showmore-wrapper a:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .lxf-category-group {
    display: block;
    margin: 12px 0 6px;
    font-size: 14px;
    line-height: 1.3;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category:has(.dkLab-filters-button__item--cancel) #filters > .lxf-category-selected {
    display: none !important;
  }

  html[data-lxf-ux-shop="lxf-cz"]:not(.dklab-filter-window-active) body.type-category:has(.dkLab-filters-button__item--cancel) #filters #clear-filters,
  html[data-lxf-ux-shop="lxf-cz"] body.type-category #filters.otevreno:has(#clear-filters a) .lxf-category-clear {
    display: none;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category button.lxf-category-selected-label {
    min-height: 44px;
    background: #fff;
    color: inherit;
    cursor: pointer;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category button.lxf-category-selected-label::after {
    content: "×";
    margin-inline-start: 8px;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category button.lxf-category-selected-label:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .category-perex:has(> .fvstudio-showmore-wrapper a)
  > .lxf-category-lead-toggle {
    display: none;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .category-perex:has(> .fvstudio-showmore-wrapper a)
  > [data-lxf-category-lead][data-lxf-expanded] {
    display: block;
    max-height: none;
    overflow: visible;
    text-align: start !important;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .fvstudio-showmore-wrapper a:is(.showmore, .showless) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.type-category .breadcrumbs > [data-testid="breadcrumbsLastLevel"] {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-nase-sluzby .products-block .product .p-in:has(.widget-parameter-wrapper[data-parameter-id="32"]) {
    grid-template-rows: auto auto auto !important;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-nase-sluzby .products-block .widget-parameter-wrapper[data-parameter-id="32"],
  html[data-lxf-ux-shop="lxf-cz"] body.in-nase-sluzby .products-block .widget-parameter-wrapper[data-parameter-id="32"] .widget-parameter-list {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-nase-sluzby .products-block .widget-parameter-wrapper[data-parameter-id="32"] .widget-parameter-list {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 4px;
    scroll-snap-type: none;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-nase-sluzby .products-block .widget-parameter-wrapper[data-parameter-id="32"] .widget-parameter-value {
    width: auto !important;
    height: auto !important;
    flex: 0 0 auto !important;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-nase-sluzby .products-block .widget-parameter-wrapper[data-parameter-id="32"] .widget-parameter-value > a {
    display: inline-flex !important;
    align-items: center;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 36px !important;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    line-height: 1.2;
  }

  html[data-lxf-ux-shop="lxf-cz"] body.in-nase-sluzby .products-block .widget-parameter-wrapper[data-parameter-id="32"] .widget-parameter-value > a::after {
    content: none;
  }
}
