@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,wght@0,300;0,600;0,700;1,300;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:       #0b1f3a;
  --navy-mid:   #132d52;
  --blue:       #1a56a0;
  --blue-bright:#2b72d4;
  --sky:        #e8f2ff;
  --sky-mid:    #c4dcff;
  --gold:       #e8a020;
  --gold-light: #fdf3e0;
  --cream:      #f9f7f4;
  --white:      #ffffff;
  --text:       #0f1e32;
  --text-mid:   #3a5068;
  --text-soft:  #7a92a8;
  --border:     #e2eaf3;
  --success:    #16a34a;
  --danger:     #dc2626;
  --warning:    #d97706;
  --r:          14px;
  --r-lg:       22px;
  --shadow:     0 4px 28px rgba(11,31,58,0.10);
  --shadow-lg:  0 16px 56px rgba(11,31,58,0.15);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  background: rgba(249,247,244,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 24px rgba(11,31,58,0.07);
}
.nav-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--navy);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.logo-mark::after {
  content: '';
  position: absolute; bottom: -5px; right: -5px;
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%;
}
.logo-mark span { font-family: 'Fraunces', serif; font-size: 1.1rem; color: white; z-index:1; position:relative; }
.logo-text strong { display: block; font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--navy); }
.logo-text small { font-size: 0.72rem; color: var(--text-soft); }
.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-link { text-decoration: none; color: var(--text-mid); font-size: 0.88rem; font-weight: 500; transition: color .2s; }
.nav-link:hover { color: var(--blue); }
.btn-nav {
  background: var(--navy); color: white;
  padding: 9px 20px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .15s;
}
.btn-nav:hover { background: var(--blue); transform: translateY(-1px); }

/* ── CONTAINER ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── HERO SECTION ── */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 64px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(43,114,212,0.25) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: -60px; left: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232,160,32,0.18) 0%, transparent 70%);
  border-radius: 50%;
}
.page-hero-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  background: rgba(232,160,32,0.12);
  padding: 5px 14px; border-radius: 50px;
}
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: white; line-height: 1.15; margin-bottom: 14px; font-weight: 700;
  position: relative; z-index: 1;
}
.page-hero p {
  color: rgba(255,255,255,0.7);
  font-size: 1rem; max-width: 500px; margin: 0 auto;
  position: relative; z-index: 1;
}

/* ── PRODUCT GRID ── */
.products-section { padding: 72px 28px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.product-card {
  background: white;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  padding: 28px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
  opacity: 0; transition: opacity .25s;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--sky-mid); }
.product-card:hover::before { opacity: 1; }
.product-icon {
  width: 52px; height: 52px;
  background: var(--sky); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 18px;
}
.product-name {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem; font-weight: 700;
  color: var(--navy); margin-bottom: 10px;
}
.product-desc {
  font-size: 0.875rem; color: var(--text-mid);
  line-height: 1.7; flex: 1; margin-bottom: 20px;
}
.product-price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.product-price-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-soft); }
.product-price {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--navy);
}
.product-price span { font-size: 0.85rem; font-weight: 500; color: var(--text-soft); }
.btn-pesan {
  display: block; width: 100%;
  background: var(--navy); color: white;
  padding: 13px; border-radius: 50px;
  font-size: 0.9rem; font-weight: 600;
  text-align: center; text-decoration: none;
  transition: background .2s, transform .15s, box-shadow .2s;
  border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(11,31,58,0.2);
}
.btn-pesan:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,86,160,0.3); }

/* ── CHECKOUT ── */
.checkout-wrap {
  max-width: 900px; margin: 0 auto;
  padding: 56px 28px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
.checkout-summary {
  background: var(--navy);
  border-radius: var(--r-lg);
  padding: 36px; color: white;
  position: sticky; top: 90px;
  overflow: hidden;
}
.checkout-summary::before {
  content: ''; position: absolute;
  top: -50px; right: -50px;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(43,114,212,0.3) 0%, transparent 70%);
  border-radius: 50%;
}
.cs-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.cs-name { font-family: 'Fraunces', serif; font-size: 1.4rem; margin-bottom: 14px; line-height: 1.3; }
.cs-desc { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 28px; }
.cs-divider { border: none; border-top: 1px solid rgba(255,255,255,0.12); margin-bottom: 20px; }
.cs-total-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 6px; }
.cs-total { font-family: 'Fraunces', serif; font-size: 2rem; color: white; font-weight: 700; }

.checkout-form-box { background: white; border-radius: var(--r-lg); padding: 36px; box-shadow: var(--shadow); }
.checkout-form-box h2 { font-family: 'Fraunces', serif; font-size: 1.5rem; color: var(--navy); margin-bottom: 24px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-soft); margin-bottom: 7px;
}
.form-group input {
  width: 100%; padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem; color: var(--text);
  background: var(--cream); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus { border-color: var(--blue-bright); box-shadow: 0 0 0 3px rgba(43,114,212,0.12); }
.btn-bayar {
  width: 100%; padding: 15px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-bright) 100%);
  color: white; border: none; border-radius: 50px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.95rem; font-weight: 700;
  cursor: pointer; margin-top: 8px;
  box-shadow: 0 6px 20px rgba(43,114,212,0.35);
  transition: opacity .2s, transform .15s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-bayar:hover { opacity: .92; transform: translateY(-2px); }
.btn-bayar:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ── STATUS PAGE ── */
.status-wrap {
  max-width: 560px; margin: 64px auto;
  padding: 0 28px; text-align: center;
}
.status-icon-wrap {
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.8rem;
}
.status-icon-wrap.paid    { background: #dcfce7; }
.status-icon-wrap.pending { background: #fef9c3; }
.status-icon-wrap.failed  { background: #fee2e2; }
.status-card {
  background: white; border-radius: var(--r-lg);
  padding: 40px 36px; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.status-badge {
  display: inline-block;
  padding: 5px 16px; border-radius: 50px;
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.status-badge.paid    { background: #dcfce7; color: var(--success); }
.status-badge.pending { background: #fef9c3; color: var(--warning); }
.status-badge.failed  { background: #fee2e2; color: var(--danger); }
.status-title {
  font-family: 'Fraunces', serif;
  font-size: 1.8rem; color: var(--navy); margin-bottom: 10px;
}
.status-subtitle { color: var(--text-mid); font-size: 0.92rem; margin-bottom: 28px; }
.status-detail {
  background: var(--cream); border-radius: var(--r);
  padding: 20px 24px; text-align: left;
  display: flex; flex-direction: column; gap: 12px;
  margin-bottom: 28px;
}
.sd-row { display: flex; justify-content: space-between; align-items: center; }
.sd-label { font-size: 0.82rem; color: var(--text-soft); font-weight: 500; }
.sd-val { font-size: 0.9rem; font-weight: 600; color: var(--navy); }
.sd-val.price { font-family: 'Fraunces', serif; font-size: 1.1rem; color: var(--blue); }
.btn-back {
  display: inline-block;
  background: var(--navy); color: white;
  padding: 13px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 0.9rem;
  transition: background .2s, transform .15s;
}
.btn-back:hover { background: var(--blue); transform: translateY(-2px); }

/* ── ALERT ── */
.alert {
  padding: 14px 18px; border-radius: 10px;
  font-size: 0.9rem; margin-bottom: 20px;
}
.alert-danger { background: #fee2e2; color: var(--danger); border: 1px solid #fecaca; }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 32px 28px;
  text-align: center;
  margin-top: 80px;
}
footer p { color: rgba(255,255,255,0.45); font-size: 0.82rem; }
footer span { color: var(--gold); }

/* ── LOADING SPINNER ── */
.spinner { display: inline-block; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .checkout-wrap { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .products-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 20px; }
}
