/* =========================================================
   Barevná Founárna – levý filtr bez rozbíjení obsahu
   Filtr má vlastní sloupec, hlavní obsah vlastní sloupec.
   Na menších šířkách se filtr bezpečně přesune nad obsah.
   v: 20260706f8
   ========================================================= */

:root {
  --fn-mf-ink: #111827;
  --fn-mf-muted: #667085;
  --fn-mf-line: rgba(190, 208, 232, .78);
  --fn-mf-yellow: #ffc51f;
  --fn-mf-pink: #e958aa;
  --fn-mf-blue: #64bff2;
  --fn-mf-green: #55c7ad;
  --fn-mf-purple: #8d73e6;
  --fn-mf-shadow: 0 18px 44px rgba(18, 35, 55, .08);
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-toolbar {
  display: none !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  width: min(1500px, calc(100% - 32px));
  margin: 12px auto 28px;
  box-sizing: border-box;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-main {
  min-width: 0;
  width: 100%;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-sidebar {
  position: sticky;
  top: 108px;
  z-index: 8;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 136px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 13px;
  border: 1px solid rgba(205, 221, 241, .86);
  border-radius: 24px;
  background:
    radial-gradient(circle at 0 2%, rgba(255, 197, 31, .13), transparent 13rem),
    radial-gradient(circle at 100% 100%, rgba(100, 191, 242, .16), transparent 15rem),
    linear-gradient(145deg, rgba(255, 251, 239, .92), rgba(246, 253, 255, .96) 56%, rgba(255, 246, 253, .88));
  box-shadow: var(--fn-mf-shadow);
  box-sizing: border-box;
  scrollbar-width: thin;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-sidebar::-webkit-scrollbar {
  width: 8px;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-sidebar::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(145, 163, 184, .42);
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-section {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(218, 229, 243, .72);
  border-radius: 18px;
  background: rgba(255, 255, 255, .62);
  box-sizing: border-box;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 9px;
  color: var(--fn-mf-ink);
  font-size: 13px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -.01em;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid rgba(218, 229, 243, .86);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .86), rgba(245, 251, 255, .82));
  color: #4f46a5;
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  line-height: 1.12;
  font-weight: 900;
  box-sizing: border-box;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-summary::-webkit-details-marker {
  display: none;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-summary::after {
  content: "⌄";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(100, 191, 242, .13);
  color: #4d596d;
  font-size: 15px;
  line-height: 1;
  transition: transform .18s ease;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more[open] .fn-model-filter-brand-more-summary::after {
  transform: rotate(180deg);
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  max-height: 246px;
  overflow: auto;
  overscroll-behavior: contain;
  margin-top: 7px;
  padding-right: 2px;
  scrollbar-width: thin;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-list::-webkit-scrollbar {
  width: 7px;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(145, 163, 184, .38);
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  min-width: 0;
  min-height: 44px;
  padding: 6px 10px 6px 7px;
  border: 1px solid rgba(205, 221, 241, .82);
  border-radius: 14px;
  background: rgba(255, 255, 255, .74);
  color: #4d596d;
  text-decoration: none;
  box-sizing: border-box;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand:hover,
body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand:focus-visible {
  border-color: rgba(100, 191, 242, .76);
  background: rgba(255, 255, 255, .95);
  transform: translateY(-1px);
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand.is-active {
  border-color: rgba(233, 88, 170, .82);
  background: linear-gradient(135deg, rgba(255, 236, 247, .92), rgba(255, 255, 255, .92));
  box-shadow: inset 4px 0 0 rgba(233, 88, 170, .86);
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand img {
  display: block;
  width: 48px;
  max-width: 48px;
  max-height: 20px;
  object-fit: contain;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand span {
  min-width: 0;
  overflow: hidden;
  color: #4d596d;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  line-height: 1.1;
  font-weight: 900;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-type-list,
body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-quick-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-type,
body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-quick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  min-width: 0;
  gap: 7px;
  padding: 7px 8px;
  border: 1px solid rgba(218, 229, 243, .82);
  border-radius: 13px;
  background: rgba(255, 255, 255, .76);
  color: #435069;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.1;
  font-weight: 850;
  box-sizing: border-box;
}

@supports (background: color-mix(in srgb, red 20%, white)) {
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-type,
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-quick {
    background: linear-gradient(135deg, color-mix(in srgb, var(--fn-filter-color) 11%, white), rgba(255, 255, 255, .9));
  }
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--fn-filter-color);
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-section[hidden] {
  display: none !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-section--native {
  overflow: hidden;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter,
body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filters-wrapper,
body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter #filters {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  position: static !important;
  transform: none !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filters-unveil-button-wrapper {
  display: none !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .slider-wrapper {
  margin: 0 0 12px !important;
  padding: 10px !important;
  border: 1px solid rgba(218, 229, 243, .82) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .74) !important;
  box-sizing: border-box !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .slider-wrapper h4 {
  margin: 0 0 8px !important;
  color: var(--fn-mf-ink) !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 900 !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .slider-wrapper h4 span {
  display: inline !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .slider-header {
  display: flex !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
  color: #334155 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .slider-content {
  padding: 8px 7px 4px !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter #slider,
body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .param-price-filter {
  height: 8px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: rgba(204, 224, 242, .9) !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .ui-slider-range {
  border-radius: 999px !important;
  background: linear-gradient(90deg, var(--fn-mf-yellow), var(--fn-mf-blue), var(--fn-mf-green)) !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .ui-slider-handle {
  top: 50% !important;
  width: 18px !important;
  height: 18px !important;
  margin-top: -9px !important;
  border: 2px solid #fff !important;
  border-radius: 999px !important;
  background: #111827 !important;
  box-shadow: 0 6px 14px rgba(17, 24, 39, .18) !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter #price-filter-form {
  display: none !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filter-sections,
body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filter-section,
body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .param-filter-top,
body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter fieldset {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filter-section-boolean {
  margin: 0 !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .fn-model-native-stock-group {
  margin: 0 0 12px !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filter-section-boolean form > fieldset > div {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 44px !important;
  padding: 10px 11px !important;
  border: 1px solid rgba(190, 208, 232, .86) !important;
  border-radius: 15px !important;
  background:
    radial-gradient(circle at 10% 0, rgba(85, 199, 173, .12), transparent 62%),
    rgba(255, 255, 255, .82) !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .fn-model-native-stock-row:has(input[type="checkbox"]:checked) {
  border-color: rgba(85, 199, 173, .72) !important;
  background:
    radial-gradient(circle at 12% 0, rgba(85, 199, 173, .22), transparent 62%),
    linear-gradient(135deg, rgba(236, 253, 245, .92), rgba(255, 255, 255, .88)) !important;
  box-shadow: 0 10px 24px rgba(85, 199, 173, .13) !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  position: static !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  transform: none !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  border: 1.5px solid rgba(133, 153, 179, .62) !important;
  border-radius: 6px !important;
  background: #fff !important;
  box-shadow: inset 0 1px 2px rgba(17, 24, 39, .05) !important;
  cursor: pointer !important;
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter input[type="checkbox"]:checked {
  border-color: rgba(85, 199, 173, .96) !important;
  background-color: var(--fn-mf-green) !important;
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='11' viewBox='0 0 14 11' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1.4 5.7 5.1 9.3 12.6 1.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 13px 10px !important;
  box-shadow: 0 0 0 4px rgba(85, 199, 173, .14) !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filter-label {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 7px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #334155 !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filter-label::before,
body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filter-label::after {
  content: none !important;
  display: none !important;
}

body.founarna-category-colorful:not(.type-product) #content .fn-model-native-filter .filter-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  min-width: 22px !important;
  height: 22px !important;
  margin-left: auto !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: rgba(100, 191, 242, .14) !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

body.founarna-category-colorful:not(.type-product) #content .category-top.fn-model-filter-content {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (min-width: 1181px) {
  body.founarna-category-colorful:not(.type-product):not(.brand-logos-only) #content .fn-model-filter-main .subcategories.founarna-category-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 292px), 1fr)) !important;
    width: 100% !important;
    max-width: none !important;
  }

  body.founarna-category-colorful.founarna-illustrated-subcategories:not(.brand-logos-only) #content .fn-model-filter-main .subcategories > li > a.founarna-illustrated-tile {
    min-width: 0 !important;
  }

  body.founarna-category-colorful:not(.type-product):not(.brand-logos-only) #content .fn-model-filter-main .subcategories.founarna-category-grid .subcategory-title,
  body.founarna-category-colorful:not(.type-product):not(.brand-logos-only) #content .fn-model-filter-main .subcategories.founarna-category-grid .category-title,
  body.founarna-category-colorful:not(.type-product):not(.brand-logos-only) #content .fn-model-filter-main .subcategories.founarna-category-grid .title,
  body.founarna-category-colorful:not(.type-product):not(.brand-logos-only) #content .fn-model-filter-main .subcategories.founarna-category-grid .name,
  body.founarna-category-colorful:not(.type-product):not(.brand-logos-only) #content .fn-model-filter-main .subcategories.founarna-category-grid .text {
    overflow-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
  }
}

@media (max-width: 1180px) {
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-layout {
    display: block;
    width: min(1360px, calc(100% - 36px));
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-sidebar {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, .78fr) minmax(220px, .62fr);
    gap: 12px;
    max-height: none;
    overflow: visible;
    margin: 0 0 16px;
    padding: 12px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    max-height: 104px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand {
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    min-height: 42px;
    padding: 6px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand img {
    width: auto;
    max-width: 72px;
    max-height: 24px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-type-list,
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-quick-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-sidebar {
    grid-template-columns: 1fr;
    width: min(100%, 1020px);
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-list {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    max-height: 104px;
  }
}

@media (max-width: 767px) {
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-layout {
    width: min(100% - 18px, 560px);
    margin-top: 10px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-sidebar {
    padding: 9px;
    gap: 8px;
    border-radius: 21px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-section {
    padding: 8px;
    border-radius: 16px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-section-title {
    margin-bottom: 7px;
    font-size: 12px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: 136px;
    gap: 6px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand {
    min-height: 38px;
    padding: 5px;
    border-radius: 12px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand img {
    max-width: 60px;
    max-height: 21px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-type-list,
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-quick-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-type,
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-quick {
    min-height: 32px;
    padding: 6px 5px;
    font-size: 11px;
    border-radius: 11px;
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-dot {
    display: none;
  }
}

@media (max-width: 390px) {
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-brand-more-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-type-list,
  body.founarna-category-colorful:not(.type-product) #content .fn-model-filter-quick-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
