:root {
    --primary: #FF6B00;
    --primary-dark: #E65100;
    --bg: #F8F9FA;
    --text: #212529;
    --text-muted: #6C757D;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0,0,0,0.05);
    --radius: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
body { background-color: var(--bg); color: var(--text); padding-bottom: 70px; }

.header { background: var(--primary); color: var(--white); padding: 16px; position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header h1 { font-size: 1.25rem; font-weight: 700; }

.container { padding: 16px; }

.card { background: var(--white); border-radius: var(--radius); padding: 16px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card h3 { font-size: 1rem; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 0.9rem; }

.btn { display: block; width: 100%; padding: 12px; background: var(--primary); color: var(--white); border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; text-align: center; margin-top: 12px; }
.btn:active { background: var(--primary-dark); }
.btn:disabled { background: #ccc; cursor: not-allowed; }
.btn-secondary { background: var(--white); color: var(--primary); border: 1px solid var(--primary); }
.btn-danger { background: #DC3545; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 500; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px; border: 1px solid #DEE2E6; border-radius: 8px; font-size: 1rem; }
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--primary); }

.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--white); display: flex; justify-content: space-around; padding: 10px 0; box-shadow: 0 -2px 10px rgba(0,0,0,0.05); z-index: 100; }
.nav-item { display: flex; flex-direction: column; align-items: center; color: var(--text-muted); text-decoration: none; font-size: 0.75rem; }
.nav-item.active { color: var(--primary); font-weight: 600; }
.nav-icon { font-size: 1.5rem; margin-bottom: 4px; }

.view { display: none; }
.view.active { display: block; }

.loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 999; }
.spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid var(--primary); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.search-bar { margin-bottom: 16px; }
.search-bar input { width: 100%; padding: 12px 16px; border: 1px solid #DEE2E6; border-radius: 24px; background: var(--white); font-size: 0.95rem; }

.product-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; }
.product-card img { width: 100%; height: 140px; object-fit: cover; background: #f0f0f0; }
.product-card-body { padding: 10px; }
.product-card h4 { font-size: 0.9rem; margin-bottom: 4px; }
.product-card .price { color: var(--primary); font-weight: 700; font-size: 0.95rem; }
.product-card .store { color: var(--text-muted); font-size: 0.75rem; margin-top: 4px; }

.category-item { background: var(--white); border-radius: var(--radius); padding: 12px 8px; text-align: center; box-shadow: var(--shadow); cursor: pointer; }
.category-item .icon { font-size: 1.75rem; }
.category-item .name { font-size: 0.75rem; margin-top: 4px; }

.restaurant-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 12px; cursor: pointer; display: flex; }
.restaurant-card img { width: 100px; height: 100px; object-fit: cover; background: #f0f0f0; }
.restaurant-card-body { flex: 1; padding: 12px; }
.restaurant-card h4 { font-size: 0.95rem; margin-bottom: 4px; }
.restaurant-card .meta { color: var(--text-muted); font-size: 0.8rem; margin-bottom: 4px; }
.restaurant-card .rating { color: #FFA000; font-weight: 600; font-size: 0.85rem; }

.menu-item { background: var(--white); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; box-shadow: var(--shadow); display: flex; gap: 12px; cursor: pointer; }
.menu-item img { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; background: #f0f0f0; }
.menu-item-info { flex: 1; }
.menu-item-info h4 { font-size: 0.95rem; margin-bottom: 4px; }
.menu-item-info .price { color: var(--primary); font-weight: 700; font-size: 0.95rem; margin-top: 4px; }
.menu-item-info .desc { color: var(--text-muted); font-size: 0.8rem; margin-top: 4px; }

.cart-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #eee; }
.cart-item img { width: 60px; height: 60px; border-radius: 8px; object-fit: cover; }
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; margin-bottom: 4px; }
.cart-item-info .price { color: var(--primary); font-weight: 600; }
.qty-control { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty-control button { width: 28px; height: 28px; border: 1px solid #ddd; background: white; border-radius: 6px; cursor: pointer; font-weight: 600; }

.order-card { background: var(--white); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.order-card-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.order-card-header .order-number { font-weight: 600; font-size: 0.85rem; }
.order-card-header .status { font-size: 0.75rem; padding: 4px 8px; border-radius: 12px; background: #FFF3E0; color: var(--primary); }
.order-card .total { font-weight: 700; color: var(--primary); margin-top: 8px; }

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 3rem; margin-bottom: 12px; }

.toast { position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 12px 20px; border-radius: 24px; font-size: 0.9rem; z-index: 1000; opacity: 0; transition: opacity 0.3s; }
.toast.show { opacity: 1; }

.variant-option { display: inline-block; padding: 8px 14px; border: 1px solid #ddd; border-radius: 20px; margin: 4px; cursor: pointer; font-size: 0.85rem; background: white; }
.variant-option.selected { background: var(--primary); color: white; border-color: var(--primary); }

.status-badge { display: inline-block; padding: 6px 12px; border-radius: 16px; font-size: 0.85rem; font-weight: 600; }
.status-searching { background: #FFF3E0; color: #FF6B00; }
.status-assigned { background: #E3F2FD; color: #1976D2; }
.status-completed { background: #E8F5E9; color: #388E3C; }
.status-cancelled { background: #FFEBEE; color: #D32F2F; }