/* style.css */
:root { --primary-color: #007bff; --light-gray: #f4f4f4; --border-color: #ddd; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; margin: 0; background-color: var(--light-gray); color: #333; }
.container { max-width: 800px; margin: 20px auto; background: white; padding: 20px 40px; border-radius: 8px; box-shadow: 0 0 15px rgba(0,0,0,0.05); }
h1, h2 { text-align: center; }
.hidden { display: none; }
.error { color: #dc3545; }
.success { color: #28a745; }

/* Storefront */
.category-section h2 { text-align: left; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; margin-top: 30px;}
.product-item { display: flex; justify-content: space-between; align-items: center; padding: 15px; border-bottom: 1px solid var(--border-color); }
.product-item h3 { margin: 0; }
.product-item .price { font-weight: bold; color: var(--primary-color); }
.buy-btn, button { background-color: var(--primary-color); color: white; border: none; padding: 10px 15px; border-radius: 5px; cursor: pointer; transition: background-color 0.2s; }
.buy-btn:hover, button:hover { background-color: #0056b3; }
.buy-btn:disabled { background-color: #ccc; cursor: not-allowed; }
#qr-code { width: 200px; height: 200px; margin: 20px auto; border: 1px solid var(--border-color); }
#product-info { background-color: #e9ecef; padding: 15px; border-radius: 5px; white-space: pre-wrap; word-wrap: break-word; text-align: left; }

/* Admin Panel */
.admin-container { max-width: 960px; }
.tabs { display: flex; border-bottom: 1px solid var(--border-color); margin-bottom: 20px; }
.tab-btn { background: none; border: none; padding: 10px 15px; cursor: pointer; font-size: 16px; border-bottom: 3px solid transparent; }
.tab-btn.active { border-bottom-color: var(--primary-color); font-weight: bold; }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; }
input[type="text"], input[type="password"], input[type="number"], select, textarea { width: 100%; padding: 8px; box-sizing: border-box; border: 1px solid var(--border-color); border-radius: 4px; }
textarea { min-height: 120px; font-family: monospace; }
.form-inline { display: flex; gap: 10px; }
.list-item, .product-card, .order-card { border: 1px solid var(--border-color); padding: 15px; margin-bottom: 15px; border-radius: 5px; }
.list-item { display: flex; justify-content: space-between; align-items: center; }
.btn-save { background-color: #28a745; width: 100%; padding: 15px; font-size: 18px; margin-top: 20px; }
.btn-save:hover { background-color: #218838; }
button.delete-category-btn, button.delete-product-btn { background-color: #dc3545; }
button.delete-category-btn:hover, button.delete-product-btn:hover { background-color: #c82333; }
.notice { background-color: #fff3cd; border: 1px solid #ffeeba; padding: 10px; border-radius: 5px; }
.order-card pre { background: #f0f0f0; padding: 10px; border-radius: 4px; }
