/* =========================================================
   TopTools.kz — фильтр v3: цена + характеристики
   ========================================================= */

#product-category #column-left .list-group {
  display: none !important;
}

#column-left .tt-filter-v3,
.tt-filter-v3 {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  background: #ffffff;
  border: 1px solid #dfe9f3;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(20, 37, 63, 0.06);
}

.tt-filter-v3__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 16px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e7eef5;
}

.tt-filter-v3__title {
  color: #15243b;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.tt-filter-v3__selected {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 7px;
  padding: 0 8px;
  color: #ff671d;
  font-size: 11px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
  background: #fff2eb;
  border-radius: 999px;
}

.tt-filter-v3__reset-link {
  margin-top: 3px;
  color: #ff671d !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.tt-filter-v3__body {
  padding: 0 14px;
  background: #ffffff;
}

.tt-filter-v3__group {
  border-bottom: 1px solid #edf2f7;
}

.tt-filter-v3__group:last-child {
  border-bottom: 0;
}

.tt-filter-v3__group-toggle {
  -webkit-appearance: none !important;
  appearance: none !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 15px 2px 12px !important;
  color: #15243b !important;
  font-family: inherit !important;
  font-size: 13px !important;
  line-height: 1.38 !important;
  font-weight: 800 !important;
  text-align: left !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.tt-filter-v3__group-toggle:hover,
.tt-filter-v3__group-toggle:focus {
  color: #ff671d !important;
}

.tt-filter-v3__group-toggle i {
  flex: 0 0 auto;
  color: #8191a7;
  font-size: 15px;
  line-height: 1;
  transition: transform .2s ease, color .2s ease;
}

.tt-filter-v3__group-toggle.is-collapsed i {
  transform: rotate(-90deg);
}

.tt-filter-v3__collapse {
  padding: 0 !important;
}

/* Цена */
.tt-filter-v3__price {
  padding: 0 0 16px;
}

.tt-filter-v3__price-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.tt-filter-v3__price-field {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-height: 42px;
  margin: 0 !important;
  padding: 0 10px !important;
  color: #708198 !important;
  font-size: 12px !important;
  line-height: 1 !important;
  font-weight: 700 !important;
  background: #fbfdff !important;
  border: 1px solid #dbe7f2 !important;
  border-radius: 11px !important;
}

.tt-filter-v3__price-field input {
  width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #15243b !important;
  font-size: 13px !important;
  line-height: 40px !important;
  font-weight: 800 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}

.tt-filter-v3__price-field input::-webkit-outer-spin-button,
.tt-filter-v3__price-field input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.tt-filter-v3__price-field input[type=number] {
  -moz-appearance: textfield;
}

.tt-filter-v3__price-note {
  color: #7b8ca4;
  font-size: 11px;
  line-height: 1.45;
  font-weight: 600;
}

/* Значения фильтров */
.tt-filter-v3__options {
  display: block;
  padding: 0 0 15px;
}

.tt-filter-v3__options--scroll {
  max-height: 230px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 5px;
}

.tt-filter-v3__options--scroll::-webkit-scrollbar {
  width: 5px;
}

.tt-filter-v3__options--scroll::-webkit-scrollbar-thumb {
  background: #c8d5e3;
  border-radius: 999px;
}

.tt-filter-v3__option {
  position: relative;
  width: 100%;
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: #51627a !important;
  font-size: 12px !important;
  line-height: 1.42 !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  white-space: normal !important;
}

.tt-filter-v3__option:last-child {
  margin-bottom: 0 !important;
}

.tt-filter-v3__option input[type="checkbox"] {
  -webkit-appearance: none !important;
  appearance: none !important;
  position: relative !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  margin: 1px 0 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #c7d5e4 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
}

.tt-filter-v3__option input[type="checkbox"]:checked {
  background: #ff671d !important;
  border-color: #ff671d !important;
  box-shadow: 0 5px 14px rgba(255, 103, 29, 0.25) !important;
}

.tt-filter-v3__option input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.tt-filter-v3__option.is-checked span {
  color: #15243b !important;
  font-weight: 800 !important;
}

.tt-filter-v3__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 15px 16px 16px;
  background: #fbfdff;
  border-top: 1px solid #e7eef5;
}

.tt-filter-v3__apply {
  width: 100% !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 14px !important;
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
  text-align: center !important;
  background: #ff671d !important;
  border: 1px solid #ff671d !important;
  border-radius: 12px !important;
  box-shadow: 0 12px 24px rgba(255, 103, 29, 0.22) !important;
  cursor: pointer !important;
}

.tt-filter-v3__clear {
  width: 100%;
  color: #51627a !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
  text-align: center !important;
  text-decoration: none !important;
}

.tt-filter-v3__clear:hover,
.tt-filter-v3__reset-link:hover {
  color: #ff671d !important;
  text-decoration: none !important;
}

@media (max-width: 991px) {
  .tt-filter-v3__options--scroll {
    max-height: none;
  }
}
