/* =========================================================
   Barevna Founarna - finalni ovladaci prvky kategorii
   Nacist jako posledni kategoriovy stylesheet.
   v: 20260712ux2
   ========================================================= */

body:not(.type-product) #content .listSorting,
body:not(.type-product) #content .js-listSorting {
  position: relative !important;
  z-index: 24 !important;
  overflow: visible !important;
}

body:not(.type-product) #content .sortingToggle {
  position: relative !important;
  min-height: 42px !important;
  padding-left: 42px !important;
  padding-right: 34px !important;
  overflow: visible !important;
  white-space: nowrap !important;
}

body:not(.type-product) #content .sortingToggle .icon-sort {
  position: absolute !important;
  left: 13px !important;
  top: 50% !important;
  width: 18px !important;
  transform: translateY(-50%) !important;
}

body:not(.type-product) #content .sortingToggle .icon-chevron-down {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
}

body:not(.type-product) #content .listSorting__controls--dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  left: auto !important;
  z-index: 80 !important;
  width: max(100%, 220px) !important;
  margin: 0 !important;
  padding: 7px !important;
  border: 1px solid rgba(190, 208, 232, .9) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 18px 42px rgba(23, 43, 74, .18) !important;
}

body:not(.type-product) #content .listSorting:not(.listSorting--open) .listSorting__controls--dropdown {
  display: none !important;
}

body:not(.type-product) #content .listSorting.listSorting--open .listSorting__controls--dropdown {
  display: grid !important;
  gap: 3px !important;
}

body:not(.type-product) #content .listSorting__control {
  width: 100% !important;
  min-height: 38px !important;
  padding: 8px 11px !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
  text-align: left !important;
}

body:not(.type-product) #content .listSorting__control:hover,
body:not(.type-product) #content .listSorting__control:focus-visible,
body:not(.type-product) #content .listSorting__control--current {
  background: linear-gradient(135deg, rgba(235, 249, 255, .95), rgba(245, 239, 255, .9)) !important;
}

body:not(.type-product) #content .fn-category-facet-option,
body:not(.type-product) #content .fn-charger-filter-link {
  pointer-events: auto !important;
  touch-action: manipulation !important;
  -webkit-tap-highlight-color: transparent !important;
}

body:not(.type-product) #content .founarna-card-buybox,
body:not(.type-product) #content .founarna-card-buybox-meta,
body:not(.type-product) #content .founarna-card-buybox-actions,
body:not(.type-product) #content .founarna-card-buybox-actions .p-tools,
body:not(.type-product) #content .founarna-card-buybox-actions form {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

body:not(.type-product) #content .founarna-card-buybox-actions,
body:not(.type-product) #content .founarna-card-buybox-actions .p-tools,
body:not(.type-product) #content .founarna-card-buybox-actions form {
  overflow: visible !important;
}

body:not(.type-product) #content .founarna-card-buybox-actions form,
body:not(.type-product) #content .founarna-card-buybox-actions form.pr-action,
body:not(.type-product) #content .founarna-card-buybox-actions form.founarna-featured-cart-form {
  display: grid !important;
  grid-template-columns: 88px minmax(78px, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

body:not(.type-product) #content .founarna-card-buybox-actions .quantity {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
}

body:not(.type-product) #content .founarna-card-buybox-actions .btn-cart,
body:not(.type-product) #content .founarna-card-buybox-actions .add-to-cart-button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding-right: 9px !important;
  padding-left: 9px !important;
  overflow: hidden !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

body:not(.type-product) #content .founarna-card-buybox-actions .btn-cart > span,
body:not(.type-product) #content .founarna-card-buybox-actions .add-to-cart-button > span {
  display: block !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 767px) {
  body:not(.type-product) #content .category-header,
  body:not(.type-product) #content #category-header {
    position: relative !important;
    overflow: visible !important;
  }

  body:not(.type-product) #content .listSorting {
    width: min(232px, calc(100vw - 42px)) !important;
    max-width: 100% !important;
    margin-left: auto !important;
  }

  body:not(.type-product) #content .sortingToggle {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    padding-left: 40px !important;
    padding-right: 31px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
  }

  body:not(.type-product) #content .sortingToggle__label {
    margin-right: 4px !important;
    font-size: 12px !important;
  }

  body:not(.type-product) #content .sortingToggle__value {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    font-size: 12.5px !important;
  }

  body:not(.type-product) #content .listSorting__controls--dropdown {
    width: 100% !important;
    min-width: 210px !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 9px !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    grid-template-areas: "stock price" !important;
    align-items: end !important;
    gap: 8px !important;
    min-width: 0 !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-stock {
    grid-area: stock !important;
    min-width: 0 !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-price {
    grid-area: price !important;
    min-width: 0 !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-stock .availability,
  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-stock .availability span,
  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-stock .founarna-card-availability-row {
    max-width: 100% !important;
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox.is-unavailable .founarna-card-buybox-stock .availability,
  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox.is-unavailable .founarna-card-buybox-stock .availability span,
  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox.is-unavailable .founarna-card-buybox-stock .founarna-card-availability-row {
    font-size: 13.5px !important;
    line-height: 1.15 !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-price .price,
  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-price .price strong {
    white-space: nowrap !important;
    font-size: 23px !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-actions form,
  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-actions form.pr-action,
  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-actions form.founarna-featured-cart-form {
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 10px !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-actions .quantity {
    width: 104px !important;
    min-width: 104px !important;
    max-width: 104px !important;
  }

  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-actions .btn-cart,
  html body.founarna-category-colorful:not(.type-product) #content .founarna-card-buybox-actions .add-to-cart-button {
    min-width: 0 !important;
    padding: 9px 10px !important;
    font-size: 14px !important;
  }
}

@media (prefers-color-scheme: dark) {
  body:not(.type-product) #content .listSorting__controls--dropdown {
    border-color: rgba(76, 91, 111, .92) !important;
    background: rgba(27, 33, 41, .99) !important;
    box-shadow: 0 20px 46px rgba(0, 0, 0, .46) !important;
  }

  body:not(.type-product) #content .listSorting__control {
    color: #f4f7fb !important;
  }

  body:not(.type-product) #content .listSorting__control:hover,
  body:not(.type-product) #content .listSorting__control:focus-visible,
  body:not(.type-product) #content .listSorting__control--current {
    background: linear-gradient(135deg, rgba(67, 82, 102, .86), rgba(51, 42, 76, .78)) !important;
  }
}
