:root { --bs-success: #2e7d32; --bs-success-rgb: 46, 125, 50; }
body { background: #f4f8f1; padding-bottom: 80px; -webkit-tap-highlight-color: transparent; font-size: 17px; }
.navbar.bg-success { background: linear-gradient(135deg, #2e7d32, #1b5e20) !important; }
.btn-success { --bs-btn-bg: #2e7d32; --bs-btn-border-color: #2e7d32; --bs-btn-hover-bg: #1b5e20; --bs-btn-hover-border-color: #1b5e20; }
.btn-outline-success { --bs-btn-color: #2e7d32; --bs-btn-border-color: #2e7d32; --bs-btn-hover-bg: #2e7d32; --bs-btn-hover-border-color: #2e7d32; }
.btn, .form-control, .form-select { min-height: 48px; }
.btn-sm { min-height: 44px; }
.form-control, .form-select { font-size: 16px; } /* tránh iOS tự zoom khi focus */
.form-label { font-weight: 600; }
.form-text { font-size: .9rem; line-height: 1.4; }
.card { border: 0; border-radius: 14px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.price { color: #1b5e20; font-weight: 700; }
.thumb { height: 130px; object-fit: cover; background: #e8f0e2; border-radius: 14px 14px 0 0; }
.thumb-ph { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: #e8f0e2; border-radius: 14px 14px 0 0; }
.hero { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); border-radius: 14px; }
.hero-logo { width: 56px; height: 56px; object-fit: cover; border-radius: 12px; }
.qr { width: 220px; max-width: 100%; border-radius: 12px; background: #fff; border: 1px solid #dde6d8; }
.qty { width: 84px; }
.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; position: sticky; top: 56px; z-index: 5; background: #f4f8f1; padding-top: 6px; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips .btn { white-space: nowrap; border-radius: 999px; }
.cart-bar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; border-radius: 14px; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.app-toast { position: fixed; left: 12px; right: 12px; bottom: 76px; z-index: 2000; margin: 0 auto; max-width: 420px; background: #212529; color: #fff; padding: 12px 16px; border-radius: 12px; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); }
.tabs-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid #dde6d8; display: flex; }
.tabs-bottom button { flex: 1; border: 0; background: none; padding: 8px 4px; font-size: .82rem; color: #6c757d; display: flex; flex-direction: column; align-items: center; min-height: 60px; }
.tabs-bottom button i { font-size: 1.3rem; }
.tabs-bottom button.active { color: #2e7d32; font-weight: 600; }
.menu-categories-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; }
.menu-categories-summary::after { content: '\f282'; font-family: bootstrap-icons; color: #6c757d; }
.menu-categories[open] .menu-categories-summary::after { transform: rotate(180deg); }
.menu-categories-body { padding: 0 16px 16px; border-top: 1px solid #e8eee5; }
.menu-category-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e8eee5; }
.menu-category-name, .menu-product-info { min-width: 0; overflow-wrap: anywhere; }
.menu-product { padding: 12px; }
.menu-product-main { display: flex; align-items: center; gap: 10px; }
.menu-product-info { flex: 1; }
.menu-product-image { width: 56px; height: 56px; flex: 0 0 56px; object-fit: cover; border-radius: 10px; }
.menu-product-placeholder { display: flex; align-items: center; justify-content: center; background: #e8f0e2; color: #71916e; font-size: 1.4rem; }
.menu-product-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf1eb; }
.menu-product-actions .btn, .menu-category-row .btn { min-width: 44px; min-height: 44px; }
.setup-guide { background: linear-gradient(135deg, #f4fff2, #fff); border: 1px solid #cfe8c8; }
.setup-step { padding: 10px 0; }
.setup-step + .setup-step { border-top: 1px solid #dfeadb; }
.setup-step-number { width: 32px; height: 32px; flex: 0 0 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: #e8f0e2; color: #4c7049; font-weight: 700; }
.setup-step-done .setup-step-number { background: #2e7d32; color: #fff; }
.order-review-box { background: #f4f8f1; border-radius: 12px; padding: 14px; }
.product-form-heading { margin-bottom: 12px; font-weight: 600; color: #1b5e20; }
#productModal .modal-content > form { display: flex; flex-direction: column; min-height: 0; }
#productModal .modal-body { overflow-y: auto; }
.product-stock { padding-top: 6px; }
.product-image-url { padding-top: 4px; }
.product-image-url summary { cursor: pointer; color: #2e7d32; margin-bottom: 8px; }
.printonly { display: none; text-align: center; }
@media print { .navbar, .noprint, .tabs-bottom { display: none !important; } .printonly { display: block !important; } }
@media (min-width: 992px) { body { padding-bottom: 24px; } .cart-bar { display: none; } .cart-card { top: 72px; } }
@media (max-width: 991.98px) { .cart-card { box-shadow: none; padding: 0 !important; } #cart > h2 { display: none; } }
