/* Simple and clean CSS */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    background-color: #f4f4f9;
    color: #333;
}
header {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 1rem 2rem;
    text-align: center;
}
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.filters {
    background: #fff;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.filter-group {
    margin-bottom: 1rem;
}
.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}
.filter-group input, .filter-group select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 4px;
}
#applyFilters {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
}
#applyFilters:hover {
    background-color: #2980b9;
}
#laptop-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.laptop-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: transform 0.2s;
}
.laptop-card:hover {
    transform: translateY(-5px);
}
.laptop-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    background-color: #f9f9f9;
}
.laptop-card-content {
    padding: 1rem;
}
.laptop-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.5rem 0;
}
.laptop-card p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}
.laptop-card .price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #27ae60;
}
.loading {
    text-align: center;
    font-size: 1.2rem;
    grid-column: 1 / -1;
}