/* Raja Kudapan — Style.css Final Revisi */

:root {
  --accent: #ff7043;
  --accent-light: #ff9a66;
  --bg: #fafafa;
  --text: #333;
  --muted: #888;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

header {
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  color: #fff;
  text-align: center;
  padding: 15px 10px;
}

header h1 { margin: 0; font-size: 1.4rem; }
header p { margin: 5px 0 0; font-weight: 400; font-size: 0.9rem; }

.container {
  padding: 15px;
  max-width: 900px;
  margin: auto;
}

h2 { margin: 10px 0; font-size: 1.1rem; }

.btn, .btn-ghost {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn { background: var(--accent); color: white; border: none; padding: 8px 12px; }
.btn:hover { background: var(--accent-light); }

.btn-ghost { background: #fff; border: 1px solid #ddd; color: var(--text); padding: 8px 12px; }
.btn-ghost:hover { background: #f0f0f0; }

/* --- GRID 2 Kolom --- */
.container{max-width:1000px;margin:18px auto;padding:0 16px}
    .grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}
    @media(min-width:900px){.grid{grid-template-columns:repeat(3,1fr)}}

.card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 10px;
  text-align: center;
  transition: transform 0.2s;
}
.card:hover { transform: translateY(-4px); }
.card img { width: 100%; height: 150px; object-fit: cover; border-radius: 10px; }
.card h3 { font-size: 1rem; margin: 8px 0 4px; }
.price { color: var(--accent); font-weight: 600; margin-bottom: 6px; }

.cart-floating {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  padding: 12px 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  cursor: pointer;
  z-index: 5;
}
.cart-floating:hover { background: var(--accent-light); }

.badge {
  background: white;
  color: var(--accent);
  border-radius: 50%;
  padding: 4px 8px;
  font-size: 0.8rem;
  margin-left: 8px;
}

/* Modal */
.modal-wrap {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 10;
}
.modal {
  background: white;
  border-radius: 12px;
  padding: 18px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

input, textarea, select {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-top: 5px;
  font-family: 'Poppins', sans-serif;
}

/* Tombol lokasi */
#btnLoc {
  display: inline-block;
  font-size: 0.85rem;
  background: #fff;
  border: 1px solid #ddd;
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 6px;
}
#btnLoc:hover { background: var(--accent); color: #fff; }

/* Payment detail */
#paymentDetail div {
  background: #fafafa;
  padding: 6px 8px;
  border-radius: 8px;
  margin-top: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}
#paymentDetail button { font-size: 0.8rem; padding: 4px 6px; }
#paymentDetail img { width: 100%; border-radius: 8px; margin-top: 10px; }

/* Status pesanan */
.status-step {
  display: flex;
  align-items: center;
  margin: 8px 0;
  font-size: 0.9rem;
}
.circle {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-right: 8px;
  transition: all 0.3s ease;
}
.active .circle { background: var(--accent); color: white; }
.done .circle { background: #2ecc71; border-color: #2ecc71; color: white; }