﻿/* CATEGORY START */

.category {
    padding-top: 48px;
}
.category__wrapper {
}
.category__list {
    display: flex;
    flex-wrap: wrap;
    gap:16.25px;
}
.category__item {
    width: calc(20% - 13px);
    display: flex;
    gap:8px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid rgba(41, 40, 38, 0.40);
    background: #fff;
    text-decoration: none;
}
.category__item-title {
    width: calc(60% - 4px);
    min-width: 0;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    color:#292826;
    -webkit-hyphens: none;
    -ms-hyphens: none;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
}
.category__item-image {
    width: calc(40% - 4px);
}
.category__item-image img {
    scale:1.2;
}

/* CATEGORY END */

/* CATALOG START */



.catalog {
}
.catalog--without-category-section {
    padding-top: 48px;
}
.catalog__title-block {
}
.catalog__title {
}
.catalog__title-term {
    display: inline-block;
    max-width: 100%;
    vertical-align: top;
}
.catalog__content {
}
.catalog__wrapper {
    display: flex;
    gap:24px;
}
.catalog__filters {
    width: calc(25% - 12px);
    min-width: 360px;
}
.catalog__filter-list {
    display: flex;
    flex-direction: column;
    gap:24px;
}
#catalog__filter > h2 {
    margin: 0 0 16px;
}
.catalog__filter-item {
}
.catalog__filter-title {
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 16px;
}
.filter-checkbox-list {
    max-height: none;
    overflow: visible;
    min-width: 0;
}
.filter-checkbox-list.filter-checkbox-list--collapsible {
    position: relative;
    max-height: none;
    overflow: hidden;
}
.filter-checkbox-list.filter-checkbox-list--collapsed::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 18px;
    background: linear-gradient(180deg, rgba(248, 248, 248, 0) 0%, #f8f8f8 100%);
    pointer-events: none;
}
.filter-checkbox-list.filter-checkbox-list--collapsed .filter-checkbox-item--collapsed-hidden {
    display: none;
}
.filter-checkbox-list.filter-checkbox-list--collapsed .filter-checkbox-item--peek {
    max-height: 14px;
    overflow: hidden;
    opacity: 0.45;
    pointer-events: none;
}
.filter-checkbox-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #292826;
    font-family: 'Montserrat';
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    cursor: pointer;
}
.filter-checkbox-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    margin-top: -3px;
}
.filter-checkbox-toggle.is-expanded::after {
    transform: rotate(-135deg);
    margin-top: 3px;
}
.range-wrapper {
    display: flex;
    gap: 24px;
}
.range-wrapper-filter {
    
}
.range-price-min-val,
.range-price-max-val {
    font-size: 14px;
    font-weight: 400;
}
.range-input-price {
}
.range-price-max-val {
}
.catalog__main {
    width: calc(75% - 12px);
}
.subcategory-list {
    margin-bottom: 20px;
}
.subcategory-list ul {
    list-style: none;
}
.subcategory-list ul li {

}
.subcategory-list ul li a {
    color:#292826;
    text-decoration: none;
}




.range-input-price {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 3px;
    background: linear-gradient(to right, #fdd525 49%, #000 49%);
    outline: none;
    transition: background 0.3s ease;
    cursor: pointer;
}
.range-input-price::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background-color: #000;
  border: 5px solid #fdd525;
  margin-top: 0px; /* Чтобы по центру полоски */
  cursor: pointer;
}

/* Firefox thumb */
.range-input-price::-moz-range-thumb {
  height: 20px;
  width: 20px;
  border-radius: 50%;
  background-color: #000;
  border: 5px solid #fdd525;
  cursor: pointer;
}

/* Firefox track */
.range-input-price::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: transparent;
}
.range-wrapper-filter{
    width: 100%;
    padding-top: 30px;
    position: relative;
}
.range-wrapper-filter span {
    position: absolute;
    top: 0;
    color:#292826;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    display: block;
}
.range-price-max-val {
    right: 0;
}

/* Filter double-range slider styles are used in catalog templates too. */
.range-wrapper.power-range-wrapper {
    display: block;
    gap: 0;
    width: 100%;
    padding-top: 30px;
    position: relative;
}

.power-range-wrapper .range-inputs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    font-size: 14px;
    font-weight: 500;
    color: #292826;
}

.power-range-wrapper .range-inputs span {
    position: static;
    color: #292826;
}

.power-range-wrapper .range-input-text {
    width: 80px;
    padding: 4px 6px;
    font-size: 14px;
    font-weight: 500;
    color: #292826;
    border: 1px solid #292826;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    text-align: center;
}

.power-range-wrapper .range-input-text::-webkit-outer-spin-button,
.power-range-wrapper .range-input-text::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.power-range-wrapper .range-input-text[type="number"] {
    -moz-appearance: textfield;
}

.power-range-wrapper .range-line {
    position: relative;
    width: 100%;
    margin-top: 16px;
    height: 20px;
    --power-min: 0%;
    --power-max: 100%;
    cursor: pointer;
}

.power-range-wrapper .range-input-power {
    -webkit-appearance: none;
    appearance: none;
    position: absolute;
    inset: 0;
    margin: 0;
    width: 100%;
    height: 20px;
    background: transparent;
    outline: none;
    cursor: pointer;
    pointer-events: none;
    z-index: 3;
}

.power-range-wrapper .range-line::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 3px;
    background: #000;
    z-index: 1;
}

.power-range-wrapper .range-line::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    border-radius: 3px;
    background: #fdd525;
    z-index: 2;
    left: var(--power-min);
    right: calc(100% - var(--power-max));
}

.power-range-wrapper #power-range-max,
.power-range-wrapper #max-power-range-max,
.power-range-wrapper #load-capacity-kg-range-max,
.power-range-wrapper #lifting-height-range-max {
    z-index: 4;
}

.power-range-wrapper .range-input-power::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #000;
    border: 5px solid #fdd525;
    cursor: pointer;
    pointer-events: auto;
    margin-top: calc((4px / 2) - (20px / 2));
}

.power-range-wrapper .range-input-power::-moz-range-thumb {
    height: 20px;
    width: 20px;
    border-radius: 50%;
    background-color: #000;
    border: 5px solid #fdd525;
    cursor: pointer;
    pointer-events: auto;
}

.power-range-wrapper .range-input-power::-webkit-slider-runnable-track {
    height: 4px;
    background: transparent;
}

.power-range-wrapper .range-input-power::-moz-range-track {
    height: 4px;
    background: transparent;
}

.filter-radio {
    width: 24px;
    min-width: 24px;
    height: 24px;
    background-image: url('../../img/radio-circle.svg');
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-size: contain;
    background-repeat: no-repeat;
    cursor: pointer;
    vertical-align: middle;
    margin-right: 4px;
    position: relative;
    top: 2px;
    left:0;
}
.filter-radio:checked {
    background-image: url('../../img/radio-checked.svg');
}
.catalog__filter-hide {
    display: none;
}
.catalog__filter-hide.show {
    display: block;
}
.filter-checkbox-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.filter-checkbox-list .filter-checkbox-item.filter-checkbox-item--unavailable {
    display: none;
}
.filter-checkbox-item .form-check-input {
    top: 2px;
    flex: 0 0 auto;
}
.filter-checkbox-item .form-check-label {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.filter-checkbox-text {
    flex: 1 1 auto;
    min-width: 0;
}
.filter-checkbox-count {
    flex: 0 0 auto;
    color: rgba(41, 40, 38, 0.45);
    font-size: 16px;
    line-height: 1.2;
    margin-left: 8px;
    white-space: nowrap;
    text-align: right;
}
.catalog__filter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.filter-btn {
    font-family: 'Montserrat';
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.outline-btn {
    background-color: #fff;
    border:solid 1px #FDD525;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    padding: 16px;
}
.filter-readmore-link {
    font-size: 16px;
    text-decoration: underline;
    cursor: pointer;
}


.catalog__main {
}
.catalog__main-actions {
    min-height: 22px;
    height: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.catalog__main-action-sorter {
    display: flex;
}
.catalog__main-action-sorter {
    padding-left: 30px;
    position: relative;
    gap:10px;
    align-items: center;
    flex: 0 0 auto;
    width: fit-content;
    max-width: 100%;
}
.catalog__main-action-sorter::after {
    content: '';
    position: absolute;
    left:0px;
    top:1px;
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('../../img/sorter_icon.svg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}
.sorter-title {
    position: relative;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
}
/* .sorter-title::after {
    content: '';
    position: absolute;
    left:-30px;
    top:1px;
    display: block;
    width: 20px;
    height: 20px;
    background-image: url('../../img/sorter_icon.svg');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
} */
.sorter-select-wrap {
    position: relative;
    display: inline-flex !important;
    align-items: center;
    vertical-align: middle;
    flex: none !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0;
    white-space: nowrap;
}
.sorter-select-value {
    display: block;
    padding-right: 34px;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.2;
    color: #292826;
    white-space: nowrap;
}
.sorter-select-wrap::after {
    content: '';
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    background-image: url('../../img/arrow-down-small.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
}
.catalog__main-action-sorter .sorter-select {
    position: absolute;
    inset: 0;
    display: block !important;
    flex: none !important;
    width: 100% !important;
    min-width: 100%;
    max-width: none !important;
    opacity: 0;
    color: transparent !important;
    background-color: transparent;
    border: none;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    cursor: pointer;
    background-image: none;
}
.catalog__main-action-sorter .sorter-select option {
    color: #292826;
    background-color: #fff;
}
.catalog__main-action-sorter::before {
    display: none;
}
.sorter-select:active,
.sorter-select:focus,
.sorter-select:valid {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
}

.catalog__main-action-show {
    height: 22px;
    display: flex;
    gap: 16px;
}
.show-list,
.show-grid {
    width: 24px;
    min-width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor:pointer;
}
.show-list {
    background-image: url('../../img/show-list-disable.svg');
}
.show-list.active {
    background-image: url('../../img/show-list-active.svg');
}
.show-grid {
    background-image: url('../../img/show-grid-disable.svg');
}
.show-grid.active {
    background-image: url('../../img/show-grid-active.svg');
}
/* .filters-btn {
    display: none;
    width: 24px;
    min-width: 24px;
    height: 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor:pointer;
    background-image: url('../../img/filters_icon.svg');
} */
.view-icon path {
  stroke: #29282666;
  transition: stroke 0.3s, fill 0.3s;
}

.active .view-icon path {
  stroke: #292826;
}

.catalog__products {
    margin-top: 32px;
}
.catalog__list {
    display: flex;
    flex-wrap: wrap;
    gap:24px;
}
.catalog__products.grid .catalog__list {

}
.catalog__products.list .catalog__list {
    
}
.product {
    border-radius: 20px;
    background-color: #fff;
    display: flex;
    border:solid 1px rgba(41, 40, 38, 0.20);
    cursor:pointer;
    position: relative;
}
.product__cover-link {
    position: absolute;
    inset: 0;
    z-index: 2;
    border-radius: inherit;
}
.product__image {
    position: relative;
    z-index: 1;
}
.product__text {
    position: relative;
    z-index: 3;
}
.product__action {
    position: relative;
    z-index: 3;
}
.product__buttons,
.product__buttons a,
.product__buttons button {
    position: relative;
    z-index: 4;
}
.product:hover {
    box-shadow: 0px 2px 69.5px 0px rgba(41, 40, 38, 0.20);
}
.product:focus-within {
    box-shadow: 0px 2px 69.5px 0px rgba(41, 40, 38, 0.20);
    border-color: rgba(255, 201, 57, 0.8);
}
.product__cover-link:focus-visible {
    outline: none;
}
.product__cover-link:focus-visible::after {
    content: '';
    position: absolute;
    inset: 8px;
    border: 2px solid #ffc939;
    border-radius: 14px;
    pointer-events: none;
}
.catalog__products.grid .product {
    width: calc(33.33% - 16px);
    padding: 24px;
    flex-direction: column;
    gap:16px;
}
.catalog__products.list .product {
    width: 100%;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 24px;
    gap:24px;
}
.catalog__products.list .product__image {
    min-width: 240px;
}
.catalog__products.list .product__text {
    width: 100%;
}
.product__image {
    display: flex;
    justify-content: center;
    align-items: center;
}
.product__image img{
    max-width: 220px;
    aspect-ratio: 1/1;
    object-fit: contain;
}
.product__text {
    display: flex;
    flex-direction: column;
    gap:8px;
    cursor: text;
}
.product__text,
.product__text *:not(a):not(button) {
    cursor: text;
}
.catalog__products.list .product__text .product__rating {
    order:1
}
.catalog__products.list .product__text .product__title {
    order:0
}
.catalog__products.list .product__text .product__article {
    order:2
}
.catalog__products.list .product__text .product__info {
    order:3
}
.product__rating {
    line-height: 1;
}
.product__rating img {
    width: 16px;
    height: 16px;
}
.product__title {
    text-align: left;
    font-size: 18px;
    font-weight: 700;
    line-height: normal;
}
.product__article {
    margin-bottom: 8px;
    text-align: left;
    width: 100%;
    font-size: 16px;
    color: rgba(41, 40, 38, 0.60);
}
.product__info {
    width: 100%;
}
.product__info ul {
    list-style-type: none;
}
.product__info ul li {
    font-size: 16px;
    font-weight: 400;
}
.catalog__products.list .product__action {
    display: flex;
    flex-direction: column;
}
.product__price {
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 116.667%;
    margin-bottom: 16px;
    cursor: text;
}
.product__price,
.product__price * {
    cursor: text;
}
.product__buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.product__btn {
    width: 100%;
}
.btn {
}
.product__link {
    padding-left: 12px;
    padding-right: 12px;
    color: #292826;
    font-size: 18px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    text-decoration: none;
}
.product__link-basket {
    width: 36px;
    height: 36px;
    background-image: url('../../img/basket_icon-btn.svg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    cursor: pointer;
}
.product__buttons:has(.product__link-basket) {
    gap:20px;
}

.catalog__action {
    width: 100%;
    margin-top: 56px;
}
.catalog__link {
    display: block;
    text-align: center;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    color:#292826
}
.catalog__pagination {
}
.pagination {
    margin-top: 32px;
}
.pagination__list {
    display: flex;
    justify-content: center;
    gap:20px;
}
.pagination__link-prev {
    display: block;
    width: 16px;
    height: 16px;
    background: url('../../img/pagination-arrow-left.svg') center / cover no-repeat;
}
.pagination__link {
    color:#292826;
    text-decoration: none;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.2;
}
.pagination__link.active {
    font-weight: 700;
}
.pagination__link-next {
    display: block;
    width: 16px;
    height: 16px;
    background: url('../../img/pagination-arrow-right.svg') center / cover no-repeat;
}

/* CATALOG END */

/* CARDS START */

.cards {
}
.cards__wrapper {
    display: flex;
    gap:24px;
}
.cards__item {
    width: calc(50% - 12px);
    position: relative;
    padding: 32px;
    border-radius: 16px;
}
.cards__item-image {
    position: absolute;
    top:0;
    left:0;
    width: 100%;
    height: 100%;
    z-index: 0;
    border-radius: 16px;
}
.cards__item-image img{
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}
.cards__item-content {
    position: relative;
    z-index: 1;
    color:#fff;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap:16px;
}
.cards__item-title {
    font-size: 28px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.cards__item-description {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}
.cards__item-action {
    
}
.cards__item-action .btn {
    display: block;
    width: 300px;
}


.cards__wrapper {
    display: flex;
    gap: 24px;
}

.cards__item {
    width: calc(50% - 12px);
}

.cards .swiper-wrapper {
    gap:24px;
}
.cards .swiper-pagination {
    display: block;
    bottom: 0;
}


@media (max-width: 1199px) {
  .cards__wrapper {
    padding-bottom: 30px;
  }

  .cards .swiper-wrapper {
        gap:0px;
    }

  .swiper-slide {
    width: auto;
  }

  .cards__item {
    width: auto; /* отменяем calc */
  }
  
}

/* CARDS END */


