:root {
  --bg: #ece8e1;
  --paper: #f6f3ee;
  --ink: #2c2622;
  --muted: #6f675f;
  --line: #e4ddd4;
  --accent: #6b3d32;
  --ok: #3d5c4a;
  --white: #fffcf8;
  --nav: 56px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Source Sans 3", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

#app {
  max-width: 430px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--white);
  display: flex;
  flex-direction: column;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
.btn {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border: 0;
  border-radius: 8px;
  padding: 13px 16px;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
  width: 100%;
}

.btn-primary:disabled {
  background: var(--line);
  color: var(--muted);
  cursor: not-allowed;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
  width: 100%;
}

.btn-text {
  background: none;
  color: var(--accent);
  padding: 0;
  font-weight: 600;
}

header.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  font-size: 17px;
  letter-spacing: 0.22em;
  font-weight: 700;
}

.icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: var(--ink);
}

.icon-btn svg,
nav.bottom svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.icon-btn .badge {
  position: absolute;
  top: 2px;
  right: 2px;
  margin: 0;
}

.logo {
  width: 40px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff;
  flex: 0 0 40px;
}

.logo-bca {
  background: #003d79;
}
.logo-mandiri {
  background: #003d79;
  color: #f5c518;
}
.logo-bni {
  background: #e85d04;
}
.logo-bri {
  background: #004a93;
}
.logo-gopay {
  background: #00a8c5;
}
.logo-ovo {
  background: #4a297a;
}
.logo-dana {
  background: #118ee9;
}
.logo-jne {
  background: #d0121a;
}
.logo-pos {
  background: #e05a1b;
}

main {
  flex: 1;
  padding: 18px 16px calc(var(--nav) + 24px);
}

h1,
h2 {
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 24px;
}

h2,
.h-section {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 24px 0 10px;
}

p.lede {
  color: var(--muted);
  margin: 0 0 18px;
}

.note {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.card {
  background: var(--paper);
  border-radius: 8px;
  overflow: hidden;
}

.swatch {
  height: 140px;
  display: flex;
  align-items: flex-end;
  padding: 8px;
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
}

.swatch img,
.hero-photo,
.pdp-photo {
  width: 100%;
  object-fit: cover;
  display: block;
}

.swatch img {
  position: absolute;
  inset: 0;
  height: 100%;
}

.swatch span {
  position: relative;
  z-index: 1;
  background: rgba(28, 24, 20, 0.5);
  padding: 2px 6px;
  border-radius: 3px;
}

.pdp-photo {
  height: 260px;
  border-radius: 8px;
}

.hero-photo {
  height: 220px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.card .meta {
  padding: 10px;
}

.card .name {
  font-size: 13px;
  font-weight: 600;
}

.card .price {
  font-size: 13px;
  margin-top: 4px;
}

.sold {
  color: var(--muted);
  font-size: 12px;
}

.filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 14px;
}

.filters button {
  flex: 0 0 auto;
  padding: 7px 12px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 500;
}

.filters button.on {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

.hero p {
  color: var(--muted);
  margin: 0 0 16px;
}

.facts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0 0 18px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.sizes button {
  min-width: 44px;
  height: 40px;
  padding: 0 10px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.sizes button.on {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

label.field {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 14px 0 6px;
}

input,
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.opt-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 8px;
}

.opt {
  display: grid;
  grid-template-columns: 18px 40px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  margin: 0;
  background: var(--white);
  cursor: pointer;
}

.opt:last-child {
  border-bottom: 0;
}

.opt.on {
  background: var(--paper);
}

.opt input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ink);
}

.opt-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.opt-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
}

.opt-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.opt-price {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  text-align: right;
}

.opt.addr,
.opt.channel {
  grid-template-columns: 18px 40px minmax(0, 1fr);
}

.opt.addr {
  grid-template-columns: 18px minmax(0, 1fr);
}

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 10px;
}

.seg label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  background: var(--white);
  cursor: pointer;
}

.seg label + label {
  border-left: 1px solid var(--line);
}

.seg label.on {
  background: var(--ink);
  color: var(--white);
}

.seg input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.check {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 12px 0 4px;
  font-size: 14px;
}

.check input {
  width: auto;
}

.summary {
  border-top: 1px solid var(--line);
  padding: 14px 0 4px;
  margin: 20px 0 0;
}

.summary .row {
  padding: 5px 0;
  font-size: 14px;
}

.summary .row.total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 16px;
}

.has-sticky-pay {
  padding-bottom: calc(var(--nav) + 84px);
}

.pay-sticky {
  position: sticky;
  bottom: calc(var(--nav) + 8px);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 10px 10px 14px;
  margin: 16px 0 0;
}

.pay-sticky .btn {
  width: auto;
  min-width: 112px;
  padding: 11px 16px;
}

nav.bottom {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: var(--white);
  height: var(--nav);
}

nav.bottom a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

nav.bottom a.on {
  color: var(--ink);
}

nav.bottom a span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge {
  font-size: 10px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  min-width: 16px;
  padding: 0 5px;
  line-height: 16px;
  text-align: center;
}

.stat {
  background: var(--paper);
  border-radius: 8px;
  padding: 14px;
  flex: 1;
}

.stat b {
  display: block;
  font-size: 24px;
  font-weight: 600;
}

.url-box {
  font-size: 14px;
  background: var(--paper);
  padding: 12px;
  border-radius: 8px;
  word-break: break-all;
  margin: 8px 0 12px;
}

.line-item {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.line-item .name {
  font-weight: 600;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  flex: 0 0 72px;
}

.qty {
  color: var(--muted);
  font-size: 13px;
}

.banner-ref {
  background: var(--paper);
  color: var(--ink);
  padding: 8px 16px;
  font-size: 13px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.ok {
  color: var(--ok);
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 6px;
}

.site-foot {
  margin-top: 32px;
  padding: 20px 0 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.foot-brand {
  letter-spacing: 0.2em;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.site-foot p {
  margin: 6px 0 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.foot-links a {
  font-weight: 600;
  color: var(--ink);
}

.staff-link {
  margin-top: 28px;
  font-size: 12px;
  color: var(--muted);
}
