.cf-filter-layer {
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
  color: #222;
  margin: 0 0 24px;
  padding: 18px 18px 20px;
  width: 100%;
}

.cf-filter-header {
  align-items: flex-start;
  display: flex;
  font-size: 16px;
  font-weight: 700;
  justify-content: space-between;
  line-height: 1.25;
  margin-bottom: 14px;
}

.cf-filter-close {
  background: transparent;
  border: 0;
  color: #111;
  cursor: pointer;
  display: none;
  font-size: 26px;
  line-height: 1;
  padding: 0;
}

.cf-filter-section {
  border-top: 1px solid #eeeeee;
  padding: 14px 0;
}

.cf-filter-title {
  align-items: center;
  background: transparent;
  border: 0;
  color: #222;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 700;
  justify-content: space-between;
  padding: 0;
  text-align: left;
  width: 100%;
}

.cf-filter-body {
  margin-top: 10px;
}

.cf-filter-section.is-collapsed .cf-filter-body {
  display: none;
}

.cf-filter-section.is-collapsed .cf-filter-title span:last-child {
  transform: rotate(180deg);
}

.cf-filter-option {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 9px;
  line-height: 1.35;
  margin: 0 0 10px;
}

.cf-filter-option input[type="checkbox"],
.cf-filter-option input[type="radio"] {
  accent-color: #b40000;
  height: 18px;
  min-width: 18px;
  width: 18px;
}

.cf-filter-option span {
  color: #555;
  flex: 1;
  min-width: 0;
}

.cf-filter-option small {
  color: #999;
  font-size: 12px;
}

.cf-filter-option-muted span {
  color: #777;
}

.cf-price-custom {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: 10px;
}

.cf-price-custom input {
  border: 1px solid #dedede;
  border-radius: 6px;
  font-size: 13px;
  padding: 8px 9px;
  width: 100%;
}

.cf-filter-actions,
.cf-filter-actions-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-top: 8px;
}

.cf-filter-submit {
  background: #b40000;
  border: 1px solid #b40000;
  border-radius: 7px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 14px;
  width: 100%;
}

.cf-filter-reset,
.cf-clear-link {
  color: #b40000;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.cf-filter-mobile-toggle {
  background: #b40000;
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  padding: 10px 16px;
}

.cf-filter-backdrop {
  background: rgba(0, 0, 0, 0.45);
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 9998;
}

@media (max-width: 991px) {
  .cf-filter-mobile-toggle {
    display: inline-flex;
  }

  .cf-filter-layer {
    border-radius: 0;
    bottom: 0;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.25);
    left: 0;
    margin: 0;
    max-width: 360px;
    overflow-y: auto;
    padding: 18px;
    position: fixed;
    top: 0;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    width: 88vw;
    z-index: 9999;
  }

  body.cf-filter-open .cf-filter-layer {
    transform: translateX(0);
  }

  body.cf-filter-open .cf-filter-backdrop {
    display: block;
  }

  .cf-filter-close {
    display: block;
  }
}

/* Columna izquierda creada por JS junto al listado de productos */
.cf-injected-row {
  align-items: flex-start;
  display: flex;
  gap: 24px;
}

.cf-injected-sidebar {
  flex: 0 0 270px;
  max-width: 270px;
  width: 270px;
}

.cf-injected-row > #content-wrapper {
  flex: 1 1 auto;
  min-width: 0;
  max-width: none !important;
  width: auto !important;
}

@media (max-width: 991px) {
  .cf-injected-row {
    display: block;
  }

  .cf-injected-sidebar {
    max-width: none;
    width: auto;
  }
}
