.hc-apf .hc-apf-facet__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;


}

.hc-apf-facet {
  margin-top: 20px;
}

.hc-apf .hc-apf-facet__label {
  font-weight: 600;
  font-size: 14px;
}


.hc-apf .hc-apf-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}

.hc-apf .hc-apf-list label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  border-radius: 8px;
}

.hc-apf .hc-apf-list label:hover {
  background: #f1f5f9;
}

.hc-apf .hc-apf-list label.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

.hc-apf .hc-apf-list .count {
  margin-left: auto;
  font-size: 12px;
  color: #64748b;
}

.hc-apf .hc-apf-tax-group {
  margin-bottom: 12px;
}

.hc-apf .hc-apf-tax-title {
  font-size: 14px;
  line-height: 15px;
  font-weight: bold;
  color: black;
  margin-bottom: 10px;
}

.hc-apf .hc-apf-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.hc-apf input[type="number"],
.hc-apf input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  border-radius: 27px;
  text-align: center;
  background-color: white;
  border: 0px solid white;

  font-size: 14px;
  line-height: 20px;
  outline: none;
}

.hc-apf .hc-apf-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.hc-apf .button {
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
}

.hc-apf .button-primary {
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
}

.hc-apf .button-secondary {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
}

#hc-apf-form.is-loading {
  opacity: .6;
  pointer-events: none;
}

#hc-apf-results.is-loading {
  position: relative;
}

#hc-apf-results.is-loading::after {
  content: "Ładowanie…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .6);
  font-weight: 600;
  color: #334155;
}



/* CENA */

.hc-apf-price {
  display: flex;
  align-items: center;
  gap: 5px;
}

.hc-apf .hc-apf-price .price-input-wrapper {
  position: relative;
  margin-bottom: 0px;
}

.hc-apf .hc-apf-price input[type="number"] {
  padding-right: 25px;
  padding-left: 25px;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.hc-apf .hc-apf-price input[type="number"]:focus {
  border: 1px solid #FFC207;
}

.hc-apf .hc-apf-price .price-currency {
  position: absolute;
  font-size: 14px;
  line-height: 15px;
  color: #9A9A9A;
  font-weight: 400;
  right: 10px;
  top: 50%;
  transform: translate(0, -50%);
}

.price-separator-wrapper {
  width: 14px;
  height: 1px;
  background: #9A9A9A;
}

/* Boxy */
.hc-apf .hc-apf-box {

  border-radius: 16px;
  background: #F4F4F4;
  margin-bottom: 16px;
  overflow: hidden;
  padding: 20px 40px;

}

.hc-apf .hc-apf-box__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* padding: 12px 14px; */
}

.hc-apf .hc-apf-box__label {
  font-size: 24px;
  line-height: 34px;
  font-weight: 600;
  color: black;

}

.hc-apf .hc-apf-box__body {
  margin-top: 20px;
}

.hc-apf .hc-apf-box.is-collapsed .hc-apf-box__body {
  display: none;
}

/* Toggle caret – schludny */

.hc-apf-toggle svg {
  width: 20px;
  height: auto;
  fill: black;
  transform: rotate(180deg);
}

.hc-apf .hc-apf-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;

  background: #fff;
  padding: 0px;
  cursor: pointer;
  background-color: transparent;
  border: 0px;
}

.hc-apf .hc-apf-toggle:hover {}

.is-collapsed .hc-apf-toggle svg {
  transform: rotate(0deg);
}

.hc-apf .hc-apf-caret {
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #475569;
  border-bottom: 2px solid #475569;
  transform: rotate(45deg);
  transition: transform .2s ease;
}

.hc-apf .hc-apf-box.is-collapsed .hc-apf-caret {
  transform: rotate(-135deg);
}

/* Facety – bez toggle'ów, tylko label + body */


.hc-apf .hc-apf-facet__label {
  font-size: 14px;
  line-height: 15px;
  font-weight: bold;
  color: black;
}

/* Skupione drzewko kategorii */
.hc-apf .hc-apf-cat-focused {
  display: block;
}

.hc-apf .hc-apf-cat-parent {
  margin: 0 0 8px 0;
}

.hc-apf .hc-apf-cat-parent__label {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.hc-apf .hc-apf-cat-parent__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
  border: 1px solid #e5e7eb;
}

.hc-apf .hc-apf-cat-parent__arrow {
  font-size: 14px;
}

.hc-apf .hc-apf-cat-parent__link:hover {
  background: #e2e8f0;
}

.hc-apf .hc-apf-cat-nav {
  list-style: none;
  margin: 0;
  padding-left: 0;
}
.hc-apf-cat-back-btn {
  display: flex;
  gap: 5px;
  font-size: 12px;
  color: black !important;
  text-decoration: none !important;
  margin-bottom: 10px;

}
.hc-apf-cat-back-btn svg{
 width: 12px;
 flex: 0 0 12px;
 height: auto;
}

.hc-apf .hc-apf-cat-nav a {
display: block;
padding-top: 4px;
padding-bottom: 4px;
margin-top: 4px;
margin-bottom: 4px;
text-decoration: none;
font-size: 14px;
line-height: 15px;
color: black;
}


.hc-apf .hc-apf-cat-nav a:hover {
  background: #f1f5f9;
}

.hc-apf .hc-apf-cat-nav .is-active a {
padding-left: 10px;
}


.hc-apf .hc-apf-cat-nav>li.is-active>a {
  border-left: 6px solid #FFC207;
  font-weight: bold;
}

/* Dzieci bieżącej kategorii pod aktywną pozycją */
.hc-apf .hc-apf-cat-sub {
  list-style: none;
  margin: 0;
  padding-left: 0;
  padding-left: 20px;

}





.hc-apf-stock {
  display: flex;
  flex-direction: column;
}




/* === Custom checkbox / radio – uniwersalne === */
.hc-apf #hc-apf-form label.hc-apf-check {
  position: relative;
  padding-left: 26px;
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  line-height: 15px;
  color: black;

}

.hc-apf #hc-apf-form label.hc-apf-check input[type="checkbox"],
.hc-apf #hc-apf-form label.hc-apf-check input[type="radio"] {
  position: absolute;
  opacity: 0;
  left: 0;
  top: 0;
  width: 17px;
  height: 17px;
  margin: 0;
  padding: 0;
}

/* Pudełko */
.hc-apf #hc-apf-form label.hc-apf-check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0px;
  width: 17px;
  height: 17px;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  /* checkbox */
  transition: border-color .15s ease, background .15s ease;
}

/* Radio = kółko */
.hc-apf #hc-apf-form label.hc-apf-check:has(input[type="radio"])::before {
  border-radius: 50%;
}

/* Znacznik */
.hc-apf #hc-apf-form label.hc-apf-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 7px;
  height: 10px;
  border-right: 2px solid #FFC207;
  border-bottom: 2px solid #FFC207;
  transform: rotate(45deg) scale(0);
  transform-origin: center;
  transition: transform .12s ease-out;
}

/* Radio – kropka */
.hc-apf #hc-apf-form label.hc-apf-check:has(input[type="radio"])::after {
  left: 4px;
  top: 4px;
  width: 9px;
  height: 9px;
  border: 0;
  background: #FFC207;
  border-radius: 50%;
  transform: scale(0);
}

/* Checked (nowoczesne przeglądarki) */
.hc-apf #hc-apf-form label.hc-apf-check:has(input:checked)::after {
  transform: rotate(45deg) scale(1);
}

.hc-apf #hc-apf-form label.hc-apf-check:has(input[type="radio"]:checked)::after {
  transform: scale(1);
}

/* Fallback – JS doda .is-checked */
.hc-apf #hc-apf-form label.hc-apf-check.is-checked::after {
  transform: rotate(45deg) scale(1);
}

.hc-apf #hc-apf-form label.hc-apf-check.is-checked:has(input[type="radio"])::after {
  transform: scale(1);
}

/* Disabled */
.hc-apf #hc-apf-form label.hc-apf-check.is-disabled,
.hc-apf #hc-apf-form label.hc-apf-check:has(input:disabled) {
  opacity: .6;
  cursor: not-allowed;
}

/* Hover */
.hc-apf #hc-apf-form label.hc-apf-check:hover::before {
  border-color: #94a3b8;
}



.confirm-filters-btn {
  display: none !important;
}



.hc-apf-pager {
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  margin-top: 50px;

}

.hc-apf-pager svg {
  width: 20px;
  height: auto;
  align-items: center;
  transition: all 0.2s;
  fill: black;
}

.hc-apf-pager .btn-next svg {
  transform: rotate(180deg);
}

.hc-apf-pager button {
  background-color: transparent;
  padding: 0px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0px;
}

.hc-apf-pager button.disabled svg {
  fill: #CECECE;
}

.hc-apf-pager button:not(.disabled) {
  cursor: pointer;
}

.pager-number-wrapper .hc-apf-page-input {
  font-size: 13px;
  line-height: 15px;
  font-weight: 400;
  color: black;

  border-radius: 8px;
  border: 1px solid #DBDBDB;
  text-align: center;
  justify-content: center;

  width: 42px;
  height: 42px;
}

.pager-number-wrapper .total {
  font-size: 13px;
  line-height: 15px;
  font-weight: 400;
  color: #343434;
}



.mobile-show-results {
  display: none !important;
}

.mobile-show-results-close {
  display: none !important;
}

.mobile-show-filter-and-category {
  display: none;
}

@media only screen and (min-width: 1150px) {
  .hc-apf {
    display: block !important;
  }
}

@media only screen and (max-width: 1150px) {
  .hc-apf {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0px;
    right: 0px;
    bottom: 0px;
    background: rgba(255, 255, 255, 0.6);
    overflow: auto;

    display: none;

  }

  .hc-apf-box-wrapper {
    padding: 25px;
    position: relative;
  }

  .hc-apf-toggle {
    display: none !important;
  }

  .mobile-show-results {
    display: flex !important;
    width: 100%;
    margin-top: 25px;
  }

  .mobile-show-results:hover {
    background-color: black !important;
    color: white !important;
    border-color: black !important;
  }

  .mobile-show-results-close {
    display: flex !important;
    width: 25px;
    height: 25px;
    padding: 0px;
    margin: 0px;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 35px;
    top: 35px;
    border: 0px;
    background-color: transparent;
    cursor: pointer;
  }

  .mobile-show-results-close svg {
    width: 25px;
    height: 25px;
    fill: black;
    flex: 0 0 25px;
  }

  .mobile-show-filter-and-category {
    display: flex;
    gap: 10px;
    background-color: transparent;
    font-size: 13px;
    line-height: 14px;
    color: black;
    border: 1px solid #DADADA;
    border-radius: 8px;
    padding: 6px 12px;
    cursor: pointer;
    text-align: left;
    min-height: 42px;

    min-width: 117px;
    max-width: 190px;
    flex: 1;

  }

  .mobile-show-filter-and-category svg {
    width: 18px;
    height: auto;
    flex: 0 0 18px;
  }

  
}