.main-content {
    min-height: calc(100vh - 200px);
    padding: 30px 0 60px;
    background: #fff;
}

.content-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
}

.breadcrumbs a {
    color: #999;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover {
    color: #e31e24;
}

.breadcrumbs .separator {
    color: #ccc;
}

.breadcrumbs .current {
    color: #e31e24;
}

/* Заголовок страницы */
.page-title {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-transform: uppercase;
}

/* Основная сетка каталога */
.catalog-layout {
    display: flex;
    gap: 30px;
}

/* Боковое меню категорий */
.catalog-sidebar {
    width: 220px;
    flex-shrink: 0;
}

.category-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 5px;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 15px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    transition: all 0.3s;
}

.category-link:hover {
    background: #f5f5f5;
    color: #e31e24;
}

.category-link.active {
    background: #e31e24;
    color: #fff;
}

.category-link.active .category-arrow {
    color: #fff;
}

.category-arrow {
    color: #ccc;
    font-size: 12px;
}

/* Контент каталога */
.catalog-content {
    flex: 1;
}

/* Заголовок категории */
.category-title {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Карточка товара */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Ссылка на товар - обертка */
.product-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-link:hover,
.product-link:focus,
.product-link:active {
    text-decoration: none;
    color: inherit;
}

/* Убираем подчеркивание у всех элементов внутри ссылки */
.product-link .product-name,
.product-link .product-description,
.product-link .product-price {
    text-decoration: none !important;
}

.product-image {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f9f9f9;
    flex-shrink: 0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-name {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    text-decoration: none;
}

.product-description {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 12px;
    height: 54px;
    overflow: hidden;
    text-decoration: none;
}

.product-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    margin-top: auto;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
}

.product-old-price {
    font-size: 13px;
    color: #999;
    text-decoration: line-through;
}

/* Кнопка добавления в корзину */
.add-to-cart-btn {
    width: 100%;
    padding: 12px;
    background: #e31e24;
    color: #fff;
    border: none;
    border-radius: 0 0 8px 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.3s;
    position: relative;
    z-index: 2;
}

.add-to-cart-btn:hover {
    background: #c62828;
}

/* Адаптивность */
@media (max-width: 992px) {
    .catalog-layout {
        flex-direction: column;
        gap: 20px;
    }

    .catalog-sidebar {
        width: 100%;
    }

    .category-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        padding: 0;
    }

    .category-item {
        margin-bottom: 0;
    }

    .category-link {
        padding: 8px 14px;
        border: 1px solid #eee;
        border-radius: 20px;
        font-size: 13px;
    }

    /* Убираем обе стрелки — иконку и псевдоэлемент из header-styles */
    .category-arrow {
        display: none !important;
    }

    .category-link::after {
        display: none !important;
    }
}

@media (max-width: 768px) {

    .main-content {
        padding-top: 40px;
    }

    .page-title {
        font-size: 22px;
        margin-bottom: 20px;
    }

    .category-title {
        font-size: 18px;
        margin-bottom: 15px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-image {
        height: 150px;
    }

    .product-info {
        padding: 10px;
    }

    .product-name {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .product-description {
        font-size: 11px;
        height: 44px;
    }

    .product-price {
        font-size: 15px;
    }

    .product-old-price {
        font-size: 12px;
    }

    .add-to-cart-btn {
        padding: 10px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {

    /* Горизонтальный скролл для категорий */
    .catalog-sidebar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .category-menu {
        flex-wrap: nowrap;
        width: max-content;
        padding-bottom: 8px;
        scrollbar-width: none;
        gap: 8px;
    }

    .category-menu::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        flex-shrink: 0;
    }

    .category-link {
        white-space: nowrap;
        font-size: 12px;
        padding: 7px 12px;
    }

    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .product-image {
        height: 120px;
    }

    .product-info {
        padding: 8px;
    }

    .product-name {
        font-size: 12px;
        margin-bottom: 4px;
    }

    .product-description {
        display: none;
    }

    .product-price-row {
        margin-bottom: 8px;
    }

    .product-price {
        font-size: 14px;
    }

    .product-old-price {
        font-size: 11px;
    }

    .add-to-cart-btn {
        padding: 9px;
        font-size: 11px;
    }

    .page-title {
        font-size: 20px;
    }
}