        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: #f8fafc;
            color: #1a202c;
            line-height: 1.6;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        .products-section {
            padding: 2rem 0;
        }

        h1 {
            font-size: 1.75rem;
            font-weight: 700;
            color: #2d3748;
            margin-bottom: 2rem;
            text-align: center;
        }

        /* Filters */
        .filters {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            margin-bottom: 1.5rem;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }

        #filterForm {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
            gap: 1rem;
            align-items: end;
        }

        .search-input,
        .category-select,
        .condition-select,
        .sort-select,
        .price-input {
            padding: 0.75rem;
            border: 2px solid #e2e8f0;
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.2s;
            background: white;
        }

        .search-input:focus,
        .category-select:focus,
        .condition-select:focus,
        .sort-select:focus,
        .price-input:focus {
            outline: none;
            border-color: #4299e1;
            box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.1);
        }

        .price-filter {
            display: flex;
            gap: 0.5rem;
        }

        .btn {
            padding: 0.75rem 1.5rem;
            border: none;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .btn-primary {
            background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
            color: white;
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #3182ce 0%, #2c5aa0 100%);
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(49, 130, 206, 0.3);
        }

        /* Search results info */
        .search-results-info {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1.5rem;
            padding: 0 0.5rem;
        }

        .results-count {
            font-size: 1.1rem;
            font-weight: 600;
            color: #4a5568;
        }

        .clear-filters-btn {
            color: #e53e3e;
            text-decoration: none;
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            transition: color 0.2s;
        }

        .clear-filters-btn:hover {
            color: #c53030;
        }

        .products-grid {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            gap: 1.2rem;
            margin-bottom: 2rem;
        }

        /* Product Card styles are now in product-card.css */

        /* Empty state */
        .empty-state {
            text-align: center;
            padding: 3rem 1rem;
            color: #718096;
        }

        .empty-state i {
            font-size: 4rem;
            color: #e2e8f0;
            margin-bottom: 1rem;
        }

        .empty-state h3 {
            font-size: 1.5rem;
            margin-bottom: 0.5rem;
            color: #4a5568;
        }

        /* Responsive */
        /* Для больших экранов (десктопы) - принудительно 5 товаров в ряду */
        @media (min-width: 1200px) {
            .products-grid {
                grid-template-columns: repeat(5, 1fr);
                gap: 1.5rem;
            }
        }

        /* Для средних экранов (планшеты и небольшие десктопы) */
        @media (max-width: 1199px) and (min-width: 769px) {
            .products-grid {
                grid-template-columns: repeat(4, 1fr);
                gap: 1.2rem;
            }
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 15px;
            }

            h1 {
                font-size: 1.4rem;
            }

            #filterForm {
                grid-template-columns: 1fr;
                gap: 0.75rem;
            }

            .price-filter {
                grid-column: 1;
            }

            .search-results-info {
                flex-direction: column;
                gap: 1rem;
                text-align: center;
            }

            .products-grid {
                grid-template-columns: repeat(2, 1fr);
                /* much tighter gaps on mobile */
                gap: 0.35rem;
            }

            .product-content {
                padding: 0.5rem;
            }
        }

        @media (max-width: 480px) {
                    .products-grid {
                        /* Two columns but wider cards so side gutters shrink */
                        grid-template-columns: repeat(2, minmax(200px, 1fr));
                        gap: 0.25rem;
                        max-width: 100% !important;
                        padding: 0 6px !important; /* smaller side gutters */
                        margin: 0 auto !important;
                    }

                    /* Reduce outer container padding to give more horizontal room */
                    .container {
                        padding: 0 6px;
                    }
        }

        @media (max-width: 360px) {
            .products-grid {
                /* very small devices: slightly smaller min width so two columns still fit */
                grid-template-columns: repeat(2, minmax(170px, 1fr));
                gap: 0.16rem;
                max-width: 100% !important;
                padding: 0 6px !important;
                margin: 0 auto !important;
            }
            
            .container {
                padding: 0 10px;
            }
        }

        /* Анимации загрузки */
        .loading-skeleton {
            animation: skeleton 1.5s ease-in-out infinite alternate;
        }

        @keyframes skeleton {
            0% { opacity: 1; }
            100% { opacity: 0.4; }
        }