body {
  font-family: Arial, sans-serif;
  margin:0;
  background:#fff;
  padding-top:60px;
}

header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:10px;
  border-bottom:1px solid #ddd;
  background:#2c7a7b;
  color:white;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}
header input {
  flex:1;
  margin:0 8px;
  padding:8px;
  border:1px solid #ddd;
  border-radius:6px;
  box-sizing:border-box;
}
header button {
  background:none;
  border:none;
  font-size:22px;
  cursor:pointer;
  padding:5px 8px;
  color:white;
  display:flex;
  align-items:center;
}

.produk {
  padding:10px;
  display:flex;
  align-items:center;
  border-bottom:1px solid #eee;
}
.produk img {
  width:40px;
  height:40px;
  object-fit:cover;
  border-radius:4px;
  margin-right:6px;
  cursor:pointer;
}
.produk .info { flex:1; display:flex; align-items:center; }
.produk button { background:none; border:none; cursor:pointer; }

.header-row {
  font-weight:bold;
  border-bottom:2px solid #ccc;
  background:none;
  padding:10px;
  display:flex;
  align-items:center;
}
.header-row div { font-size:14px; }

.keranjang {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#2c7a7b;
  color:white;
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 18px;
  font-size:16px;
  cursor:pointer;
}
.keranjang span { font-weight:bold; }
.keranjang button {
  background:transparent;
  border:none;
  color:white;
  font-size:16px;
  font-weight:bold;
  cursor:pointer;
}

.popup {
  display:none;
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background:rgba(0,0,0,0.85);
  z-index:9999;
  justify-content:center;
  align-items:center;
  flex-direction:column;
  color:white;
}
#reader {
  width:90%;
  max-width:400px;
  position:relative;
}
#reader::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: limegreen;
  z-index: 10;
}
.popup-content {
  background:white;
  color:black;
  padding:15px;
  border-radius:8px;
  width:90%;
  max-width:400px;
  box-sizing:border-box;
}
.popup-content input {
  width:100%;
  margin:5px 0;
  padding:8px;
  box-sizing:border-box;
}
.popup-content button {
  margin-top:10px;
  padding:10px;
  width:100%;
  border:none;
  border-radius:6px;
  cursor:pointer;
}
.btn-simpan { background:#2c7a7b; color:white; }
.btn-batal { background:#dc3545; color:white; }

/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  max-width: 80%;
  height: 100%;
  background: white;
  color: black;
  z-index: 9999;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  padding: 20px;
}
.sidebar.active { transform: translateX(0); }
.sidebar h3 { margin-top:0; }
.sidebar button {
  display:flex;
  align-items:center;
  gap:6px;
  width:100%;
  margin:8px 0;
  padding:10px;
  border:none;
  border-radius:6px;
  cursor:pointer;
  text-align:left;
  color:black;
  background:#f7f7f7;
}

/* Popup Keranjang */
#cartList { margin-bottom:15px; }
.cart-item {
  display:flex;
  justify-content:space-between;
  padding:6px 0;
  border-bottom:1px solid #eee;
}
.cart-total {
  font-weight:bold;
  font-size:16px;
  margin-top:10px;
  text-align:right;
}

/* Overlay untuk sidebar */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 9998;
  display: none;
}

/* Quick Cash (Uang Bayar) */
#quickCash {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* max 3 tombol per baris */
  gap: 8px;
  margin-bottom: 12px;
}

.cashBtn {
  padding: 12px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  transition: background 0.2s, border-color 0.2s;
}
.cashBtn:hover {
  background: #e6f7ff;
  border-color: #2c7a7b;
}
