:root {
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --bg-main: #f8fafc;
    --bg-card: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --border-color: #e2e8f0;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body { background-color: var(--bg-main); color: var(--text-primary); padding-bottom: 90px; }

/* HEADER */
.order-header {
    background: #0f172a;
    color: white;
    padding: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.store-info h1 { font-size: 18px; font-weight: 700; color: #38bdf8; }
.table-badge {
    display: inline-block;
    background: #22c55e;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 6px;
}

/* KATEGORI HORIZONTAL SCROLL */
.category-nav {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    background: #ffffff;
    overflow-x: auto;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 68px;
    z-index: 90;
}
.category-nav::-webkit-scrollbar { display: none; }
.cat-btn {
    white-space: nowrap;
    background: #f1f5f9;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.cat-btn.active { background: var(--primary-color); color: white; border-color: var(--primary-color); }

/* KATALOG PRODUK GRID */
.menu-container { padding: 16px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.loading-text { text-align: center; color: var(--text-secondary); grid-column: 1 / -1; margin-top: 40px; }

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product-img { width: 100%; height: 120px; object-fit: cover; background: #e2e8f0; }
.product-details { padding: 10px; }
.product-title { font-size: 13px; font-weight: 600; margin-bottom: 4px; line-height: 1.3; }
.product-price { font-size: 13px; font-weight: 700; color: #16a34a; margin-bottom: 8px; }

.btn-add {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* FLOATING CART BAR */
.cart-bar {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: #0f172a;
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 200;
    cursor: pointer;
}
.cart-badge { background: #38bdf8; color: #0f172a; padding: 3px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.cart-total { font-weight: 700; font-size: 15px; margin-left: 8px; }
.btn-checkout { background: #22c55e; color: white; border: none; padding: 8px 14px; border-radius: 8px; font-weight: 600; font-size: 13px; }

/* MODAL */
.modal-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 300;
    display: flex;
    align-items: flex-end;
}
.modal-content {
    background: white;
    width: 100%;
    max-height: 85vh;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
}
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.btn-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--text-secondary); }
.modal-body { overflow-y: auto; flex: 1; }

.cart-item { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border-color); }
.cart-item-info h4 { font-size: 13px; font-weight: 600; }
.cart-item-info p { font-size: 12px; color: #16a34a; font-weight: 700; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn { width: 28px; height: 28px; border-radius: 6px; border: 1px solid var(--border-color); background: #f1f5f9; font-weight: 700; cursor: pointer; }

.form-group { margin-bottom: 12px; }
.form-group label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; font-weight: 600; }
.form-group input, .form-group select { width: 100%; padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 13px; outline: none; }

.cart-summary { display: flex; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 2px dashed var(--border-color); font-size: 15px; }
.btn-primary-block { width: 100%; background: var(--primary-color); color: white; border: none; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; margin-top: 16px; }