/* Barevná Founárna – čitelné ilustrované dlaždice kategorií a modelů */

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(230px, 1fr)) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 1480px !important;
  margin: 24px auto 32px !important;
  padding: 0 10px !important;
  box-sizing: border-box !important;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li {
  --fst-accent: #e958aa;
  --fst-soft: #fff0f8;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li:nth-child(4n+2) {
  --fst-accent: #4daee8;
  --fst-soft: #eef9ff;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li:nth-child(4n+3) {
  --fst-accent: #f1ae2e;
  --fst-soft: #fff8e8;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li:nth-child(4n) {
  --fst-accent: #47bca0;
  --fst-soft: #edfbf7;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 102px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 16px !important;
  width: 100% !important;
  min-height: 128px !important;
  padding: 12px 44px 12px 12px !important;
  overflow: hidden !important;
  border: 1px solid rgba(66, 78, 108, .13) !important;
  border-radius: 22px !important;
  background:
    radial-gradient(circle at 8% 10%, var(--fst-soft), transparent 52%),
    linear-gradient(145deg, #fff 0%, #fbfcff 100%) !important;
  box-shadow: 0 8px 24px rgba(35, 46, 78, .07) !important;
  color: #151c2b !important;
  text-decoration: none !important;
  transform: translateY(0) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease !important;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--fst-accent);
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile::after {
  content: "→";
  position: absolute;
  right: 13px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--fst-soft);
  color: var(--fst-accent);
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-50%);
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile:hover,
html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile:focus-visible {
  border-color: color-mix(in srgb, var(--fst-accent) 42%, #dce2ed) !important;
  box-shadow: 0 14px 32px rgba(35, 46, 78, .13) !important;
  transform: translateY(-3px) !important;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--fst-accent) 30%, transparent) !important;
  outline-offset: 3px !important;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > picture,
html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .image,
html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > [class*="thumb"] {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 102px !important;
  height: 102px !important;
  min-width: 102px !important;
  min-height: 102px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 7px !important;
  overflow: hidden !important;
  border: 1px solid rgba(74, 86, 120, .10) !important;
  border-radius: 17px !important;
  background: #fff !important;
  box-shadow: inset 0 0 0 5px var(--fst-soft) !important;
  box-sizing: border-box !important;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile img.founarna-tile-image,
html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile picture img.founarna-tile-image {
  display: block !important;
  width: 88px !important;
  height: 88px !important;
  max-width: 88px !important;
  max-height: 88px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: #fff !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile[data-tile-type="brand-fallback"] img.founarna-tile-image {
  width: 78px !important;
  height: 58px !important;
}

html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .text,
html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .title,
html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .name,
html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .category-title,
html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .subcategory-title {
  display: -webkit-box !important;
  min-width: 0 !important;
  max-height: 3.72em !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  color: #151c2b !important;
  font-size: 17px !important;
  font-weight: 850 !important;
  line-height: 1.24 !important;
  letter-spacing: -.015em !important;
  text-align: left !important;
  text-overflow: ellipsis !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
}

@media (max-width: 1279px) {
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories {
    grid-template-columns: repeat(3, minmax(220px, 1fr)) !important;
  }
}

@media (max-width: 899px) {
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

@media (max-width: 599px) {
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin: 16px auto 24px !important;
    padding: 0 7px !important;
  }

  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile {
    grid-template-columns: 1fr !important;
    grid-template-rows: 82px auto !important;
    align-content: start !important;
    justify-items: center !important;
    gap: 7px !important;
    min-height: 144px !important;
    padding: 9px 8px 11px !important;
    border-radius: 17px !important;
  }

  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile::before {
    inset: 0 0 auto 0;
    width: auto;
    height: 3px;
  }

  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile::after {
    display: none;
  }

  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > picture,
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .image,
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > [class*="thumb"] {
    width: 82px !important;
    height: 82px !important;
    min-width: 82px !important;
    min-height: 82px !important;
    max-height: none !important;
    padding: 5px !important;
    border-radius: 14px !important;
  }

  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile img.founarna-tile-image,
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile picture img.founarna-tile-image {
    width: 72px !important;
    height: 72px !important;
    max-width: 72px !important;
    max-height: 72px !important;
  }

  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .text,
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .title,
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .name,
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .category-title,
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .subcategory-title {
    max-height: 3.6em !important;
    font-size: 14.5px !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
}

@media (max-width: 350px) {
  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories {
    grid-template-columns: 1fr !important;
  }

  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .subcategories > li > a.founarna-illustrated-tile {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    justify-items: stretch !important;
    min-height: 102px !important;
  }

  html body.founarna-illustrated-subcategories:not(.brand-logos-only) .founarna-illustrated-tile > .text {
    text-align: left !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.founarna-illustrated-subcategories .founarna-illustrated-tile {
    transition: none !important;
  }
}
