/* ---------- Global ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background: #f9f9f9;
  color: #1f2937;
  line-height: 1.6;
}

h1, h2, h3 {
  color: #111827;
}

/* ---------- Navbar ---------- */nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 50;
}

.nav-container {
  display: flex;
  justify-content: space-between; /* Logo kiri, hamburger kanan */
  align-items: center;
  padding: 0 1.5rem;
  height: 60px;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
}

.hamburger {
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Menu muncul di bawah hamburger */
.mobile-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mobile-menu li a {
  display: block;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  color: #1f2937;
  border-top: 1px solid #e5e7eb;
  transition: 0.3s;
}

.mobile-menu li a:hover {
  background: #3b82f6;
  color: #fff;
}

/* Sembunyikan default */
.hidden { display: none; }


/* ---------- Responsive ---------- */
@media(max-width:768px){
  .nav-menu {
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    right: 0;
    transition: max-height 0.3s ease;
  }

  .nav-menu.show { max-height: 500px; }

  .hamburger { display: block; }
}


/* ---------- Hero Cards ---------- */
.hero-cards {
  margin-top: 80px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem;
}

.hero-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.hero-card h1 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.hero-card p {
  font-size: 0.95rem;
  color: #4b5563;
}

.btn-cta {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background: #3b82f6;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-cta:hover {
  background: #2563eb;
}

/* ---------- Produk ---------- */
.produk-section {
  margin-top: 80px;
  padding: 1.5rem;
}

.produk-container {
  display: grid;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 2fr));
  gap: 1rem;
  margin-top: 1rem;
}

.produk-card {
  background: #fff;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-align: center;
}

.produk-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.produk-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.produk-card p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.produk-card button {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}

.produk-card button:hover {
  background: #2563eb;
}

/* ---------- Konfirmasi ---------- */
.konfirmasi-section {
  margin-top: 80px;
  padding: 1.5rem;
}

.konfirmasi-card {
  background: #fff;
  max-width: 400px;
  margin: auto;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.konfirmasi-card label {
  display: block;
  margin-top: 0.7rem;
  font-weight: 500;
}

.konfirmasi-card input {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.3rem;
  border-radius: 8px;
  border: 1px solid #d1d5db;
}

.konfirmasi-card button {
  margin-top: 1rem;
  width: 100%;
  padding: 0.7rem;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.konfirmasi-card button:hover {
  background: #2563eb;
}

/* ---------- Popup QRIS ---------- */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  text-align: center;
  max-width: 320px;
  width: 90%;
}

.modal .close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal.hidden { display: none; }

#btnBatal {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: #ef4444;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
}

#btnBatal:hover {
  background: #b91c1c;
}

/* ---------- Bantuan ---------- */
.bantuan-section {
  margin-top: 80px;
  padding: 1.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.bantuan-section ul {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

/* ---------- Responsive ---------- */
@media(max-width:768px){
  .nav-menu {
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    width: 100%;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    transition: max-height 0.3s ease;
  }

  .nav-menu.show { max-height: 500px; }

  .hamburger { display: block; }
}
