/* СТИЛИ ДЛЯ БЛОКА CATEGORY-INFO */

.category-info {
    margin-top: 10px;
}

.category-info__title {
    font-weight: 700;
    font-size: 24px;
    color: #514f4f;
    position: relative;
    z-index: 1;
}

.category-info__description {
    margin-top: 30px;
}

.category-feature {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.category-feature__img {
    width: 100%;
}

.category-feature__content {
    border-radius: 5px;
    background: #f07c00;
    padding: 25px;
}

.category-feature__title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #fff;
    max-width: 535px;
}

.category-feature__list {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    color: #fff;
    cursor: text;
    list-style: none;
}

.category-feature__item {
    list-style-image: url(/img/marker.svg);
    margin: 7px 0;
    padding-left: 10px;
    margin-left: 15px;
}

.category-feature__button {
    display: block;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
    padding: 15px 35px;
    background: #fff;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    color: #f07c00;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: all 0.3s ease;
    width: fit-content;
}

.category-feature__button:hover {
    border-color: #fff;
    background: #f07c00;
    color: #fff;
}

.category-custom-list {
    padding-left: 0;
    list-style: none;
    margin-top: 15px;
    margin-left: 10px;
}

.category-custom-list li {
    position: relative;
    margin-left: 20px;
    padding-top: 10px;
    cursor: text;
    line-height: 136%;
}

.category-custom-list li:first-child {
    padding-top: 0;
}

.category-custom-list li:before {
    content: '';
    z-index: 10;
    position: absolute;
    width: 6px;
    height: 6px;
    margin: 8px 0 0 -15px;
    background: #f07c00;
    border-radius: 1px;
}

@media (max-width: 1136px) {
    .category-feature__content {
        margin-top: 15px;
    }
    
    .category-feature__button{
        font-size: 12px;
    }
}

/* СТИЛИ ДЛЯ БЛОКА CATEGORY-CARD ВНУТРИ LIST-THUMBS.HTML */

.category-cards {
	margin-bottom: 10px;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.category-card {
    padding: 15px 15px 30px 15px;
    border: 1px solid #d9d9d9;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    min-height: 350px;
}

.category-card__image {
    flex: 1 0 auto;
}

.category-card__actions {
    margin: 15px 0 0 auto;
}

.category-card__button {
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 12px;
    margin-top: 15px;
    color: #f07c00;
    border: 2px solid #f07c00;
    border-radius: 5px;
    padding: 7px 36px;
    background: #fff;
    transition: all .3s ease-out;
    text-decoration: none;
    display: inline-block;
    width: fit-content;
    min-width: 120px;
    text-align: center;
}

.category-card__button:hover {
    color: #fff;
    background: #f07c00;
}

.category-card__name {
    color: #f07c00;
}

.category-card__name:hover {
    text-decoration: underline;
    color: #ffab52;
}

.category-card__image-link {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 200px;
    margin-bottom: 10px;
}

.category-card__image-link .category-card__img {
	max-height: 200px;
    width: 80%;
    object-fit: contain;
}

@media (max-width: 900px) {
    .category-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 620px) {
    .category-cards {
        grid-template-columns: 1fr;
    }
}

/* СТИЛИ ДЛЯ ФИЛЬТРАЦИИ ПРОДУКТОВ */

.filters-form-wrapper {
    display: none;
    column-gap: 70px;
    flex-wrap: wrap;
    position: relative;
    padding-bottom: 70px;
    margin-top: 15px;
}

.slider-inputs {
    display: flex;
    column-gap: 10px;
    margin-top: 15px;
}

.input-with-label span {
    margin-right: 7px;
}

.min-input,
.max-input {
    max-width: 80px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d6d6d6;
}

.filter-container {
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
    background: white;
    overflow: hidden;
}
  
.filter-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.filter-title {
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.filter-title + .range-controls:has(.checkbox-group) {
    margin-left: 20px;
}
   
.filter-body {
    margin-top: 25px;
}
    
.filter-title i {
    font-size: 28px;
}
 
.reset-btn {
    border: none;
    color: #f07c00;
    background: transparent;
    font-size: 28px;
    display: flex;
    cursor: pointer;
    align-items: center;
    font-weight: 600;
    transition: all 0.15s ease;
}
   
.filter-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 20px;
    column-gap: 100px;
}
   
.filter-group {
    flex: 1 0 270px;
    max-width: 100%;
}
 
.group-title {
    font-weight: 600;
    color: #000;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
    
.group-title i {
    font-size: 18px;
}
    
.range-container {
    margin-bottom: 15px;
}
    
.range-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
    color: #5a6d80;
}
    
.slider-container {
    position: relative;
    height: 30px;
    margin: 25px 10px 0 10px;
}
    
.slider-track {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 4px;
    right: 0;
    width: 100%;
    background: #d1d9e0;
    border-radius: 2px;
}

.slider-selection {
    position: absolute;
    height: 2px;
    background: #000;
    border-radius: 2px;
}
   
.slider-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: #f07c00;
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
    transition: all 0.2s ease;
}
  
.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: #f07c00;
}
  
.range-inputs {
    display: flex;
    gap: 15px;
    margin-top: 15px;
}
   
.input-group {
    display: flex;
    column-gap: 10px;
    align-items: center;
}
    
.input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #5a6d80;
}
    
.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d9e0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}
    
.input-group input:focus {
    border-color: #f07c00;
    outline: none;
    box-shadow: 0 0 0 3px #f07c00;
}
   
.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
    
.option-item {
    display: flex;
    align-items: center;
    padding: 8px 0;
}
    
.option-checkbox {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #257985;
    cursor: pointer;
}
    
.option-label {
    font-size: 15px;
    color: #3d4e5d;
    cursor: pointer;
}
    
.filter-footer {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
   
.filter-submit {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    z-index: 10;
}

.apply-btn {
    background: #f07c00;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    letter-spacing: 0.5px;
}

.apply-btn:hover {
    background: #fff;
    color: #f07c00;
    border: 1px solid #f07c00;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.apply-btn:active {
    transform: translateY(1px);
}

/* checkbox-item */

.checkbox-group {
    display: flex;
    gap: 12px;
}
  
.checkbox-row:not(first-child) {
    margin-top: 20px;
}
    
.checkbox-item {
    display: flex;
    align-items: center;
}
    
.checkbox-item p:first-child {
    margin-right: 25px;
}
   
.checkbox-text {
    font-size: 18px;
    font-weight: 600;
}

.filter-group:has(.checkbox-group) {
    display: flex;
    align-items: center;
}
   
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    position: relative;
    margin-right: 15px;
    transition: all 0.2s;
}
   
.checkbox-input {
    width: 20px;
    height: 20px;
    position: relative;
    appearance: none;
    outline: none;
    cursor: pointer;
}

/* Рамка для невыбранного состояния */

input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #f07c00;
    border-radius: 3px;
    background: white;
    transition: all 0.2s ease;
}

/* Стиль для выбранного состояния */

input[type="checkbox"]:checked::before {
    background: #f07c00;
    border-color: #f07c00;
}

/* Галочка (скрыта по умолчанию) */

input[type="checkbox"]::after {
    content: "✓";
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all 0.2s ease;
}

/* Показываем галочку при выборе */

input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: scale(1);
}