body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #f5f5f5;
}
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header h1 {
    font-size: 24px;
    margin: 0;
    color: #006400;
    text-align: center;
    flex-grow: 1;
}
.filters {
    display: flex;
    gap: 10px;
    margin: 10px 0;
    position: relative;
    background-color: #fff;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.filters button, .filters a {
    padding: 8px 16px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background-color: #fff;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}
.filters button:hover, .filters a:hover {
    background-color: #f0f0f0;
    color: #006400;
}
.sort-dropdown {
    position: absolute;
    top: 50px;
    left: 70px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.sort-dropdown a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
}
.sort-dropdown a:hover {
    background-color: #f0f0f0;
}
.laptop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding-top: 10px; /* Ensure content doesn't overlap with sticky header */
}
.laptop-card {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: #000;
    position: relative;
}
.laptop-card img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.laptop-card .discount {
    color: #ff0000;
    font-weight: bold;
    margin: 5px 0;
}
.laptop-card .photos {
    font-size: 12px;
    color: #666;
    margin: 5px 0;
}
.laptop-card h3 {
    font-size: 14px;
    margin: 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.laptop-card .price {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 5px 0;
}
.laptop-card .price .discounted {
    font-weight: bold;
    color: #000;
}
.laptop-card .price .original {
    text-decoration: line-through;
    color: #666;
}
.laptop-card button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 8px;
    width: 100%;
    border-radius: 5px;
    cursor: pointer;
}
.chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}
.chat-btn:hover {
    background-color: #1DA851;
}
.search-container {
    position: relative;
}
.search-box {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 20px;
    width: 150px;
}
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.suggestion-item {
    padding: 10px;
    cursor: pointer;
}
.suggestion-item:hover {
    background-color: #f0f0f0;
}
.filter-modal, .contact-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.filter-content, .contact-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    position: relative;
}
.filter-content h3, .contact-content h3 {
    margin: 0 0 10px;
    font-size: 18px;
}
.filter-content .close-btn, .contact-content .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 24px;
    cursor: pointer;
}
.filter-content .reset-btn {
    position: absolute;
    top: 10px;
    right: 40px;
    color: #007bff;
    cursor: pointer;
    font-size: 14px;
}
.filter-section {
    margin: 15px 0;
}
.filter-section h4 {
    margin: 0 0 10px;
    font-size: 16px;
    color: #007bff;
}
.filter-section input[type="number"] {
    padding: 8px;
    width: 100px;
    border: 1px solid #ddd;
    border-radius: 5px;
}
.filter-section .price-range {
    display: flex;
    gap: 10px;
    align-items: center;
}
.filter-section .checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.filter-section .checkbox-group label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}
.apply-filter-btn {
    background-color: #007bff;
    color: #fff;
    padding: 10px;
    width: 100%;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 10px;
}
.contact-content input[type="text"] {
    padding: 8px;
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}
.contact-content .error {
    color: red;
    font-size: 12px;
    margin-bottom: 10px;
    display: none;
}
.footer {
    margin-top: 20px;
    padding: 20px 10px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 14px;
    color: #333;
}
.footer p {
    margin: 5px 0;
}