* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5e6d3;
  color: #3e2723;
  min-height: 100vh;
}

header {
  background: #4e342e;
  color: #fff;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

header h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

header p {
  opacity: 0.85;
  margin-bottom: 1rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.tab-btn {
  background: transparent;
  color: #fff;
  border: 2px solid #d7ccc8;
  padding: 0.5rem 1.5rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.tab-btn.active,
.tab-btn:hover {
  background: #d7ccc8;
  color: #3e2723;
}

main {
  max-width: 1100px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hidden {
  display: none;
}

.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

h2 {
  color: #4e342e;
  margin-bottom: 1rem;
  border-bottom: 2px solid #8d6e63;
  padding-bottom: 0.5rem;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kategori-header {
  color: #4e342e;
  font-size: 1.1rem;
  margin: 0.5rem 0 0.75rem;
  padding-left: 0.25rem;
  border-left: 4px solid #8d6e63;
  padding: 0.25rem 0 0.25rem 0.6rem;
}

.menu-item {
  background: #fff;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.15s, box-shadow 0.15s;
}

.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.menu-item .icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.menu-item .nama {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.menu-item .harga {
  color: #8d6e63;
  font-size: 0.95rem;
}

.cart-section {
  background: #fff;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  height: fit-content;
  position: sticky;
  top: 1rem;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #efebe9;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item .info {
  flex: 1;
}

.cart-item .controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.cart-item button {
  background: #8d6e63;
  color: #fff;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
}

.cart-item button:hover {
  background: #6d4c41;
}

.cart-empty {
  text-align: center;
  color: #8d6e63;
  padding: 1rem 0;
  font-style: italic;
}

.total {
  margin: 1rem 0;
  font-size: 1.2rem;
  font-weight: bold;
  text-align: right;
  color: #4e342e;
}

#nama-pelanggan {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #d7ccc8;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

#btn-pesan {
  width: 100%;
  background: #4e342e;
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#btn-pesan:hover {
  background: #3e2723;
}

#btn-pesan:disabled {
  background: #bcaaa4;
  cursor: not-allowed;
}

.order-card {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.06);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.order-id {
  font-weight: bold;
  color: #4e342e;
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-baru { background: #ffe0b2; color: #e65100; }
.status-sedia { background: #c8e6c9; color: #2e7d32; }
.status-selesai { background: #e0e0e0; color: #424242; }

.order-items {
  font-size: 0.9rem;
  margin: 0.5rem 0;
  color: #5d4037;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.order-actions button {
  background: #8d6e63;
  color: #fff;
  border: none;
  padding: 0.35rem 0.75rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.85rem;
}

.order-actions button:hover {
  background: #6d4c41;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #2e7d32;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  z-index: 1000;
}
