/* Product Listing Styles */

.product-listing-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.product-filter-panel {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 30px;
    border-left: 5px solid #2196F3;
}

.product-filter-panel h3 {
    color: #1976D2;
    margin: 0 0 20px 0;
    font-size: 18px;
}

.product-filter-panel select,
.product-filter-panel input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s;
}

.product-filter-panel select:hover,
.product-filter-panel input:hover {
    border-color: #2196F3;
}

.product-filter-panel select:focus,
.product-filter-panel input:focus {
    outline: none;
    border-color: #2196F3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

/* Product Grid */
.product-listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.product-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
    border-color: #2196F3;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.product-card p {
    margin: 8px 0;
    color: #666;
    font-size: 13px;
}

.product-card .price {
    color: #4CAF50;
    font-size: 18px;
    font-weight: 700;
    margin: 10px 0;
}

.product-card .year {
    color: #999;
    font-size: 12px;
    margin: 5px 0;
}

.product-card a {
    display: inline-block;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
    margin-top: auto;
}

.product-card a:hover {
    background: linear-gradient(135deg, #1976D2 0%, #1565C0 100%);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    transform: scale(1.02);
}

/* Responsive Grid */
@media (max-width: 1200px) {
    .product-listing-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .product-listing-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .product-card {
        padding: 15px;
    }
    
    .product-card h3 {
        font-size: 14px;
    }
    
    .product-filter-panel {
        display: grid;
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-listing-grid {
        grid-template-columns: 1fr;
    }
    
    .product-listing-container {
        padding: 10px;
    }
    
    .product-card {
        padding: 12px;
    }
}

/* Filter Results Info */
.product-results-info {
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    color: #333;
    font-weight: 600;
}

.product-results-info strong {
    color: #2196F3;
}

/* No Results */
.product-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.product-no-results h3 {
    color: #666;
    margin-bottom: 10px;
}

.product-no-results p {
    color: #999;
    margin-bottom: 20px;
}

.product-no-results a {
    display: inline-block;
    background: #2196F3;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
}

/* Type Badge */
.product-type-badge {
    display: inline-block;
    background: #e3f2fd;
    color: #1976D2;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Filter Buttons */
.product-filter-button {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.product-filter-button:hover {
    background: #1976D2;
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
}

.product-filter-reset {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.product-filter-reset:hover {
    background: #e0e0e0;
    border-color: #999;
}

/* Empty State */
.product-empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fafafa;
    border-radius: 8px;
    border: 2px dashed #ddd;
}

.product-empty-state h3 {
    color: #666;
    margin: 20px 0 10px 0;
}

.product-empty-state p {
    color: #999;
    margin-bottom: 20px;
}

/* Loading */
.product-listing-loading {
    text-align: center;
    padding: 40px;
    color: #2196F3;
    font-size: 18px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-card {
    animation: fadeIn 0.3s ease;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .product-listing-container {
        background: #1a1a1a;
    }
    
    .product-card {
        background: #2a2a2a;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .product-card h3 {
        color: #e0e0e0;
    }
    
    .product-card p {
        color: #b0b0b0;
    }
    
    .product-filter-panel {
        background: #2a2a2a;
        border-color: #444;
    }
    
    .product-filter-panel h3 {
        color: #90caf9;
    }
    
    .product-filter-panel select {
        background: #333;
        color: #e0e0e0;
        border-color: #444;
    }
}
