@import url('./blocks/categories-list.css');
@import url('./blocks/products-list.css');

.left_categories {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.left_categories .card {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.left_categories .card-img-top {
  width: 39px;
  height: 31px;
}

.filter {
  padding: 16px;
  background-color: #f9f9f9;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
}

.filter,
.filter__group,
.filter__toggle,
.filter__toggle span,
.filter__list,
.filter__list .form-check,
.filter__list label {
  text-align: left;
}

.filter__toggle {
  font-family: 'Barlow', sans-serif;
/*  font-weight: 700;*/
  font-size: 18px;
  line-height: 1.4;
  color: #09452b;
  width: 100%;
  border: none;
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter__toggle.collapsed .opened {
  display: none;
}

.filter__toggle:not(.collapsed) .closed {
  display: none;
}

.products-mobile-filter__toggle {
  background-color: #f9f9f9;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  padding: 12px 16px;
}

.filter__group i {
  color: var(--color-primary);
  font-size: 20px;
}

.filter__list {
  list-style: none;
  margin-bottom: 0;
  padding-left: 0;
}

.filter__list li + li {
  margin-top: 12px;
}

.filter__list .form-check {
  margin: 0;
}

.filter__list label {
  cursor: pointer;
}

.filter__spec-input .btn {
  min-width: 2.75rem;
}

.filter__input {
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
  text-align: center;
  padding: 6px;
  border: 1px solid #d7d7d7;
  border-radius: 2px;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* For Firefox */
input[type='number'] {
  -moz-appearance: textfield;
}

/* For Edge and IE */
input[type='number']::-ms-clear {
  display: none;
}

.range {
  --handle-width: 16px;

  width: calc(100% - var(--handle-width));
  height: 6px; /* Keep height and --handle-width evenness the same */
  margin-inline: 0 auto;
  background-color: #ffffff;
  border: none !important;
  position: relative;
}

.range .ui-slider-handle {
  width: var(--handle-width);
  height: var(--handle-width);
  background-color: #ffffff;
  border: 2px solid var(--color-primary);
  border-radius: 100vw;
  display: block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.range .ui-slider-range {
  height: 100%;
  background-color: var(--color-primary);
  position: absolute;
}

.range .ui-state-focus {
  outline: none;
}

.tyres-filter {
  border-color: #eeeeee;
  background-color: #f7f7f7;
}

.tyres-filter__layout {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
}

.tyres-filter__inner {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
}

.tyres-filter__field {
  min-width: 76px;
}

.tyres-filter__label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.25;
}

.tyres-filter__select {
  min-width: 76px;
  font-size: 14px;
}

.tyres-filter__actions {
  flex: 0 0 auto;
}

@media (max-width: 575.98px) {
  .tyres-filter__layout,
  .tyres-filter__inner {
    align-items: stretch;
    flex-direction: column;
  }

  .tyres-filter__field {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .products-filter-collapse {
    margin-bottom: 24px;
  }
}

.js_products_container {
  position: relative;
}

.products-list--loading {
  min-height: 160px;
  pointer-events: none;
}

.products-list--loading::before,
.products-list--loading::after {
  content: '';
  position: absolute;
  z-index: 5;
}

.products-list--loading::before {
  inset: 0;
  background-color: rgba(255, 255, 255, 0.72);
}

.products-list--loading::after {
  width: 42px;
  height: 42px;
  top: 80px;
  left: 50%;
  margin-left: -21px;
  border: 4px solid rgba(116, 160, 45, 0.22);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: products-loading-spin 0.8s linear infinite;
}

@keyframes products-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.products__list .price-block__check {
  font-size: 13px;
  line-height: 1.2;
}

.products__list .price-block__check:not(.text-danger) {
  color: #3fa24b;
}

.products__list .price-block__check i {
  font-size: 14px;
}

@media (max-width: 767.98px) {
  .products-list__toolbar {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .products-list__toolbar .page_navigator {
    flex: 0 0 100%;
    max-width: 100%;
    overflow-x: auto;
  }

  .products-list__toolbar .pagination {
    flex-wrap: nowrap;
    margin-bottom: 0;
  }

  .products-list__toolbar > .d-flex.ms-auto {
    flex: 0 0 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-left: 0 !important;
    row-gap: 8px;
  }
}

/* .top-filter
{
	border-bottom: 2px dotted #CCC;
	padding-bottom: 20px;
	padding-top: 20px;
}
.top-filter SPAN
{
	margin-right: 15px;
	font-weight: bold;
	line-height: 100%;
	vertical-align: -1px;
}
.top-filter LABEL.form-check-label
{
	line-height: 100%;
	vertical-align: -1px;
}
.top-filter .form-check
{
	margin-bottom: 10px;
}
 */
