:root{--bg: #f8fafc;--card: #ffffff;--text: #0f172a;--muted: #64748b;--primary: #e11d48;--primary-dark: #be123c;--border: #e2e8f0;--success: #16a34a;--radius: 14px;--safe-bottom: env(safe-area-inset-bottom, 0px)}*{box-sizing:border-box;margin:0;padding:0}html,body,#app{height:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer;border:none;background:none}img{max-width:100%;display:block}.app-shell{min-height:100%;display:flex;flex-direction:column;padding-bottom:calc(64px + var(--safe-bottom))}.page{padding:12px 16px 24px;flex:1}.page-title{font-size:1.35rem;font-weight:700;margin-bottom:12px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;border-radius:12px;font-weight:600;font-size:15px;transition:transform .1s,opacity .15s}.btn:active{transform:scale(.97)}.btn-primary{background:var(--primary);color:#fff;width:100%}.btn-primary:disabled{opacity:.5;cursor:not-allowed}.btn-secondary{background:var(--border);color:var(--text)}.btn-ghost{color:var(--primary)}.card{background:var(--card);border-radius:var(--radius);box-shadow:0 1px 3px #0000000f;overflow:hidden}.input,.textarea{width:100%;padding:12px 14px;border:1px solid var(--border);border-radius:12px;font-size:15px;background:#fff;outline:none}.input:focus,.textarea:focus{border-color:var(--primary)}.textarea{resize:vertical;min-height:80px}.field{margin-bottom:14px}.field label{display:block;font-size:13px;font-weight:500;color:var(--muted);margin-bottom:6px}.price{font-weight:700;color:var(--primary)}.muted{color:var(--muted);font-size:13px}.bottom-nav{position:fixed;left:0;right:0;bottom:0;height:calc(56px + var(--safe-bottom));padding-bottom:var(--safe-bottom);background:#fff;border-top:1px solid var(--border);display:flex;z-index:50}.nav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;color:var(--muted);position:relative}.nav-item.active{color:var(--primary);font-weight:600}.nav-badge{position:absolute;top:4px;right:calc(50% - 18px);background:var(--primary);color:#fff;font-size:10px;font-weight:700;min-width:16px;height:16px;border-radius:8px;display:flex;align-items:center;justify-content:center;padding:0 4px}.empty{text-align:center;padding:48px 24px;color:var(--muted)}.empty-icon{font-size:48px;margin-bottom:12px}.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;margin-bottom:12px;-webkit-overflow-scrolling:touch}.chip{flex-shrink:0;padding:8px 14px;border-radius:20px;background:#fff;border:1px solid var(--border);font-size:13px;font-weight:500}.chip.active{background:var(--primary);color:#fff;border-color:var(--primary)}.product-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.product-card{cursor:pointer}.product-img{aspect-ratio:1;background:#f1f5f9;object-fit:cover;width:100%}.product-body{padding:10px}.product-name{font-size:14px;font-weight:600;line-height:1.3;margin-bottom:4px}.product-price{font-size:15px}.qty-ctrl{display:inline-flex;align-items:center;gap:10px;background:#f1f5f9;border-radius:10px;padding:4px}.qty-btn{width:32px;height:32px;border-radius:8px;background:#fff;font-size:18px;font-weight:600;display:flex;align-items:center;justify-content:center;box-shadow:0 1px 2px #0000000f}.qty-val{min-width:24px;text-align:center;font-weight:600}.status-pill{display:inline-block;padding:4px 10px;border-radius:20px;font-size:12px;font-weight:600}.status-NEW{background:#dbeafe;color:#1d4ed8}.status-CONFIRMED{background:#ede9fe;color:#6d28d9}.status-PREPARING{background:#fef3c7;color:#b45309}.status-DELIVERING{background:#cffafe;color:#0e7490}.status-COMPLETED{background:#dcfce7;color:#15803d}.status-CANCELLED{background:#fee2e2;color:#b91c1c}.toast{position:fixed;top:16px;left:50%;transform:translate(-50%);background:#0f172a;color:#fff;padding:10px 18px;border-radius:10px;font-size:14px;z-index:100;animation:fadeIn .2s ease}@keyframes fadeIn{0%{opacity:0;transform:translate(-50%) translateY(-8px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.shop-banner{background:#fef2f2;color:#b91c1c;padding:10px 14px;border-radius:10px;font-size:13px;margin-bottom:12px;text-align:center}.shop-banner.open{background:#f0fdf4;color:#15803d}
