* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { background-color: #f4f7f6; color: #333; }

/* Navbar */
.navbar { background-color: #0056b3; color: white; padding: 15px 40px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.logo { font-size: 24px; font-weight: bold; letter-spacing: 1px; }
.cart-btn { background: #ff9800; padding: 8px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; }

/* Layout */
.container { display: flex; max-width: 1200px; margin: 20px auto; gap: 20px; padding: 0 20px; }
.sidebar { width: 250px; background: white; padding: 20px; border-radius: 8px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); height: fit-content; }
.filter-section { margin-bottom: 20px; }
.filter-section h4 { margin-bottom: 10px; color: #0056b3; border-bottom: 1px solid #eee; padding-bottom: 5px; }

/* Product Grid */
.product-grid { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.product-card { background: white; padding: 20px; border-radius: 8px; text-align: center; border: 1px solid #eaeaea; transition: 0.3s; }
.product-card:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.product-card img { width: 100%; height: 200px; object-fit: contain; margin-bottom: 15px; }
.product-card h3 { font-size: 16px; margin-bottom: 10px; color: #444; height: 40px; }
.product-card .price { font-size: 20px; color: #d32f2f; font-weight: bold; margin-bottom: 15px; }
.add-btn { background: white; color: #0056b3; border: 2px solid #0056b3; padding: 10px; width: 100%; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.add-btn:hover { background: #0056b3; color: white; }

/* Checkout Modal */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); display: flex; justify-content: center; align-items: center; z-index: 100; }
.hidden { display: none !important; }
.modal-content { background: white; padding: 30px; border-radius: 8px; width: 400px; max-width: 90%; position: relative; }
.close-btn { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; color: #888; }
.bill-details { background: #f9f9f9; padding: 15px; border-radius: 5px; margin: 15px 0; border: 1px dashed #ccc; }
#checkout-form input, #checkout-form textarea { width: 100%; padding: 10px; margin-bottom: 15px; border: 1px solid #ccc; border-radius: 5px; font-family: inherit; }
.place-order-btn { width: 100%; padding: 12px; background: #28a745; color: white; border: none; border-radius: 5px; font-size: 16px; font-weight: bold; cursor: pointer; }
.place-order-btn:hover { background: #218838; }

/* Mobile Responsive */
@media (max-width: 768px) { .container { flex-direction: column; } .sidebar { width: 100%; } }