/* CSS ПЕРЕМЕННЫЕ ДЛЯ CATEGORY */

:root {
  /* Светлая тема */
  --primary-color: #f07c00;
  --primary-hover: #e57300;
  --primary-light: #ffab52;
  
  --text-primary: #514f4f;
  --text-secondary: #929292;
  --text-white: #ffffff;
  --text-black: #000000;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f0f0;
  --bg-orange: #f07c00;
  --bg-dark: #121212;
  
  --border-color: #e2e2e2;
  --border-dark: #333333;
  --border-light: #d6d6d6;
  
  --shadow-light: rgba(0, 0, 0, 0.1);
  --shadow-medium: rgba(0, 0, 0, 0.15);
  --shadow-dark: rgba(0, 0, 0, 0.2);
  --shadow-orange: rgba(240, 124, 0, 0.15);
  
  --error-color: #ff6b6b;
  --success-color: #4caf50;
  
  /* Дополнительные цвета для category */
  --card-border: #d9d9d9;
  --slider-bg: #d1d9e0;
  --slider-selection: #000000;
  --text-muted: #5a6d80;
  --text-dark: #3d4e5d;
  
  /* Иконки */
  --marker-icon: url(/img/marker.svg);
}

/* Темная тема */
[data-theme="dark"] {
  --primary-color: #ff9800;
  --primary-hover: #ffb74d;
  --primary-light: #ffcc80;
  
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0a0;
  --text-white: #ffffff;
  --text-black: #f5f5f5;
  
  --bg-primary: #48494a;
  --bg-secondary: #464747;
  --bg-tertiary: #2d2d2d;
  --bg-orange: #333333;
  --bg-dark: #000000;
  
  --border-color: #333333;
  --border-dark: #444444;
  --border-light: #444444;
  
  --shadow-light: rgba(0, 0, 0, 0.3);
  --shadow-medium: rgba(0, 0, 0, 0.4);
  --shadow-dark: rgba(0, 0, 0, 0.5);
  --shadow-orange: rgba(255, 152, 0, 0.2);
  
  --error-color: #ff5252;
  --success-color: #66bb6a;
  
  /* Дополнительные цвета для category в темной теме */
  --card-border: #c5c6c7;
  --slider-bg: #555555;
  --slider-selection: #ff9800;
  --text-muted: #a0a0a0;
  --text-dark: #b0b0b0;
}

/* Автоматическое определение темы системы */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --primary-color: #ff9800;
    --primary-hover: #ffb74d;
    --primary-light: #ffcc80;
    
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-white: #ffffff;
    --text-black: #f5f5f5;
    
    --bg-primary: #121212;
    --bg-secondary: #464747;
    --bg-tertiary: #2d2d2d;
    --bg-orange: #333333;
    --bg-dark: #000000;
    
    --border-color: #333333;
    --border-dark: #444444;
    --border-light: #444444;
    
    --shadow-light: rgba(0, 0, 0, 0.3);
    --shadow-medium: rgba(0, 0, 0, 0.4);
    --shadow-dark: rgba(0, 0, 0, 0.5);
    --shadow-orange: rgba(255, 152, 0, 0.2);
    
    --error-color: #ff5252;
    --success-color: #66bb6a;
    
    --card-border: #c5c6c7;
    --slider-bg: #555555;
    --slider-selection: #ff9800;
    --text-muted: #a0a0a0;
    --text-dark: #b0b0b0;
  }
}

/* СТИЛИ ДЛЯ БЛОКА CATEGORY-INFO */

#sdvig {
    scroll-margin-top: 8rem;
}

.category-info {
    margin-top: 10px;
}

.category-info__title {
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    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: var(--primary-color);
    padding: 25px;
}

.category-feature__title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: var(--text-white);
    max-width: 535px;
}

.category-feature__list {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    color: var(--text-white);
    cursor: text;
    list-style: none;
}

.category-feature__item {
    list-style-image: var(--marker-icon);
    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: var(--bg-primary);
    border: 2px solid transparent;
    cursor: pointer;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    transition: all .3s ease;
    width: fit-content;
}

.category-feature__button:hover {
    border-color: var(--text-white);
    background: var(--primary-color);
    color: var(--text-white);
}

.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: var(--primary-color);
    border-radius: 1px;
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CATEGORY-INFO */

@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 var(--card-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    min-height: 350px;
    background: var(--bg-primary);
    transition: border-color 0.3s ease;
}

.category-card:hover {
    border-color: var(--primary-color);
}

.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: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    padding: 7px 36px;
    background: var(--bg-primary);
    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: var(--text-white);
    background: var(--primary-color);
}

.category-card__name {
    color: var(--primary-color);
    border-bottom: 2px solid transparent;
    transition: all .3s ease-out;
    display: inline-block;
    line-height: 1.2;
    text-decoration: none;
}

.category-card__name:hover {
    text-decoration: none;
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

.category-card__description p {
    margin-top: 5px;
    color: var(--text-primary);
}

.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;
    transition: all .3s ease-out;
}

.category-card__image-link .category-card__img:hover {
	transform: scale(1.07);
}

.category-cards__pagination .menu-h {
    display: flex;
    list-style: none;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.category-cards__pagination .menu-h li {
    display: flex;
    border-radius: 4px;
    overflow: hidden;
    transition: all .3s ease-out;
}

.category-cards__pagination .menu-h li a {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 50%;
    text-decoration: none;
    color: var(--primary-color);
    background: var(--bg-primary);
    border: 1px solid var(--primary-color);
    min-width: 36px;
    text-align: center;
    font-size: 22px;
    transition: all .2s ease-out;
    font-weight: 700;
}

.category-cards__pagination .menu-h li.selected a {
    color: var(--text-white);
    background: var(--primary-color);
}

.category-cards__pagination .menu-h li:not(.selected):hover a:not(.inline-link) {
    background: var(--primary-color);
    color: var(--text-white);
}

.category-cards__pagination .menu-h li a.inline-link {
    border: 0;
    padding: 0;
    font-size: 24px;
    transition: ease .1s;
    color: var(--primary-color);
}

.category-cards__pagination .menu-h li a.inline-link:hover {
    transform: scale(1.35);
}

/* АДАПТИВНЫЕ СТИЛИ ДЛЯ БЛОКА CATEGORY-CARD ВНУТРИ LIST-THUMBS.HTML */

@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;
    color: var(--text-primary);
}

.min-input,
.max-input {
    max-width: 60px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-light);
    transition: all .3s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.min-input:focus,
.max-input:focus {
    border: 1px solid var(--primary-color);
    outline: none;
    box-shadow: 0 0 3px 2px rgba(240, 124, 0, 0.25);
}

.filter-container {
    width: 100%;
    margin: 0 auto;
    max-width: 1200px;
    background: var(--bg-primary);
    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;
    color: var(--text-primary);
}

.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: var(--primary-color);
    background: transparent;
    font-size: 28px;
    display: flex;
    cursor: pointer;
    align-items: center;
    font-weight: 600;
    transition: all .3s ease-out;
    position: relative;
    padding-bottom: 5px;
}

.reset-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease-out;
}

.reset-btn:hover::after {
    width: 100%;
}
   
.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: var(--text-primary);
    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: var(--text-muted);
}
    
.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: var(--slider-bg);
    border-radius: 2px;
}

.slider-selection {
    position: absolute;
    height: 2px;
    background: var(--slider-selection);
    border-radius: 2px;
}
   
.slider-handle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    transform: translate(-50%, -50%);
    cursor: pointer;
    box-shadow: 0 2px 4px var(--shadow-medium);
    z-index: 2;
    transition: all .2s ease;
    border-radius: 50%;
}
  
.slider-handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: var(--primary-hover);
}
  
.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: var(--text-muted);
}
    
.input-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all .2s ease;
    background: var(--bg-primary);
    color: var(--text-primary);
}
    
.input-group input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(240, 124, 0, 0.25);
}
   
.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: var(--primary-color);
    cursor: pointer;
}
    
.option-label {
    font-size: 15px;
    color: var(--text-dark);
    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: var(--primary-color);
    color: var(--text-white);
    border: none;
    border-radius: 4px;
    padding: 12px 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all .3s ease-out;
    box-shadow: 0 2px 4px var(--shadow-medium);
    letter-spacing: 0.5px;
    border: 1px solid transparent;
}

.apply-btn:hover {
    background: var(--bg-primary);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 2px 8px var(--shadow-dark);
}

.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;
    color: var(--text-primary);
}
   
.checkbox-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.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 .3s ease-out;
}
   
.checkbox-input {
    width: 20px;
    height: 20px;
    position: relative;
    appearance: none;
    outline: none;
    cursor: pointer;
}

.checkbox-input:hover {
    box-shadow: 0 2px 8px var(--shadow-medium);
}

/* Рамка для невыбранного состояния */

input[type="checkbox"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 3px;
    background: var(--bg-primary);
    transition: all .3s ease-out;
}

/* Стиль для выбранного состояния */

input[type="checkbox"]:checked::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Галочка (скрыта по умолчанию) */

input[type="checkbox"]::after {
    content: "✓";
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transform: scale(0);
    transition: all .3s ease-out;
    left: 2px;
}

/* Показываем галочку при выборе */

input[type="checkbox"]:checked::after {
    opacity: 1;
    transform: scale(1);
}

/* Темная тема для чекбоксов */
[data-theme="dark"] input[type="checkbox"]::before {
    border-color: var(--primary-color);
}

[data-theme="dark"] input[type="checkbox"]:checked::before {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Улучшаем видимость полей ввода в темной теме */
[data-theme="dark"] .min-input,
[data-theme="dark"] .max-input,
[data-theme="dark"] .input-group input {
    background: var(--bg-secondary);
    border-color: var(--border-dark);
}

[data-theme="dark"] .category-card {
    background: var(--bg-secondary);
}

/* Адаптивные стили для фильтров */
@media (max-width: 768px) {
    .filter-row {
        column-gap: 20px;
    }
    
    .filter-group {
        flex: 1 0 100%;
    }
    
    .checkbox-group {
        flex-wrap: wrap;
    }
    
    .filter-header {
        justify-content: space-between;
    }
}