/* PRODUK PAGE */
.products-page {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
}

.variant {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.price {
  font-weight: bold;
  color: #ff5722;
  margin-bottom: 12px;
}


/* ===== MODAL OVERLAY ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Animasi muncul */
.modal.show {
  display: flex;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== MODAL IMPROVE ===== */

.modal-content {
  padding: 30px;
  border-radius: 20px;
  background: white;
  width: 95%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  transition: 0.2s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-title {
  margin-bottom: 20px;
}

.cart-summary {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  margin: 20px 0;
  padding: 10px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.cart-summary strong {
  color: #ff5722;
  font-size: 20px;
}

.section-label {
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
}

.payment-options {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
}

.radio-box {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.transfer-box {
  display: none;
  margin-top: 10px;
}

.rekening-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.rekening-card {
  background: #f5f5f5;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  font-size: 14px;
}

.upload-input {
  width: 100%;
  margin-bottom: 10px;
}

.input-style {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

.modal-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.modal-buttons button {
  flex: 1;
  padding: 12px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.btn-checkout {
  background: #ff5722;
  color: white;
}

.btn-batal {
  background: #d32f2f;
  color: white;
}

.toast-center {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: #ff5722;
  color: white;
  padding: 18px 30px;
  border-radius: 12px;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 99999;
}

.toast-center.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.btn-copy {
  margin-top: 10px;
  background: #ff5722;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.btn-copy:hover {
  background: #e64a19;
}


.radio-box input {
  cursor: pointer;
}

.payment-options {
  position: relative;
  z-index: 2;
}


.toast-center {
  pointer-events: none;
}