/* ==========================================================
   BeOrganic.sk – Filters UI layer
   Safe enhancement over native ClickEshop filters.
   Leaves native filter logic, URL params and AJAX untouched.
   ========================================================== */

body#page_product_out.bo-filters-ui-ready {
  --bo-filter-bg: #efe9dd;
  --bo-filter-bg-2: #e7e0d0;
  --bo-filter-card: #ffffff;
  --bo-filter-card-tint: #fbf8f2;
  --bo-filter-text: #3c3a31;
  --bo-filter-muted: #8e897b;
  --bo-filter-line: #e7e0d3;
  --bo-filter-green: #6e8b4e;
  --bo-filter-green-dark: #5d7442;
  --bo-filter-green-soft: #e9efe0;
  --bo-filter-shadow: 0 10px 30px rgba(80, 72, 52, 0.1);
  --bo-filter-shadow-sm: 0 3px 12px rgba(80, 72, 52, 0.07);
  --bo-filter-radius: 18px;
  --bo-filter-radius-sm: 12px;
}

body#page_product_out.bo-filters-ui-ready #page_panel {
  position: sticky;
  top: 116px;
  align-self: flex-start;
  color: var(--bo-filter-text);
}

@media (min-width: 901px) {
  body#page_product_out.bo-filters-ui-ready .pageContentIn {
    display: grid !important;
    grid-template-columns: minmax(270px, 300px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  body#page_product_out.bo-filters-ui-ready #page_panel {
    width: 100%;
    min-width: 0;
    max-height: calc(100vh - 136px);
    overflow: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
  }

  body#page_product_out.bo-filters-ui-ready #page_panel::-webkit-scrollbar {
    width: 8px;
  }

  body#page_product_out.bo-filters-ui-ready #page_panel::-webkit-scrollbar-thumb {
    background: rgba(110, 139, 78, 0.34);
    border-radius: 999px;
  }

  body#page_product_out.bo-filters-ui-ready #pan_main,
  body#page_product_out.bo-filters-ui-ready .main,
  body#page_product_out.bo-filters-ui-ready #page_product,
  body#page_product_out.bo-filters-ui-ready .productPageForm,
  body#page_product_out.bo-filters-ui-ready #divProductsView,
  body#page_product_out.bo-filters-ui-ready #divProductsViewList {
    min-width: 0;
  }

  body#page_product_out.bo-filters-ui-ready #page_panel .categoryPanel,
  body#page_product_out.bo-filters-ui-ready #page_panel #panel-filter-list,
  body#page_product_out.bo-filters-ui-ready #page_panel .bo-filters-panel-host {
    width: auto;
  }
}

body#page_product_out.bo-filters-ui-ready #page_panel .categoryPanel:empty,
body#page_product_out.bo-filters-ui-ready #page_panel #panel-filter-list:empty,
body#page_product_out.bo-filters-ui-ready #page_panel .bo-filters-panel-host:empty {
  display: none;
}

body#page_product_out.bo-filters-ui-ready #page_panel .categoryPanel,
body#page_product_out.bo-filters-ui-ready #page_panel #panel-filter-list,
body#page_product_out.bo-filters-ui-ready #page_panel .bo-filters-panel-host {
  background: linear-gradient(180deg, rgba(251, 249, 244, 0.98), rgba(247, 241, 231, 0.98));
  border: 1px solid var(--bo-filter-line);
  border-radius: 22px;
  box-shadow: var(--bo-filter-shadow-sm);
}

body#page_product_out.bo-filters-ui-ready #page_panel .categoryPanel {
  margin-bottom: 16px;
  padding: 14px 16px;
}

body#page_product_out.bo-filters-ui-ready #page_panel #panel-filter-list,
body#page_product_out.bo-filters-ui-ready #page_panel .bo-filters-panel-host {
  padding: 18px 16px;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-sidebar-title {
  margin: 0 0 16px;
  font-family: var(--bo-font-display, "Playfair Display", Georgia, serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.08;
  color: var(--bo-filter-text);
  text-wrap: balance;
}

body#page_product_out.bo-filters-ui-ready .products-view-tools {
  margin-bottom: 14px !important;
}

body#page_product_out.bo-filters-ui-ready .products-view-tools .c-title,
body#page_product_out.bo-filters-ui-ready .products-view-tools .c-categories-link,
body#page_product_out.bo-filters-ui-ready .products-view-tools .resetIcon {
  display: none !important;
}

body#page_product_out.bo-filters-ui-ready .products-view-tools .c-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body#page_product_out.bo-filters-ui-ready .products-view-tools .sorting-navigator {
  margin-left: auto;
}

body#page_product_out.bo-filters-ui-ready .products-view-tools .sorting-navigator label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid var(--bo-filter-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--bo-filter-text);
  font-size: 13px;
  box-shadow: var(--bo-filter-shadow-sm);
}

body#page_product_out.bo-filters-ui-ready .products-view-tools .sorting-navigator .s-title {
  color: var(--bo-filter-muted);
  font-weight: 500;
}

body#page_product_out.bo-filters-ui-ready .products-view-tools .sorting-navigator .s-items {
  border: 0;
  background: transparent;
  color: var(--bo-filter-text);
  font-weight: 600;
  padding-right: 8px;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-open-button {
  display: none;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-mobile-count:empty {
  display: none;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-activebar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 18px;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-activebar.is-empty {
  display: none;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-activebar__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  flex-wrap: wrap;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--bo-filter-green-soft);
  color: var(--bo-filter-green-dark);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-chip__x {
  font-size: 16px;
  line-height: 1;
  opacity: 0.75;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-activebar__clear {
  border: 0;
  background: transparent;
  color: var(--bo-filter-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  cursor: pointer;
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--bo-filter-line);
  border-radius: var(--bo-filter-radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--bo-filter-shadow-sm);
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow:last-child {
  margin-bottom: 0;
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.selected {
  border-color: #d7ddc8;
  background: linear-gradient(180deg, #ffffff, #f7faef);
}

body#page_product_out.bo-filters-ui-ready .categoryFilterName.bo-filter-group-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  cursor: pointer;
  color: var(--bo-filter-text);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

body#page_product_out.bo-filters-ui-ready .categoryFilterName.bo-filter-group-trigger::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--bo-filter-green);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.72);
}

body#page_product_out.bo-filters-ui-ready .categoryFilterName.bo-filter-group-trigger::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  flex: 0 0 auto;
  border-right: 1.7px solid #8f8878;
  border-bottom: 1.7px solid #8f8878;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.f-expanded > .categoryFilterName.bo-filter-group-trigger::after {
  transform: rotate(-135deg);
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow .f-count {
  margin-left: 8px;
  color: var(--bo-filter-green-dark);
  font-size: 12px;
  font-weight: 600;
}

body#page_product_out.bo-filters-ui-ready .categoryFilterName .bo-filter-group-text {
  min-width: 0;
}

body#page_product_out.bo-filters-ui-ready .categoryFilterValues {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.f-collapsed > .categoryFilterValues {
  display: none;
}

body#page_product_out.bo-filters-ui-ready .categoryFilterValues label {
  position: relative;
  display: block;
  cursor: pointer;
  transition:
    background-color 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    opacity 0.18s ease,
    transform 0.18s ease;
}

body#page_product_out.bo-filters-ui-ready .categoryFilterValues label:hover {
  transform: translateY(-1px);
}

body#page_product_out.bo-filters-ui-ready .categoryFilterValues label.disabled {
  opacity: 0.38;
  pointer-events: none;
  filter: grayscale(1);
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--chips .categoryFilterValues label {
  padding: 8px 14px;
  border: 1px solid #d7d1c3;
  border-radius: 999px;
  background: #f7f4ee;
  color: #5e594d;
  font-size: 14px;
  font-weight: 500;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--chips .categoryFilterValues label.activated {
  background: var(--bo-filter-green);
  border-color: var(--bo-filter-green);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(110, 139, 78, 0.28);
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues {
  display: grid;
  gap: 8px;
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues label {
  padding: 11px 12px 11px 45px;
  border-radius: var(--bo-filter-radius-sm);
  background: #ffffff;
  color: #4f4b40;
  font-size: 14px;
  border: 1px solid #e9e2d5;
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues label::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 50%;
  width: 19px;
  height: 19px;
  margin-top: -10px;
  border: 1.6px solid #cec7b8;
  border-radius: 6px;
  background: #ffffff;
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues label::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 6px;
  height: 10px;
  margin-top: -7px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues label.activated {
  background: var(--bo-filter-green-soft);
  border-color: #dbe4cc;
  color: var(--bo-filter-text);
  font-weight: 600;
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues label.activated::before {
  border-color: var(--bo-filter-green);
  background: var(--bo-filter-green);
}

body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues label.activated::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

body#page_product_out.bo-filters-ui-ready .price-slider {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--bo-filter-line);
  border-radius: var(--bo-filter-radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--bo-filter-shadow-sm);
}

body#page_product_out.bo-filters-ui-ready .price-slider .s-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--bo-filter-text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

body#page_product_out.bo-filters-ui-ready .price-slider .s-title-data,
body#page_product_out.bo-filters-ui-ready .price-slider .s-price {
  color: var(--bo-filter-green-dark);
  font-weight: 600;
}

body#page_product_out.bo-filters-ui-ready .price-slider .s-slider {
  margin-top: 12px;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

body#page_product_out.bo-filters-open .bo-filters-drawer {
  pointer-events: auto;
  opacity: 1;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(34, 29, 22, 0.28);
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__panel {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(86vw, 340px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bo-filter-bg), var(--bo-filter-bg-2));
  border-radius: 0 24px 24px 0;
  transform: translateX(-104%);
  transition: transform 0.24s ease;
  box-shadow: 18px 0 40px rgba(40, 31, 22, 0.18);
}

body#page_product_out.bo-filters-open .bo-filters-drawer__panel {
  transform: translateX(0);
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__title {
  margin: 0;
  font-family: var(--bo-font-display, "Playfair Display", Georgia, serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--bo-filter-text);
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__close {
  width: 36px;
  height: 36px;
  border: 1px solid #ddd4c7;
  border-radius: 999px;
  background: #ffffff;
  color: var(--bo-filter-text);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 0 16px 16px;
  -webkit-overflow-scrolling: touch;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__body #page_panel {
  position: static !important;
  top: auto !important;
  width: auto !important;
  max-width: none !important;
  display: block !important;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__body #page_panel .categoryPanel,
body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__body #page_panel #panel-filter-list,
body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__body #page_panel .bo-filters-panel-host {
  box-shadow: none;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(217, 208, 195, 0.7);
  background: rgba(239, 233, 221, 0.95);
  backdrop-filter: blur(10px);
}

body#page_product_out.bo-filters-ui-ready .bo-filters-action {
  min-height: 48px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-action--ghost {
  flex: 0 0 auto;
  padding: 0 18px;
  border: 1px solid #d9d0c3;
  background: #ffffff;
  color: #6b6655;
}

body#page_product_out.bo-filters-ui-ready .bo-filters-action--primary {
  flex: 1 1 auto;
  padding: 0 18px;
  border: 1px solid var(--bo-filter-green);
  background: var(--bo-filter-green);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(110, 139, 78, 0.35);
}

@media (max-width: 900px) {
  body#page_product_out.bo-filters-ui-ready {
    overflow-x: hidden;
  }

  body#page_product_out.bo-filters-ui-ready .pageContentIn {
    display: block !important;
  }

  body#page_product_out.bo-filters-ui-ready .products-view-tools {
    margin-bottom: 16px !important;
  }

  body#page_product_out.bo-filters-ui-ready .products-view-tools .c-toolbar {
    justify-content: space-between;
    align-items: center;
  }

  body#page_product_out.bo-filters-ui-ready .bo-filters-open-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 16px;
    border: 1px solid var(--bo-filter-green);
    border-radius: 14px;
    background: #ffffff;
    color: var(--bo-filter-text);
    font-size: 14px;
    font-weight: 700;
    box-shadow: var(--bo-filter-shadow-sm);
    cursor: pointer;
  }

  body#page_product_out.bo-filters-ui-ready .bo-filters-open-button::before {
    content: "☰";
    color: var(--bo-filter-green);
    font-size: 15px;
    line-height: 1;
  }

  body#page_product_out.bo-filters-ui-ready .bo-filters-mobile-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    background: var(--bo-filter-green);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
  }

  body#page_product_out.bo-filters-ui-ready #page_panel {
    display: none;
  }

  body#page_product_out.bo-filters-open {
    overflow: hidden;
  }

  body#page_product_out.bo-filters-ui-ready .products-view-tools .sorting-navigator {
    margin-left: 0;
  }

  body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__header {
    padding: 14px 14px 10px;
  }

  body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__title {
    font-size: 22px;
  }

  body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__body {
    padding: 0 12px 12px;
  }

  body#page_product_out.bo-filters-ui-ready .bo-filters-drawer__footer {
    gap: 8px;
    padding: 12px 12px calc(12px + env(safe-area-inset-bottom));
  }

  body#page_product_out.bo-filters-ui-ready .bo-filters-action {
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
  }

  body#page_product_out.bo-filters-ui-ready .categoryFiltersRow {
    margin: 0 0 10px;
    padding: 12px;
    border-radius: 15px;
  }

  body#page_product_out.bo-filters-ui-ready .categoryFilterName.bo-filter-group-trigger {
    gap: 8px;
    font-size: 14px;
    line-height: 1.2;
  }

  body#page_product_out.bo-filters-ui-ready .categoryFilterValues {
    gap: 8px;
    margin-top: 10px;
  }

  body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--chips .categoryFilterValues label {
    padding: 7px 12px;
    font-size: 13px;
  }

  body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues {
    gap: 6px;
  }

  body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues label {
    padding: 10px 12px 10px 41px;
    font-size: 13px;
  }

  body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues label::before {
    left: 11px;
    width: 17px;
    height: 17px;
    margin-top: -9px;
  }

  body#page_product_out.bo-filters-ui-ready .categoryFiltersRow.bo-filter-row--list .categoryFilterValues label::after {
    left: 16px;
    margin-top: -7px;
  }

  body#page_product_out.bo-filters-ui-ready .price-slider {
    margin-top: 12px;
    padding: 12px;
    border-radius: 15px;
  }
}
