/* =========================================================
   KodeLapak — gaya utama
   Identitas: bingkai perangkat (ponsel / jendela / browser)
   sebagai penanda platform di setiap produk.
   ========================================================= */
:root {
  --ink: #16203B;
  --ink-2: #39446A;
  --muted: #5E6886;
  --paper: #EEF1F7;
  --surface: #FFFFFF;
  --surface-2: #F6F8FB;
  --line: #D9DFEA;
  --cobalt: #2348D9;
  --cobalt-d: #1A37AC;
  --cobalt-soft: #E3E9FD;
  --amber: #F2A71B;
  --android: #12925A;
  --desktop: #2348D9;
  --web: #7A3BD1;
  --danger: #C23B3B;
  --ok: #12925A;
  --r-lg: 18px;
  --r: 11px;
  --r-sm: 8px;
  --wrap: 1200px;
  --shadow: 0 1px 2px rgba(22, 32, 59, .06), 0 8px 24px -12px rgba(22, 32, 59, .18);
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #E8ECF6; --ink-2: #C3CAE0; --muted: #94A0BF; --paper: #0F1426; --surface: #171E35;
    --surface-2: #1D2541; --line: #2A3456; --cobalt: #6F8BFF; --cobalt-d: #8FA4FF; --cobalt-soft: #222C55;
    --android: #3CC487; --desktop: #6F8BFF; --web: #B07CF2; --danger: #FF7B7B; --ok: #3CC487;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -14px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); padding-bottom: env(safe-area-inset-bottom, 0); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cobalt); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; }
h2 { font-size: clamp(1.2rem, 1.05rem + .6vw, 1.45rem); font-weight: 750; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--surface); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.page { padding-top: 24px; padding-bottom: 56px; }
.narrow { max-width: 760px; }
.section { padding-top: 36px; }
.ic { flex: none; }
.print-only { display: none; }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: var(--r); border: 1.5px solid transparent; font: inherit; font-weight: 650; font-size: .95rem; text-decoration: none; cursor: pointer; background: var(--surface-2); color: var(--ink); transition: background .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-d); }
@media (prefers-color-scheme: dark) { .btn-primary { color: #0F1426; } }
.btn-outline { background: transparent; border-color: var(--cobalt); color: var(--cobalt); }
.btn-outline:hover { background: var(--cobalt-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { min-height: 50px; font-size: 1rem; padding: 0 22px; }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-icon { width: 40px; min-height: 40px; padding: 0; border-radius: 50%; background: var(--cobalt-soft); color: var(--cobalt); }
.btn-icon:hover { background: var(--cobalt); color: #fff; }
.danger { color: var(--danger) !important; }
.linkbtn { background: none; border: 0; padding: 4px 0; font: inherit; font-size: .875rem; color: var(--cobalt); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.iconbtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); background: transparent; border: 0; cursor: pointer; position: relative; text-decoration: none; }
.iconbtn:hover { background: var(--surface-2); }

/* ---------- Header ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: -.02em; flex: none; }
.logo-mark { display: inline-flex; align-items: flex-end; gap: 2px; height: 22px; }
.logo-mark i { display: block; width: 7px; border-radius: 2px; }
.logo-mark i:nth-child(1) { height: 22px; background: var(--android); border-radius: 3px; }
.logo-mark i:nth-child(2) { height: 15px; width: 11px; background: var(--desktop); }
.logo-mark i:nth-child(3) { height: 18px; width: 9px; background: var(--web); }
.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 0 14px; color: var(--muted); }
.search:focus-within { border-color: var(--cobalt); background: var(--surface); }
.search input { flex: 1; border: 0; background: transparent; font: inherit; font-size: .95rem; height: 40px; color: var(--ink); outline: 0; min-width: 0; }
.mainnav { display: flex; gap: 4px; }
.mainnav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .95rem; }
.mainnav a:hover, .mainnav a.on { background: var(--surface-2); color: var(--ink); }
.actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--amber); color: #2A1A00; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.flash-wrap { padding-top: 16px; }

/* ---------- Alert & badge ---------- */
.alert { padding: 12px 16px; border-radius: var(--r); margin-bottom: 10px; font-weight: 550; border: 1px solid; }
.alert-success { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.alert-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.alert-info { background: var(--cobalt-soft); border-color: color-mix(in srgb, var(--cobalt) 30%, transparent); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.badge-warn { background: color-mix(in srgb, var(--amber) 22%, transparent); color: #8A5A00; }
@media (prefers-color-scheme: dark) { .badge-warn { color: var(--amber); } }
.badge-info { background: var(--cobalt-soft); color: var(--cobalt); }
.badge-muted { background: var(--surface-2); color: var(--muted); }

/* ---------- Chip platform ---------- */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 8px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none; }
.chip-android { color: var(--android); background: color-mix(in srgb, var(--android) 12%, transparent); }
.chip-desktop { color: var(--desktop); background: color-mix(in srgb, var(--desktop) 12%, transparent); }
.chip-web { color: var(--web); background: color-mix(in srgb, var(--web) 12%, transparent); }
.chip-plain { color: var(--ink-2); background: var(--surface-2); margin-left: 4px; }

/* =========================================================
   BINGKAI PERANGKAT — elemen khas KodeLapak
   ========================================================= */
.frame { --pc: var(--web); position: relative; display: flex; flex-direction: column; aspect-ratio: 16 / 10; width: 100%; background: color-mix(in srgb, var(--pc) 9%, var(--surface-2)); overflow: hidden; }
.frame-android { --pc: var(--android); align-items: center; justify-content: flex-end; }
.frame-desktop { --pc: var(--desktop); padding: 9% 7% 0; }
.frame-web { --pc: var(--web); padding: 9% 7% 0; }
.screen { position: relative; display: block; flex: 1; overflow: hidden; background: var(--surface); }
.screen img { width: 100%; height: 100%; object-fit: cover; }
/* ponsel: tegak, muncul dari bawah */
.frame-android .screen { flex: none; height: 90%; aspect-ratio: 9 / 17; border: 5px solid var(--ink); border-bottom: 0; border-radius: 22px 22px 0 0; }
.frame-android .screen::before { content: ""; position: absolute; z-index: 1; top: 6px; left: 50%; width: 26%; height: 6px; margin-left: -13%; border-radius: 6px; background: var(--ink); opacity: .85; }
/* jendela desktop & browser */
.frame .chrome { display: flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; background: var(--ink); border-radius: 9px 9px 0 0; }
.frame .chrome i { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.frame .chrome b { margin-left: 8px; flex: 1; max-width: 70%; height: 13px; border-radius: 7px; background: color-mix(in srgb, var(--surface) 20%, transparent); color: color-mix(in srgb, var(--surface) 75%, transparent); font-size: 8px; font-weight: 600; line-height: 13px; padding: 0 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame-desktop .screen, .frame-web .screen { border: 0; box-shadow: 0 -1px 0 var(--ink); }
.frame-desktop .chrome { justify-content: flex-end; }
/* seni sampul otomatis (jika belum ada gambar) */
.art { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: clamp(1.4rem, 4vw, 2.6rem); letter-spacing: -.04em; color: hsl(var(--h) 55% 30%);
  background:
    repeating-linear-gradient(0deg, hsl(var(--h) 60% 50% / .07) 0 1px, transparent 1px 14px),
    hsl(var(--h) 70% 92%); }
.frame-android .art { font-size: clamp(1rem, 3vw, 1.6rem); }
@media (prefers-color-scheme: dark) { .art { color: hsl(var(--h) 80% 82%); background: repeating-linear-gradient(0deg, hsl(var(--h) 60% 70% / .08) 0 1px, transparent 1px 14px), hsl(var(--h) 35% 22%); } .frame .chrome { background: #060A16; } .frame-android .screen { border-color: #060A16; } }

/* ---------- Hero ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.2vw, 3.3rem); line-height: 1.07; letter-spacing: -.035em; max-width: 15ch; }
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 54ch; }
.hero-search { margin-top: 26px; max-width: 560px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 14px; border-radius: 9px; font-weight: 650; font-size: .9rem; color: var(--ink-2); }
.seg input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg input:focus-visible + span { outline: 3px solid var(--cobalt); }
.hero-field { display: flex; gap: 8px; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 6px; }
.hero-field input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 1.05rem; padding: 0 10px; color: var(--ink); outline: 0; }
.showcase { position: relative; height: 380px; }
.showcase-item { position: absolute; display: block; text-decoration: none; color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface); border: 1px solid var(--line); }
.showcase-item .frame { aspect-ratio: 16 / 10; }
.showcase-cap { display: flex; justify-content: space-between; gap: 10px; padding: 9px 13px; font-size: .85rem; color: var(--muted); }
.showcase-cap b { color: var(--ink); }
.showcase-item.s0 { width: 52%; left: 0; top: 18%; z-index: 2; transform: rotate(-3deg); }
.showcase-item.s1 { width: 60%; right: 0; top: 0; }
.showcase-item.s2 { width: 56%; right: 6%; bottom: 0; z-index: 3; transform: rotate(2deg); }
.showcase-item.s0 .frame { aspect-ratio: 4 / 5; }
.showcase-item:hover { z-index: 4; }

/* ---------- Petak platform ---------- */
.platform-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--surface); border-radius: var(--r-lg); text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-left: 5px solid var(--pc); }
.tile span { display: flex; flex-direction: column; color: var(--muted); font-size: .9rem; line-height: 1.35; }
.tile b { color: var(--ink); font-size: 1.05rem; }
.tile svg { color: var(--pc); }
.tile-android { --pc: var(--android); } .tile-desktop { --pc: var(--desktop); } .tile-web { --pc: var(--web); }
.tile:hover { border-color: var(--pc); }

/* ---------- Grid kartu produk ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 650; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.card:hover { border-color: color-mix(in srgb, var(--cobalt) 45%, var(--line)); }
.card-cover { display: block; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.card-body .chip { align-self: flex-start; }
.card-title { margin: 2px 0 0; font-size: 1.02rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card form { position: relative; z-index: 1; }
.card-text { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.45; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 8px; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; line-height: 1.3; }
.price strong { font-size: 1.08rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.price s { color: var(--muted); font-size: .82rem; }
.price small { flex-basis: 100%; color: var(--muted); font-size: .78rem; }
.price-lg strong { font-size: 1.9rem; letter-spacing: -.02em; }
.save { background: color-mix(in srgb, var(--amber) 25%, transparent); color: #7A4F00; font-weight: 800; font-size: .8rem; padding: 2px 8px; border-radius: 6px; }
@media (prefers-color-scheme: dark) { .save { color: var(--amber); } }

/* ---------- Kategori ---------- */
.cat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cat-list li { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); margin: 0 -1px -1px 0; }
.cat-list a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 18px 20px; text-decoration: none; color: var(--ink); height: 100%; }
.cat-list a:hover { background: var(--surface-2); }
.cat-list span { grid-column: 1; color: var(--muted); font-size: .88rem; line-height: 1.4; }
.cat-list em { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-weight: 800; font-size: 1.4rem; color: var(--cobalt); font-variant-numeric: tabular-nums; }

/* ---------- Langkah & FAQ ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.steps li { counter-increment: s; padding: 4px 24px 4px 0; display: flex; flex-direction: column; color: var(--muted); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--surface); font-weight: 800; margin-bottom: 10px; }
.steps b { color: var(--ink); font-size: 1.05rem; }
.faq { max-width: 820px; padding-bottom: 20px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--cobalt); }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--ink-2); max-width: 70ch; }

/* ---------- Katalog ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.page-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; }
.page-head p { margin: 0; }
.catalog { display: grid; grid-template-columns: 250px 1fr; gap: 26px; align-items: start; }
.filters { position: sticky; top: 84px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 18px 18px; }
.filters summary { font-weight: 750; padding: 12px 0; cursor: pointer; }
.filter-form { display: flex; flex-direction: column; gap: 14px; }
.filter-form .btn { margin-top: 2px; }
.radio { display: flex; gap: 8px; align-items: center; padding: 3px 0; font-size: .95rem; cursor: pointer; }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 28px; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; text-decoration: none; font-weight: 650; padding: 0 8px; }
.pagination a { background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.pagination .current { background: var(--ink); color: var(--surface); }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-lg); }
.empty p { max-width: 48ch; margin: 0 auto 18px; color: var(--muted); }

/* ---------- Form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.field > span, .field legend { font-weight: 650; font-size: .9rem; color: var(--ink-2); padding: 0; }
input:not([type=radio]):not([type=checkbox]):not([type=file]), select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--cobalt-soft); }
input[disabled] { background: var(--surface-2); color: var(--muted); }
input[type=radio], input[type=checkbox] { accent-color: var(--cobalt); width: 18px; height: 18px; }
.has-err input, .has-err textarea { border-color: var(--danger); }
.field em { color: var(--danger); font-style: normal; font-size: .85rem; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: center; margin: 4px 0 14px; cursor: pointer; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; margin-bottom: 18px; }
.panel h2 { font-size: 1.1rem; margin-top: 6px; }
.panel h2 + .field { margin-top: 4px; }
.auth { max-width: 460px; }
.auth h1 { font-size: 1.7rem; margin-top: 8px; }

/* ---------- Detail produk ---------- */
.detail { display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px; align-items: start; }
.detail-media .frame { border-radius: var(--r-lg); border: 1px solid var(--line); }
.detail-info h1 { margin: 12px 0 10px; }
.meta-line { font-size: .92rem; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.stars { color: var(--amber); display: inline-flex; align-items: center; gap: 3px; font-weight: 700; }
.stars svg { fill: var(--amber); }
.stars .off { color: var(--line); }
.buybox { margin-top: 18px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.buy-actions { display: grid; gap: 10px; margin: 16px 0 12px; }
.buy-links { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 14px; }
.buy-links a { display: inline-flex; gap: 6px; align-items: center; font-weight: 650; text-decoration: none; }
.assure { list-style: none; padding: 14px 0 0; margin: 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: .9rem; color: var(--ink-2); }
.assure li { display: flex; gap: 8px; align-items: center; }
.assure svg { color: var(--ok); }
.detail-body { display: grid; grid-template-columns: 1fr 300px; gap: 36px; margin-top: 36px; align-items: start; }
.prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; max-width: none; font-size: 1.02rem; line-height: 1.7; }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.checklist { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.checklist li { display: flex; gap: 8px; align-items: flex-start; }
.checklist svg { color: var(--ok); margin-top: 4px; }
.specs { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: sticky; top: 84px; }
.specs dl, .kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: .93rem; }
.specs dt, .kv dt { color: var(--muted); }
.specs dd, .kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.reviews { list-style: none; padding: 0; display: grid; gap: 12px; }
.reviews li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.reviews p { margin: 6px 0; }
.review-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin-bottom: 18px; max-width: 640px; }
.rate { border: 0; padding: 0; margin: 0 0 12px; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.rate legend { font-weight: 650; font-size: .9rem; margin-bottom: 4px; }
.rate input { position: absolute; opacity: 0; }
.rate label { cursor: pointer; color: var(--line); padding: 2px; }
.rate label svg { fill: currentColor; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--amber); }
.rate input:focus-visible + label { outline: 2px solid var(--cobalt); border-radius: 4px; }
.sticky-buy { display: none; }

/* ---------- Keranjang & checkout ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-list { list-style: none; padding: 0; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.cart-row { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; padding: 16px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-row:last-child { border-bottom: 0; }
.cart-thumb .frame { border-radius: 10px; }
.cart-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-info a { color: var(--ink); text-decoration: none; }
.cart-line { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 4px; }
.qty button { width: 36px; height: 36px; border: 0; background: var(--surface-2); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.qty input { width: 48px !important; min-height: 36px !important; border: 0 !important; text-align: center; padding: 0 !important; border-radius: 0 !important; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; position: sticky; top: 84px; display: flex; flex-direction: column; gap: 10px; }
.summary h2 { font-size: 1.1rem; margin: 0 0 4px; }
.coupon { display: flex; gap: 8px; }
.coupon input { text-transform: uppercase; }
.coupon-on { display: flex; justify-content: space-between; align-items: center; width: 100%; margin: 0; padding: 8px 12px; background: var(--cobalt-soft); border-radius: var(--r-sm); font-weight: 700; }
.coupon-on span { display: inline-flex; gap: 6px; align-items: center; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 8px 0; font-variant-numeric: tabular-nums; }
.totals dd { margin: 0; text-align: right; font-weight: 600; }
.totals .minus { color: var(--ok); }
.totals .grand { font-size: 1.2rem; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--line); }
.mini-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.mini-items li { display: flex; justify-content: space-between; gap: 12px; }
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.pay-opt { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); cursor: pointer; }
.pay-opt span { display: flex; flex-direction: column; }
.pay-opt small { color: var(--muted); line-height: 1.4; }
.pay-opt:has(input:checked) { border-color: var(--cobalt); background: var(--cobalt-soft); }
.form h2 { margin-top: 20px; }
.form h2:first-of-type { margin-top: 0; }

/* ---------- Pesanan / invoice ---------- */
.invoice-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.invoice-head h1 { margin: 0; font-size: clamp(1.4rem, 1rem + 1.5vw, 1.9rem); }
.invoice-head p { margin: 0; }
.pay-box { border: 2px solid var(--amber); }
.pay-total { font-size: 1.05rem; }
.pay-total strong { font-size: 1.5rem; display: block; font-variant-numeric: tabular-nums; }
.rek { font: inherit; font-weight: 700; background: var(--surface-2); padding: 12px 14px; border-radius: var(--r-sm); white-space: pre-wrap; }
.upload-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 14px 0 10px; }
.upload-form .field { margin: 0; flex: 1; min-width: 220px; }
.order-items { list-style: none; padding: 0; margin: 0 0 8px; }
.order-items li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.oi-top { display: flex; justify-content: space-between; gap: 12px; }
.keys { display: flex; flex-wrap: wrap; gap: 6px; }
.keys code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .82rem; background: var(--surface-2); border: 1px dashed var(--line); padding: 4px 8px; border-radius: 6px; cursor: copy; user-select: all; }
.order-list { list-style: none; padding: 0; margin: 0; }
.order-list a { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.order-list a > span { display: flex; flex-direction: column; }
.order-list .right { align-items: flex-end; gap: 4px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; padding: 40px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.footer h2 { font-size: .95rem; margin-bottom: 10px; }
.footer nav a, .footer div > a:not(.logo) { display: block; color: var(--ink-2); text-decoration: none; padding: 3px 0; font-size: .93rem; }
.footer a:hover { color: var(--cobalt); }
.footer .logo { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; }

/* ---------- Navigasi bawah (mobile) ---------- */
.bottomnav { display: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 12px 18px; border-radius: 12px; font-weight: 600; z-index: 90; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.show { animation: toastIn .25s ease-out; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* =================== Responsif =================== */
@media (max-width: 1080px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .mainnav { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 28px; gap: 28px; }
  .showcase { height: 300px; max-width: 520px; width: 100%; margin: 0 auto; }
  .catalog { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters details:not([open]) { padding-bottom: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .detail, .detail-body, .cart-layout { grid-template-columns: 1fr; }
  .specs, .summary { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0)); }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .topbar-in { height: 58px; gap: 10px; }
  .logo-text { display: none; }
  .search { max-width: none; }
  .hide-sm { display: none !important; }
  .actions .cartbtn { display: none; }
  .platform-tiles { grid-template-columns: 1fr; gap: 8px; }
  .tile { padding: 14px 16px; }
  .steps { grid-template-columns: 1fr; gap: 18px; }
  .grid, .grid-3 { gap: 12px; }
  .card-body { padding: 10px 12px 12px; }
  .card-text { display: none; }
  .card-title { font-size: .93rem; }
  .price strong { font-size: .98rem; }
  .btn-icon { width: 36px; min-height: 36px; }
  .checklist, .row-2, .row-3, .pay-options { grid-template-columns: 1fr; }
  .row-2, .row-3 { gap: 0; }
  .cart-row { grid-template-columns: 84px 1fr; }
  .cart-line { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: 1fr; }
  .panel, .prose { padding: 18px; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
  .bottomnav a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: .7rem; font-weight: 650; color: var(--muted); text-decoration: none; }
  .bottomnav a.on { color: var(--cobalt); }
  .bottomnav b { position: absolute; top: 4px; left: 54%; min-width: 17px; height: 17px; border-radius: 9px; background: var(--amber); color: #2A1A00; font-size: 10px; display: grid; place-items: center; padding: 0 4px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0)); }
  .sticky-buy { display: flex; position: fixed; left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom, 0)); z-index: 45; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: var(--surface); border-top: 1px solid var(--line); }
  .sticky-buy div { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
  .sticky-buy small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sticky-buy + * { margin-bottom: 0; }
  .showcase { height: 250px; }
  .showcase-cap { font-size: .72rem; padding: 6px 9px; }
}

/* ---------- Cetak ---------- */
@media print {
  .topbar, .footer, .bottomnav, .sticky-buy, .btn, .upload-form, .toast, .no-print { display: none !important; }
  .print-only { display: block; }
  body { background: #fff; color: #000; }
  .panel { border: 0; padding: 0; }
}

/* =========================================================
   v2: beli putus / sewa, paket, fitur, S&K
   ========================================================= */
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.tipe { display: inline-block; padding: 3px 9px; border-radius: 6px; font-size: .74rem; font-weight: 800; letter-spacing: .01em; white-space: nowrap; }
.tipe-beli { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tipe-sewa { background: color-mix(in srgb, var(--amber) 22%, transparent); color: #7A4F00; }
@media (prefers-color-scheme: dark) { .tipe-sewa { color: var(--amber); } }
.detail-info .tipe { margin-left: 4px; vertical-align: middle; }
.price .per, .pos-prod em small { font-size: .72em; font-weight: 600; color: var(--muted); margin-left: 1px; }
.jenis-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.jenis { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: var(--r-lg); text-decoration: none; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.jenis b { color: var(--ink); font-size: 1.12rem; }
.jenis-beli { border-top: 4px solid var(--ink); }
.jenis-sewa { border-top: 4px solid var(--amber); }
.jenis:hover { border-color: var(--cobalt); }

.paket-opts { border: 0; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.paket-opts legend { font-weight: 700; margin-bottom: 8px; font-size: .95rem; }
.paket-opt { cursor: pointer; }
.paket-opt input { position: absolute; opacity: 0; }
.paket-opt span { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r); height: 100%; }
.paket-opt strong { font-size: 1.3rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.paket-opt .save { align-self: flex-start; font-style: normal; }
.paket-opt input:checked + span { border-color: var(--cobalt); background: var(--cobalt-soft); }
.paket-opt input:focus-visible + span { outline: 3px solid var(--cobalt); }
.assure a { font-weight: 600; }

.masa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: .93rem; }
.akses { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 10px 14px; font-size: .93rem; }
.akses p { margin: 4px 0 0; word-break: break-word; }
.oi-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.oi-actions form { margin: 0; }
.sub-list { list-style: none; margin: 0; padding: 0; }
.sub-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 6px; }
.sub-list li:last-child { border-bottom: 0; }
.sub-list p { margin: 0; }
.sub-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.sub-top a { color: var(--ink); text-decoration: none; }
.field-err { color: var(--danger); font-weight: 600; font-size: .85rem; margin: -8px 0 12px; }
.check.has-err span { color: var(--danger); }
.check span a { font-weight: 650; }

.terms { padding: 30px; }
.terms h1 { margin-bottom: .8em; }
.terms h2 { font-size: 1.12rem; margin: 1.6em 0 .5em; }
.terms ul { padding-left: 1.2em; margin: 0 0 1em; }
.terms li { margin: 4px 0; }
.terms-foot { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; }

@media (max-width: 720px) {
  .jenis-tiles { grid-template-columns: 1fr; gap: 8px; }
  .jenis { padding: 14px 16px; }
  .card-tags .tipe { font-size: .68rem; padding: 2px 7px; }
  .terms { padding: 20px 18px; }
}
/* Kolom pencarian di header & hero tidak ikut gaya input umum */
.search input[type=search], .hero-field input[type=search] { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 10px !important; min-height: 40px; border-radius: 0 !important; }
.search input[type=search] { padding: 0 !important; }
