/* OCFilter → вид как в вёрстке GalaxyOpt */

.filters #column-left,
.filters-drawer #column-left,
.catalog-layout #column-left {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  display: block !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  overflow: visible !important;
  z-index: auto !important;
  transform: none !important;
}

.filters .ocf-container,
.filters-drawer .filters .ocf-container {
  display: block !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: auto !important;
  height: auto !important;
  transform: none !important;
  transition: none !important;
  z-index: auto !important;
  background: transparent;
  box-shadow: none !important;
  border: 0;
  padding: 0;
  will-change: auto;
}

.filters-aside,
.catalog-layout > .filters-aside {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  z-index: auto !important;
  opacity: 1 !important;
  text-indent: 0 !important;
  overflow: visible !important;
}

.filters .ocf-content {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "head reset"
    "body body";
  align-items: center;
  column-gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.filters .ocf-header {
  grid-area: head;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0;
  padding: 0;
  background: transparent;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: #171717;
}

.filters .ocf-header .filters-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #171717;
  line-height: 1.3;
}

.filters .ocf-body {
  grid-area: body;
  position: static !important;
  top: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
  margin-top: 0.25rem;
  overflow: visible !important;
}

.filters .ocf-body > .ocf-filter-list {
  height: auto !important;
  overflow: visible !important;
  padding: 0 !important;
}

.filters .ocf-header .ocf-icon,
.filters .ocf-btn-mobile-fixed,
.filters .ocf-is-mobile,
.filters .ocf-mobile,
.filters .ocf-selected-card,
.ocf-btn-mobile-fixed,
.filters .ocf-noUi-pips,
.filters .ocf-popover,
.ocf-popover,
.filters .ocf-search-btn-popover,
.ocf-search-btn-popover {
  display: none !important;
}

.filters .ocf-footer {
  grid-area: reset;
  position: static !important;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
  z-index: auto;
  width: auto !important;
  bottom: auto !important;
}

.filters .ocf-footer:after {
  display: none;
}

.filters .ocf-footer .ocf-between {
  display: flex;
  justify-content: flex-end;
}

.filters .ocf-footer .ocf-btn-link,
.filters .filters__reset {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e91e63;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: none;
}

.filters .ocf-footer .ocf-btn-link:hover,
.filters .filters__reset:hover {
  text-decoration: underline;
  color: #e91e63;
  background: transparent;
}

.filters .ocf-footer .ocf-btn-link::before,
.filters .filters__reset::before {
  content: "";
  width: 0.875rem;
  height: 0.875rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.filters .ocf-footer .ocf-btn-link.ocf-disabled,
.filters .filters__reset.ocf-disabled {
  opacity: 0.45;
}

.filters .ocf-footer .ocf-search-btn-static {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.filters .ocf-theme-light-block.ocf-vertical .ocf-filter,
.filters .ocf-theme-light.ocf-vertical .ocf-filter,
.filters .ocf-filter {
  margin: 1.25rem 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.filters .ocf-filter-header,
.filters .ocf-theme-light .ocf-filter-header,
.filters .ocf-theme-light .ocf-dropdown .ocf-filter-header,
.filters .ocf-theme-light-block .ocf-filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.5rem;
  margin: 0 0 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent !important;
  color: #262626;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  min-height: 1.25rem;
  text-transform: none;
  cursor: default;
}

.filters .ocf-filter-name {
  order: -1;
  margin: 0;
  color: #262626;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25rem;
  white-space: normal;
  flex: 1;
  overflow: visible;
  text-overflow: unset;
}

.filters .ocf-slider .ocf-active-label,
.filters .ocf-slider.ocf-has-input .ocf-active-label {
  display: inline-flex !important;
  align-items: center;
  order: 2;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  height: 1.25rem;
  color: #737373;
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.25rem;
  white-space: nowrap;
  background: transparent !important;
}

.filters .ocf-slider .ocf-active-label > span {
  display: inline;
  margin: 0;
  padding: 0;
  line-height: 1.25rem;
  white-space: nowrap;
}

.filters .ocf-filter:not(.ocf-slider) .ocf-active-label,
.filters .ocf-filter-header-append .ocf-icon,
.filters .ocf-filter-discard,
.filters .ocf-angle {
  display: none !important;
}

.filters .ocf-dropdown .ocf-filter-body > .ocf-value-list,
.filters .ocf-theme-light .ocf-dropdown .ocf-filter-body > .ocf-value-list,
.filters .ocf-theme-light-block .ocf-dropdown .ocf-filter-body > .ocf-value-list,
.filters .ocf-value-list,
.filters .ocf-filter-body > .ocf-value-list {
  display: flex !important;
  flex-direction: column;
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  height: auto !important;
  width: 100% !important;
  min-width: 0 !important;
  z-index: auto;
  max-height: 14rem;
  margin: 0 !important;
  padding: 0 0.25rem 0 0 !important;
  overflow: auto !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0;
  transform: none !important;
  transition: none !important;
  scrollbar-width: thin;
}

.filters .ocf-value-list-body {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.filters .ocf-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100% !important;
  margin: 0 0 0.15rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: #404040;
  font-size: 0.875rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
}

.filters .ocf-value-input {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
  flex: 0 0 1rem;
  margin: 0;
  overflow: visible;
  box-sizing: border-box;
}

.filters .ocf-value-input::before,
.filters .ocf-value-input::after {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  box-sizing: border-box;
  pointer-events: none;
}

.filters .ocf-value-input::before {
  border: 1.5px solid #737373 !important;
  border-radius: 0.2rem;
  background-color: #fff !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.filters .ocf-value-input-checkbox::before {
  border-radius: 0.2rem;
}

.filters .ocf-selected .ocf-value-input::before,
.filters .ocf-theme-light-block .ocf-selected .ocf-value-input::before {
  border-color: #e91e63 !important;
  background-color: #e91e63 !important;
}

.filters .ocf-value:active .ocf-value-input::before,
.filters .ocf-value:focus .ocf-value-input::before {
  border-color: #e91e63 !important;
  box-shadow: none !important;
  background-color: #fff !important;
}

.filters .ocf-selected:active .ocf-value-input::before,
.filters .ocf-selected:focus .ocf-value-input::before {
  background-color: #e91e63 !important;
  border-color: #e91e63 !important;
}

.filters .ocf-value .ocf-value-input::after {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px;
}

.filters .ocf-selected .ocf-value-input-checkbox::after,
.filters .ocf-theme-light-block .ocf-selected .ocf-value-input-checkbox::after {
  filter: none !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e") !important;
}

.filters .ocf-value-name {
  flex: 1;
  min-width: 0;
  margin: 0;
}

.filters .ocf-value-append {
  min-width: 0;
  margin: 0 0 0 auto;
}

.filters .ocf-value-count,
.filters .ocf-theme-light .ocf-value-count,
.filters .ocf-theme-light-block .ocf-value-count {
  display: inline !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
  color: #a3a3a3 !important;
  font-size: 0.75rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  box-shadow: none !important;
}

.filters .ocf-selected .ocf-value-count,
.filters .ocf-value-count:empty {
  display: none !important;
}

.filters .ocf-disabled {
  opacity: 0.45;
}

.filters .ocf-slider-input-group {
  display: none !important;
}

.filters .ocf-value-slider {
  margin: 0.5rem 0.15rem 0.25rem;
  padding: 0.75rem 0.85rem 0.5rem;
  min-height: 2rem;
  overflow: visible;
}

/* Fallback noUi layout — OCF cache CSS інколи 404 */
.filters .ocf-noUi-target,
.filters .ocf-value-scale.ocf-noUi-target {
  height: 20px !important;
  position: relative;
}

.filters .ocf-noUi-base,
.filters .ocf-noUi-connects {
  width: 100%;
  height: 20px !important;
  position: relative;
  z-index: 1;
}

.filters .ocf-noUi-connect,
.filters .ocf-noUi-origin {
  position: absolute !important;
  z-index: 1;
  top: 0 !important;
  right: 0;
  transform-origin: 0 0;
  will-change: transform;
}

.filters .ocf-noUi-connect {
  height: 100% !important;
  width: 100%;
}

.filters .ocf-noUi-origin {
  height: 0 !important;
  width: 10% !important;
}

.filters .ocf-noUi-handle,
.filters .ocf-noUi-handle-lower,
.filters .ocf-noUi-handle-upper {
  position: absolute !important;
  box-sizing: border-box !important;
  width: 18px !important;
  height: 18px !important;
  /* (track 20px − handle 18px) / 2 = 1px — оба кружка на одній лінії зі смугою */
  top: 1px !important;
  right: -9px !important;
  left: auto !important;
  margin: 0 !important;
  border: 2px solid #e91e63 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12) !important;
  cursor: grab;
  z-index: 2;
}

/* Сіра смуга під активним діапазоном */
.filters .ocf-noUi-base:before,
.filters .ocf-theme-light-block .ocf-noUi-base:before {
  content: "" !important;
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px !important;
  border-radius: 9999px;
  background-color: rgba(233, 30, 99, 0.2) !important;
  top: 8px !important;
  margin: 0 !important;
}

/* Кінцеві «крапки» треку ховаємо — давали ефект нерівних кружків */
.filters .ocf-noUi-connects:before,
.filters .ocf-noUi-connects:after,
.filters .ocf-theme-light-block .ocf-noUi-connects:before,
.filters .ocf-theme-light-block .ocf-noUi-connects:after {
  display: none !important;
  content: none !important;
}

.filters .ocf-noUi-connect:before,
.filters .ocf-theme-light-block .ocf-noUi-connect:before {
  content: "" !important;
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px !important;
  border-radius: 9999px;
  background-color: #e91e63 !important;
  top: 8px !important;
  margin: 0 !important;
}

.filters .ocf-noUi-active {
  box-shadow: 0 0 0 4px rgba(233, 30, 99, 0.2) !important;
}

.filters .ocf-filter-body > .ocf-value-list:has(.ocf-value-slider),
.filters .ocf-slider .ocf-value-list {
  overflow: visible !important;
  max-height: none;
}

.filters .ocf-btn-show-filters,
.filters .ocf-btn-show-values {
  margin-top: 0.35rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #737373;
  font-size: 0.75rem;
  text-align: left;
}

/* «В упаковці» / кількість — чипы как в вёрстке */
.filters .ocf-filter[id*="-13-"] .ocf-value-list,
.filters .ocf-filter[id*="-13-"] .ocf-value-list-body {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-height: none;
  overflow: visible !important;
  padding: 0 !important;
}

.filters .ocf-filter[id*="-13-"] .ocf-value {
  width: auto !important;
  min-width: 44px;
  height: 2.25rem;
  margin: 0;
  padding: 0 0.75rem;
  border: 1px solid #e5e5e5;
  border-radius: 0.5rem;
  justify-content: center;
  gap: 0;
  font-size: 0.875rem;
  color: #404040;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filters .ocf-filter[id*="-13-"] .ocf-value:hover {
  border-color: rgba(233, 30, 99, 0.5);
}

.filters .ocf-filter[id*="-13-"] .ocf-value.ocf-selected {
  border-color: #e91e63;
  background: #fdf2f7;
  color: #e91e63;
  font-weight: 500;
}

.filters .ocf-filter[id*="-13-"] .ocf-value-input,
.filters .ocf-filter[id*="-13-"] .ocf-value-append {
  display: none !important;
}

.filters .ocf-filter[id*="-13-"] .ocf-value-name {
  flex: 0 0 auto;
  margin: 0;
}

.filters-drawer .filters {
  border: 0;
  padding: 0;
  background: transparent;
}

.filters-drawer .ocf-header,
.filters-drawer .ocf-footer {
  display: none;
}

.filters-drawer .ocf-body {
  margin-top: 0;
}
