/* ===========================================================
   ALL ONLINE STORE — Design System
   Tema: cerah & ramai khas toko online, tetap rapi/modern.
   =========================================================== */

:root {
  --brand: #ff5a1f;
  --brand-2: #ff2e63;
  --brand-3: #ffb020;
  --grad: linear-gradient(135deg, #ff9a2e 0%, #ff5a1f 45%, #ff2e63 100%);
  --grad-soft: linear-gradient(135deg, #fff2e8 0%, #ffe9ef 100%);
  --ink: #12172b;
  --ink-2: #3b4256;
  --muted: #71798f;
  --line: #f2e3da;
  --line-2: #eceff5;
  --bg: #fff8f4;
  --card: #ffffff;
  --ok: #0fa968;
  --ok-soft: #e7f8f0;
  --info: #2e90fa;
  --info-soft: #e9f2ff;
  --warn: #f79009;
  --warn-soft: #fff5e6;
  --danger: #ef4444;
  --danger-soft: #feeceb;
  --purple: #7a5af8;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 12px 32px rgba(255, 90, 31, 0.10), 0 2px 8px rgba(18, 23, 43, 0.05);
  --shadow-sm: 0 4px 14px rgba(18, 23, 43, 0.07);
  --shadow-lg: 0 24px 60px rgba(255, 90, 31, 0.16), 0 6px 18px rgba(18, 23, 43, 0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* latar dekoratif lembut */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(560px 380px at 8% -6%, rgba(255, 154, 46, 0.20), transparent 70%),
    radial-gradient(620px 420px at 96% 4%, rgba(255, 46, 99, 0.14), transparent 70%),
    radial-gradient(680px 520px at 50% 108%, rgba(46, 144, 250, 0.12), transparent 72%);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--grad);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.topbar .wrap {
  display: flex; gap: 18px; align-items: center; justify-content: center;
  padding: 9px 20px; text-align: center; flex-wrap: wrap;
}
.topbar .dot { opacity: 0.55; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex; align-items: center; gap: 16px; padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .mark {
  width: 46px; height: 46px; border-radius: 14px;
  box-shadow: 0 8px 18px rgba(255, 90, 31, 0.28);
  flex-shrink: 0;
}
.brand .mark.round { border-radius: 50%; object-fit: cover; }
.brand .txt { line-height: 1.05; }
.brand .txt b {
  display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.4px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.brand .txt span {
  display: block; font-size: 10.5px; font-weight: 700; letter-spacing: 3.4px; color: var(--ink);
  margin-top: 2px; white-space: nowrap;
}

.search {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 6px 6px 6px 16px; min-width: 0;
  transition: border-color .16s, box-shadow .16s;
}
.search:focus-within { border-color: #ffb28c; box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.10); }
.search input {
  border: 0; outline: 0; flex: 1; min-width: 0; font-size: 14.5px; color: var(--ink); background: transparent;
  padding: 6px 0;
}
.search button {
  border: 0; cursor: pointer; background: var(--grad); color: #fff; font-weight: 700; font-size: 13.5px;
  padding: 9px 16px; border-radius: 999px; white-space: nowrap;
}

.hdr-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.bell {
  position: relative; width: 42px; height: 42px; border-radius: 13px;
  display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); cursor: pointer;
}
.bell .count {
  position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 999px; background: var(--brand-2); color: #fff; font-size: 11px; font-weight: 800;
  display: grid; place-items: center; border: 2px solid #fff;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 700; font-size: 14px;
  padding: 11px 18px; border-radius: 12px; transition: transform .12s, box-shadow .16s, background .16s;
  white-space: nowrap; text-align: center;
}
.btn:active { transform: translateY(1px) scale(.995); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 31, 0.30); }
.btn-primary:hover { box-shadow: 0 12px 26px rgba(255, 90, 31, 0.38); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28); }
.btn-outline { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-outline:hover { border-color: #ffb28c; background: #fff8f4; }
.btn-ok { background: var(--ok); color: #fff; box-shadow: 0 8px 20px rgba(15, 169, 104, 0.24); }
.btn-danger { background: var(--danger-soft); color: #b42318; border: 1.5px solid #fbc9c4; }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 14px 26px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }

/* ---------- layout ---------- */
.page { padding: 34px 0 64px; }
.section { margin-bottom: 48px; }
.section:last-child { margin-bottom: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.section-head h2 { margin: 0 0 4px; font-size: 25px; letter-spacing: -0.5px; }
.section-head p { margin: 0; color: var(--muted); font-size: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase; color: var(--brand); margin-bottom: 10px;
}

/* ---------- cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 22px;
}
.card.pad-lg { padding: 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h3 { margin: 0; font-size: 17px; letter-spacing: -0.2px; }
.card-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

/* sub-judul di dalam satu kartu gabungan (mis. Alamat Pengiriman + Data Diri) */
.sub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sub-head > span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.sub-head .ico { font-size: 16px; }

.grid { display: grid; gap: 22px; }
/* cegah anak grid memaksa lebar (min-content) sehingga layout meluber di layar kecil */
.grid > *, .form-grid > *, .split > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 26px; padding: 44px 40px;
  background: var(--grad);
  color: #fff; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 32px; align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(340px 240px at 88% 12%, rgba(255, 255, 255, 0.30), transparent 70%),
    radial-gradient(300px 300px at 6% 96%, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}
.hero h1 { position: relative; margin: 0 0 14px; font-size: 40px; line-height: 1.12; letter-spacing: -1.2px; }
.hero h1 em { font-style: normal; color: #fff3c4; }
.hero p { position: relative; margin: 0 0 24px; font-size: 15.5px; opacity: 0.95; max-width: 46ch; }
.hero .cta { position: relative; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.5); color: #fff; }
.hero .btn-outline:hover { background: rgba(255, 255, 255, 0.24); border-color: #fff; }
.hero-stats { position: relative; display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats div {
  background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px; padding: 10px 16px; backdrop-filter: blur(6px);
}
.hero-stats b { display: block; font-size: 19px; }
.hero-stats span { font-size: 11.5px; letter-spacing: .6px; text-transform: uppercase; opacity: .9; }
.hero-art { position: relative; }

/* ---------- pills / chips ---------- */
.chips { display: flex; gap: 10px; flex-wrap: wrap; }
.chip {
  padding: 9px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: #ffb28c; color: var(--brand); }
.chip.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255, 90, 31, 0.28); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase;
}
.badge-ok { background: var(--ok-soft); color: #08794b; }
.badge-warn { background: var(--warn-soft); color: #b54708; }
.badge-info { background: var(--info-soft); color: #1b62c4; }
.badge-danger { background: var(--danger-soft); color: #b42318; }
.badge-soft { background: #f5f2ff; color: #5b3df5; }
.badge-new { background: var(--grad); color: #fff; }
.badge-solid-danger { background: #ef4444; color: #fff; }

/* ---------- blok kategori di katalog ---------- */
.cat-block { margin-bottom: 40px; }
.cat-block:last-child { margin-bottom: 0; }
.cat-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 14px;
  border-bottom: 1.5px solid var(--line);
}
.cat-head-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.cat-num {
  flex: 0 0 auto; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #fff;
  font-size: 19px; font-weight: 800; display: grid; place-items: center;
  box-shadow: 0 8px 18px rgba(255, 90, 31, 0.26);
}
.cat-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.4px; }
.cat-head p { margin: 2px 0 0; }

/* ---------- product card ---------- */
/* Jumlah kolom mengikuti lebar layar (auto-fill) supaya makin banyak produk
   terlihat tanpa scroll. Kotak foto dibuat 4:3 (bukan persegi) dan fotonya
   ditampilkan utuh (object-fit: contain, TANPA dipotong) supaya gambarnya
   benar-benar lebih kecil — foto produk owner semuanya 1:1 dan ada isi produk
   di tepi atas/bawah, jadi kalau di-cover bagian produk bisa terpotong. */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 22px; }
.products .p-thumb { background: #fff; }
.products .p-thumb img { object-fit: contain; }
/* Tanpa zoom saat hover di kartu produk: zoom akan memotong tepi foto, padahal
   foto sengaja ditampilkan utuh (contain). Efek hover tetap ada dari kartu. */
.products .p-card:hover .p-thumb img { transform: none; }
.p-card {
  background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.p-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #ffd9c6; }
.p-thumb { position: relative; aspect-ratio: 4 / 3; background: var(--grad-soft); overflow: hidden; }
.p-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.p-card:hover .p-thumb img { transform: scale(1.06); }
.p-thumb .ph {
  position: absolute; inset: 0; display: grid; place-items: center; color: #ffb28c; font-size: 32px; font-weight: 800;
  background: var(--grad-soft);
}
.p-flag { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-direction: column; align-items: flex-start; }
.p-body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.p-cat { font-size: 11.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.p-name { font-size: 14.5px; font-weight: 700; line-height: 1.35; margin: 0; min-height: 38px; }
.p-name a:hover { color: var(--brand); }
.p-price { font-size: 17.5px; font-weight: 800; color: var(--brand); letter-spacing: -0.4px; }
.p-price small { font-size: 12px; color: var(--muted); font-weight: 600; text-decoration: line-through; margin-left: 6px; }
.p-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--muted); }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
/* Tombol kartu tidak boleh terpotong saat kartu sempit: kalau dua tombol tidak
   muat sebaris, tombol kedua otomatis turun ke baris berikutnya (bukan meluber
   keluar kartu, karena .p-card memakai overflow:hidden). */
.p-actions .btn { flex: 1 1 auto; min-width: max-content; white-space: normal; line-height: 1.25; }
.p-actions form { flex: 1 1 auto; display: flex; min-width: max-content; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 18px; }
.form-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field { display: block; }
.field > span, .label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; color: var(--ink-2); }
.field .hint { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line);
  font-size: 14.5px; font-family: inherit; background: #fff; color: var(--ink); outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: #ffb28c; box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.10); }
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2371798f' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty button { width: 38px; height: 42px; border: 0; background: #fff; font-size: 18px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.qty button:hover { background: #fff4ee; color: var(--brand); }
.qty input { width: 52px; height: 42px; border: 0; text-align: center; font-size: 15px; font-weight: 700; outline: 0; font-family: inherit; }
.file-drop {
  border: 2px dashed #ffc7ac; border-radius: 16px; padding: 22px; text-align: center; background: #fffaf7;
  cursor: pointer; transition: background .15s, border-color .15s;
}
.file-drop:hover { background: #fff4ee; border-color: var(--brand); }
.file-drop strong { display: block; font-size: 14.5px; margin-bottom: 4px; }
.file-drop small { color: var(--muted); }
.file-drop input[type=file] { display: none; }
.preview { margin-top: 14px; display: none; }
.preview img { max-height: 240px; border-radius: 14px; border: 1px solid var(--line); margin: 0 auto; }
.preview.show { display: block; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line-2); background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.8px; min-width: 620px; }
table.tbl th {
  text-align: left; padding: 13px 16px; background: #fffaf7; font-size: 11.5px; font-weight: 800;
  letter-spacing: .8px; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: #fffaf7; }
.t-right { text-align: right; }
.t-nowrap { white-space: nowrap; }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; }

/* ---------- stats ---------- */
.stat { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.stat .ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 19px; margin-bottom: 12px; background: var(--grad-soft); }
.stat .lbl { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--muted); }
.stat .val { font-size: 25px; font-weight: 800; letter-spacing: -0.8px; margin-top: 4px; }
.stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.stat.accent { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--shadow); }
.stat.accent .lbl, .stat.accent .sub { color: rgba(255, 255, 255, 0.86); }
.stat.accent .ic { background: rgba(255, 255, 255, 0.22); }

/* bar chart */
.chart { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 10px; }
.chart .col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; height: 100%; }
.chart .bar {
  width: 100%; max-width: 46px; border-radius: 9px 9px 4px 4px; background: var(--grad); min-height: 5px;
  position: relative; transition: filter .15s;
}
.chart .col:hover .bar { filter: brightness(1.08); }
.chart .bar span {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  font-size: 11px; font-weight: 800; color: var(--brand); white-space: nowrap;
}
.chart .cap { font-size: 10.5px; color: var(--muted); font-weight: 700; text-align: center; }

/* ---------- alerts, toast ---------- */
.alert { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; font-size: 14px; border: 1px solid transparent; }
.alert .ai { font-size: 17px; line-height: 1.3; }
.alert strong { display: block; margin-bottom: 2px; }
.alert p { margin: 0; }
.alert-ok { background: var(--ok-soft); color: #065f3c; border-color: #b6e8d2; }
.alert-info { background: var(--info-soft); color: #14488f; border-color: #c6ddfb; }
.alert-warn { background: var(--warn-soft); color: #8a4b06; border-color: #ffdda6; }
.alert-danger { background: var(--danger-soft); color: #96201a; border-color: #fbc9c4; }

.toasts { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 36px)); }
.toast {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--brand);
  border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); font-size: 14px;
  animation: toastIn .3s ease both;
}
.toast.ok { border-left-color: var(--ok); }
.toast.err { border-left-color: var(--danger); }
.toast strong { display: block; margin-bottom: 2px; font-size: 14.5px; }
.toast.hide { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }

/* ---------- status/notification banner ---------- */
.notif-banner {
  border-radius: 20px; padding: 22px 24px; background: var(--grad); color: #fff;
  box-shadow: var(--shadow); display: flex; gap: 18px; align-items: center;
}
.notif-banner .ico { font-size: 34px; line-height: 1; }
.notif-banner h3 { margin: 0 0 4px; font-size: 19px; }
.notif-banner p { margin: 0; font-size: 14px; opacity: .95; }
.notif-banner.ok { background: linear-gradient(135deg, #12b981 0%, #0fa968 60%, #0b8f58 100%); }
.notif-banner.wait { background: linear-gradient(135deg, #fbbf24 0%, #f79009 100%); color: #3b2400; }
.notif-banner.wait p, .notif-banner.wait h3 { color: #3b2400; }
.notif-banner.plain { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }

/* ---------- pilihan metode pengiriman & pembayaran (checkout) ---------- */
.ship-grid, .pay-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ship, .pay { position: relative; display: block; cursor: pointer; }
.ship input, .pay input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ship-body, .pay-body {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 13px; background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.ship:hover .ship-body, .pay:hover .pay-body { border-color: #ffc7ac; background: #fffaf7; }
.ship input:checked + .ship-body,
.ship.checked .ship-body,
.pay input:checked + .pay-body,
.pay.checked .pay-body {
  border-color: var(--brand); background: #fff7f2; box-shadow: 0 6px 16px rgba(255, 90, 31, 0.12);
}
.ship input:focus-visible + .ship-body, .pay input:focus-visible + .pay-body { box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.18); }
.ship-ico, .pay-ico { font-size: 19px; line-height: 1.2; flex: 0 0 auto; }
.ship-txt, .pay-txt { display: block; min-width: 0; }
.ship-txt b, .pay-txt b { display: block; font-size: 13.8px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.ship-txt small, .pay-txt small { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; margin-top: 3px; }
.ship-txt .ship-resi { color: #08794b; font-weight: 700; }
.pay-txt .pay-flag { color: var(--brand); font-weight: 700; }
.ship-flag {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 10px;
  border-radius: 999px; background: var(--ok-soft); color: #08794b; font-size: 11.5px; font-weight: 800;
}
/* tunai tidak tersedia (bukan "Ambil di Toko") — diredupkan & tidak bisa diklik */
.pay.is-off { cursor: not-allowed; }
.pay.is-off .pay-body { opacity: .5; background: #fafafa; }
.pay.is-off:hover .pay-body { border-color: var(--line); background: #fafafa; }

/* kotak resi (pembeli & owner) */
.resi-box {
  border: 1.5px solid #d9e8ff; background: linear-gradient(180deg, #f4f9ff 0%, #ffffff 70%);
  border-radius: 16px; padding: 18px;
}
.resi-box .no {
  font-size: 20px; font-weight: 800; letter-spacing: 1.4px; color: var(--ink);
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 2px;
}
.resi-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* grid pilihan ekspedisi (halaman Ongkir owner) */
.courier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

/* panel hasil hitung ongkir di checkout */
.ongkir-panel {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  margin-top: 16px; padding: 16px 18px; border-radius: 16px;
  background: linear-gradient(135deg, #fff7f2 0%, #fff2f6 100%); border: 1.5px solid #ffdfd0;
}
.ongkir-panel .op-lbl { font-size: 11.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.ongkir-panel .op-val { font-size: 22px; font-weight: 800; color: var(--brand); letter-spacing: -0.4px; margin-top: 2px; }
.ongkir-panel .op-total { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -0.6px; margin-top: 2px; }
.ongkir-panel .op-note { font-size: 12.2px; color: var(--muted); margin-top: 3px; max-width: 46ch; line-height: 1.55; }
.ongkir-panel .op-right { text-align: right; }
.addr-off { opacity: 0.55; }

/* ---------- steps: kartu alur (nomor di bulatan kiri + judul/deskripsi) ---------- */
/* Dipakai untuk garis alur checkout (flex) dan kartu "Alur Pemesanan"/"Cara Pesan" (grid) */
.steps { display: flex; gap: 12px; margin-bottom: 26px; flex-wrap: wrap; }

.steps-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.step {
  min-width: 0; padding: 14px 16px; border-radius: 14px; background: #fff;
  border: 1.5px solid var(--line); color: var(--muted);
  display: flex; align-items: flex-start; gap: 10px;
  font-family: var(--font); font-size: 13px;
}
/* PENTING: bulatan nomor hanya untuk <b> anak langsung.
   Dulu selektornya `.step b` sehingga judul di dalam kartu ikut terjepit 24x24px
   dan teksnya tumpang tindih. Jangan diubah kembali jadi `.step b`. */
.step > b {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: #f5f2ff; color: var(--purple);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800; line-height: 1;
}
.step.active { border-color: #ffb28c; background: #fff7f2; color: var(--ink); box-shadow: 0 6px 16px rgba(255, 90, 31, 0.08); }
.step.active > b { background: var(--grad); color: #fff; }
.step.done > b { background: var(--ok); color: #fff; }

/* teks di dalam kartu alur — ukuran & jarak baris dipilih agar tidak rapat/tumpang tindih */
.st-body { display: block; min-width: 0; }
.st-ttl {
  display: block; font-size: 13.5px; font-weight: 700; color: var(--ink);
  line-height: 1.4; letter-spacing: -0.1px; overflow-wrap: anywhere;
}
.st-dsc {
  display: block; font-size: 12.2px; font-weight: 500; color: var(--muted);
  line-height: 1.6; margin-top: 4px; overflow-wrap: anywhere;
}

/* ---------- payment box ---------- */
.bank-card {
  border: 1.5px dashed #ffc7ac; border-radius: 16px; padding: 18px; background: #fffaf7;
  display: flex; flex-direction: column; gap: 6px;
}
.bank-card .bank { font-size: 13px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--brand); }
.bank-card .no { font-size: 21px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.bank-card .nm { font-size: 13px; color: var(--muted); }
.bank-card .amt {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 6px; padding-top: 8px; border-top: 1px dashed #ffd9c6;
  font-size: 13px; color: var(--ink-2);
}
.bank-card .amt b { font-size: 15.5px; color: var(--brand); }
.copy {
  border: 1.5px solid var(--line); background: #fff; border-radius: 9px; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; cursor: pointer; color: var(--ink-2);
}
.copy:hover { border-color: #ffb28c; color: var(--brand); }

/* ---------- order summary ---------- */
.sum-list { display: flex; flex-direction: column; gap: 14px; }
.sum-item { display: flex; gap: 14px; align-items: center; }
.sum-item .th { width: 58px; height: 58px; border-radius: 12px; overflow: hidden; background: var(--grad-soft); flex-shrink: 0; display: grid; place-items: center; color: #ffb28c; font-weight: 800; }
.sum-item .th img { width: 100%; height: 100%; object-fit: cover; }
.sum-item .nm { flex: 1; min-width: 0; }
.sum-item .nm b { display: block; font-size: 14px; font-weight: 700; }
/* angka jumlah pada baris "N x harga" harus tetap sebaris (bukan block seperti judul) */
.sum-item .nm .lq { font-weight: 800; color: var(--ink); }
.sum-item .nm span { font-size: 12.5px; color: var(--muted); }
.sum-item .pr { font-weight: 800; font-size: 14.5px; white-space: nowrap; }
.totals { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.totals .row { display: flex; justify-content: space-between; font-size: 14px; color: var(--ink-2); }
.totals .row.grand { font-size: 19px; font-weight: 800; color: var(--ink); padding-top: 10px; border-top: 1px dashed var(--line); }
.totals .row.grand span:last-child { color: var(--brand); }

.empty { text-align: center; padding: 56px 24px; }
.empty .em { font-size: 52px; margin-bottom: 12px; }
.empty h3 { margin: 0 0 6px; font-size: 19px; }
.empty p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

/* ---------- auth / owner ---------- */
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; background: var(--bg); }
.auth-card { width: 100%; max-width: 430px; background: #fff; border-radius: 24px; box-shadow: var(--shadow-lg); padding: 34px; border: 1px solid var(--line-2); }
.owner-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.owner-side {
  background: #171127; color: #fff; padding: 24px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.owner-side .brand .txt b { background: linear-gradient(135deg, #ffb020, #ff5a1f, #ff2e63); -webkit-background-clip: text; background-clip: text; color: transparent; }
.owner-side .brand .txt span { color: #fff; }
.owner-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 26px; }
.owner-nav a {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.72); transition: all .15s;
}
.owner-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.owner-nav a.active { background: var(--grad); color: #fff; box-shadow: 0 8px 20px rgba(255, 90, 31, 0.30); }
.owner-nav a .ic { width: 20px; text-align: center; }
.owner-nav a .n { margin-left: auto; background: #ff2e63; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 2px 8px; }
.owner-nav .grp { font-size: 10.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: rgba(255, 255, 255, 0.38); margin: 18px 0 6px 13px; }
.owner-main { background: var(--bg); min-width: 0; }
.owner-top {
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  padding: 14px 26px; display: flex; align-items: center; gap: 16px; justify-content: space-between; position: sticky; top: 0; z-index: 40;
}
.owner-top h1 { margin: 0; font-size: 19px; letter-spacing: -0.3px; }
.owner-top .sub { font-size: 12.5px; color: var(--muted); }
.owner-body { padding: 26px; display: flex; flex-direction: column; gap: 26px; }
.side-toggle { display: none; border: 1.5px solid var(--line); background: #fff; border-radius: 11px; padding: 9px 12px; cursor: pointer; font-size: 15px; }
.owner-side.open { display: block; }

/* ---------- footer ---------- */
.site-footer { background: #171127; color: rgba(255, 255, 255, 0.72); padding: 46px 0 26px; margin-top: 20px; }
.site-footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; margin: 0 0 14px; letter-spacing: .4px; }
.site-footer a:hover { color: #ffb28c; }
.site-footer .f-links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.site-footer .bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12); margin-top: 32px; padding-top: 18px;
  display: flex; justify-content: space-between; gap: 14px; font-size: 12.5px; flex-wrap: wrap;
}
.site-footer .brand .txt b { background: linear-gradient(135deg, #ffb020, #ff5a1f, #ff2e63); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site-footer .brand .txt span { color: #fff; }

.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; font-size: 26px; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.42);
}

/* ---------- proof / receipt ---------- */
.proof-thumb { max-width: 320px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); cursor: zoom-in; }
.modal-bg { position: fixed; inset: 0; background: rgba(18, 23, 43, 0.72); z-index: 300; display: none; place-items: center; padding: 24px; }
.modal-bg.show { display: grid; }
.modal-bg img { max-width: 100%; max-height: 88vh; border-radius: 14px; }

/* ---------- utility ---------- */
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.strong { font-weight: 800; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }
.hide-sm { display: block; }
.only-sm { display: none; }
.divider { height: 1px; background: var(--line-2); margin: 18px 0; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scroll-x { overflow-x: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: 1fr; padding: 36px 28px; }
  .hero-art { display: none; }
  .split { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .owner-layout { grid-template-columns: 1fr; }
  .owner-side { display: none; height: auto; position: static; }
  .owner-side .owner-nav { flex-direction: row; flex-wrap: wrap; }
  .owner-side .owner-nav .grp { display: none; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 15px; }
  .ongkir-panel { padding: 14px; gap: 12px; }
  .ongkir-panel .op-val, .ongkir-panel .op-total { font-size: 19px; }
  .ongkir-panel .op-right { text-align: left; }
  .products { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .p-body { padding: 12px 12px 14px; gap: 8px; }
  .p-price { font-size: 16.5px; }
  .grid-2, .grid-3, .grid-4, .form-grid.cols-2, .form-grid.cols-3 { grid-template-columns: 1fr; }
  .ship-grid { grid-template-columns: 1fr; }
  .steps-grid, .steps-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .courier-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-block { margin-bottom: 30px; }
  .cat-head h3 { font-size: 17.5px; }
  .cat-num { width: 38px; height: 38px; border-radius: 12px; font-size: 16px; }
  .step { padding: 12px 13px; gap: 9px; }
  .st-ttl { font-size: 13.2px; }
  .st-dsc { font-size: 12px; line-height: 1.55; }
  .hero h1 { font-size: 29px; }
  .site-header .search { order: 3; flex-basis: 100%; }
  .site-header .bar { flex-wrap: wrap; }
  .hide-sm { display: none; }
  .only-sm { display: block; }
  .card { padding: 18px; }
  .card.pad-lg { padding: 20px; }
  .owner-body { padding: 16px; }
  .owner-top { padding: 12px 16px; }
  .side-toggle { display: block; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .section { margin-bottom: 34px; }
  .toasts { top: 12px; right: 12px; left: 12px; max-width: none; }
  .brand .txt b { font-size: 16.5px; }
  .brand .txt span { font-size: 9px; letter-spacing: 2.6px; }
}
@media (max-width: 420px) {
  .p-actions { flex-direction: column; }
  .steps-grid, .steps-grid.cols-2 { grid-template-columns: 1fr; }
  .courier-grid { grid-template-columns: 1fr; }
}

@media print {
  .site-header, .site-footer, .topbar, .no-print, .wa-float { display: none !important; }
  body { background: #fff; }
}
