.catalog-page {
    padding: 40px 0;
}

.page-title {
    text-align: center;
    margin-bottom: 30px;
    color: #0a1c4d;
    font-size: 32px;
}

.catalog-container {
    display: flex;
    gap: 30px;
    position: relative;
}

/* Боковая панель фильтров */
.filters-sidebar {
    width: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.filter-title {
    font-size: 20px;
    color: #0a1c4d;
    margin: 0;
}

.close-filters {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 5px;
}

.filters-form {
    padding: 20px;
}

.filter-group {
    margin-bottom: 25px;
    padding: 0;
    border: none;
}

.filter-group h3 {
    font-size: 16px;
    color: #0a1c4d;
    margin-bottom: 12px;
    font-weight: 600;
}

.select-wrapper {
    position: relative;
}

.select-wrapper:after {
    content: '';
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #666;
    pointer-events: none;
}

.filter-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    color: #333;
    appearance: none;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.price-range {
    margin-top: 10px;
}

.price-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.price-field {
    display: flex;
    flex-direction: column;
}

.price-field label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
}

.price-field input {
    padding: 10px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.price-field input:focus {
    outline: none;
    border-color: #ffcc00;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.1);
}

.availability-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.availability-options label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.availability-options input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #ffcc00;
}

.filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 20px;
}

.filter-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.apply-btn {
    background: #0a1c4d;
    color: white;
}

.apply-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.reset-btn {
    background: #f8f9fa;
    color: #666;
    text-decoration: none;
    text-align: center;
}

.reset-btn:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Основной контент каталога */
.catalog-content {
    flex: 1;
}

.mobile-filters-btn {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #0a1c4d;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.mobile-filters-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.filters-count {
    background: #ffcc00;
    color: #0a1c4d;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 18px;
    color: #0a1c4d;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-description {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-price {
    font-size: 20px;
    font-weight: 700;
    color: #0a1c4d;
    margin-bottom: 15px;
}

.product-actions {
    display: flex;
    gap: 12px;
}

.quantity-controls {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 6px;
    padding: 4px;
}

.quantity-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: #e9ecef;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quantity-btn:hover {
    background: #dee2e6;
}

.quantity-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    background: transparent;
    font-weight: 500;
}

.add-to-cart-form {
    flex: 1;
}

.add-to-cart-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #ffcc00 0%, #ffd633 100%);
    color: #0a1c4d;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.3);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-products i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-products h3 {
    font-size: 20px;
    color: #333;
    margin-bottom: 10px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    border-color: #ffcc00;
    color: #0a1c4d;
    transform: translateY(-2px);
}

.pagination-btn.active {
    background: #0a1c4d;
    color: white;
    border-color: #0a1c4d;
}

/* Адаптивность каталога */
@media (max-width: 1200px) {
    .filters-sidebar {
        width: 280px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 992px) {
    .catalog-container {
        flex-direction: column;
    }
    
    .filters-sidebar {
        width: 100%;
        position: fixed;
        top: 0;
        left: -100%;
        height: 100vh;
        z-index: 1002;
        border-radius: 0;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .filters-sidebar.active {
        left: 0;
    }
    
    .close-filters {
        display: block;
    }
    
    .mobile-filters-btn {
        display: flex;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .catalog-page {
        padding: 30px 0;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-info {
        padding: 15px;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .quantity-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .page-title {
        font-size: 24px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .price-inputs {
        grid-template-columns: 1fr;
    }
    
    .filter-buttons {
        grid-template-columns: 1fr;
    }
    
    .pagination-btn {
        min-width: 35px;
        height: 35px;
        padding: 6px 10px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .product-image {
        height: 160px;
    }
    
    .product-title {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 18px;
    }
    
    .quantity-btn {
        width: 28px;
        height: 28px;
    }
    
    .quantity-input {
        width: 35px;
        height: 28px;
    }
    
    .add-to-cart-btn {
        padding: 8px;
        font-size: 14px;
    }
}