/* DIANARAA.co · gaya laman kedai */
:root {
  --rose: #A3415D;
  --rose-dark: #7E2E46;
  --rose-soft: #F7E1E0;
  --rose-tint: #FDF3F4;
  --blush: #FBF5F4;
  --ink: #22181B;
  --text-2: #5E4F54;
  --muted: #6E6064;
  --strike: #857679;
  --line: #EFE4E3;
  --line-strong: #DCCFD1;
  --field: #D3C5C8;
  --gold: #B7791F;
  --ok: #1A5C46;
  --ok-soft: #DDF0E8;
  --warn: #7A4A09;
  --warn-soft: #FBEBD4;
  --danger: #A32D2D;
  --danger-soft: #FCEBEB;
  --white: #FFFFFF;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 10px 30px rgba(34, 24, 27, 0.12);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Outfit', 'DM Sans', system-ui, sans-serif;
  --header-h: 116px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose); }
a:hover { color: var(--rose-dark); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(163, 65, 93, 0.45); outline-offset: 2px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------- Header ---------- */
.demo-banner { background: var(--warn-soft); color: var(--warn); font-size: 13px; text-align: center; padding: 8px 16px; }
.demo-banner code { font-size: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 10px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-size: 21px; font-weight: 700; letter-spacing: -0.2px; white-space: nowrap; }
.brand-name span { color: var(--rose); }
.brand:hover { color: var(--ink); }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 12px; background: var(--blush); border: 0; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); flex-shrink: 0; text-decoration: none; }
.icon-btn:hover { background: var(--rose-soft); color: var(--ink); }
.icon-btn svg, .icon-btn span[data-icon] svg { width: 22px; height: 22px; }
.icon-btn span[data-icon] { display: inline-flex; }
.badge { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--rose); color: var(--white); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tabs-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabs a { display: flex; align-items: center; justify-content: center; height: 46px; text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; border-bottom: 2.5px solid transparent; }
.tabs a:hover { color: var(--ink); }
.tabs a.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--rose); }

/* ---------- Umum ---------- */
main { min-height: 60vh; padding-top: 16px; padding-bottom: 48px; outline: none; }
main:focus, main:focus-visible { outline: none; }
.section { margin-top: 28px; }
.section:first-child { margin-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.section-head h2 { font-size: 21px; font-weight: 700; }
.section-head a { font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.page-title { font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.page-sub { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.muted { color: var(--muted); }
.back-link { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 700; text-decoration: none; font-size: 15px; }
.back-link svg { width: 20px; height: 20px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 0; background: var(--rose); color: var(--white); font-weight: 700; font-size: 16px; text-decoration: none; transition: background 0.15s; }
.btn:hover { background: var(--rose-dark); color: var(--white); }
.btn:disabled, .btn[aria-disabled="true"] { background: #C9B8BC; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }
.btn-block { width: 100%; }
.btn-outline { background: var(--white); color: var(--rose); border: 1.5px solid var(--rose); }
.btn-outline:hover { background: var(--rose-tint); color: var(--rose-dark); }
.btn-outline:disabled { background: var(--white); color: #C9B8BC; border-color: #E3D6D8; }
.btn-light { background: var(--white); color: var(--rose-dark); }
.btn-light:hover { background: var(--rose-tint); color: var(--rose-dark); }
.btn-sm { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn-icon { width: 48px; padding: 0; flex-shrink: 0; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 1px solid var(--line); background: var(--white); color: var(--ink); font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; text-decoration: none; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 700; }

.price { font-weight: 700; color: var(--rose); }
.was { color: var(--strike); text-decoration: line-through; font-size: 12px; font-weight: 400; }
.off { padding: 2px 6px; border-radius: 6px; background: var(--rose); color: var(--white); font-size: 12px; font-weight: 700; }
.pill { display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--rose-soft); color: var(--rose-dark); }
.pill-dark { background: var(--ink); color: var(--white); }
.pill-gray { background: #EEEAEB; color: var(--text-2); }
.meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.meta svg { width: 14px; height: 14px; color: var(--gold); }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.card-soft { background: var(--blush); border-radius: var(--radius-lg); padding: 16px; }
.card h2 { font-size: 18px; font-weight: 700; font-family: var(--font); margin-bottom: 12px; }

.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 80px 0; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--rose-soft); border-top-color: var(--rose); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 48px 16px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty h1, .empty h2 { font-size: 22px; }
.empty p { color: var(--muted); max-width: 360px; }
.alert { border-radius: var(--radius); padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }

/* ---------- Banner & baucar ---------- */
.hero { display: flex; border-radius: var(--radius-lg); background: var(--rose-soft); overflow: hidden; min-height: 230px; }
.hero-body { flex: 1; padding: 22px 8px 22px 20px; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.hero-label { font-size: 12px; font-weight: 700; color: var(--rose-dark); }
.hero h1 { font-size: 26px; font-weight: 700; }
.hero p { font-size: 14px; color: var(--text-2); }
.hero .btn { align-self: flex-start; margin-top: 6px; min-height: 44px; font-size: 14px; padding: 0 16px; border-radius: 12px; }
.hero-img { width: 42%; max-width: 420px; object-fit: cover; }

.vouchers { display: flex; gap: 10px; overflow-x: auto; padding: 16px 0 2px; scrollbar-width: none; }
.vouchers::-webkit-scrollbar { display: none; }
.voucher { flex-shrink: 0; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; border-radius: var(--radius); border: 1px dashed #D49AA9; background: var(--white); }
.voucher-text { display: flex; flex-direction: column; }
.voucher-text small { font-size: 12px; color: var(--muted); }
.voucher-text strong { font-family: var(--font-display); font-size: 18px; color: var(--rose); line-height: 1.2; }
.voucher button { min-height: 44px; padding: 0 12px; border-radius: 10px; border: 0; background: var(--rose-soft); color: var(--rose-dark); font-size: 13px; font-weight: 700; }
.voucher button:disabled { background: var(--ok-soft); color: var(--ok); cursor: default; }

/* ---------- Kad produk ---------- */
.top3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.top3 a { display: flex; flex-direction: column; gap: 5px; text-decoration: none; color: var(--ink); }
.top3 .thumb { position: relative; }
.top3 img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #F3EEEE; }
.rank { position: absolute; top: 0; left: 8px; width: 26px; height: 30px; border-radius: 0 0 8px 8px; background: var(--ink); color: var(--white); font-family: var(--font-display); font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; }
.rank-1 { background: var(--rose); }
.top3 .name { font-size: 13px; font-weight: 700; line-height: 1.3; }
.top3 .prices { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; }
.top3 .price { font-size: 15px; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
.pcard { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pcard .thumb { position: relative; display: block; }
.pcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #F3EEEE; }
.pcard .tag { position: absolute; top: 10px; left: 10px; }
.pcard .soldout { position: absolute; inset: 0; border-radius: var(--radius); background: rgba(255, 255, 255, 0.6); display: flex; align-items: center; justify-content: center; }
.pcard .name { font-size: 14px; line-height: 1.3; font-weight: 700; color: var(--ink); text-decoration: none; }
.pcard .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pcard .prices { display: flex; flex-direction: column; }
.pcard .price { font-size: 16px; }
.round-add { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--rose-soft); color: var(--rose); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.round-add:hover { background: #F2CFD1; }
.round-add:disabled { background: #F1ECED; color: #C9B8BC; cursor: not-allowed; }
.round-add svg { width: 20px; height: 20px; }

.new-card { display: flex; gap: 14px; padding: 12px; border-radius: 16px; border: 1px solid var(--line); }
.new-card img { width: 112px; height: 112px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.new-card .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.new-card .name { font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none; }
.new-card .prices { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.new-card .price { font-size: 18px; }
.new-card .actions { display: flex; gap: 8px; margin-top: 2px; }
.new-list { display: grid; gap: 12px; }

.prow-list { list-style: none; margin: 0; padding: 0; display: grid; }
.prow { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.prow:first-child { border-top: 0; }
.prow > a { flex-shrink: 0; }
.prow img { width: 124px; height: 124px; object-fit: cover; border-radius: var(--radius); background: #F3EEEE; }
.prow .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.prow .name { font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--ink); text-decoration: none; }
.prow .prices { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.prow .price { font-size: 18px; }
.prow .actions { display: flex; gap: 8px; }
.prow .actions .btn { flex: 1; }

.follow { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 18px; background: var(--ink); color: var(--white); }
.follow img { width: 52px; height: 52px; border-radius: 26px; flex-shrink: 0; }
.follow .text { flex: 1; min-width: 0; }
.follow .text strong { display: block; font-size: 15px; }
.follow .text span { font-size: 13px; color: #D9CFD1; }

.searchbox { position: relative; margin-bottom: 12px; }
.searchbox svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.searchbox input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--blush); padding: 0 16px 0 44px; font-size: 16px; }
.toolbar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.voucher-strip { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.voucher-strip .count { margin-left: auto; font-size: 13px; color: var(--muted); }

.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-list a { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.cat-list img { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.cat-list .label { flex: 1; font-size: 16px; font-weight: 700; }
.cat-list .count { font-size: 14px; color: var(--muted); }
.cat-list svg { width: 20px; height: 20px; color: var(--muted); }

/* ---------- Butiran produk ---------- */
.detail { display: grid; gap: 20px; }
.gallery { display: flex; flex-direction: column; gap: 10px; margin: 0 -16px; }
.gallery-main { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #F3EEEE; }
.thumbs { display: flex; gap: 8px; padding: 0 16px; overflow-x: auto; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 10px; background: none; flex-shrink: 0; }
.thumbs button.active { border-color: var(--rose); }
.thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.pinfo { display: flex; flex-direction: column; gap: 12px; }
.pinfo .prices { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pinfo .price { font-family: var(--font-display); font-size: 30px; }
.pinfo .was { font-size: 15px; }
.pinfo .off { font-size: 13px; padding: 3px 8px; }
.pinfo h1 { font-size: 26px; }
.pinfo .meta { font-size: 14px; }
.pinfo .meta svg { width: 16px; height: 16px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 4px 0; }
.voucher-note { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--blush); flex-wrap: wrap; font-size: 13px; font-weight: 700; }
.voucher-note span.v { padding: 4px 8px; border-radius: 6px; border: 1px dashed #D49AA9; color: var(--rose-dark); font-size: 12px; }
.field-label { font-size: 15px; font-weight: 700; margin-bottom: 10px; display: block; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }
.sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.size-btn { min-width: 56px; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--white); font-size: 15px; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.size-btn small { font-size: 11px; color: var(--muted); }
.size-btn.active { border: 1.5px solid var(--rose); background: var(--rose-soft); color: var(--rose-dark); font-weight: 700; }
.size-btn:disabled { color: #B9ACAF; background: #F7F4F4; text-decoration: line-through; cursor: not-allowed; }
.stock-note { font-size: 13px; color: var(--warn); font-weight: 700; margin-top: 8px; }
.qty-row { display: flex; justify-content: space-between; align-items: center; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: 12px; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; }
.stepper button:disabled { color: #C9B8BC; cursor: not-allowed; }
.stepper output, .stepper span { min-width: 32px; text-align: center; font-weight: 700; }
.desc { white-space: pre-line; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.rating-box { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--blush); }
.rating-box strong { font-family: var(--font-display); font-size: 36px; }
.stars { display: inline-flex; color: var(--gold); }
.stars svg { width: 16px; height: 16px; }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--white); border-top: 1px solid var(--line); padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; }
.buybar .total { display: flex; flex-direction: column; min-width: 92px; }
.buybar .total small { font-size: 12px; color: var(--muted); }
.buybar .total strong { font-size: 18px; }
.buybar .btn { flex: 1; }
.buybar .btn-icon { flex: 0 0 52px; width: 52px; }
.has-buybar main { padding-bottom: 120px; }

/* ---------- Troli & checkout ---------- */
.steps { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.steps li { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.steps li::before { content: ''; height: 4px; border-radius: 2px; background: var(--line); }
.steps li.done { color: var(--rose); font-weight: 700; }
.steps li.done::before, .steps li.current::before { background: var(--rose); }
.steps li.current { color: var(--ink); font-weight: 700; }
.two-col { display: grid; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.citems { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.citem { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); }
.citem img { width: 80px; height: 80px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.citem .info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.citem .name { font-weight: 700; color: var(--ink); text-decoration: none; }
.citem .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; flex-wrap: wrap; }
.citem .warn { font-size: 13px; color: var(--danger); font-weight: 700; }
.remove-btn { width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.remove-btn:hover { background: var(--blush); color: var(--danger); }
.remove-btn svg { width: 20px; height: 20px; }
.vlist { display: flex; flex-direction: column; gap: 8px; }
.vopt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px dashed #D49AA9; background: var(--white); text-align: left; width: 100%; }
.vopt.active { border: 1.5px solid var(--rose); background: var(--rose-tint); }
.vopt:disabled { opacity: 0.6; cursor: not-allowed; }
.vopt .vicon { color: var(--rose); display: inline-flex; }
.vopt .vicon svg { width: 24px; height: 24px; }
.vopt .vtext { flex: 1; display: flex; flex-direction: column; }
.vopt .vtext strong { color: var(--rose-dark); }
.vopt .vtext small { font-size: 13px; color: var(--muted); }
.vopt .vstate { font-size: 13px; font-weight: 700; color: var(--rose); }
.summary { display: flex; flex-direction: column; gap: 10px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum-row span:first-child { color: var(--muted); }
.sum-row.total { font-size: 18px; font-weight: 700; }
.sum-row.total span:first-child { color: var(--ink); }
.sum-row .neg { color: var(--rose); font-weight: 700; }
.sum-items .sum-row span:first-child { color: var(--ink); }

.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--field); background: var(--white); padding: 0 14px; font-size: 16px; }
.field textarea { padding: 12px 14px; line-height: 1.4; resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--rose); outline: 3px solid rgba(163, 65, 93, 0.2); outline-offset: 0; }
.err { font-size: 13px; color: var(--danger); font-weight: 700; }
.actions-row { display: flex; gap: 8px; flex-wrap: wrap; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ship-info { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border-radius: 14px; border: 1.5px solid var(--rose); background: var(--rose-tint); }
.ship-info strong { display: block; }
.ship-info small { color: var(--muted); font-size: 13px; }
.ship-info .fee { font-weight: 700; color: var(--rose); white-space: nowrap; }
.pay { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.qr { width: 200px; height: 200px; object-fit: contain; border-radius: 16px; border: 1px solid var(--line); background: var(--white); padding: 8px; }
.or { align-self: stretch; display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.bank { align-self: stretch; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.bank-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.bank-row > span:first-child { color: var(--muted); }
.bank-row strong { text-align: right; overflow-wrap: anywhere; }
.copy-btn { min-height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--white); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.copy-btn svg { width: 16px; height: 16px; }
.upload { align-self: stretch; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 16px; border: 1.5px dashed #D49AA9; border-radius: 14px; background: #FDF8F8; cursor: pointer; text-align: center; }
.upload svg { width: 28px; height: 28px; color: var(--rose); }
.upload strong { color: var(--rose-dark); }
.upload small { color: var(--muted); font-size: 13px; }
.upload.has-file { border-style: solid; border-color: var(--ok); background: var(--ok-soft); }
.upload.has-file svg, .upload.has-file strong { color: var(--ok); }
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.invalid-box { border-color: var(--danger) !important; }
.pay-wrap { position: relative; }

/* ---------- Pesanan berjaya / status ---------- */
.success-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 8px 4px; }
.check-circle { width: 84px; height: 84px; border-radius: 42px; background: var(--rose); color: var(--white); display: flex; align-items: center; justify-content: center; }
.check-circle svg { width: 42px; height: 42px; }
.check-circle.cancel { background: var(--muted); }
.success-head h1 { font-size: 28px; }
.success-head p { color: var(--muted); max-width: 420px; }
.order-no { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: flex; gap: 12px; }
.timeline .dot-col { display: flex; flex-direction: column; align-items: center; }
.timeline .dot { width: 24px; height: 24px; border-radius: 12px; border: 2.5px solid var(--line-strong); background: var(--white); display: flex; align-items: center; justify-content: center; color: var(--white); flex-shrink: 0; }
.timeline .dot svg { width: 14px; height: 14px; }
.timeline .bar { width: 2px; flex: 1; min-height: 26px; background: var(--line); }
.timeline li:last-child .bar { display: none; }
.timeline .txt { display: flex; flex-direction: column; gap: 2px; padding-bottom: 14px; }
.timeline .txt strong { font-size: 15px; }
.timeline .txt small { font-size: 13px; color: var(--muted); }
.timeline li.done .dot { background: var(--rose); border-color: var(--rose); }
.timeline li.done .bar { background: var(--rose); }
.timeline li.current .dot { background: var(--rose-soft); border-color: var(--rose); }
.timeline li.current .txt small { color: var(--rose-dark); }
.timeline li.todo .txt strong { color: var(--muted); font-weight: 500; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 12px; margin-bottom: 12px; flex-wrap: wrap; }
.invoice-head .pill { white-space: nowrap; }
.invoice-head .who { display: flex; align-items: center; gap: 10px; }
.invoice-head img { width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--line); }
.invoice-head h2 { margin: 0; font-size: 17px; }
.invoice-head small { color: var(--muted); font-size: 13px; }

/* ---------- Footer, toast, notifikasi ---------- */
.site-footer { background: var(--blush); border-top: 1px solid var(--line); padding: 28px 0 32px; }
.footer-row { display: flex; flex-direction: column; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 48px; height: 48px; border-radius: 24px; border: 1px solid var(--line); }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; }
.footer-slogan { font-size: 13px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; text-decoration: none; }
.copyright { font-size: 13px; color: var(--muted); }
.has-buybar .site-footer { padding-bottom: 120px; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; background: var(--ink); color: var(--white); padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.proof { position: fixed; left: 16px; right: 16px; bottom: 20px; z-index: 40; display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 380px; animation: rise 0.3s ease-out; }
.proof img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.proof p { font-size: 13px; line-height: 1.35; }
.proof small { font-size: 12px; color: var(--muted); }
.has-buybar .proof { bottom: 96px; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .proof { animation: none; } .spinner { animation-duration: 2s; } }

/* ---------- Skrin lebih besar ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero { min-height: 280px; }
  .hero-body { padding: 32px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 16px; }
  .top3 { gap: 16px; }
  .top3 .name { font-size: 15px; }
  .new-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .prow-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .prow:nth-child(2) { border-top: 0; }
  .footer-row { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .copyright { width: 100%; }
  .gallery { margin: 0; }
  .gallery-main { border-radius: var(--radius-lg); }
  .thumbs { padding: 0; }
}

@media (min-width: 960px) {
  :root { --header-h: 124px; }
  main { padding-top: 24px; }
  .tabs-row { display: flex; gap: 8px; }
  .tabs a { padding: 0 20px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
  .hero { min-height: 340px; }
  .hero-body { padding: 48px; gap: 12px; }
  .hero h1 { font-size: 44px; }
  .top3 { gap: 24px; }
  .section { margin-top: 40px; }
  .section-head h2 { font-size: 26px; }
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
  .gallery { position: sticky; top: calc(var(--header-h) + 16px); }
  .buybar { position: static; padding: 0; border: 0; background: none; margin-top: 4px; }
  .has-buybar main { padding-bottom: 48px; }
  .has-buybar .site-footer { padding-bottom: 32px; }
  .has-buybar .proof { bottom: 20px; }
  .toast { bottom: 32px; }
  .two-col { grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: 24px; }
  .sticky-col { position: sticky; top: calc(var(--header-h) + 16px); }
  .narrow { max-width: 640px; margin: 0 auto; }
}

/* ---------- Cetak invois ---------- */
@media print {
  .site-header, .site-footer, .demo-banner, .toast, .proof, .no-print, .steps { display: none !important; }
  body { background: #fff; }
  main { padding: 0; }
  .card, .card-soft { border: 1px solid #ddd; break-inside: avoid; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
