body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin:0; }
header { padding: 12px 16px; border-bottom: 1px solid #eee; }
nav a { margin-right: 12px; color: #333; text-decoration: none; }
main { padding: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { border: 1px solid #eee; border-radius: 8px; overflow: hidden; background: #fff; }
.card .thumb img { width: 100%; display: block; }
.card-body { padding: 10px; }
.price { font-weight: 600; margin: 6px 0; }
button, .btn { background: #111; color: #fff; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; }
button.added { background: #2e7d32; }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product-detail .gallery .main { width: 100%; border: 1px solid #eee; border-radius: 8px; }
.product-detail .thumbs { display: flex; gap: 8px; margin-top: 8px; }
.product-detail .thumbs img { width: 80px; height: 80px; object-fit: cover; border: 1px solid #eee; border-radius: 6px; }
.product-detail .attrs { width: 100%; border-collapse: collapse; margin: 12px 0; }
.product-detail .attrs th, .product-detail .attrs td { text-align: left; border-bottom: 1px solid #eee; padding: 6px; }

.cart { width: 100%; border-collapse: collapse; }
.cart th, .cart td { text-align: left; border-bottom: 1px solid #eee; padding: 6px; }
.cart-total { font-size: 18px; }

/* Admin styling */
.admin-header { background: #111; color: #fff; padding: 12px 16px; }
.admin-nav a { color: #fff; margin-right: 10px; text-decoration: none; }
.admin-container { padding: 16px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th, .admin-table td { border-bottom: 1px solid #eee; padding: 8px; text-align: left; }
.admin-form input, .admin-form textarea, .admin-form select { width: 100%; padding: 8px; margin: 6px 0; border: 1px solid #ddd; border-radius: 6px; }
