/* Toko & cek pesanan (melengkapi styles.css) */
.nav__menu a[aria-current=page] { color: var(--ink); font-weight: 600; }
.cart-btn { gap: 6px; display: inline-flex; align-items: center; }
.cart-count:not(:empty) { background: var(--white); color: var(--stone-dark); border-radius: 999px; font-size: .75rem; padding: 0 7px; min-width: 20px; text-align: center; }
.small { font-size: .88rem; }
.muted { color: var(--muted); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.linkish:hover { text-decoration: underline; }

.shop-hero { padding: 56px 0 24px; }
.shop-hero .display { margin-bottom: 8px; }
.shop-hero .lead { max-width: 60ch; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.chip { border: 1.5px solid var(--line); background: var(--white); border-radius: 999px; padding: 7px 16px; font: 500 .9rem var(--sans); cursor: pointer; color: var(--muted); }
.chip.active { background: var(--stone-dark); color: var(--white); border-color: var(--stone-dark); }

.shop { padding-bottom: 80px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px; }
.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product__img { aspect-ratio: 3 / 4; background: var(--tint); border: 0; padding: 0; cursor: pointer; display: grid; place-items: center; overflow: hidden; }
.product__img img { width: 100%; height: 100%; object-fit: cover; }
.product__ph { font-family: var(--serif); font-size: 1.6rem; color: var(--stone); }
.product__body { padding: 14px 16px 18px; display: grid; gap: 6px; flex: 1; align-content: start; }
.product__body h3 { margin: 2px 0 0; font-size: 1rem; line-height: 1.4; }
.product__body .btn { margin-top: 8px; justify-self: start; }
.product__price { font-weight: 700; margin: 0; font-size: 1.05rem; }
.tag { justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--stone-dark); }
.tag--digital { background: #e7ecf5; color: #3c4f7a; }
.tag--kelas { background: #f3eadb; color: #7a5a2c; }

/* Dialog */
.sheet { border: 0; padding: 0; border-radius: 16px; width: min(640px, calc(100% - 24px)); max-height: calc(100dvh - 32px); background: var(--white); color: var(--ink); }
.sheet::backdrop { background: rgba(30, 30, 28, .45); }
.sheet__inner { padding: 28px; position: relative; }
.sheet__close { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--muted); }
.sheet h2 { margin: 0 0 14px; font-size: 1.3rem; }
.detail { display: grid; grid-template-columns: 200px 1fr; gap: 24px; }
.detail__img { aspect-ratio: 3 / 4; background: var(--tint); border-radius: 10px; overflow: hidden; display: grid; place-items: center; }
.detail__img img { width: 100%; height: 100%; object-fit: cover; }
.detail h2 { margin: 8px 0 4px; }
.detail__desc p { color: var(--muted); margin: 10px 0; white-space: pre-line; }

.cart-list { list-style: none; padding: 0; margin: 0 0 12px; }
.cart-item { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-item__sum { min-width: 90px; text-align: right; }
.qty { display: inline-flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 1rem; }
.cart-total { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-total--big { font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; }
.sheet .form { background: none; border: 0; padding: 0; margin-top: 12px; }
.sheet h3, .order h3 { margin: 18px 0 8px; font-size: 1rem; }

.done { display: grid; gap: 6px; }
.done__ok { color: var(--ok); font-weight: 600; font-size: 1.1rem; margin: 0; }
.done p { margin: 0; }
.done .btn { justify-self: start; margin-top: 12px; }
.kode { font-size: 1.2rem; letter-spacing: .04em; }

.pay { display: grid; gap: 12px; background: var(--tint); border-radius: 10px; padding: 14px 16px; }
.pay__row { display: grid; gap: 2px; }
.pay__label { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pay__qris { width: 220px; max-width: 100%; border-radius: 8px; background: #fff; margin-top: 6px; }
.copy-btn { justify-self: start; margin-top: 4px; border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 3px 12px; font: 500 .8rem var(--sans); cursor: pointer; }

/* Cek pesanan */
.narrow { max-width: 760px; padding: 48px 0 80px; }
.card-plain { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.order-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.order-head h2 { margin: 0; font-size: 1.2rem; }
.timeline { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 14px 28px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--line); background: var(--white); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline li.current { color: var(--ink); font-weight: 600; }
.timeline li.current::before { border-color: var(--stone-dark); background: var(--stone-dark); box-shadow: 0 0 0 4px var(--tint); }
.badge-status--batal { color: var(--err); font-weight: 600; }
.order .btn { margin-top: 12px; }
.upload { margin-top: 20px; }
.upload input[type=file] { margin-top: 6px; display: block; }

@media (max-width: 640px) {
  .detail { grid-template-columns: 1fr; }
  .detail__img { max-width: 220px; }
  .sheet__inner { padding: 22px 18px; }
  .cart-item { grid-template-columns: 1fr auto; }
  .cart-item__sum { text-align: left; }
}
.downloads { display: flex; gap: 10px; flex-wrap: wrap; }
.downloads .btn { margin-top: 0; }
.deadline { background: #fff6df; border-radius: 10px; padding: 10px 14px; font-size: .9rem; margin: 12px 0 0; }

/* ---------- Kelas video (halaman Cek Pesanan) ---------- */
.kelas { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.kelas__judul { margin: 0 0 14px; }
.kelas__stage { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.kelas__stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* menutup tombol "buka di jendela baru" milik Google Drive di pojok kanan atas */
.kelas__shield { position: absolute; top: 0; right: 0; width: 72px; height: 64px; }
.kelas__now { font-weight: 600; margin: 12px 0 14px; }
.kelas__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.kelas__sesi { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.kelas__sesi:hover { background: rgba(0,0,0,.03); }
.kelas__sesi[aria-current="true"] { border-color: currentColor; font-weight: 600; }
.kelas__no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(0,0,0,.06); font-size: .85rem; font-weight: 600; }
.kelas__sesi[aria-current="true"] .kelas__no { background: var(--accent); color: #111; }

/* ---------- Penulis & Detail Buku ---------- */
.product__penulis { margin: 2px 0 -4px; font-size: .85rem; color: var(--muted); }
.detail__penulis { margin: 10px 0 -4px; color: var(--muted); }
.buku-detail { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.buku-detail h3 { margin: 0 0 16px; font-size: 1.15rem; }
.buku-detail dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 32px; margin: 0; }
.buku-detail dt { color: var(--muted); font-size: .88rem; margin-bottom: 2px; }
.buku-detail dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) { .buku-detail dl { gap: 14px 20px; } }

/* ---------- Palet disamakan dengan Beranda & Masjid Parents ----------
   Tombol utama kuning (aksen) bertulisan gelap, pilihan aktif kuning, label kuning lembut,
   kepala halaman berlatar krem seperti bagian "tint" di Beranda. */
.btn:not(.btn--ghost):not(.btn--outline-light) { background: var(--accent); color: var(--ink) !important; }
.btn:not(.btn--ghost):not(.btn--outline-light):hover { background: var(--accent-dark); }
.cart-count:not(:empty) { background: var(--ink); color: var(--white); }

.shop-hero { background: var(--tint); padding: 56px 0 32px; margin-bottom: 32px; }
.chip { border-width: 2px; font-weight: 700; color: var(--ink); }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--accent); border-color: var(--ink); color: var(--ink); }

.tag, .tag--digital, .tag--kelas { background: #fff1c2; color: var(--ink); font-weight: 700; }
.product:hover { border-color: var(--accent); }
.product__img:hover img { transform: scale(1.03); }
.product__img img { transition: transform .35s; }

.timeline li.current::before { border-color: var(--ink); background: var(--accent); box-shadow: 0 0 0 4px #fff1c2; }
.kelas__sesi[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
.kurir__opsi:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; }
