.catalog-page {
    padding-bottom: 60px;
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 20px 0;
}

.breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 13px;
}

.breadcrumbs__item {
    display: flex;
    align-items: center;
}

.breadcrumbs__item a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumbs__item a:hover {
    color: #f0cf4c;
}

.breadcrumbs__sep {
    margin: 0 8px;
    color: #d1d5db;
    font-size: 10px;
}

.breadcrumb_last {
    color: #1a1a1a;
    font-weight: 500;
}

/* Шапка с заголовком и conversion */
._block-group__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

._block-group__head-left {
    width: 70%;
    padding-right: 20px;
}

._block-title-wrapper {
    margin-bottom: 12px;
}

._block-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.3;
}

.aluminumrolled__listing-products-shown {
    font-size: 14px;
    color: #6b7280;
    margin: 0 0 16px;
}

.aluminumrolled__listing-products-shown span {
    font-weight: 600;
    color: #1a1a1a;
}

/* Описание */
.aluminumrolled__listing-descr {
    margin-top: 16px;
}

.aluminumrolled__listing-descr-content {
    font-size: 14px;
    line-height: 1.7;
    color: #4b5563;
    max-height: 75px;
    overflow: hidden;
    position: relative;
}

.aluminumrolled__listing-descr-content.expanded {
    max-height: none;
}

.aluminumrolled__listing-descr-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

.aluminumrolled__listing-descr-content.expanded::after {
    display: none;
}

.aluminumrolled__listing-descr-content p {
    margin: 0 0 12px;
}

.aluminumrolled__listing-descr-content p:last-child {
    margin-bottom: 0;
}

.aluminumrolled__listing-descr-content ul {
    margin: 0 0 12px;
    padding-left: 20px;
}

.aluminumrolled__listing-descr-content li {
    margin-bottom: 4px;
}

.aluminumrolled__listing-descr-toggle {
    background: none;
    border: none;
    padding: 0;
    margin-top: 12px;
    font-size: 14px;
    color: #1a1a1a;
    cursor: pointer;
    font-weight: 500;
}

.aluminumrolled__listing-descr-toggle:hover {
    color: #f0cf4c;
}

/* Conversion блок */
.conversion {
    width: 30%;
    background: #f9fafb;
    border-radius: 10px;
    padding: 14px 16px;
}

.conversion ul {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.conversion ul li {
    font-size: 12px;
    color: #374151;
    padding: 3px 0;
    padding-left: 16px;
    position: relative;
    line-height: 1.4;
}

.conversion ul li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: 700;
    font-size: 11px;
}

.conversion__bottom {
    border-top: 1px solid #e5e7eb;
    padding-top: 10px;
}

.conversion__online {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.conversion__online-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.conversion__online p {
    font-size: 12px;
    color: #374151;
    margin: 0;
}

.conversion__contacts {
    display: flex;
    gap: 8px;
    align-items: center;
}

.conversion__contacts a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: #fff;
    transition: all 0.2s ease;
}

.conversion__contacts a:hover {
    background: #f0cf4c;
}

/* Адаптивность conversion */
@media (max-width: 991px) {
    ._block-group__head-left {
        width: 60%;
    }
    .conversion {
        width: 40%;
    }
    ._block-title {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
    ._block-group__head {
        flex-direction: column;
    }
    ._block-group__head-left {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    .conversion {
        width: 100%;
    }
    ._block-title {
        font-size: 20px;
    }
}

/* НОВЫЕ СТИЛИ КАТегорий */
.catalog-categories-section {
    margin-top: 40px;
}

/* Поиск по категориям */
.catalog-search {
    margin-bottom: 24px;
    position: relative;
}

.catalog-search__input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: border-color 0.2s;
}

.catalog-search__input:focus {
    outline: none;
    border-color: #f0cf4c;
}

.catalog-search__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 18px;
}

/* Сетка категорий */
.catalog-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1200px) {
    .catalog-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .catalog-categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Карточка категории */
.catalog-category-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.catalog-category-card:hover {
    border-color: #f0cf4c;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.catalog-category-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    text-decoration: none;
}

.catalog-category-card__header:hover {
    background: #f3f4f6;
}

.catalog-category-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.catalog-category-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.catalog-category-card__icon i {
    font-size: 20px;
    color: #f0cf4c;
}

.catalog-category-card__title {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.3;
}

/* Список подкатегорий */
.catalog-category-card__list {
    list-style: none;
    padding: 8px 0;
    margin: 0;
    max-height: 300px;
    overflow-y: auto;
}

.catalog-category-card__item {
    border-bottom: 1px solid #f3f4f6;
}

.catalog-category-card__item:last-child {
    border-bottom: none;
}

.catalog-category-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 14px;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.15s;
}

.catalog-category-card__link:hover {
    background: #f9fafb;
    color: #b8860b;
}

.catalog-category-card__count {
    font-size: 12px;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 2px 8px;
    border-radius: 12px;
}

/* Раскрыть/Скрыть для длинных списков */
.catalog-category-card__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    border-top: 1px dashed #e5e7eb;
    font-size: 13px;
    color: #6b7280;
    cursor: pointer;
    transition: color 0.2s;
}

.catalog-category-card__toggle:hover {
    color: #f0cf4c;
}

.catalog-category-card__list.is-collapsed {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.catalog-category-card__list.is-collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #fff);
}

/* Мобильные улучшения */
@media (max-width: 768px) {
    .catalog-category-card__list {
        max-height: none;
    }
    
    .catalog-category-card__list.is-collapsed {
        max-height: none;
    }
    
    .catalog-category-card__list.is-collapsed::after {
        display: none;
    }
    
    .catalog-category-card__toggle {
        display: none;
    }
}

/* Подподкатегории (3 уровень) */
.catalog-subcategory-list {
    list-style: none;
    padding: 4px 0 4px 16px;
    margin: 4px 0 0;
    border-left: 2px solid #e5e7eb;
}

.catalog-subcategory-link {
    display: block;
    padding: 4px 0;
    font-size: 13px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.15s;
}

.catalog-subcategory-link:hover {
    color: #b8860b;
}

/* Скрытые категории при поиске */
.catalog-category-card.is-hidden {
    display: none;
}
