/* Global styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 20px;
    background-color: #f4f4f4;
}

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

header {
    background: #007bff;
    color: #fff;
    padding: 20px;
    text-align: center;
}

.search-filter {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

input, select {
    padding: 10px;
    width: 48%;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.product {
    background: #fff;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.product img {
    width: 80%;
    height: auto;
    border-radius: 5px;
}

.product .description {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

.product .price {
    font-weight: bold;
    color: #28a745;
}

button {
    background: #28a745;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

button:hover {
    background: #218838;
}

/* Cart Modal Styles */
.cart-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.cart-modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 400px;
    text-align: center;
}

.cart-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.cart-item-image {
    width: 40px; /* Small image size */
    height: 40px;
    border-radius: 5px;
    margin-right: 10px;
}

.cart-item-name {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.cart-item-price {
    font-weight: bold;
    color: #28a745;
}

.empty-cart {
    display: none;
    font-size: 16px;
    color: #999;
}

#cart-toggle {
    background-color: #007bff;
    color: white;
    padding: 10px;
    border: none;
    cursor: pointer;
    position: fixed;
    bottom: 20px;
    right: 20px;
}

#cart-toggle:hover {
    background-color: #0056b3;
}

/* Responsive Styles */
@media (max-width: 768px) {
    input, select {
        width: 100%;
    }

    .product-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}