body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #fffaf9;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 60px;
  background: white;
}

.logo {
  height: 70px;
}

/* HERO */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 60px;
  background: linear-gradient(to right, #f7d6db, #fff3ec);
}

.hero-image img {
  width: 280px;
  border-radius: 20px;
}

/* BUTTON */
.btn {
  background: #e6aeb5;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  color: white;
  cursor: pointer;
}

.btn.secondary {
  background: #eee;
  color: #555;
}

/* PRODUCTS */
.products {
  padding: 60px;
  text-align: center;
}

.product-grid {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
}

.product-card {
  background: white;
  padding: 20px;
  border-radius: 20px;
  width: 220px;
  transition: 0.3s;
}

/* 🔍 IMAGE ZOOM */
.img-wrap {
  overflow: hidden;
  border-radius: 15px;
}

.img-wrap img {
  width: 100%;
  transition: 0.4s ease;
}

.product-card:hover img {
  transform: scale(1.1);
}

/* 🧁 ADD BUTTON */
.add-btn {
  margin-top: 10px;
  background: #e6aeb5;
  border: none;
  padding: 8px 15px;
  border-radius: 15px;
  color: white;
  cursor: pointer;
  transition: 0.2s;
}

.add-btn:active {
  transform: scale(0.9);
}

/* CART */
.cart-popup {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: white;
  padding: 20px;
  border-radius: 20px;
}

/* 💖 TOAST */
#toast {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: #e6aeb5;
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(20px);
  transition: 0.4s;
}

#toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* MOBILE */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
  }

  .product-grid {
    flex-direction: column;
  }
}

/* ===== CLEAN PREMIUM CHECKOUT ===== */

.checkout-page {
  display: flex;
  gap: 50px;
  padding: 80px;
  background: #fffaf9;
}

/* FORM */
.checkout-form {
  flex: 1;
  background: white;
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.checkout-form h2 {
  margin-bottom: 20px;
}

/* INPUT */
.checkout-form input {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border: none;
  background: #f8f5f4;
  border-radius: 12px;
  font-size: 14px;
}

/* PAYMENT */
.payment-method {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.payment-method label {
  flex: 1;
  cursor: pointer;
}

.payment-method span {
  display: block;
  padding: 12px;
  background: #f8f5f4;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
}

.payment-method input {
  display: none;
}

/* ACTIVE */
.payment-method input:checked + span {
  background: #e6aeb5;
  color: white;
}

/* QR */
.qris-box {
  text-align: center;
  background: #faf7f6;
  padding: 20px;
  border-radius: 15px;
  margin-bottom: 20px;
}

.qris-box img {
  width: 140px;
}

/* BUTTON */
.btn.full {
  width: 100%;
  padding: 14px;
}

/* SUMMARY */
.checkout-summary {
  width: 320px;
  background: white;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  height: fit-content;
}

#checkout-items li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.summary-total {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 18px;
}

/* MOBILE */
@media (max-width: 768px) {
  .checkout-page {
    flex-direction: column;
    padding: 40px 20px;
  }

  .checkout-summary {
    width: 100%;
  }
}

/* IMAGE BOX */
.img-box {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 15px;
}

/* IMAGE */
.img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* ✅ SMOOTH ANIMATION */
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

/* HOVER EFFECT */
.product-card:hover .img-box img {
  transform: scale(1.08);
}

.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}


/* SUCCESS PAGE */
.success-page {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(to right, #f7d6db, #fff3ec);
}

/* CARD */
.success-card {
  width: 380px;
  background: white;
  padding: 35px;
  border-radius: 25px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.08);
  animation: fadeUp 0.5s ease;
}

/* TOP */
.success-top {
  text-align: center;
  margin-bottom: 25px;
}

.success-icon {
  font-size: 45px;
}

/* RECEIPT BOX */
.receipt-box {
  background: #faf7f6;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
}

/* HEADER */
.receipt-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: #999;
  margin-bottom: 10px;
}

/* ITEMS */
#receipt-items li {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

/* TOTAL */
.receipt-total {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px dashed #ddd;
  font-size: 16px;
}

/* BUTTON FULL */
.btn.full {
  width: 100%;
}

/* ANIMATION */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.voucher-box {
  display: flex;
  gap: 10px;
  margin: 20px 0;
}

.voucher-box input {
  flex: 1;
  padding: 12px;
  border-radius: 20px;
  border: none;
  background: #fdf1f3;
  font-size: 14px;
}

.voucher-box input:focus {
  outline: none;
  background: #fbe6ea;
}

.voucher-box button {
  padding: 12px 18px;
  border: none;
  border-radius: 20px;
  background: #e6aeb5;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.voucher-box button:hover {
  background: #d9939c;
}

#voucher-msg {
  font-size: 13px;
  margin-top: 5px;
}