/* Storefront Kita Berkembang — mobile first, tampil seperti aplikasi. */
:root {
	--kb-primary: #e85d2a;
	--kb-bg: #f6f3ef;
	--kb-surface: #ffffff;
	--kb-text: #1f1b16;
	--kb-muted: #6f675e;
	--kb-line: #ebe5dd;
	--kb-ok: #1f8a4c;
	--kb-danger: #c0392b;
	--kb-radius: 16px;
	--kb-wa: #1fa855;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.kb-store {
	margin: 0;
	background: #e9e4dd;
	color: var(--kb-text);
	font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
body.kb-locked { overflow: hidden; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.kb-app {
	max-width: 520px;
	min-height: 100vh;
	margin: 0 auto;
	background: var(--kb-bg);
	padding-bottom: 96px;
	position: relative;
}

/* Hero & profil */
.kb-hero {
	height: 150px;
	background: linear-gradient(135deg, var(--kb-primary), color-mix(in srgb, var(--kb-primary) 55%, #000));
	background-size: cover;
	background-position: center;
	position: relative;
}
.kb-hero.has-banner { height: 190px; }
.kb-hero-shade { position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(0,0,0,.25)); }

.kb-profile {
	margin: -44px 16px 0;
	background: var(--kb-surface);
	border-radius: var(--kb-radius);
	padding: 52px 18px 16px;
	text-align: center;
	position: relative;
	box-shadow: 0 6px 24px rgba(0,0,0,.06);
}
.kb-logo {
	width: 76px; height: 76px;
	border-radius: 50%;
	border: 4px solid var(--kb-surface);
	background: var(--kb-primary);
	color: #fff;
	position: absolute; left: 50%; top: -38px; transform: translateX(-50%);
	display: grid; place-items: center;
	overflow: hidden;
	font-size: 30px; font-weight: 700;
}
.kb-logo img { width: 100%; height: 100%; object-fit: cover; }
.kb-profile h1 { margin: 0; font-size: 22px; }
.kb-tagline { margin: 4px 0 0; color: var(--kb-muted); }
.kb-meta { list-style: none; padding: 0; margin: 10px 0 0; color: var(--kb-muted); font-size: 13px; }
.kb-meta li { margin-top: 2px; }

/* Pencarian & kategori */
.kb-sticky {
	position: sticky; top: 0; z-index: 5;
	background: var(--kb-bg);
	padding: 14px 16px 8px;
}
.kb-search {
	width: 100%;
	border: 1px solid var(--kb-line);
	background: var(--kb-surface);
	border-radius: 999px;
	padding: 10px 16px;
	outline: none;
}
.kb-search:focus { border-color: var(--kb-primary); }
.kb-chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; scrollbar-width: none; }
.kb-chips::-webkit-scrollbar { display: none; }
.kb-chips button {
	flex: none;
	border: 1px solid var(--kb-line);
	background: var(--kb-surface);
	border-radius: 999px;
	padding: 6px 14px;
	cursor: pointer;
	font-size: 13px;
}
.kb-chips button.is-active { background: var(--kb-primary); border-color: var(--kb-primary); color: #fff; }

/* Menu */
.kb-menu { padding: 0 16px; }
.kb-group h2 { font-size: 17px; margin: 18px 0 8px; }
.kb-product {
	display: flex; gap: 12px; justify-content: space-between;
	background: var(--kb-surface);
	border-radius: var(--kb-radius);
	padding: 12px;
	margin-bottom: 10px;
}
.kb-product.is-soldout { opacity: .6; }
.kb-product-info { flex: 1; min-width: 0; }
.kb-product h3 { margin: 2px 0 4px; font-size: 15px; }
.kb-product p { margin: 0 0 8px; color: var(--kb-muted); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kb-price { font-weight: 700; }
.kb-stock-low { font-weight: 500; font-size: 12px; color: var(--kb-danger); margin-left: 6px; }
.kb-product-media { width: 108px; flex: none; display: flex; flex-direction: column; align-items: center; }
.kb-product-media img, .kb-noimg { width: 108px; height: 108px; border-radius: 12px; object-fit: cover; background: var(--kb-line); }
.kb-noimg { display: grid; place-items: center; font-size: 34px; font-weight: 700; color: var(--kb-muted); }
.kb-add, .kb-qty, .kb-soldout { margin-top: -16px; position: relative; }
.kb-add {
	border: 1px solid var(--kb-primary);
	color: var(--kb-primary);
	background: var(--kb-surface);
	border-radius: 999px;
	padding: 5px 18px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.kb-qty {
	display: inline-flex; align-items: center;
	background: var(--kb-primary); color: #fff;
	border-radius: 999px;
	box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.kb-qty button { border: 0; background: transparent; color: #fff; width: 32px; height: 32px; font-size: 18px; cursor: pointer; }
.kb-qty button:disabled { opacity: .4; cursor: not-allowed; }
.kb-qty span { min-width: 22px; text-align: center; font-weight: 700; }
.kb-soldout { background: #555; color: #fff; border-radius: 999px; padding: 4px 14px; font-size: 13px; }
.kb-empty { text-align: center; color: var(--kb-muted); padding: 32px 0; }
.kb-foot { text-align: center; color: var(--kb-muted); font-size: 12px; padding: 24px 16px; }
.kb-foot a { color: inherit; }

/* Bar keranjang */
.kb-cartbar {
	position: fixed; z-index: 10;
	left: 50%; transform: translateX(-50%);
	bottom: max(16px, env(safe-area-inset-bottom));
	width: calc(100% - 32px); max-width: 488px;
	display: flex; align-items: center; gap: 10px;
	background: var(--kb-primary); color: #fff;
	border: 0; border-radius: 999px;
	padding: 14px 20px;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
	cursor: pointer;
	text-align: left;
}
.kb-cartbar-total { font-weight: 700; }
.kb-cartbar-cta { margin-left: auto; font-weight: 600; }

/* Sheet */
.kb-sheet { position: fixed; inset: 0; z-index: 20; }
.kb-sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.kb-sheet-panel {
	position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
	width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto;
	background: var(--kb-surface);
	border-radius: 20px 20px 0 0;
	padding: 0 18px calc(18px + env(safe-area-inset-bottom));
	animation: kb-up .2s ease-out;
}
@keyframes kb-up { from { transform: translate(-50%, 30px); opacity: .5; } }
.kb-sheet-head { position: sticky; top: 0; background: var(--kb-surface); display: flex; align-items: center; gap: 8px; padding: 16px 0 10px; z-index: 1; }
.kb-sheet-head h2 { margin: 0; font-size: 18px; flex: 1; }
.kb-close, .kb-back { border: 0; background: var(--kb-bg); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; cursor: pointer; }

.kb-line { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--kb-line); }
.kb-line > div:first-child span { display: block; color: var(--kb-muted); font-size: 13px; }
.kb-line .kb-qty { margin-top: 0; }
.kb-line-sub { grid-column: 1 / -1; text-align: right; font-weight: 600; font-size: 14px; }
.kb-total-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; font-size: 16px; }

form[data-kb-step] label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
form[data-kb-step] input:not([type=radio]):not([type=checkbox]), form[data-kb-step] textarea {
	width: 100%; border: 1px solid var(--kb-line); border-radius: 12px; padding: 10px 12px; background: #fff; outline: none;
}
form[data-kb-step] input:focus, form[data-kb-step] textarea:focus { border-color: var(--kb-primary); }
.kb-hp { position: absolute !important; left: -9999px !important; }
.kb-pay { border: 0; padding: 0; margin: 16px 0 0; }
.kb-pay legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; }
.kb-pay label {
	display: flex !important; gap: 10px; align-items: flex-start;
	border: 1px solid var(--kb-line); border-radius: 12px; padding: 12px !important; margin: 0 0 8px !important; cursor: pointer;
}
.kb-pay label:has(input:checked) { border-color: var(--kb-primary); background: color-mix(in srgb, var(--kb-primary) 7%, #fff); }
.kb-pay input { margin-top: 3px; accent-color: var(--kb-primary); }
.kb-pay small { display: block; font-weight: 400; color: var(--kb-muted); }
.kb-note { background: var(--kb-bg); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--kb-muted); }
.kb-error { color: var(--kb-danger); background: #fdecea; border-radius: 12px; padding: 10px 12px; font-size: 14px; }

.kb-btn {
	display: inline-block; text-align: center; text-decoration: none;
	background: var(--kb-primary); color: #fff;
	border: 0; border-radius: 999px; padding: 14px 20px; font-weight: 700; cursor: pointer;
}
.kb-btn:disabled { opacity: .5; cursor: not-allowed; }
.kb-btn-block { width: 100%; }
.kb-btn-wa { background: var(--kb-wa); }

[data-kb-step="done"] { text-align: center; padding-bottom: 8px; }
.kb-done-icon { width: 64px; height: 64px; margin: 8px auto 10px; border-radius: 50%; background: var(--kb-ok); color: #fff; display: grid; place-items: center; font-size: 32px; }
.kb-done-title { font-size: 16px; }
.kb-qris { background: var(--kb-bg); border-radius: var(--kb-radius); padding: 14px; margin: 10px 0; }
.kb-qris img { margin: 8px auto 0; max-width: 260px; width: 100%; border-radius: 12px; background: #fff; }
.kb-muted { color: var(--kb-muted); font-size: 13px; }

/* Link kembali ke landing */
.kb-home-link {
	position: absolute; z-index: 2; top: 14px; left: 14px;
	background: rgba(0,0,0,.35); color: #fff; text-decoration: none; font-size: 13px; font-weight: 600;
	padding: 6px 12px; border-radius: 999px; backdrop-filter: blur(6px);
}

/* Topping */
.kb-has-addons { display: inline-block; font-size: 12px; color: var(--kb-primary); font-weight: 600; margin-bottom: 6px; }
.kb-add:disabled { opacity: .5; cursor: not-allowed; }
.kb-line-addons { display: block; color: var(--kb-muted); font-size: 12.5px; }
.kb-opt-head { display: flex; gap: 14px; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid var(--kb-line); }
.kb-opt-head img { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; flex: none; }
.kb-opt-head h3 { margin: 0 0 4px; font-size: 17px; }
.kb-opt-head p { margin: 0 0 6px; color: var(--kb-muted); font-size: 13px; }
.kb-opt-list { border: 0; padding: 0; margin: 14px 0 0; }
.kb-opt-list legend { font-weight: 700; margin-bottom: 8px; }
.kb-opt-list legend small { color: var(--kb-muted); font-weight: 400; }
form[data-kb-step] label.kb-opt { display: flex; font-weight: 400; font-size: 15px; margin: 0 0 8px; }
.kb-opt { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--kb-line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; }
.kb-opt:has(input:checked) { border-color: var(--kb-primary); background: color-mix(in srgb, var(--kb-primary) 7%, #fff); }
.kb-opt input { accent-color: var(--kb-primary); width: 18px; height: 18px; margin: 0; }
.kb-opt span { flex: 1; font-weight: 600; }
.kb-opt em { font-style: normal; color: var(--kb-muted); font-size: 13px; }
.kb-opt-foot { display: flex; gap: 12px; align-items: center; position: sticky; bottom: 0; background: var(--kb-surface); padding: 12px 0 4px; }
.kb-opt-foot .kb-qty { margin: 0; }
.kb-opt-foot .kb-qty button { width: 40px; height: 44px; }
.kb-opt-foot .kb-btn { flex: 1; }
.kb-product.is-highlight { box-shadow: 0 0 0 2px var(--kb-primary); }

/* Panel keranjang (hanya desktop) */
.kb-cartpanel { display: none; }

/* ---------- Tablet: grid 2 kolom ---------- */
@media (min-width: 720px) {
	.kb-app { max-width: 820px; }
	.kb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.kb-grid .kb-product { margin: 0; height: 100%; }
	.kb-cartbar { max-width: 520px; }
}

/* ---------- Desktop: menu + keranjang di samping ---------- */
@media (min-width: 1024px) {
	body.kb-store { background: var(--kb-bg); }
	.kb-app { max-width: 1200px; padding: 24px 24px 48px; background: transparent; }
	.kb-hero { height: 220px; border-radius: 24px; overflow: hidden; }
	.kb-hero.has-banner { height: 280px; }
	.kb-profile {
		margin: -56px 32px 0; padding: 20px 24px 20px 136px; text-align: left; min-height: 96px;
		display: flex; flex-direction: column; justify-content: center;
	}
	.kb-logo { left: 24px; top: -28px; transform: none; width: 96px; height: 96px; font-size: 38px; }
	.kb-profile h1 { font-size: 26px; }
	.kb-meta { display: flex; gap: 18px; flex-wrap: wrap; }
	.kb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; margin-top: 8px; }
	.kb-sticky { padding: 18px 0 8px; }
	.kb-menu { padding: 0; }
	.kb-group h2 { font-size: 19px; margin: 22px 0 12px; }
	.kb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.kb-product { padding: 14px; border: 1px solid var(--kb-line); transition: box-shadow .15s, transform .15s; }
	.kb-product:hover { box-shadow: 0 10px 30px rgba(0,0,0,.07); transform: translateY(-1px); }
	.kb-product-media { width: 120px; }
	.kb-product-media img, .kb-noimg { width: 120px; height: 120px; }

	.kb-cartpanel {
		display: block; position: sticky; top: 24px; margin-top: 18px;
		background: var(--kb-surface); border: 1px solid var(--kb-line); border-radius: 20px;
		padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.05);
		max-height: calc(100vh - 48px); overflow-y: auto;
	}
	.kb-cartpanel h2 { margin: 0 0 4px; font-size: 18px; }
	.kb-cartpanel .kb-empty { padding: 28px 0; }
	.kb-cartbar { display: none !important; }
	.kb-foot { padding-top: 40px; }

	/* Sheet menjadi modal di tengah */
	.kb-sheet-panel {
		top: 50%; bottom: auto; transform: translate(-50%, -50%);
		border-radius: 24px; max-height: 86vh; padding-bottom: 20px;
		animation: kb-pop .18s ease-out;
	}
	@keyframes kb-pop { from { transform: translate(-50%, -48%); opacity: .4; } }
}
@media (min-width: 1280px) {
	.kb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.kb-grid .kb-product { flex-direction: column-reverse; justify-content: flex-end; }
	.kb-grid .kb-product-media { width: 100%; }
	.kb-grid .kb-product-media img, .kb-grid .kb-noimg { width: 100%; height: auto; aspect-ratio: 4 / 3; }
}

/* Halaman toko tidak aktif & landing platform */
.kb-center { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.kb-center .kb-card-pub { background: #fff; border-radius: 20px; padding: 32px 24px; max-width: 420px; box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.kb-center h1 { font-size: 22px; margin: 12px 0 6px; }
.kb-center p { color: var(--kb-muted); margin: 0; }
.kb-center .kb-emoji { font-size: 44px; }

/* ---------- Jam buka, pengiriman, voucher, rincian ---------- */
.kb-open-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 2px; vertical-align: 1px; background: var(--kb-ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kb-ok) 20%, transparent); }
.kb-open-dot.is-closed { background: var(--kb-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--kb-danger) 20%, transparent); }
.kb-status-link { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 600; color: var(--kb-primary); text-decoration: none; }
.kb-closed { margin: 12px 16px 0; padding: 12px 14px; border-radius: 14px; background: #fdecea; color: #7b241c; font-size: 13px; display: flex; flex-direction: column; gap: 2px; }
.kb-closed strong { font-size: 14px; }
form[data-kb-step] select {
	width: 100%; border: 1px solid var(--kb-line); border-radius: 12px; padding: 10px 12px; background: #fff; font: inherit;
}
.kb-seg { border: 0; padding: 0; margin: 4px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kb-seg legend { font-weight: 600; font-size: 13px; margin-bottom: 6px; padding: 0; }
form[data-kb-step] .kb-seg label { margin: 0; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--kb-line); border-radius: 12px; padding: 10px; cursor: pointer; font-size: 14px; }
.kb-seg label:has(input:checked) { border-color: var(--kb-primary); background: color-mix(in srgb, var(--kb-primary) 7%, #fff); color: var(--kb-primary); }
.kb-seg input { accent-color: var(--kb-primary); }
.kb-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
	background: #fff; color: var(--kb-text); border: 1px solid var(--kb-line); border-radius: 999px; padding: 10px 16px; font-weight: 600; cursor: pointer;
}
.kb-btn-ghost:hover { border-color: var(--kb-text); }
.kb-btn-ghost.kb-btn-block { margin-top: 10px; padding: 13px 16px; }
.kb-geo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.kb-voucher { margin-top: 4px; }
.kb-voucher-row { display: flex; gap: 8px; }
.kb-voucher-row input { flex: 1; text-transform: uppercase; }
.kb-voucher-msg { margin: 6px 0 0; font-size: 13px; }
.kb-voucher-msg.is-ok { color: var(--kb-ok); }
.kb-voucher-msg.is-error { color: var(--kb-danger); }
.kb-breakdown { margin: 16px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--kb-line); font-size: 14px; }
.kb-breakdown:empty { display: none; }
.kb-breakdown > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.kb-breakdown dt { color: var(--kb-muted); }
.kb-breakdown dd { margin: 0; font-weight: 600; text-align: right; }
.kb-breakdown-total { border-top: 1px solid var(--kb-line); margin-top: 6px; padding-top: 8px !important; font-size: 16px; }
.kb-breakdown-total dt { color: var(--kb-text); font-weight: 700; }
[data-kb-step="done"] .kb-breakdown { text-align: left; margin: 12px 0; }

/* ---------- Pasang aplikasi (PWA) ---------- */
.kb-install { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 14px; background: var(--kb-surface); border: 1px solid var(--kb-line); border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.05); }
.kb-install-text { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 13px; }
.kb-install-text span { color: var(--kb-muted); }
.kb-install-btn { border: 0; background: var(--kb-primary); color: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.kb-install-close { border: 0; background: none; font-size: 22px; line-height: 1; color: var(--kb-muted); cursor: pointer; padding: 0 2px; }

/* ---------- Halaman status pesanan ---------- */
.kb-status-app { padding-bottom: 40px; }
.kb-status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--kb-surface); border-bottom: 1px solid var(--kb-line); position: sticky; top: 0; z-index: 5; }
.kb-status-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.kb-status-logo { width: 36px; height: 36px; border-radius: 10px; background: var(--kb-primary); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.kb-status-logo img { width: 100%; height: 100%; object-fit: cover; }
.kb-status-back { font-size: 13px; font-weight: 700; color: var(--kb-primary); text-decoration: none; }
.kb-status-main { padding: 16px; }
.kb-status-main h1 { font-size: 22px; margin: 6px 0 14px; }
.kb-card { background: var(--kb-surface); border-radius: var(--kb-radius); padding: 18px; box-shadow: 0 6px 24px rgba(0,0,0,.05); margin-bottom: 14px; }
.kb-card h2 { font-size: 15px; margin: 0 0 10px; }
.kb-status-form label { display: block; font-weight: 600; font-size: 13px; margin: 0 0 4px; }
.kb-status-form input { width: 100%; border: 1px solid var(--kb-line); border-radius: 12px; padding: 11px 12px; margin-bottom: 12px; font: inherit; }
.kb-status-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kb-status-top > div { display: flex; flex-direction: column; }
.kb-status-code { font-size: 18px; letter-spacing: .02em; }
.kb-status-badge { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #fff4d6; color: #8a5a00; }
.kb-status-badge.is-diproses { background: #e3efff; color: #1d4f9c; }
.kb-status-badge.is-selesai { background: #e0f4e8; color: #1f6b3b; }
.kb-status-badge.is-batal { background: #fdecea; color: #7b241c; }
.kb-status-cancel { background: #fdecea; color: #7b241c; padding: 10px 12px; border-radius: 12px; font-size: 14px; }
.kb-timeline { list-style: none; margin: 18px 0 8px; padding: 0; }
.kb-timeline li { position: relative; padding: 0 0 18px 30px; color: var(--kb-muted); }
.kb-timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--kb-line); background: #fff; box-sizing: border-box; }
.kb-timeline li::after { content: ""; position: absolute; left: 7px; top: 20px; bottom: 2px; width: 2px; background: var(--kb-line); }
.kb-timeline li:last-child { padding-bottom: 0; }
.kb-timeline li:last-child::after { display: none; }
.kb-timeline strong { display: block; color: var(--kb-text); font-size: 14px; }
.kb-timeline span { font-size: 13px; }
.kb-timeline li.is-done::before { background: var(--kb-ok); border-color: var(--kb-ok); }
.kb-timeline li.is-done::after { background: var(--kb-ok); }
.kb-timeline li.is-current::before { border-color: var(--kb-primary); background: var(--kb-primary); box-shadow: 0 0 0 5px color-mix(in srgb, var(--kb-primary) 20%, transparent); animation: kb-pulse 1.8s ease-in-out infinite; }
@keyframes kb-pulse { 50% { box-shadow: 0 0 0 9px color-mix(in srgb, var(--kb-primary) 8%, transparent); } }
.kb-status-items { border-top: 1px solid var(--kb-line); margin-top: 16px; padding-top: 10px; }
.kb-status-item { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 4px 0; }
.kb-status-item em { color: var(--kb-muted); font-style: normal; }
.kb-status-meta { margin: 12px 0; }
.kb-status-auto { text-align: center; margin: 10px 0 0; font-size: 12px; }
.kb-myorders { display: flex; flex-direction: column; }
.kb-myorder { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--kb-line); text-decoration: none; color: inherit; font-size: 14px; }
.kb-myorder span { color: var(--kb-muted); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .kb-timeline li.is-current::before { animation: none; } }
@media (min-width: 1024px) {
	.kb-status-app { max-width: 600px; padding: 24px 0 48px; }
	.kb-status-head { border-radius: 16px; border: 1px solid var(--kb-line); }
	.kb-closed, .kb-app > .kb-install { margin: 16px 32px 0; }
}

/* Rating */
.kb-product-rating { display: inline-block; margin: 2px 0 4px; font-size: 12.5px; font-weight: 700; color: #b45309; }
.kb-product-rating em { font-style: normal; font-weight: 500; color: #8a8f98; }
.kb-meta-rating strong { color: #f59e0b; }

/* Rating pembeli di halaman status */
.kb-btn-ghost.kb-btn-block + .kb-btn-ghost.kb-btn-block { margin-top: 8px; }
.kb-review-card { margin-top: 14px; }
.kb-review-card h2 { font-size: 17px; margin: 0 0 4px; }
.kb-review-form { margin-top: 10px; }
.kb-review-form label[for] { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 4px; }
.kb-review-form textarea { width: 100%; border: 1px solid var(--kb-line); border-radius: 12px; padding: 10px 12px; font: inherit; margin-bottom: 12px; }
.kb-rate { border: 0; padding: 8px 0; margin: 0; border-bottom: 1px solid var(--kb-line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kb-rate legend { float: left; font-size: 14px; font-weight: 600; padding: 0; max-width: 60%; }
.kb-rate legend em { color: var(--kb-danger); font-style: normal; }
.kb-rate-stars { display: inline-flex; flex-direction: row-reverse; margin-left: auto; }
.kb-rate-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kb-review-form .kb-rate-stars label { font-size: 30px; line-height: 1; color: #d1d5db; cursor: pointer; padding: 0 2px; margin: 0 !important; }
.kb-review-form .kb-rate-stars input:checked ~ label,
.kb-review-form .kb-rate-stars label:hover,
.kb-review-form .kb-rate-stars label:hover ~ label { color: #f59e0b; }
.kb-rate-stars input:focus-visible + label { outline: 2px solid var(--kb-primary); border-radius: 4px; }
.kb-review-done { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: 14px; }
.kb-stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.kb-review-comment { margin: 2px 0 8px; font-size: 14px; }
.kb-review-thanks { background: #ecfdf3; color: #166534; border-radius: 12px; padding: 10px 12px; font-weight: 600; }

/* Detail produk */
.kb-product[data-product-id] { cursor: pointer; }
.kb-product[data-product-id]:focus-visible { outline: 2px solid var(--kb-primary); outline-offset: 2px; }
.kb-detail { display: grid; gap: 12px; }
.kb-det-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; background: #f3f4f6; }
.kb-det-photos { position: relative; }
.kb-det-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: 16px; scrollbar-width: none; }
.kb-det-track::-webkit-scrollbar { display: none; }
.kb-det-track .kb-det-img { flex: 0 0 100%; scroll-snap-align: center; }
.kb-det-dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 6px; pointer-events: none; }
.kb-det-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.6); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.kb-det-dots span.is-on { background: #fff; width: 18px; border-radius: 999px; }
.kb-det-img.kb-noimg { display: grid; place-items: center; font-size: 48px; font-weight: 800; color: var(--kb-muted); }
.kb-det-body h3 { margin: 0 0 4px; font-size: 20px; }
.kb-det-price { font-size: 18px; font-weight: 800; color: var(--kb-primary); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kb-det-rating { margin: 6px 0; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.kb-det-cat { display: inline-block; font-size: 12px; font-weight: 600; background: #f3f4f6; border-radius: 999px; padding: 3px 10px; margin: 2px 0 6px; }
.kb-det-desc { margin: 6px 0; font-size: 14.5px; line-height: 1.55; white-space: pre-line; }
.kb-det-body h4 { margin: 18px 0 6px; font-size: 15px; }
.kb-stars i { font-style: normal; color: #d1d5db; }
.kb-det-reviews { display: grid; gap: 8px; }
.kb-review { border: 1px solid var(--kb-line); border-radius: 12px; padding: 10px 12px; }
.kb-review-top { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.kb-review p { margin: 4px 0; font-size: 14px; }
.kb-review small { font-size: 12px; }
[data-kb-step="detail"] .kb-opt-foot .kb-btn { flex: 1; }

/* Mode tertanam di panel toko pada peta */
.kb-embed .kb-hero, .kb-embed .kb-home-link, .kb-embed .kb-foot, .kb-embed [data-kb-install], .kb-embed .kb-profile .kb-logo, .kb-embed .kb-profile h1, .kb-embed .kb-tagline { display: none !important; }
.kb-embed .kb-profile { padding-top: 12px; margin-top: 0; }
.kb-embed .kb-meta { margin-top: 0; }

/* Jadwal ambil/antar */
.kb-schedule { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.kb-schedule > div { min-width: 0; }
.kb-schedule input { width: 100%; box-sizing: border-box; }
.kb-schedule-help { grid-column: 1 / -1; font-size: 12px; margin: 4px 0 0; }

/* Metode yang dimatikan tidak tampil (label memakai display !important). */
.kb-pay label[hidden] { display: none !important; }

/* Transfer bank & unduh QRIS */
.kb-qris [data-kb-qris-download] { margin-top: 10px; }
.kb-bank dl { margin: 8px 0 0; display: grid; gap: 6px; text-align: left; }
.kb-bank dl > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.kb-bank dt { color: var(--kb-muted); }
.kb-bank dd { margin: 0; text-align: right; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.kb-copy { border: 1px solid var(--kb-primary); color: var(--kb-primary); background: #fff; border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.kb-copy.is-done { background: var(--kb-primary); color: #fff; }
.kb-done-schedule { background: var(--kb-bg); border-radius: var(--kb-radius); padding: 10px 14px; margin: 10px 0; }
