@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
  color: #333;
}

header, footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: #328e6e;
  color: #fff;
  border-radius: 12px;
  font-size: 18px;
}
/* Tombol trigger */
.btn-bayar-modern {
  width: 100%;
  padding: 14px 20px;
  font-size: 16px;
  background: linear-gradient(to right, #3ea67c, #5cc79e);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.btn-bayar-modern:hover {
  background: #31976e;
}

/* Modal background */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

/* Modal box */
.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 32px;
  border-radius: 16px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.2);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}

/* Tutup modal */
.close {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}

/* Metode box */
.opsi-metode {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.metode-item {
  display: flex;
  align-items: center;
}

.metode-item input {
  margin-right: 10px;
}

.label-box {
  background: #f1fdf7;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid #c7eede;
  flex: 1;
  transition: background 0.2s ease;
}

.metode-item:hover .label-box {
  background: #d8f8eb;
}

/* Tombol submit dalam modal */
.btn-bayar-sekarang {
  margin-top: 24px;
  padding: 12px;
  background-color: #3ea67c;
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: bold;
  width: 100%;
  font-size: 16px;
  cursor: pointer;
}

.btn-bayar-sekarang:hover {
  background-color: #2e8e66;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 24px;
  border-radius: 12px;
  width: 80%;
  max-width: 400px;
  position: relative;
  text-align: left;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.close {
  position: absolute;
  top: 8px; right: 12px;
  font-size: 22px;
  cursor: pointer;
}

.container {
  max-width: 960px;
  margin: 24px auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.section-box {
  background-color: #f9f9f9;
  padding: 16px 24px;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  font-family: 'Poppins', sans-serif;
}

.section-box span {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: #2e7d32;
}

.section-box button {
  border: 1px solid #328E6E;
  background-color: #fff;
  color: #328E6E;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
}

.section-box .btn-link {
  margin-left: auto;
  margin-right: 16px;
  color: #4b0082;
  font-weight: bold;
  text-decoration: underline;
  cursor: pointer;
}


.section-box .address {
  flex: 1;
  margin-left: 8px;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.5;
}

.address {
  margin: 8px 0 0 16px;
  color: #333;
  font-weight: 600;
  cursor: pointer;
}
.address:hover {
  text-decoration: underline;
  color: #007b55;
}

.main-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.produk-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  background-color: #fafafa;
}

.produk-gambar {
  width: 320px;
  height: 340px;
  object-fit: cover;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 12px;
  background-color: #fff;
}

.produk-detail {
  color: #328E6E;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 12px;
}

.produk-jumlah {
  display: flex;
  align-items: center;
  gap: 12px;
}

.produk-jumlah button {
  padding: 6px 12px;
  border: 1px solid #328E6E;
  background-color: #fff;
  color: #328E6E;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

.checkout-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  background-color: #fdfdfd;
}

.voucher button {
  width: 100%;
  padding: 10px;
  border: 1px solid #328E6E;
  color: #328E6E;
  background-color: #fff;
  font-weight: bold;
  border-radius: 6px;
}

.ringkasan h4 {
  color: #328E6E;
  font-size: 1rem;
  font-weight: bold;
  margin-bottom: 12px;
}

.ringkasan div {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.ringkasan .total {
  font-weight: bold;
  font-size: 1.1rem;
  color: #328E6E;
}

.metode {
  display: flex;
  gap: 12px;
}

.metode button {
  flex: 1;
  padding: 12px;
  border: 1px solid #328E6E;
  background-color: #fff;
  color: #328E6E;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .main-content {
    flex-direction: column;
  }
  .metode-pembayaran {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.metode-option {
  display: block;
  border: 2px solid #ccc;
  padding: 16px;
  border-radius: 10px;
  text-decoration: none;
  color: #000;
  background-color: #fff;
  transition: all 0.2s ease;
}

.metode-option:hover {
  border-color: #007bff;
  background-color: #f0f8ff;
}
}
