/* ========================================================================== 
   Barevná Founárna – jednotná stabilizační vrstva
   Verze: 20260714ui2

   Načíst jako POSLEDNÍ stylesheet. Soubor nezakládá další menu ani filtr;
   sjednocuje souběžné vrstvy a chrání první vykreslení.
   ========================================================================== */

:root {
  --fn-ui-ink: #111827;
  --fn-ui-muted: #5f6b80;
  --fn-ui-line: rgba(184, 204, 226, .68);
  --fn-ui-panel: rgba(255, 255, 255, .94);
  --fn-ui-yellow: #ffc72c;
}

html,
body { max-width: 100%; }

body { overflow-x: clip; }

/* Důvěryhodnostní proužek: kontakty mají vlastní pravý sloupec a dlouhé
   provozní informace se už na běžném desktopu nepřekrývají. */
html.fn-header-showcase .top-navigation-bar .container {
  width: 100% !important;
  max-width: none !important;
  padding-inline: 0 !important;
}

@media (min-width: 992px) {
  html.fn-header-showcase .fn-store-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 14px !important;
    width: 100% !important;
    min-height: 34px !important;
    margin: 0 !important;
    padding: 4px clamp(12px, 1.5vw, 28px) !important;
    font-size: clamp(10.5px, .76vw, 12px) !important;
    line-height: 1.15 !important;
  }

  html.fn-header-showcase .fn-store-strip__left,
  html.fn-header-showcase .fn-store-strip__right {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
    gap: clamp(7px, .72vw, 13px) !important;
  }

  html.fn-header-showcase .fn-store-strip__left {
    justify-content: flex-start !important;
    overflow: hidden !important;
  }

  html.fn-header-showcase .fn-store-strip__right {
    justify-content: flex-end !important;
    flex: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
    white-space: nowrap !important;
  }

  html.fn-header-showcase .fn-store-strip__item,
  html.fn-header-showcase .fn-store-strip__hours,
  html.fn-header-showcase .fn-store-strip__pickup,
  html.fn-header-showcase .fn-store-strip__delivery {
    flex: 0 1 auto !important;
    min-width: 0 !important;
    gap: 4px !important;
    white-space: nowrap !important;
  }

  html.fn-header-showcase .fn-store-strip__left span,
  html.fn-header-showcase .fn-store-strip__left a {
    min-width: 0 !important;
  }

  html.fn-header-showcase .fn-store-strip svg {
    flex: 0 0 13px !important;
    width: 13px !important;
    height: 13px !important;
  }
}

@media (min-width: 992px) and (max-width: 1279px) {
  html.fn-header-showcase .fn-store-strip__label,
  html.fn-header-showcase .fn-store-strip__hours {
    display: none !important;
  }

  html.fn-header-showcase .fn-store-strip__delivery span {
    max-width: 225px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
}

/* Produkty nesmí zůstat skryté kvůli starší anti-flash vrstvě. Třídy aktivně
   skryté filtrem se tato pojistka záměrně nedotýká. */
html.founarna-anti-flash body:not(.type-product) #content .products-block,
html.founarna-anti-flash body:not(.type-product) #content .products,
html.founarna-anti-flash body:not(.type-product) #content .product:not(.fn-category-facet-product-hidden),
html.founarna-anti-flash body:not(.type-product) #content .p:not(.fn-category-facet-product-hidden) {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}

/* Hlavní navigace: jedna řádka, bez pomocného menu a bez pohybu na hover. */
@media (min-width: 992px) {
  html.fn-header-showcase #navigation,
  html.fn-header-showcase #navigation .navigation-wrapper,
  html.fn-header-showcase #navigation .navigation-in {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 60px !important;
    min-height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    transform: none !important;
  }

  html.fn-header-showcase #navigation .menu-helper { display: none !important; }

  html.fn-header-showcase #navigation .navigation-in > .menu-level-1,
  html.fn-header-showcase #navigation .fn-primary-navigation__list {
    position: static !important;
    display: flex !important;
    align-items: stretch !important;
    justify-content: center !important;
    gap: clamp(2px, .65vw, 12px) !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 clamp(12px, 2.5vw, 42px) !important;
    overflow: visible !important;
    transform: none !important;
  }

  html.fn-header-showcase #navigation .menu-level-1 > li {
    position: static !important;
    display: flex !important;
    align-items: stretch !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
  }

  html.fn-header-showcase #navigation .menu-level-1 > li > a,
  html.fn-header-showcase #navigation .menu-level-1 > li:hover > a,
  html.fn-header-showcase #navigation .menu-level-1 > li.exp > a,
  html.fn-header-showcase #navigation .menu-level-1 > li.active > a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 0 !important;
    height: 60px !important;
    margin: 0 !important;
    padding: 0 clamp(9px, 1.05vw, 18px) !important;
    border: 0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    font-size: clamp(13px, .95vw, 16px) !important;
    line-height: 1.15 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transform: none !important;
  }

  html.fn-header-showcase #navigation .menu-level-1 > li > a::before,
  html.fn-header-showcase #navigation .menu-level-1 > li > a::after {
    display: none !important;
    content: none !important;
  }

  html.fn-header-showcase #navigation .menu-level-1 > li:hover > a,
  html.fn-header-showcase #navigation .menu-level-1 > li.exp > a,
  html.fn-header-showcase #navigation .menu-level-1 > li.active > a,
  html.fn-header-showcase #navigation .menu-level-1 > li > a:focus-visible {
    background: linear-gradient(135deg, rgba(255, 239, 185, .58), rgba(225, 242, 255, .72)) !important;
    box-shadow: inset 0 0 0 1px rgba(112, 126, 157, .16) !important;
  }

  html.fn-header-showcase #navigation .menu-level-1 > li > .menu-level-2,
  html.fn-header-showcase #navigation .menu-level-1 > li > ul,
  html.fn-header-showcase #navigation .menu-level-1 > li > div[class*="menu-level"] {
    position: absolute !important;
    z-index: 1200 !important;
    top: 60px !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: none !important;
  }
}

/* Hero: pevný poměr dodaných scén, bez ořezu a bez přetékání log. */
html.fn-header-showcase .fn-model-finder--slider {
  width: 100% !important;
  max-width: 100% !important;
  margin-inline: auto !important;
  overflow: hidden !important;
}

html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__inner {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 1896 / 829 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  transform: none !important;
}

html.fn-header-showcase .fn-model-finder--slider .fn-hero-scene img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center !important;
}

html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__brands {
  display: block !important;
  width: min(100%, 620px) !important;
  max-width: 620px !important;
  margin-top: clamp(12px, 1.45vw, 22px) !important;
}

html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__brands-label {
  display: block !important;
  width: 100% !important;
  margin: 0 0 8px !important;
}

html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__brand-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
}

html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__brand-grid a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 42px !important;
  height: 42px !important;
  padding: 5px 7px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__brand-grid img {
  display: block !important;
  width: auto !important;
  max-width: 96% !important;
  height: auto !important;
  max-height: 27px !important;
  margin: 0 auto !important;
  object-fit: contain !important;
}

html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__button {
  width: auto !important;
  min-width: 270px !important;
  max-width: 340px !important;
  min-height: 54px !important;
  padding: 13px 22px !important;
}

/* Filtry: stabilní hitbox, samostatné štítky a počty, žádné slité texty. */
html body:not(.type-product) #content .fn-model-filter-sidebar,
html body:not(.type-product) #content .fn-model-filter-sidebar * {
  box-sizing: border-box;
}

html body:not(.type-product) #content .fn-model-filter-sidebar {
  min-width: 0 !important;
  overflow-x: hidden !important;
}

html body:not(.type-product) #content .fn-model-filter-sidebar .fn-model-filter-section,
html body:not(.type-product) #content .fn-model-filter-sidebar .fn-category-facet-list {
  width: 100% !important;
  min-width: 0 !important;
}

html body:not(.type-product) #content .fn-model-filter-sidebar .fn-category-facet-list {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
}

html body:not(.type-product) #content .fn-model-filter-sidebar a.fn-category-facet-option {
  display: grid !important;
  grid-template-columns: 20px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 9px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 8px 9px !important;
  overflow: hidden !important;
  border: 1px solid rgba(205, 221, 241, .88) !important;
  border-radius: 13px !important;
  background: rgba(255, 255, 255, .9) !important;
  color: #435069 !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
  cursor: pointer !important;
}

html body:not(.type-product) #content .fn-model-filter-sidebar .fn-category-facet-check {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  border-radius: 6px !important;
}

html body:not(.type-product) #content .fn-model-filter-sidebar .fn-category-facet-label {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

html body:not(.type-product) #content .fn-model-filter-sidebar .fn-category-facet-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 24px !important;
  height: 24px !important;
  margin: 0 !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  white-space: nowrap !important;
}

html body:not(.type-product) #content .fn-category-facet-product-hidden,
html body:not(.type-product) #content .fn-category-facet-subcategory-hidden {
  display: none !important;
}

/* Mobilní panel: vlastní scroll, stabilní ovládání a bezpečný hero. */
@media (max-width: 991px) {
  html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__inner {
    aspect-ratio: 941 / 1672 !important;
  }

  html.fn-header-showcase .fn-model-finder--slider .fn-hero-scene img {
    object-position: center top !important;
  }

  html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__content {
    width: 100% !important;
    max-width: 100% !important;
    padding: 20px 18px 48px !important;
  }

  html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__brands {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 12px !important;
  }

  html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 5px !important;
    width: 100% !important;
  }

  html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__brand-grid a {
    min-height: 40px !important;
    height: 40px !important;
    padding: 3px 4px !important;
  }

  html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__brand-grid img {
    max-width: 96% !important;
    max-height: 28px !important;
  }

  html.fn-header-showcase .fn-model-finder--slider .fn-model-finder__button {
    min-width: 0 !important;
    width: fit-content !important;
    max-width: min(100%, 290px) !important;
    min-height: 48px !important;
    padding: 11px 17px !important;
  }

  html.fn-mobile-filter-drawer-open,
  html.fn-mobile-filter-drawer-open body { overscroll-behavior: contain; }

  html.fn-mobile-filter-drawer-ready body:not(.type-product) #content .fn-model-filter-sidebar.fn-mobile-filter-drawer {
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y !important;
  }

  html body:not(.type-product) #content .fn-model-filter-sidebar .fn-category-facet-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  html body:not(.type-product) #content .fn-model-filter-sidebar a.fn-category-facet-option {
    grid-template-columns: 18px minmax(0, 1fr) auto !important;
    gap: 7px !important;
    min-height: 39px !important;
    padding: 7px 8px !important;
    font-size: 11px !important;
  }
}

@media (max-width: 360px) {
  html body:not(.type-product) #content .fn-model-filter-sidebar .fn-category-facet-list {
    grid-template-columns: 1fr !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.fn-header-showcase *,
  html.fn-mobile-filter-drawer-ready * {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
