/**
 * Стили для страницы каталога
 */

.catalog-section {
    background: var(--bg-light);
    min-height: 60vh;
}

.catalog-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 40px;
}

/* Sidebar */
.catalog-sidebar {
    background: var(--white);
    padding: 25px;
    border-radius: 10px;
    height: fit-content;
}

.catalog-sidebar h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-dark);
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
}

.category-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-dark);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    font-size: 14px;
}

.category-list a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.category-list a.active {
    background: var(--primary-color);
    color: var(--white);
}

.category-list a i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

/* Products Grid */
.catalog-content {
    background: transparent;
}

.products-grid {
    gap: 25px;
}

.product-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    overflow: hidden;
}

.product-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.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-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--error);
    color: var(--white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.product-title a {
    color: var(--text-dark);
    text-decoration: none;
    transition: color 0.3s;
}

.product-title a:hover {
    color: var(--primary-color);
}

.product-description {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
    line-height: 1.5;
    flex: 1;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--border);
}

.product-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.add-to-cart-btn {
    white-space: nowrap;
}

/* Product Quantity Controls */
.product-quantity-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn-catalog {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 14px;
}

.qty-btn-catalog:hover {
    background: var(--secondary-color);
    transform: scale(1.1);
}

.qty-display {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    min-width: 30px;
    text-align: center;
}

.product-cart-actions {
    min-height: 36px;
    display: flex;
    align-items: center;
}

/* Empty Catalog */
.empty-catalog {
    text-align: center;
    padding: 60px 20px;
    background: var(--white);
    border-radius: 10px;
}

.empty-catalog i {
    font-size: 64px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.empty-catalog p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Адаптивность */
@media screen and (max-width: 992px) {
    .catalog-layout {
        grid-template-columns: 1fr;
    }
    
    .catalog-sidebar {
        position: static;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .product-price {
        text-align: center;
    }
}