body {
    font-family: sans-serif;
    background-color: #f4f4f4;
    margin: 0;
    padding: 20px;
    color: #333;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    color: #5a3e2b;
}

main {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.product-container {
    flex: 3;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    overflow: hidden;
    text-align: center;
    padding: 0 0 15px 0;
    display: flex;
    flex-direction: column;
}

.product-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-card h2 {
    font-size: 1.2em;
    margin: 10px 0;
    flex-grow: 1;
}

.product-card .price {
    color: #007bff;
    font-weight: bold;
    margin-bottom: 5px;
}

.product-card .stock {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.add-to-cart-btn {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 15px;
}

.add-to-cart-btn:hover {
    background-color: #218838;
}

/* Cart Section */
.cart-section {
    flex: 1;
    min-width: 300px;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    align-self: flex-start;
}

.cart-section h3 {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.customer-details .form-group {
    margin-bottom: 15px;
}

.customer-details label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.customer-details input {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

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

.cart-total {
    margin-top: 20px;
    font-size: 1.2em;
    text-align: right;
}

.whatsapp-btn {
    width: 100%;
    padding: 12px;
    background-color: #25D366;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 15px;
}

.whatsapp-btn:hover {
    background-color: #1EBE5A;
}
