* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #f4f7fc;
}

/* HEADER */
header {
  background: #5b6cff;
  color: white;
  padding: 15px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav button, .auth button {
  margin: 0 4px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* SECTION */
section {
  display: none;
  padding: 40px;
}
section.aktif { display: block; }

/* HERO */
.hero {
  max-width: 900px;
  margin: auto;
  background: white;
  padding: 50px;
  border-radius: 24px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
}

.hero-feature {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(150px,1fr));
  gap: 15px;
  margin: 30px 0;
}

.hero-feature div {
  background: #eef1ff;
  padding: 15px;
  border-radius: 14px;
}

/* BUTTON */
.btn-utama {
  background: #5b6cff;
  color: white;
  padding: 12px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
}

.btn-kembali {
  margin-top: 20px;
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
  gap: 20px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 18px;
  text-align: center;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* STRUK */
.struk-box {
  max-width: 400px;
  margin: auto;
  background: white;
  padding: 30px;
  border-radius: 18px;
  text-align: center;
}

.sub {
  color: #777;
  font-size: 14px;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.4);
  justify-content: center;
  align-items: center;
}

.modal-box {
  background: white;
  padding: 25px;
  border-radius: 18px;
  width: 300px;
}

.modal-box input {
  width: 100%;
  padding: 8px;
  margin: 8px 0;
}

/* TOAST */
#toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #5b6cff;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  display: none;
}
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f4f4f4;
}

header {
  background: #4b6cb7;
  color: white;
  padding: 15px;
}

section {
  display: none;
  padding: 20px;
}

section.aktif {
  display: block;
}

input {
  padding: 6px;
  width: 200px;
  margin-bottom: 15px;
}

/* ===== GRID PRODUK ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
}

.card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.card button {
  margin: 5px;
  padding: 6px 12px;
  cursor: pointer;
}

/* ===== MODAL DETAIL ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-card {
  background: #fdf1c8;
  padding: 20px;
  border-radius: 14px;
  width: 320px;
}

.modal-card button {
  background: transparent;
  border: none;
  margin-top: 10px;
  cursor: pointer;
}

.produk-img {
  width: 100%;
  height: 140px;
  object-fit: cover;   /* 🔥 PALING PENTING */
  border-radius: 8px;
  margin-bottom: 10px;
}