/* ============================================================
   Jastip Riau — style.css
   Layout: Opsi B — superapp bersih ala Gojek/Grab (sapaan di
   header, search bar, chips/menu kategori, kartu info, katalog
   rapi) + grid kartu ala Shopee, KERANJANG jelas, dan TOMBOL
   ORDER STICKY di bawah layar.
   WARNA: brand Karmis Titipin — krem #fff8ee + marun/burgundy
   #7b1e2b (BUKAN hijau Gojek). Tombol WhatsApp tetap hijau WA
   #25d366 agar dikenali sebagai tombol WhatsApp.
   FONT (keputusan user — Opsi Font 2, dipilih karena terasa
   lebih compact): Poppins untuk judul/heading, nama brand,
   judul section, nama produk & tombol utama; Inter untuk
   teks isi/body. Dimuat via Google Fonts di index.html.
   ============================================================ */

:root {
  --brand: #7b1e2b;        /* marun/burgundy — warna utama brand */
  --brand-dark: #5d1420;   /* marun lebih gelap untuk keadaan aktif */
  --brand-tint: #f9e9ec;   /* tint marun muda untuk aksen lembut */
  --cream: #fff8ee;        /* krem — latar utama brand */
  --wa: #25d366;           /* hijau WhatsApp untuk checkout */
  --wa-dark: #1eb856;
  --ink: #2b1a1c;
  --muted: #7d6a6c;
  --line: #efdfd2;
  --bg: #fff8ee;           /* krem brand */
  --card: #fffdf9;
  --price: #7b1e2b;        /* harga memakai marun brand */
  --radius: 14px;
  --sticky-h: 68px;        /* tinggi bar order sticky bawah */
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Poppins", "Inter", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  /* Ruang di bawah supaya konten tidak tertutup sticky order bar */
  padding-bottom: calc(var(--sticky-h) + env(safe-area-inset-bottom) + 8px);
}

/* Font judul (Poppins) — heading, nama brand, judul section,
   nama produk, dan tombol utama */
h1, h2, h3,
.brand-text strong,
.product-name,
.add-btn,
.sticky-checkout-btn {
  font-family: var(--font-heading);
}

button { font: inherit; cursor: pointer; border: none; background: none; }
input, select { font: inherit; }
img { max-width: 100%; display: block; }

/* ---------- Header + search (sticky atas) ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: var(--brand);            /* header marun brand */
  padding: 10px 14px 12px;
  box-shadow: 0 2px 10px rgba(93,20,32,.35);
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.brand-logo {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--cream); display: grid; place-items: center; font-size: 20px;
}
.brand-text { color: var(--cream); display: flex; flex-direction: column; line-height: 1.15; flex: 1; }
.brand-text strong { font-size: 17px; }
.brand-text span { font-size: 12px; opacity: .85; }

.cart-icon-btn {
  position: relative; font-size: 22px; color: var(--cream);
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,248,238,.18);
}
.cart-badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--cream); color: var(--brand);
  font-size: 11px; font-weight: 700; line-height: 1;
  min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; display: grid; place-items: center;
  border: 2px solid var(--brand);
}

.search-row {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 10px; padding: 0 12px;
}
.search-row input {
  flex: 1; border: none; outline: none; height: 42px; font-size: 15px;
  background: transparent; color: var(--ink);
}

/* ---------- Layout ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 14px; }
.bottom-spacer { height: 10px; }

.hero {
  background: linear-gradient(135deg, #fdf0dd, var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; margin-bottom: 14px;
}
.hero h1 { font-size: 20px; margin-bottom: 6px; }
.hero p { color: var(--muted); font-size: 14px; }
.demo-note {
  margin-top: 10px; font-size: 12.5px; color: #8a6d00;
  background: #fff8e1; border: 1px solid #ffe08a;
  padding: 8px 10px; border-radius: 8px;
}

/* ---------- Menu IKON kategori (ala superapp / food delivery) ----------
   Grid ikon ilustrasi berwarna per kategori (folder icons/, gambar
   sendiri bergaya ikon kategori GrabFood/ShopeeFood): tiap ikon di
   atas latar tint lembut khas kategorinya, label + sublabel jelas
   di bawahnya. Klik ikon = filter kategori (sinkron dengan chips).
   Item aktif: cincin marun brand + label marun tebal. */
.cat-menu-section { margin-bottom: 4px; }
.cat-menu-title { font-size: 16px; margin: 2px 0 10px; }
.cat-menu {
  display: grid; gap: 8px;
  grid-template-columns: repeat(3, 1fr);   /* HP kecil: 3 per baris */
  margin-bottom: 12px;
}
@media (min-width: 480px) { .cat-menu { grid-template-columns: repeat(5, 1fr); } }
.cat-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 10px 4px 9px; border-radius: 16px;
  background: #fff; border: 1.5px solid var(--line);
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.cat-item:active { transform: scale(.97); }
.cat-icon {
  width: 58px; height: 58px; border-radius: 18px;
  display: grid; place-items: center;
}
.cat-icon img { width: 44px; height: 44px; }
.cat-label {
  font-family: var(--font-heading); font-weight: 600;
  font-size: 12.5px; line-height: 1.25; text-align: center; color: var(--ink);
}
.cat-sub { font-size: 10.5px; color: var(--muted); text-align: center; line-height: 1.2; }
.cat-item.active { border-color: var(--brand); box-shadow: 0 3px 10px rgba(123,30,43,.18); }
.cat-item.active .cat-label { color: var(--brand); }
/* Latar tint lembut per kategori (selaras palet brand) */
.tint-brand  { background: var(--brand-tint); }            /* marun muda — Semua */
.tint-pink   { background: #fde8ef; }                      /* Kosmetik */
.tint-orange { background: #fdeeda; }                      /* Makanan & Minuman */
.tint-green  { background: #e2f4ea; }                      /* Obat & Kesehatan */
.tint-purple { background: #f1e8fd; }                      /* Request */

/* ---------- Chips kategori/rute ---------- */
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 8px 14px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.chip-icon { width: 16px; height: 16px; }
.chip.active { background: var(--brand); border-color: var(--brand); color: var(--cream); }

/* ---------- Katalog: GRID KARTU produk (ala Shopee) ---------- */
.section-head { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 10px; }
.section-head h2 { font-size: 17px; }
.section-head .count { color: var(--muted); font-size: 13px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* 2 kolom di HP */
  gap: 10px;
}
@media (min-width: 640px)  { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (min-width: 960px)  { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(16,24,40,.05);
}
.product-photo {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  font-size: 52px; background: linear-gradient(160deg, #f8ecd9, #eeddc3);
  position: relative;
}
.demo-badge {
  position: absolute; top: 8px; left: 8px;
  background: #ffb020; color: #4a3200; font-size: 10.5px; font-weight: 800;
  padding: 3px 7px; border-radius: 6px; letter-spacing: .3px;
}
.product-body { padding: 10px 11px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.product-name { font-size: 14px; font-weight: 600; line-height: 1.35; min-height: 2.7em; }
.product-meta { font-size: 12px; color: var(--muted); }
.product-price { color: var(--price); font-weight: 800; font-size: 16px; }
.product-fee { font-size: 12px; color: var(--muted); }
.add-btn {
  margin-top: auto; width: 100%; height: 38px; border-radius: 9px;
  background: var(--brand); color: var(--cream); font-weight: 700; font-size: 14px;
}
.add-btn:active { background: var(--brand-dark); }
.add-btn.added { background: var(--brand-tint); color: var(--brand-dark); }

.empty { color: var(--muted); font-size: 14px; padding: 18px 4px; text-align: center; }

/* ---------- Cara order ---------- */
.howto {
  margin-top: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.howto h2 { font-size: 16px; margin-bottom: 8px; }
.howto ol { margin-left: 18px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.howto strong { color: var(--ink); }

/* ============================================================
   TOMBOL ORDER STICKY — selalu terlihat di BAWAH layar (mobile)
   - position: fixed; bottom: 0 → tidak ikut scroll, selalu tampil
   - Tinggi 68px + safe-area → gampang dijangkau jempol
   - Kiri: info keranjang • Kanan: tombol checkout WhatsApp besar
   ============================================================ */
.sticky-order {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--sticky-h) + env(safe-area-inset-bottom));
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -4px 18px rgba(16,24,40,.10);
  display: flex; align-items: stretch; gap: 10px;
}
@media (min-width: 1100px) {
  .sticky-order { left: 50%; transform: translateX(-50%); right: auto; width: 1100px; border-radius: 16px 16px 0 0; }
}
.sticky-cart-info {
  display: flex; align-items: center; gap: 9px; text-align: left;
  padding: 0 6px; border-radius: 10px; min-width: 118px;
}
.sticky-cart-icon { position: relative; font-size: 24px; }
.sticky-cart-icon .cart-badge { border-color: #fff; top: -7px; right: -10px; }
.sticky-cart-text { display: flex; flex-direction: column; line-height: 1.15; }
.sticky-cart-text small { color: var(--muted); font-size: 11.5px; }
.sticky-cart-text strong { font-size: 16px; }

.sticky-checkout-btn {
  flex: 1; border-radius: 12px;
  background: var(--wa); color: #fff;
  font-size: 16.5px; font-weight: 800; letter-spacing: .2px;
  box-shadow: 0 4px 12px rgba(37,211,102,.35);
}
.sticky-checkout-btn:active { background: var(--wa-dark); }
.sticky-checkout-btn:disabled { background: #c9ced6; box-shadow: none; }

/* ---------- Panel KERANJANG BELANJA ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 60; background: rgba(10,12,16,.45);
}
.cart-panel {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61;
  max-height: 88dvh; overflow-y: auto;
  background: #fff; border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(0,0,0,.25);
}
@media (min-width: 720px) {
  .cart-panel { left: auto; width: 460px; border-radius: 18px 0 0 0; top: 0; max-height: none; }
}
.cart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cart-head h2 { font-size: 18px; }
.close-btn { font-size: 18px; width: 36px; height: 36px; border-radius: 10px; background: var(--bg); }

.cart-items { display: flex; flex-direction: column; }
.cart-item {
  display: flex; gap: 10px; align-items: center;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.cart-item-photo {
  width: 46px; height: 46px; border-radius: 10px; flex: 0 0 auto;
  background: #f8ecd9; display: grid; place-items: center; font-size: 24px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info strong { font-size: 13.5px; display: block; line-height: 1.3; }
.cart-item-info span { font-size: 12.5px; color: var(--muted); }
.qty-control { display: flex; align-items: center; gap: 2px; }
.qty-control button {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--line); font-size: 16px; font-weight: 700;
}
.qty-control span { min-width: 26px; text-align: center; font-weight: 700; font-size: 14px; }
.cart-item-remove { color: var(--price); font-size: 12.5px; font-weight: 600; padding: 4px; }

.cart-form { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.cart-form label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.cart-form input, .cart-form select {
  height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; background: #fff; width: 100%;
}

.cart-summary { margin-top: 16px; background: var(--bg); border-radius: 12px; padding: 12px 14px; }
.cart-summary > div { display: flex; justify-content: space-between; font-size: 14px; padding: 3px 0; }
.cart-summary .grand { border-top: 1px dashed #cfd4dc; margin-top: 6px; padding-top: 9px; font-size: 16px; }
.cart-summary .grand strong { color: var(--price); }
.summary-note { font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- Info operasional (kerangka alur order) ---------- */
.ops-box {
  margin-top: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px;
}
.ops-status {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 9px;
  background: var(--brand-tint); color: var(--brand-dark);
}
.ops-status.buka  { background: #e5f6ec; color: #14632f; }
.ops-status.tutup { background: #fdecec; color: #8f1d1d; }
.ops-list { list-style: none; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.ops-list li { padding: 2.5px 0; }
.ops-list strong { color: var(--ink); }

.howto-note {
  margin-top: 10px; font-size: 13px; line-height: 1.6; color: #6b4e00;
  background: #fff8e1; border: 1px solid #ffe08a;
  padding: 9px 11px; border-radius: 9px;
}

/* Catatan barang segar/kopi di kartu produk */
.product-note-segar {
  font-size: 11.5px; line-height: 1.5; color: #6b4e00;
  background: #fff8e1; border: 1px solid #ffe08a;
  border-radius: 8px; padding: 6px 8px;
}

/* Info checkpoint + operasional di panel keranjang */
.checkpoint-info { font-size: 12.5px; color: var(--brand-dark); line-height: 1.5; min-height: 1.4em; }
.ops-checkout-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.segar-note {
  font-size: 12.5px; line-height: 1.55; color: #6b4e00;
  background: #fff8e1; border: 1px solid #ffe08a;
  border-radius: 9px; padding: 8px 10px; margin-bottom: 8px;
}

/* ---------- Tautan lacak + footer ---------- */
.track-cta {
  display: inline-block; margin-top: 12px;
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
  color: var(--brand); text-decoration: none;
  background: var(--brand-tint); border: 1px solid var(--line);
  padding: 9px 14px; border-radius: 999px;
}
.track-cta:active { background: #f3d5db; }

.site-footer {
  max-width: 1100px; margin: 0 auto; padding: 18px 14px 8px;
  text-align: center; color: var(--muted); font-size: 13px; line-height: 1.6;
}
.site-footer strong { color: var(--brand); font-family: var(--font-heading); }
.owner-link { color: var(--muted); font-size: 12.5px; text-decoration: underline; }

/* ---------- CEK ORDER (lacak status customer) ---------- */
.cek-order {
  margin-top: 22px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.cek-order h2 { font-size: 16px; margin-bottom: 6px; }
.cek-order-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.cek-form { display: flex; flex-direction: column; gap: 6px; }
.cek-form label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.cek-form input {
  height: 44px; border: 1px solid var(--line); border-radius: 10px;
  padding: 0 12px; background: #fff; width: 100%;
}
.cek-btn {
  margin-top: 10px; height: 44px; border-radius: 10px;
  background: var(--brand); color: var(--cream);
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
}
.cek-btn:active { background: var(--brand-dark); }
.cek-btn:disabled { background: #c9ced6; }

.cek-hasil { margin-top: 14px; }
.cek-card { border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; background: var(--card); }
.cek-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cek-kode { font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.cek-nama { font-size: 13px; color: var(--muted); }
.cek-kode-unik {
  margin-top: 10px; font-size: 14px; line-height: 1.5;
  background: var(--brand-tint); border: 1px dashed var(--brand);
  border-radius: 10px; padding: 9px 11px; color: var(--brand-dark);
}
.cek-kode-unik strong { font-size: 16px; letter-spacing: .5px; }
.cek-kode-unik small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cek-kode-unik.belum { background: var(--bg); border-color: var(--line); color: var(--muted); font-size: 13px; }

.status-badge {
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px;
  background: var(--brand-tint); color: var(--brand-dark);
}
.status-badge.st-pending   { background: #fff3d6; color: #7a5200; }
.status-badge.st-mkc       { background: #f1e8fd; color: #4b2a86; }
.status-badge.st-paid      { background: #e5f6ec; color: #14632f; }
.status-badge.st-purchased { background: #e2f0fd; color: #144a7a; }
.status-badge.st-shipped   { background: #e2f0fd; color: #144a7a; }
.status-badge.st-completed { background: #e5f6ec; color: #14632f; }
.status-badge.st-cancelled { background: #fdecec; color: #8f1d1d; }

/* Timeline langkah status order */
.timeline { list-style: none; margin: 14px 0 4px; }
.tl-step { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 0; }
.tl-step::before {
  content: ''; position: absolute; left: 13px; top: 30px; bottom: -6px;
  width: 2px; background: var(--line);
}
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: var(--brand); }
.tl-dot {
  width: 28px; height: 28px; border-radius: 999px; flex: 0 0 auto;
  display: grid; place-items: center; z-index: 1;
  background: #fff; border: 2px solid var(--line);
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.tl-step.done .tl-dot { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.tl-step.current .tl-dot { border-color: var(--brand); color: var(--brand); box-shadow: 0 0 0 4px var(--brand-tint); }
.tl-label { font-size: 13.5px; color: var(--muted); }
.tl-step.done .tl-label { color: var(--ink); }
.tl-step.current .tl-label { color: var(--brand-dark); font-weight: 700; }

.cek-alert { font-size: 13.5px; line-height: 1.55; border-radius: 9px; padding: 9px 11px; margin-top: 10px; }
.cek-alert.info   { background: #eef4fb; border: 1px solid #c8dcf2; color: #144a7a; }
.cek-alert.batal  { background: #fdecec; border: 1px solid #f3c2c2; color: #8f1d1d; }
.cek-alert.sukses { background: #e5f6ec; border: 1px solid #bfe6cc; color: #14632f; }

.cek-items { margin-top: 12px; border-top: 1px dashed var(--line); }
.cek-item { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.cek-item small { display: block; color: var(--muted); font-size: 12px; }
.cek-meta { margin-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.cek-meta > div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; }
.cek-meta span { color: var(--muted); }
.cek-meta strong { text-align: right; }

/* ---------- PANEL ADMIN / OWNER (admin.html) ---------- */
.admin-wrap { max-width: 900px; margin: 0 auto; padding: 14px; }
.admin-gate, .admin-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px; margin-bottom: 12px;
}
.admin-gate h2, .admin-card h3 { font-size: 15px; margin-bottom: 6px; }
.admin-gate p { font-size: 13px; color: var(--muted); line-height: 1.55; }
.admin-gate .row { display: flex; gap: 8px; margin-top: 10px; }
.admin-gate input {
  flex: 1; height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px;
}
.admin-btn {
  height: 40px; padding: 0 16px; border-radius: 10px;
  background: var(--brand); color: var(--cream);
  font-family: var(--font-heading); font-weight: 600; font-size: 14px;
}
.admin-btn:active { background: var(--brand-dark); }
.admin-btn.sekunder { background: var(--brand-tint); color: var(--brand-dark); }
.admin-btn.bahaya { background: #fdecec; color: #8f1d1d; }
.admin-btn:disabled { background: #c9ced6; color: #fff; }
.admin-demo-banner {
  font-size: 12.5px; color: #8a6d00; background: #fff8e1;
  border: 1px solid #ffe08a; padding: 8px 10px; border-radius: 8px; margin-bottom: 12px;
}
.admin-error {
  font-size: 13px; color: #8f1d1d; background: #fdecec;
  border: 1px solid #f3c2c2; padding: 9px 11px; border-radius: 9px; margin-bottom: 12px;
}
.admin-tabs { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tab {
  flex: 0 0 auto; padding: 7px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 600;
}
.admin-tab.active { background: var(--brand); border-color: var(--brand); color: var(--cream); }
.admin-tab .jml { opacity: .75; font-weight: 700; }
.admin-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.admin-filters select, .admin-filters input {
  height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 10px; background: #fff;
}
.admin-order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.admin-order-head .kode { font-family: var(--font-heading); font-weight: 700; font-size: 15px; }
.admin-order-head .siapa { font-size: 13px; color: var(--muted); line-height: 1.45; }
.admin-order-head .siapa a { color: var(--brand); }
.admin-meta { font-size: 13px; color: var(--muted); line-height: 1.6; margin-top: 6px; }
.admin-meta strong { color: var(--ink); }
.admin-tenggat { font-weight: 700; color: #7a5200; }
.admin-tenggat.lewat { color: #8f1d1d; }
.admin-items { font-size: 13px; margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }
.admin-items div { display: flex; justify-content: space-between; padding: 2px 0; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.admin-wa { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.wa-btn {
  height: 36px; padding: 0 13px; border-radius: 9px;
  background: var(--wa); color: #fff; font-weight: 700; font-size: 13px;
  display: inline-flex; align-items: center; text-decoration: none;
}
.wa-btn:active { background: var(--wa-dark); }
.wa-btn.salin { background: #fff; color: var(--brand-dark); border: 1px solid var(--line); }
/* ============================================================
   TAMBAHAN — Tugas 1–5 (2026-11-26): label varian produk,
   form request + foto, timeline animasi Cek Order, section
   request/belanja/manifest di panel admin, cetak label.
   ============================================================ */

/* ---------- Label varian di kartu produk (Tugas 2) ---------- */
.product-variant {
  display: inline-block; align-self: flex-start;
  font-size: 11px; font-weight: 700;
  background: var(--brand-tint); color: var(--brand-dark);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 2.5px 8px;
}

/* ---------- Form REQUEST barang custom (Tugas 1) ---------- */
.req-desc { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.cart-form textarea {
  border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; background: #fff; width: 100%;
  font-family: var(--font-body); font-size: 14px; resize: vertical;
}
.cart-form input[type="file"] { height: auto; padding: 9px 12px; }
.req-foto-preview {
  margin-top: 8px; max-width: 180px; max-height: 180px;
  border-radius: 10px; border: 1px solid var(--line); object-fit: cover;
}
.req-foto-note { font-size: 12px; color: var(--muted); line-height: 1.5; }
.req-error {
  font-size: 13px; color: #8f1d1d; background: #fdecec;
  border: 1px solid #f3c2c2; padding: 9px 11px; border-radius: 9px; margin-top: 12px;
}
.req-submit {
  width: 100%; height: 46px; margin-top: 14px; border-radius: 11px;
  background: var(--brand); color: var(--cream);
  font-family: var(--font-heading); font-weight: 700; font-size: 15px;
}
.req-submit:active { background: var(--brand-dark); }
.req-submit:disabled { background: #c9ced6; }
.req-hasil {
  margin-top: 14px; background: #e5f6ec; border: 1px solid #bfe6cc;
  border-radius: 12px; padding: 13px 14px;
}
.req-sukses { font-size: 14px; font-weight: 600; color: #14632f; }
.req-kode {
  font-family: var(--font-heading); font-weight: 700; font-size: 22px;
  letter-spacing: 1px; color: var(--brand-dark); margin: 4px 0;
}
.req-sukses-note { font-size: 13px; color: #33523c; line-height: 1.55; }
.req-wa-btn { margin-top: 10px; height: 42px; padding: 0 16px; font-size: 14px; }

/* ---------- Timeline ANIMASI Cek Order (Tugas 4) ---------- */
.tl-wrap { position: relative; }
.tl-wrap .tl-dot { position: relative; z-index: 1; }
/* Langkah menyala berurutan saat hasil lacak dimuat */
.tl-step { animation: tlMuncul .35s ease both; animation-delay: calc(var(--i, 0) * 130ms); }
@keyframes tlMuncul {
  from { opacity: 0; transform: translateX(-7px); }
  to   { opacity: 1; transform: none; }
}
/* Garis progres terisi — digerakkan JS ke posisi status asli */
.tl-fill {
  position: absolute; left: 13px; width: 3px; z-index: 0;
  background: var(--brand); border-radius: 2px;
  transition: height 1s ease .55s;
}
/* Penanda paket yang bergerak di sepanjang garis */
.tl-paket {
  position: absolute; left: 14px; z-index: 2;
  width: 27px; height: 27px; border-radius: 999px;
  transform: translate(-50%, -50%);
  background: #fff; border: 2px solid var(--brand);
  display: grid; place-items: center; font-size: 13.5px;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
  transition: top 1s ease .55s;
}
/* Langkah saat ini berdenyut lembut */
.timeline.normal .tl-step.current .tl-dot,
.timeline.lewat .tl-step.current .tl-dot { animation: tlDenyut 1.8s ease-out infinite; }
@keyframes tlDenyut {
  0%   { box-shadow: 0 0 0 0 rgba(123,30,43,.35); }
  70%  { box-shadow: 0 0 0 9px rgba(123,30,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,30,43,0); }
}
/* Varian Menunggu Konfirmasi Customer: aksen ungu, diam di awal */
.timeline.menunggu .tl-step.current .tl-dot {
  border-color: #7b5cc9; color: #4b2a86;
  animation: tlDenyutUngu 1.8s ease-out infinite;
}
@keyframes tlDenyutUngu {
  0%   { box-shadow: 0 0 0 0 rgba(123,92,201,.35); }
  70%  { box-shadow: 0 0 0 9px rgba(123,92,201,0); }
  100% { box-shadow: 0 0 0 0 rgba(123,92,201,0); }
}
.timeline.menunggu ~ .tl-paket { border-color: #7b5cc9; }
/* Varian Pending lewat batas bayar: peringatan, tanpa maju */
.timeline.lewat .tl-step.current .tl-dot { border-color: #d64545; color: #8f1d1d; }
.timeline.lewat ~ .tl-paket { border-color: #d64545; }
/* Varian Cancelled: langkah pertama tanda silang, sisanya redup */
.tl-step.batal .tl-dot { background: #fdecec; border-color: #d64545; color: #8f1d1d; }
.timeline.batal .tl-label { color: var(--muted); }
.timeline.batal ~ .tl-paket { border-color: #d64545; }
/* Hormati prefers-reduced-motion: matikan animasi & transisi */
@media (prefers-reduced-motion: reduce) {
  .tl-step { animation: none; }
  .tl-fill, .tl-paket { transition: none; }
  .timeline.normal .tl-step.current .tl-dot,
  .timeline.menunggu .tl-step.current .tl-dot,
  .timeline.lewat .tl-step.current .tl-dot { animation: none; }
}

/* ---------- Section tambahan panel admin (Tugas 1 & 5) ---------- */
.admin-section-title {
  font-family: var(--font-heading); font-weight: 700; font-size: 16.5px;
  color: var(--brand-dark); margin: 20px 0 4px;
}
.admin-section-desc { font-size: 13px; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }
.grup-head {
  display: flex; justify-content: space-between; align-items: center;
  gap: 10px; flex-wrap: wrap; margin-bottom: 6px;
}
.grup-head h3 { font-size: 15px; }
.grup-items { font-size: 13.5px; line-height: 1.65; }
.grup-items .asal { color: var(--muted); font-size: 12.5px; }
.grup-total {
  font-family: var(--font-heading); font-weight: 700; font-size: 14px;
  background: var(--brand-tint); color: var(--brand-dark);
  border-radius: 9px; padding: 7px 11px; margin-bottom: 10px;
}
.admin-req-foto { margin-top: 8px; }
.admin-req-foto img {
  max-width: 220px; max-height: 220px; border-radius: 10px;
  border: 1px solid var(--line); object-fit: cover; display: block; margin-top: 6px;
}

/* ---------- CETAK LABEL kode unik (Tugas 5) ---------- */
/* Area label TIDAK tampil di layar — panel tidak berubah. */
#labelPrintArea { display: none; }
@media print {
  body.cetak-label header.topbar,
  body.cetak-label .admin-wrap { display: none !important; }
  body.cetak-label #labelPrintArea { display: block; }
  .label-paket {
    border: 2.5px solid #000; border-radius: 12px;
    padding: 16px 18px; margin: 0 0 14px;
    page-break-inside: avoid; break-inside: avoid;
    font-family: var(--font-body); color: #000;
  }
  .label-paket .lb-brand { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; }
  .label-paket .lb-kode {
    font-family: var(--font-heading); font-weight: 700;
    font-size: 34px; letter-spacing: 1.5px; line-height: 1.15; margin: 4px 0;
  }
  .label-paket .lb-baris { font-size: 15px; line-height: 1.55; }
  .label-paket .lb-baris strong { font-weight: 700; }
}
