/*
  Tampilan pre-order di sisi pembeli: kotak rincian di halaman produk, dan blok
  pre-order di beranda. Satu berkas untuk keduanya supaya warnanya tidak pernah
  berbeda antara dua halaman.
*/

:root{
  --po-navy:#1e3a5f;
  --po-or-bg:#fff7ed; --po-or-gs:#fed7aa; --po-or-tk:#7c3d12;
  --po-hijau:#18794e;
}

/* ------------------------------------------------------- penanda & kotak */
.po-tag{display:inline-block;margin-left:8px;padding:3px 9px;border-radius:99px;
  background:var(--po-or-bg);border:1px solid var(--po-or-gs);color:var(--po-or-tk);
  font-size:11.5px;font-weight:800;letter-spacing:.04em;vertical-align:middle}

.po-kotak{margin:16px 0 0;border:1.5px solid var(--po-navy);border-radius:12px;overflow:hidden}
.po-kotak-atas{background:var(--po-navy);color:#fff;padding:9px 16px;font-weight:700;
  font-size:14px;display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.po-kotak-atas .po-sisa{margin-left:auto;font-weight:600;opacity:.92;font-size:13px}
.po-kotak-isi{padding:16px}

.po-baris{display:flex;justify-content:space-between;gap:14px;padding:7px 0;
  border-bottom:1px dashed #e3e7ee;font-size:14px}
.po-baris:last-of-type{border-bottom:0}
.po-hemat{color:var(--po-hijau);font-weight:800}

.po-ajak{margin:12px 0 0;padding:11px 13px;background:var(--po-or-bg);
  border:1px solid var(--po-or-gs);border-radius:9px;color:var(--po-or-tk);
  font-size:14px;line-height:1.55}

/* ------------------------------------------------------------ hitung mundur */
.po-mundur{display:flex;gap:6px;margin:12px 0 0;flex-wrap:wrap}
.po-mundur .kot{background:var(--po-navy);color:#fff;border-radius:8px;padding:6px 9px;
  text-align:center;min-width:52px}
.po-mundur .kot b{display:block;font-size:19px;line-height:1;font-variant-numeric:tabular-nums}
.po-mundur .kot span{font-size:10px;opacity:.82;letter-spacing:.04em}
.po-mundur.kecil .kot{padding:4px 7px;min-width:44px}
.po-mundur.kecil .kot b{font-size:15px}
.po-mundur-ket{font-size:12.5px;color:#6b7280;margin:6px 0 0}

/* ------------------------------------------------------------------- kuota */
.po-kuota{margin:14px 0 0}
.po-kuota-bar{height:8px;background:#e9edf3;border-radius:99px;overflow:hidden}
.po-kuota-isi{height:100%;background:linear-gradient(90deg,#f59e0b,#ef4444);border-radius:99px}
.po-kuota-teks{font-size:12.5px;color:#6b7280;margin:6px 0 0}
.po-kuota-teks b{color:#b42318}

/* ------------------------------------------------------- panel pesan dulu */
.po-sukses{margin:14px 0;padding:14px;background:#f0f7f4;border:1px solid #c9e3d6;
  border-radius:10px;color:#1f5c43;font-size:14px;line-height:1.55}
.po-sukses b{display:block;margin-bottom:4px}
.po-sukses span{display:block;margin-bottom:10px}

.po-panel{margin:18px 0;padding:18px;background:#f7f9fc;border:1px solid #dde4ef;border-radius:14px}
.po-panel h3{margin:0 0 6px;font-size:17px;color:var(--po-navy)}
.po-ket{margin:0 0 14px;color:#4b5563;font-size:14px;line-height:1.6}
.po-galat{margin:0 0 12px;padding:10px 12px;background:#fff5f4;border:1px solid #f3c9c4;
  border-radius:8px;color:#95332a;font-size:13.5px}

.po-form{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.po-form label{display:block;min-width:0}
.po-form label>span{display:block;font-size:13px;font-weight:600;color:#3d4451;margin-bottom:5px}
.po-form label>span i{font-weight:400;color:#9ca3af;font-style:normal}
.po-form input,.po-form textarea{width:100%;min-height:44px;padding:10px 12px;
  border:1.5px solid #d7dfea;border-radius:9px;font:inherit;font-size:15px;background:#fff;color:#1f2937}
.po-form textarea{min-height:66px;resize:vertical}
.po-form input:focus,.po-form textarea:focus{outline:2px solid #2563eb;outline-offset:1px;border-color:#2563eb}
.po-form .po-lebar,.po-form .po-kirim{grid-column:1/-1}

.po-btn{display:inline-block;min-height:46px;padding:12px 22px;border:0;border-radius:10px;
  background:var(--po-navy);color:#fff;font-weight:700;font-size:15px;cursor:pointer;text-align:center}
.po-btn:hover{background:#16304f;color:#fff}
.po-btn.po-mati{background:#e3e7ee;color:#9ca3af;cursor:not-allowed}
.po-btn.po-mati:hover{background:#e3e7ee}
.po-alt{margin:12px 0 0;font-size:13.5px;color:#6b7280}

@media(max-width:560px){.po-form{grid-template-columns:1fr}}

/* =============================================== BLOK PRE ORDER DI BERANDA */
.pob{margin:34px 0}
.pob-kepala{display:flex;align-items:flex-end;justify-content:space-between;gap:14px;
  flex-wrap:wrap;margin:0 0 16px}
.pob-kepala h2{margin:0;font-size:22px;color:var(--po-navy)}
.pob-kepala p{margin:3px 0 0;color:#5b6472;font-size:14px}
.pob-mundur{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.pob-mundur small{color:#6b7280;font-size:12.5px}

.pob-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
@media(max-width:980px){.pob-grid{grid-template-columns:repeat(3,1fr)}}
@media(max-width:720px){.pob-grid{grid-template-columns:repeat(2,1fr)}}

.pob-kartu{border:1px solid #e3e7ee;border-radius:12px;overflow:hidden;background:#fff;
  display:flex;flex-direction:column}
.pob-gbr{position:relative;display:block;aspect-ratio:1;background:#f4f6fa}
.pob-gbr img{width:100%;height:100%;object-fit:contain}
.pob-tag{position:absolute;top:8px;left:8px;background:var(--po-or-bg);border:1px solid var(--po-or-gs);
  color:var(--po-or-tk);font-size:10.5px;font-weight:800;padding:2px 8px;border-radius:99px}
.pob-isi{padding:11px 12px 13px;display:flex;flex-direction:column;gap:6px;flex:1}
.pob-judul{font-size:13px;line-height:1.35;min-height:2.7em;overflow:hidden;
  display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.pob-judul a{color:#1f2937;text-decoration:none}
.pob-judul a:hover{text-decoration:underline}
.pob-harga{font-size:16px;font-weight:800;color:#1f2937}
.pob-coret{font-size:12px;color:#9ca3af;text-decoration:line-through;margin-left:5px}
.pob-tgl{font-size:11.5px;color:#6b7280}
.pob-kuota{font-size:11px;color:#b42318;font-weight:700}
.pob-btn{margin-top:auto;display:block;text-align:center;border:0;border-radius:8px;padding:10px;
  background:var(--po-navy);color:#fff;font-weight:700;font-size:13px;text-decoration:none}
.pob-btn:hover{background:#16304f;color:#fff}
