:root {
    --bg-primary: #0a0a0a; --bg-card: #1a1a1a; --bg-input: #252525;
    --gold: #d4af37; --gold-light: #f4d03f;
    --gold-gradient: linear-gradient(135deg, #d4af37 0%, #f4d03f 25%, #d4af37 50%, #b8960f 75%, #d4af37 100%);
    --text-primary: #f5f5f5; --text-secondary: #a0a0a0;
    --border-color: #2a2a2a; --border-gold: rgba(212,175,55,0.3);
    --accent-green: #2ecc71; --accent-red: #e74c3c;
    --shadow: 0 4px 20px rgba(0,0,0,0.6);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Poppins', sans-serif; background: var(--bg-primary); color: var(--text-primary); min-height: 100vh; }
.navbar { background: #111; border-bottom: 1px solid var(--border-gold); padding: 10px 0; position: relative; }
.navbar::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--gold-gradient); }
.navbar .container { max-width: 1400px; margin: 0 auto; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.navbar h1 { color: var(--gold-light); font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.btn { padding: 8px 16px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 0.8rem; text-decoration: none; font-family: 'Poppins', sans-serif; transition: all 0.2s; }
.btn-outline { border: 2px solid var(--border-gold); color: var(--gold-light); background: transparent; }
.btn-outline:hover { background: rgba(212,175,55,0.1); }
.container { max-width: 1400px; margin: 0 auto; padding: 0 15px; }
.kasir-layout { display: grid; grid-template-columns: 1fr 380px; gap: 15px; margin-top: 15px; height: calc(100vh - 100px); }
.panel-produk { background: var(--bg-card); border-radius: 16px; padding: 15px; border: 1px solid var(--border-color); overflow: hidden; display: flex; flex-direction: column; }
.search-box { margin-bottom: 10px; }
.search-box input { width: 100%; padding: 12px; background: var(--bg-input); border: 2px solid var(--border-color); border-radius: 10px; color: var(--text-primary); font-family: 'Poppins', sans-serif; outline: none; font-size: 0.9rem; }
.search-box input:focus { border-color: var(--gold); }
.produk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; flex: 1; overflow-y: auto; }
.produk-card { background: #111; border: 2px solid var(--border-color); border-radius: 12px; padding: 10px; cursor: pointer; text-align: center; transition: all 0.2s; position: relative; }
.produk-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.produk-card.disabled { opacity: 0.4; cursor: not-allowed; }
.produk-card.disabled:hover { border-color: var(--border-color); transform: none; }
.stok-badge { position: absolute; top: 6px; right: 6px; background: var(--gold-gradient); color: #000; font-size: 0.6rem; padding: 2px 6px; border-radius: 8px; font-weight: 700; }
.stok-badge.habis { background: var(--accent-red); color: white; }
.produk-img { width: 50px; height: 50px; object-fit: cover; border-radius: 8px; margin: 0 auto 6px; display: block; }
.produk-no-img { width: 50px; height: 50px; display: flex; align-items: center; justify-content: center; background: var(--bg-input); border-radius: 8px; margin: 0 auto 6px; font-size: 1.5rem; }
.produk-nama { font-size: 0.75rem; font-weight: 600; margin-bottom: 3px; }
.produk-harga { color: var(--gold-light); font-size: 0.75rem; font-weight: 700; }
.produk-diskon { color: var(--accent-red); font-size: 0.65rem; text-decoration: line-through; }
.panel-keranjang { background: var(--bg-card); border-radius: 16px; padding: 15px; border: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; }
.panel-keranjang h3 { color: var(--gold-light); margin-bottom: 10px; padding-bottom: 8px; border-bottom: 2px solid var(--border-gold); font-size: 0.95rem; }
.keranjang-list { flex: 1; overflow-y: auto; margin-bottom: 10px; }
.keranjang-item { display: flex; align-items: center; padding: 8px; background: #111; border-radius: 8px; margin-bottom: 6px; gap: 8px; }
.keranjang-img { width: 35px; height: 35px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.keranjang-no-img { width: 35px; height: 35px; display: flex; align-items: center; justify-content: center; background: var(--bg-input); border-radius: 6px; font-size: 1rem; flex-shrink: 0; }
.keranjang-info { flex: 1; min-width: 0; }
.keranjang-nama { font-size: 0.75rem; font-weight: 600; }
.keranjang-harga { font-size: 0.65rem; color: var(--text-secondary); }
.qty-control { display: flex; align-items: center; gap: 3px; }
.qty-btn { width: 24px; height: 24px; border: none; border-radius: 5px; cursor: pointer; font-weight: 700; background: var(--bg-input); color: var(--text-primary); }
.qty-btn:hover { background: var(--gold); color: #000; }
.qty-value { font-weight: 700; min-width: 20px; text-align: center; color: var(--gold-light); }
.keranjang-subtotal { font-weight: 700; font-size: 0.75rem; color: var(--gold-light); }
.btn-hapus-item { background: none; border: none; color: var(--accent-red); cursor: pointer; font-size: 0.9rem; }
.keranjang-kosong { text-align: center; color: #666; padding: 20px; }
.total-section { border-top: 2px solid var(--border-gold); padding-top: 10px; }
.total-row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.total-label { color: var(--text-secondary); font-size: 0.8rem; }
.total-value { font-size: 1.4rem; font-weight: 700; color: var(--gold-light); }
.diskon-section { margin-bottom: 8px; }
.diskon-section select, .diskon-section input { padding: 8px; background: var(--bg-input); border: 2px solid var(--border-color); border-radius: 8px; color: var(--text-primary); font-family: 'Poppins', sans-serif; font-size: 0.8rem; outline: none; }
.diskon-section select:focus, .diskon-section input:focus { border-color: var(--gold); }
.btn-bayar { width: 100%; padding: 12px; background: var(--gold-gradient); color: #000; border: none; border-radius: 10px; font-weight: 700; cursor: pointer; margin-top: 8px; font-family: 'Poppins', sans-serif; }
.btn-bayar:disabled { background: #444; color: #888; cursor: not-allowed; }
.btn-reset { width: 100%; padding: 8px; background: transparent; border: 1px solid var(--accent-red); color: var(--accent-red); border-radius: 8px; cursor: pointer; margin-top: 5px; font-family: 'Poppins', sans-serif; font-size: 0.75rem; }
.toast { position: fixed; top: 20px; right: 20px; background: var(--bg-card); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 9999; border: 1px solid var(--border-gold); font-size: 0.8rem; }
.toast.error { border-color: rgba(231,76,60,0.5); }
@media (max-width: 768px) { .kasir-layout { grid-template-columns: 1fr; height: auto; } .panel-produk { max-height: 300px; } .panel-keranjang { max-height: 400px; } .produk-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        text-align: center;
    }
    .navbar .container > div:last-child {
        justify-content: center !important;
        width: 100%;
    }
}