/* Nanolab category grid, 2026-10-29.3. CZ and SK category listings. */
html:is([lang="cs"],[lang="sk"]) body.type-category #products.products-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  align-items: stretch;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products.products-block > .product {
  width: auto !important;
  min-width: 0;
  max-width: none;
  margin: 0;
  padding: 20px 16px 14px;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .product > .p {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p > .image {
  margin: 0 0 12px;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-in {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-width: 0;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-in > .stars-wrapper {
  position: static;
  height: auto;
  min-height: 18px;
  margin: 0 0 5px;
  justify-content: center;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p .name {
  display: block;
  height: auto;
  min-height: 0;
  margin: 4px 0 0;
  overflow: visible;
  overflow-wrap: anywhere;
  font-size: 16px;
  line-height: 1.3 !important;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-in-in > .ratings-wrapper {
  min-height: 0;
  padding-bottom: 0;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-bottom {
  margin-top: auto;
  padding-top: 12px;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-bottom > div {
  align-items: stretch;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-bottom .prices,
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-bottom .p-tools {
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  margin: 0;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-bottom .p-tools {
  margin-top: 10px;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .price-final {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
  line-height: 1.2 !important;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .price-final strong {
  white-space: nowrap;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-tools .btn {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding-left: 10px;
  padding-right: 10px;
  white-space: normal;
}
html:is([lang="cs"],[lang="sk"]) body.type-category #products .p > .p-code {
  position: static;
  display: block;
  align-self: flex-end;
  margin-top: 10px;
  overflow-wrap: anywhere;
}
@media (max-width: 1000px) {
  html:is([lang="cs"],[lang="sk"]) body.type-category #products.products-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  html:is([lang="cs"],[lang="sk"]) body.type-category #products.products-block {
    gap: 12px;
    padding: 0 12px;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products.products-block > .product {
    padding: 16px 12px 12px;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .p .name {
    font-size: 14px;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .p-tools .btn {
    font-size: 15px;
  }
}
@media (max-width: 359px) {
  html:is([lang="cs"],[lang="sk"]) body.type-category #products.products-block {
    gap: 10px;
    padding: 0 10px;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products.products-block > .product {
    padding-left: 10px;
    padding-right: 10px;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .price-final strong {
    font-size: 20px;
  }
}

/* Mobile flags participate in layout below the photograph; no overlays. */
@media (max-width: 767px) {
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .p > .image {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px 4px;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .p > .image::after {
    display: none;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .image > img {
    order: -10000;
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    min-width: 0;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .image > .flags {
    display: contents !important;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .image .flag {
    position: static;
    float: none;
    clear: none;
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 22px;
    margin: 0;
    padding: 4px 6px;
    border-radius: 5px;
    font-size: 11px;
    line-height: 14px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flags-default .flag-action {
    background: #292D35 !important;
    color: #FFFFFF !important;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flags-default .flag-tip {
    background: #e0f7fc !important;
    color: #086479 !important;
    box-shadow: inset 0 0 0 1px #84d6e7;
    text-transform: uppercase;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flags-extra .flag {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flags-extra .flag-discount {
    background: #fff1f5;
    color: #b91c46;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flag-discount .price-save,
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flag-discount .price-standard,
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flag-discount .price-standard > span {
    position: static;
    margin: 0;
    padding: 0;
    color: #b91c46;
    font-size: 11px;
    line-height: 14px;
    white-space: nowrap;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flag-discount .price-save {
    order: -1;
    font-weight: 700;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flags-extra .icon-van {
    margin: 0;
    font-size: 16px;
    line-height: 16px;
  }
  html:is([lang="cs"],[lang="sk"]) body.type-category #products .flags-extra .flag-text {
    font-size: 10px;
    line-height: 14px;
    white-space: normal;
  }
}
