/* Дополнительные стили для каталога */
.sortline {
    margin-bottom: 20px;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.sortline select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: white;
    cursor: pointer;
}

.sortline select:hover,
.sortline select:focus {
    border-color: var(--color-gold);
    outline: none;
}

/* Анимация загрузки */
body.loading_body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.7);
    z-index: 9999;
}

body.loading_body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gold);
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 10000;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Адаптивность */
@media (max-width: 768px) {
    .sortline {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sortline select {
        width: 100%;
    }
}
/* Панель управления каталогом */
.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 0;
    border-bottom: 1px solid #e5e5e5;
    border-top: 1px solid #e5e5e5;
    flex-wrap: wrap;
    gap: 15px;
}

.catalog-toolbar__left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.catalog-toolbar__right {
    display: flex;
    align-items: center;
}

/* Переключатель вида */
.view-switcher {
    display: flex;
    gap: 5px;
    background: #f5f5f5;
    padding: 3px;
    border-radius: 6px;
}

.view-switcher__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    color: #666;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.view-switcher__btn:hover {
    color: #333;
    background: rgba(0,0,0,0.05);
}

.view-switcher__btn.active {
    background: #fff;
    color: #FEAC00;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.view-switcher__btn svg {
    width: 18px;
    height: 18px;
}

/* Сортировка */
.sort-select {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-select__label {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.sort-select__select {
    padding: 8px 30px 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 9L12 15L18 9' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

.sort-select__select:hover,
.sort-select__select:focus {
    border-color: #FEAC00;
    outline: none;
}

/* Скрытые элементы */
.hidden {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .catalog-toolbar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .catalog-toolbar__left {
        justify-content: space-between;
    }
    
    .sort-select {
        justify-content: space-between;
    }
    
    .sort-select__select {
        flex: 1;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .catalog-toolbar__left {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sort-select {
        flex-wrap: wrap;
    }
    
    .sort-select__select {
        max-width: 100%;
        width: 100%;
    }
}
/* ======= LAYOUT КАТАЛОГА ======= */
.catalog-layout {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.catalog-layout__sidebar {
    flex: 0 0 260px;
    min-width: 260px;
}

/* Если левая колонка пустая - скрываем её */
.catalog-layout__sidebar:empty {
    display: none;
}

/* Когда левая колонка скрыта, правая занимает всю ширину */
.catalog-layout__sidebar:empty + .catalog-layout__content {
    flex: 1;
    width: 100%;
}

.catalog-layout__content {
    flex: 1;
    min-width: 0;
}

/* Адаптивность */
@media (max-width: 992px) {
    .catalog-layout {
        flex-direction: column;
        gap: 20px;
    }
    
    .catalog-layout__sidebar {
        flex: 0 0 auto;
        width: 100%;
    }
}
/* ======= ОПИСАНИЕ РАЗДЕЛА ======= */
.catalog-section-description {
    margin-top: 40px;
    padding: 20px 0;
    border-top: 1px solid #e5e5e5;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.catalog-section-description p {
    margin-bottom: 10px;
}

.catalog-section-description h1,
.catalog-section-description h2,
.catalog-section-description h3 {
    margin-top: 20px;
    margin-bottom: 10px;
}

.catalog-section-description ul,
.catalog-section-description ol {
    margin: 10px 0;
    padding-left: 20px;
}

.catalog-section-description img {
    max-width: 100%;
    height: auto;
}

/* Адаптивность */
@media (max-width: 768px) {
    .catalog-section-description {
        margin-top: 30px;
        font-size: 13px;
    }
}
/* ===== БЛОКИ РЕКОМЕНДАЦИЙ ===== */
.recommendations-block {
    margin: 40px 0 30px;
}

.recommendations-block__header {
    margin-bottom: 20px;
}

.recommendations-block__title {
    font-size: 22px;
    font-weight: 600;
    color: #1A1A1A;
    margin: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #FEAC00;
    display: inline-block;
}