* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  background: linear-gradient(180deg,#1260cc,#0a5fa8);
  color: #fff;
}

html, body {
  overflow-x: hidden;
}


.navbar {
  background: #0274ff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 800;
  font-size: 18px;
}

.navbar input {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: none;
  outline: none;
  font-size: 14px;
}


.section {
  padding: 22px 16px;
}

.section h2 {
  margin-bottom: 14px;
  font-size: 20px;
}

.grid {
  display: grid;
  gap: 14px;
}

@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(3,1fr); }
}
@media (min-width: 641px) and (max-width: 1024px) {
  .grid { grid-template-columns: repeat(4,1fr); }
}
@media (min-width: 1025px) {
  .grid { grid-template-columns: repeat(6,1fr); }
}

/* =========================
   CARD
   ========================= */
.card {
  background: #2771cc;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
}

.card span {
  display: block;
  padding: 10px 6px;
  font-size: 13px;
  font-weight: 600;
}

/* =========================
   BANNER SLIDER 19:8
   ========================= */
.banner-wrapper {
  padding: 16px;
}

.banner-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 19 / 8;
  border-radius: 18px;
  overflow: hidden;
  background: #0b2c52;
  box-shadow: 0 14px 35px rgba(0,0,0,.4);
}

.banner-track {
  display: flex;
  height: 100%;
  transition: transform .35s ease;
}

.banner-item {
  min-width: 100%;
}

.banner-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.45);
  border: none;
  color: #fff;
  font-size: 26px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.banner-arrow.left { left: 10px; }
.banner-arrow.right { right: 10px; }

/* =========================
   PRODUCT DETAIL
   ========================= */
.product-page {
  padding-bottom: 140px;
}

.product-image img {
  width: 100%;
  aspect-ratio: 19 / 9;
  max-height: 240px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,.4);
  margin-top: 12px;
}

.product-info {
  margin-top: 14px;
}

.product-info h1 {
  font-size: 20px;
  font-weight: 800;
}

.product-info p {
  font-size: 14px;
  opacity: .9;
  margin-top: 6px;
}

.paket-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 12px;
  margin-top: 12px;
}

.card.selectable {
  padding: 18px 10px;
}

.card.selectable.active {
  outline: 3px solid rgba(56,189,248,.6);
  box-shadow: 0 0 0 6px rgba(56,189,248,.2);
}

/* =========================
   BUY BAR
   ========================= */
.buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #0b3c8a;
  padding: 16px;
  display: flex;
  gap: 14px;
  box-shadow: 0 -10px 30px rgba(0,0,0,.5);
}

.buy-bar .btn-buy {
  flex: 2;
  padding: 18px;
  border-radius: 16px;
  border: none;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg,#2563eb,#38bdf8);
}

.buy-bar .btn-stock {
  flex: 1;
  padding: 18px;
  border-radius: 16px;
  border: none;
  font-size: 15px;
  font-weight: 700;
  color: #0b3c8a;
  background: #e0f2fe;
}

@media (max-width:420px){
  .buy-bar { flex-direction: column; }
}

/* =========================
   MODAL / QRIS
   ========================= */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-box {
  background: #0b3c8a;
  padding: 26px;
  width: 92%;
  max-width: 420px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,.6);
}

.qris-img {
  width: 100%;
  max-width: 320px;
  margin: 16px auto;
  border-radius: 14px;
}

.input {
  width: 100%;
  padding: 14px 16px;
  margin-top: 12px;
  border-radius: 14px;
  border: none;
  font-size: 15px;
}

/* =========================
   CUSTOM ALERT
   ========================= */
.alert-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.alert-box {
  background: #0b3c8a;
  padding: 28px;
  width: 92%;
  max-width: 380px;
  border-radius: 22px;
  text-align: center;
  box-shadow: 0 25px 60px rgba(0,0,0,.6);
}

.alert-box h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
}

.alert-box p {
  font-size: 15px;
  line-height: 1.5;
}

.alert-box button {
  margin-top: 18px;
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  border: none;
  font-size: 16px;
  font-weight: 800;
  background: linear-gradient(135deg,#2563eb,#38bdf8);
  color: #fff;
}
/* =========================
   MOBILE OVERRIDE (HP ONLY)
   ========================= */
@media (max-width: 480px) {

  /* === POPUP ALERT === */
  .alert-box {
    width: 94%;
    max-width: none;
    padding: 28px;
    border-radius: 22px;
  }

  .alert-box h3 {
    font-size: 22px;          /* 🔥 JUDUL GEDE */
  }

  .alert-box p {
    font-size: 16px;          /* 🔥 TEKS JELAS */
  }

  .alert-box button {
    font-size: 17px;
    padding: 16px;
  }

  /* === POPUP QRIS === */
  .modal-box {
    width: 94%;
    max-width: none;
    padding: 28px;
    border-radius: 24px;
  }

  .modal-box h3 {
    font-size: 20px;
  }

  .qris-img {
    width: 100%;
    max-width: 100%;
    margin: 18px auto;
  }

  /* === INPUT === */
  .input {
    font-size: 16px;          /* 🔥 iOS biar ga zoom */
    padding: 16px 18px;
  }

  /* === BUY BAR === */
  .buy-bar {
    padding: 18px;
    gap: 14px;
  }

  .buy-bar .btn-buy {
    font-size: 18px;
    padding: 20px;
  }

  .buy-bar .btn-stock {
    font-size: 16px;
    padding: 20px;
  }

  /* === PRODUK IMAGE === */
  .product-image img {
    max-height: 200px;        /* 🔥 PROPORSI HP */
    border-radius: 18px;
  }

  /* === PAKET CARD === */
  .paket-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }

  .paket-grid .card span {
    font-size: 15px;
  }
}
/* =========================
   FIX BUTTON POPUP QR (HP)
   ========================= */
@media (max-width: 480px) {

  .modal-box button {
    width: 100%;
    padding: 18px;          /* 🔥 lebih tebal */
    margin-top: 14px;
    border-radius: 16px;
    font-size: 17px;        /* 🔥 tulisan gede */
    font-weight: 800;
  }

  /* tombol ambil pesanan (WA) */
  .modal-box .btn-wa {
    background: linear-gradient(135deg,#22c55e,#16a34a);
    color: #fff;
  }

  /* tombol tutup */
  .modal-box .btn-close {
    background: linear-gradient(135deg,#2563eb,#38bdf8);
    color: #fff;
  }
}
/* =========================
   CUSTOM UPLOAD BUTTON
   ========================= */

.upload-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;

  background: linear-gradient(135deg,#f59e0b,#fbbf24);
  color: #1e293b;
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
}

.upload-btn:active {
  transform: scale(0.98);
}

.file-name {
  margin-top: 8px;
  font-size: 14px;
  opacity: .85;
  text-align: center;
}
