/* =====================================================================
   TEMEN.GUE — neo-brutalism
   Garis tebal, bayangan keras, warna terang, tetap mudah dibaca.
   ===================================================================== */

@font-face { font-family: 'Archivo Black'; src: url('/static/fonts/archivo-black/archivo-black-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/static/fonts/space-grotesk/space-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/static/fonts/space-grotesk/space-grotesk-latin-500-normal.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk'; src: url('/static/fonts/space-grotesk/space-grotesk-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/static/fonts/space-mono/space-mono-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Mono'; src: url('/static/fonts/space-mono/space-mono-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0b0b0b;
  --paper: #fffaf0;
  --paper-2: #fff1cc;
  --white: #ffffff;
  --yellow: #ffe14d;
  --pink: #ff9ccf;
  --blue: #9dbcff;
  --green: #86e8b0;
  --orange: #ffb46e;
  --purple: #c7adff;
  --cyan: #8aeaf0;
  --red: #ff5c5c;
  --red-soft: #ffd1d1;
  --muted: #4d4d4d;
  --line: 3px solid var(--ink);
  --line-thin: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --font-display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --font-body: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(11, 11, 11, .09) 1px, transparent 1px);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--pink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--yellow); color: var(--ink); }

:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--yellow); border: var(--line); padding: 8px 14px; font-weight: 700; }
.skip-link:focus { top: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.js .js-hide { display: none !important; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.site-main { flex: 1; }
.page { padding-top: 28px; padding-bottom: 64px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); letter-spacing: -.01em; }
.text-success { color: #0b7a3b; font-weight: 700; }
.text-danger { color: #b3121b; font-weight: 700; }

/* ---------- warna latar ---------- */
.c-yellow { background-color: var(--yellow); }
.c-pink { background-color: var(--pink); }
.c-blue { background-color: var(--blue); }
.c-green { background-color: var(--green); }
.c-orange { background-color: var(--orange); }
.c-purple { background-color: var(--purple); }
.c-cyan { background-color: var(--cyan); }

/* ---------- tombol ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 44px; padding: 9px 18px;
  background: var(--white); color: var(--ink);
  border: var(--line); box-shadow: var(--shadow-sm);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer; user-select: none;
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); text-decoration: none; }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }
.btn--yellow { background: var(--yellow); }
.btn--green { background: var(--green); }
.btn--pink { background: var(--pink); }
.btn--danger { background: var(--red); color: var(--ink); }
.btn--ghost { background: transparent; box-shadow: none; }
.btn--ghost:hover { background: var(--white); box-shadow: var(--shadow-sm); }
.btn--sm { min-height: 36px; padding: 5px 12px; font-size: .9rem; border-width: 2px; }
.btn--lg { min-height: 54px; padding: 12px 24px; font-size: 1.1rem; }
.btn--block { width: 100%; }
.btn.is-loading { pointer-events: none; opacity: .75; }
.btn.is-loading::after { content: ''; width: 14px; height: 14px; border: 3px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 40px; height: 40px; border: var(--line-thin); background: var(--white); font-weight: 700; font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow-sm); }
.icon-btn:hover { background: var(--red-soft); }
.link-arrow { font-weight: 700; text-decoration: none; border-bottom: 3px solid var(--ink); white-space: nowrap; }
.link-arrow:hover { background: var(--yellow); }


/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; flex-shrink: 0; }
.logo__mark { display: grid; place-items: center; width: 38px; height: 38px; background: var(--yellow); border: var(--line); box-shadow: var(--shadow-sm); font-size: 1rem; transform: rotate(-6deg); }
.logo__text { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.02em; }
.logo:hover .logo__mark { transform: rotate(6deg); }
.logo__dot { color: var(--pink); -webkit-text-stroke: 1.5px var(--ink); paint-order: stroke fill; font-size: 1.35em; line-height: 0; margin: 0 1px; }
.logo--footer .logo__dot { -webkit-text-stroke-color: var(--white); }
.search { flex: 1; display: flex; max-width: 520px; border: var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.search input { flex: 1; min-width: 0; border: 0; padding: 9px 12px; background: transparent; outline: none; }
.search:focus-within { box-shadow: var(--shadow); background: var(--paper-2); }
.search__btn { border: 0; border-left: var(--line); background: var(--yellow); padding: 0 14px; cursor: pointer; display: grid; place-items: center; }
.nav { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav__link { font-weight: 700; text-decoration: none; padding: 6px 10px; border: 2px solid transparent; }
.nav__link:hover, .nav__link.is-active { border-color: var(--ink); background: var(--white); }
.nav__link--sell, .nav__link--sell:hover, .nav__link--sell.is-active { background: var(--pink); border-color: var(--ink); box-shadow: var(--shadow-sm); }
.nav__link--sell.is-active { box-shadow: inset 0 -4px 0 var(--ink); }
.nav__cart { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border: var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.nav__cart:hover, .nav__cart.is-active { background: var(--yellow); }
.nav__badge { position: absolute; top: -9px; right: -9px; min-width: 22px; height: 22px; padding: 0 5px; border: var(--line-thin); background: var(--red); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; display: grid; place-items: center; }

.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__toggle { display: flex; align-items: center; gap: 8px; padding: 3px 10px 3px 3px; border: var(--line); background: var(--white); box-shadow: var(--shadow-sm); font-weight: 700; }
.menu[open] .menu__toggle { background: var(--yellow); }
.menu__panel { position: absolute; right: 0; top: calc(100% + 10px); width: 240px; background: var(--white); border: var(--line); box-shadow: var(--shadow-lg); padding: 8px; display: flex; flex-direction: column; z-index: 60; }
.menu__panel a, .menu__logout { display: block; padding: 9px 10px; text-decoration: none; font-weight: 500; border: 2px solid transparent; text-align: left; width: 100%; background: none; cursor: pointer; }
.menu__panel a:hover, .menu__logout:hover { background: var(--yellow); border-color: var(--ink); }
.menu__panel form { margin: 4px 0 0; border-top: var(--line-thin); padding-top: 4px; }
.menu__email { font-size: .8rem; color: var(--muted); padding: 4px 10px 8px; margin: 0; border-bottom: var(--line-thin); margin-bottom: 4px; word-break: break-all; }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border: var(--line-thin); background: var(--cyan); font-family: var(--font-display); font-size: .8rem; flex-shrink: 0; }
.avatar--sm { width: 28px; height: 28px; font-size: .7rem; }
.avatar--xl { width: 96px; height: 96px; font-size: 2rem; border: var(--line); box-shadow: var(--shadow); background: var(--yellow); }

/* ---------- flash & notice ---------- */
.flash-stack { display: grid; gap: 10px; padding-top: 18px; }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: var(--line); box-shadow: var(--shadow-sm); background: var(--white); margin-bottom: 14px; }
.flash-stack .flash { margin: 0; }
.flash--success { background: var(--green); }
.flash--error { background: var(--red-soft); }
.flash--warning { background: var(--orange); }
.flash--info { background: var(--blue); }
.flash__icon { display: grid; place-items: center; width: 26px; height: 26px; border: var(--line-thin); background: var(--white); font-weight: 700; flex-shrink: 0; }
.flash__text { margin: 0; flex: 1; font-weight: 500; padding-top: 1px; }
.flash__close { border: 0; background: none; font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.notice { padding: 10px 14px; border: var(--line-thin); background: var(--white); margin: 0 0 14px; font-weight: 500; }
.notice--info { background: #dfe9ff; }
.notice--success { background: #d9f7e5; }
.notice--warning { background: #fff0c2; }
.notice--error { background: var(--red-soft); }

/* ---------- typografi halaman ---------- */
.eyebrow { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; background: var(--ink); color: var(--yellow); padding: 3px 8px; margin-bottom: 12px; }
.page-head { margin-bottom: 22px; }
.page-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head__aside { display: flex; gap: 10px; align-items: center; }
.page-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.02em; margin: 0; overflow-wrap: anywhere; }
.page-sub { margin: 6px 0 0; color: var(--muted); font-weight: 500; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .9rem; margin-bottom: 18px; color: var(--muted); }
.breadcrumb a { font-weight: 700; color: var(--ink); }

/* ---------- hero ---------- */
.hero { border-bottom: var(--line); background: linear-gradient(transparent 0 0); padding: 48px 0 56px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero__title { font-family: var(--font-display); font-size: clamp(2.4rem, 6.2vw, 4.6rem); letter-spacing: -.03em; line-height: 1.02; margin-bottom: 18px; }
.hl { padding: 0 .15em; border: var(--line); box-shadow: var(--shadow-sm); display: inline-block; transform: rotate(-1.5deg); margin: 4px 0; }
.hl--pink { background: var(--pink); }
.hero__lead { font-size: 1.1rem; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 22px 0 28px; }
.hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 0; border: var(--line); background: var(--white); box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.hero__stats li { padding: 10px 18px; border-right: var(--line); display: flex; flex-direction: column; }
.hero__stats li:last-child { border-right: 0; }
.hero__stats strong { font-family: var(--font-display); font-size: 1.4rem; }
.hero__stats span { font-size: .8rem; font-family: var(--font-mono); text-transform: uppercase; }
.hero__art { position: relative; height: 380px; }
.hero-card { position: absolute; border: var(--line); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; justify-content: space-between; padding: 14px; }
.hero-card__tag { font-family: var(--font-mono); font-weight: 700; font-size: .8rem; background: var(--ink); color: var(--white); padding: 2px 6px; align-self: flex-start; }
.hero-card__big { font-family: var(--font-display); font-size: 4rem; line-height: 1; }
.hero-card--1 { width: 210px; height: 260px; left: 4%; top: 30px; background: var(--blue); transform: rotate(-6deg); }
.hero-card--2 { width: 190px; height: 210px; right: 6%; top: 0; background: var(--green); transform: rotate(5deg); }
.hero-card--3 { width: 200px; height: 200px; right: 16%; bottom: 0; background: var(--white); transform: rotate(-2deg); }
.hero-card__qr { width: 110px; height: 110px; align-self: center; background:
  linear-gradient(90deg, var(--ink) 0 22%, transparent 22% 39%, var(--ink) 39% 50%, transparent 50% 61%, var(--ink) 61% 78%, transparent 78%) 0 0 / 100% 20%,
  linear-gradient(var(--ink) 0 22%, transparent 22% 39%, var(--ink) 39% 50%, transparent 50% 61%, var(--ink) 61% 78%, transparent 78%) 0 0 / 20% 100%;
  border: 6px solid var(--ink); }
.sticker { position: absolute; left: 42%; top: 42%; width: 112px; height: 112px; border-radius: 50%; background: var(--yellow); border: var(--line); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; font-family: var(--font-display); font-size: .95rem; line-height: 1.05; }
.sticker--rotate { animation: wobble 6s ease-in-out infinite; }
@keyframes wobble { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(10deg); } }

/* ---------- section ---------- */
.section { padding: 42px 0 8px; }
.section--band { border-top: var(--line); border-bottom: var(--line); padding: 38px 0; margin-top: 34px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.section__title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.02em; margin: 0 0 18px; }
.section__head .section__title { margin: 0; }

.category-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.category-tile { border: var(--line); box-shadow: var(--shadow-sm); padding: 14px; min-height: 92px; display: flex; flex-direction: column; justify-content: space-between; text-decoration: none; transition: transform .1s ease, box-shadow .1s ease; }
.category-tile:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.category-tile__name { font-weight: 700; font-size: 1.02rem; line-height: 1.2; }
.category-tile__count { font-family: var(--font-mono); font-size: .78rem; }
.category-tile__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.category-tile__arrow { font-weight: 700; font-size: 1.2rem; line-height: 1; transition: transform .1s ease; }
.category-tile:hover .category-tile__arrow { transform: translateX(4px); }

/* ---------- kartu produk ---------- */
.card { background: var(--white); border: var(--line); box-shadow: var(--shadow); }
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-card { transition: transform .1s ease, box-shadow .1s ease; display: flex; }
.product-card:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); }
.product-card__link { display: flex; flex-direction: column; text-decoration: none; width: 100%; }
.product-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; border-top: var(--line); }
.product-card__title { font-size: 1.05rem; font-weight: 700; margin: 0; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__store { margin: 0; font-size: .85rem; color: var(--muted); }
.product-card__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; padding-top: 6px; }
.product-card__stats { display: flex; gap: 8px; align-items: center; font-size: .78rem; }
.sold { font-family: var(--font-mono); color: var(--muted); }
.price { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 1.02rem; background: var(--yellow); border: var(--line-thin); padding: 1px 7px; white-space: nowrap; }
.price--free { background: var(--green); }
.rating { font-weight: 700; white-space: nowrap; }
.rating small { font-weight: 400; color: var(--muted); }
.chip { display: inline-block; align-self: flex-start; font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; border: var(--line-thin); padding: 1px 7px; background: var(--white); text-decoration: none; white-space: nowrap; }

.cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__initials { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); letter-spacing: -.03em; background: var(--white); border: var(--line); box-shadow: var(--shadow); padding: 4px 16px; transform: rotate(-4deg); }
.cover__label { position: absolute; left: 10px; bottom: 10px; font-family: var(--font-mono); font-size: .68rem; font-weight: 700; text-transform: uppercase; background: var(--ink); color: var(--white); padding: 2px 6px; max-width: calc(100% - 20px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cover--lg { border: var(--line); box-shadow: var(--shadow); margin-bottom: 22px; }
.cover--lg .cover__initials { font-size: clamp(3rem, 9vw, 6rem); }
.cover--sm { width: 120px; flex-shrink: 0; border: var(--line-thin); }
.cover--sm .cover__initials, .cover--xs .cover__initials { font-size: 1.3rem; padding: 2px 8px; border-width: 2px; box-shadow: var(--shadow-sm); }
.cover--sm .cover__label, .cover--xs .cover__label { display: none; }
.cover--xs { width: 64px; flex-shrink: 0; border: var(--line-thin); }
.cover--xs .cover__initials { font-size: .9rem; box-shadow: none; }

/* ---------- langkah ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: none; }
.step { border: var(--line); box-shadow: var(--shadow); padding: 20px; position: relative; }
.step h2, .step h3 { font-size: 1.2rem; margin: 10px 0 6px; }
.step p { margin: 0; }
.step__num { display: grid; place-items: center; width: 42px; height: 42px; background: var(--white); border: var(--line); font-family: var(--font-display); font-size: 1.2rem; }
.steps--vertical { grid-template-columns: 1fr; margin-bottom: 28px; }

.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--ink); color: var(--white); border: var(--line); box-shadow: 8px 8px 0 var(--pink); padding: 32px; margin: 30px 0 20px; }
.cta-band__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.5vw, 2.3rem); margin: 0 0 6px; color: var(--yellow); }
.cta-band p { margin: 0; max-width: 560px; }

/* ---------- jelajah: chip kategori, filter harga, urutan ---------- */
.checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 500; }
.checkbox input { width: 20px; height: 20px; accent-color: var(--ink); flex-shrink: 0; margin: 0; }

.cat-chips { margin: 0 0 6px; }
.cat-chips__list { position: relative; list-style: none; margin: 0; padding: 2px 6px 10px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 6px 14px; background: var(--white); border: var(--line); box-shadow: var(--shadow-sm); font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease; }
.cat-chip:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); text-decoration: none; }
.cat-chip:active { transform: translate(2px, 2px); box-shadow: none; }
.cat-chip.is-active { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.cat-chip--all.is-active { background: var(--ink); color: var(--yellow); }
/* Warna kategori untuk chip aktif (harus lebih spesifik dari background putih .cat-chip) */
.cat-chip.is-active.c-yellow { background: var(--yellow); }
.cat-chip.is-active.c-pink { background: var(--pink); }
.cat-chip.is-active.c-blue { background: var(--blue); }
.cat-chip.is-active.c-green { background: var(--green); }
.cat-chip.is-active.c-orange { background: var(--orange); }
.cat-chip.is-active.c-purple { background: var(--purple); }
.cat-chip.is-active.c-cyan { background: var(--cyan); }
.cat-chip__swatch { width: 14px; height: 14px; border: 2px solid var(--ink); flex-shrink: 0; }
.cat-chip.is-active .cat-chip__swatch { background: var(--white); }
.cat-chip__count { font-family: var(--font-mono); font-size: .72rem; line-height: 1; padding: 3px 6px; border: 2px solid var(--ink); background: var(--white); }

.browse-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; padding: 14px 0 20px; margin-bottom: 24px; border-bottom: var(--line); }
.segmented { display: inline-flex; border: var(--line); background: var(--white); box-shadow: var(--shadow-sm); }
.segmented__item { display: grid; place-items: center; min-height: 40px; padding: 6px 16px; font-weight: 700; text-decoration: none; border-right: var(--line-thin); white-space: nowrap; }
.segmented__item:last-child { border-right: 0; }
.segmented__item:hover { background: var(--paper-2); }
.segmented__item.is-active { background: var(--ink); color: var(--white); }
.sort-form { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 700; }
.sort-form .field__input { width: auto; min-width: 190px; }

.active-filters { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: -6px 0 20px; }
.active-filters__label { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; }
.active-filters__clear { font-weight: 700; font-size: .92rem; }
.filter-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: var(--line-thin); background: var(--yellow); font-weight: 700; text-decoration: none; }
.filter-pill span { font-size: 1.15rem; line-height: 1; }
.filter-pill:hover { background: var(--red-soft); text-decoration: line-through; }

/* Marketplace masih kosong */
.shelf-empty { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 40px; align-items: center; background: var(--yellow); border: var(--line); box-shadow: var(--shadow-lg); padding: 40px 44px; }
.shelf-empty__art { position: relative; width: 320px; height: 220px; margin: 0 auto; }
.shelf-card { position: absolute; width: 122px; height: 152px; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; border: var(--line); box-shadow: var(--shadow); font-family: var(--font-display); font-size: 2.1rem; line-height: 1; }
.shelf-card small { align-self: flex-start; font-family: var(--font-mono); font-size: .66rem; font-weight: 700; background: var(--ink); color: var(--white); padding: 2px 5px; }
.shelf-card--1 { left: 0; top: 44px; transform: rotate(-9deg); }
.shelf-card--2 { left: 99px; top: 0; transform: rotate(3deg); z-index: 1; }
/* Kartu kanan tertutup sebagian oleh kartu tengah → isi diratakan ke kanan */
.shelf-card--3 { left: 198px; top: 52px; transform: rotate(10deg); align-items: flex-end; }
.shelf-card--3 small { align-self: flex-end; }
.shelf-empty__body .eyebrow { margin-bottom: 10px; }
.shelf-empty__title { font-family: var(--font-display); font-size: clamp(1.9rem, 4.6vw, 3rem); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 12px; }
.shelf-empty__text { font-size: 1.08rem; max-width: 560px; margin: 0; }
.shelf-empty__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

/* Hasil filter kosong */
.no-match { display: flex; gap: 28px; align-items: flex-start; background: var(--white); border: var(--line); box-shadow: var(--shadow-lg); padding: 32px 36px; }
.no-match__icon { flex-shrink: 0; width: 88px; height: 88px; display: grid; place-items: center; font-family: var(--font-display); font-size: 3.2rem; background: var(--yellow); border: var(--line); box-shadow: var(--shadow); transform: rotate(-6deg); }
.no-match__body { flex: 1; min-width: 0; }
.no-match__title { font-family: var(--font-display); font-size: clamp(1.5rem, 3.4vw, 2.2rem); letter-spacing: -.02em; margin: 4px 0 8px; }
.no-match__body > p { margin: 0 0 12px; }
.no-match__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.no-match__suggest { margin-top: 26px; padding-top: 18px; border-top: 2px dashed var(--ink); }
.no-match__suggest-label { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; text-transform: uppercase; margin: 0 0 12px; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.pagination__info { font-family: var(--font-mono); font-weight: 700; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 0 0 18px; }
.toolbar .field__input { width: auto; flex: 1; min-width: 200px; }
.toolbar__sort { display: flex; gap: 8px; align-items: center; margin-left: auto; font-weight: 700; }
.toolbar__sort .field__input { min-width: 0; flex: none; }

.empty { border: var(--line); border-style: dashed; background: var(--white); padding: 44px 20px; text-align: center; }
.empty__emoji { font-family: var(--font-display); font-size: 3rem; width: 84px; height: 84px; margin: 0 auto 12px; display: grid; place-items: center; border: var(--line); background: var(--yellow); box-shadow: var(--shadow); transform: rotate(-5deg); }
.empty__title { font-family: var(--font-display); font-size: 1.5rem; }
.empty__text { color: var(--muted); max-width: 440px; margin: 0 auto 18px; }

/* ---------- panel umum ---------- */
.panel { background: var(--white); border: var(--line); box-shadow: var(--shadow); padding: 20px; margin-bottom: 22px; }
.panel--plain { box-shadow: none; }
.panel--danger { background: #fff2f2; }
.panel--sticky { position: sticky; top: 92px; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.panel__head .panel__title { margin: 0; }
.panel__title { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; margin: 0 0 14px; }
.small-title { font-size: 1rem; margin: 16px 0 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.two-col > .panel { margin-bottom: 0; }
.two-col + .panel, .two-col + section { margin-top: 22px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; }
.inline-form + .inline-form { margin-top: 6px; }
.prose { overflow-wrap: anywhere; }
.prose p:last-child { margin-bottom: 0; }
.prose ul { margin: 0 0 1em; }
.prose a { font-weight: 700; }
.prose h2 { font-size: 1.15rem; margin-top: 1.2em; }

/* ---------- detail produk ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 30px; align-items: start; }
.product__side { position: sticky; top: 92px; display: grid; gap: 18px; }
.buybox { background: var(--white); border: var(--line); box-shadow: var(--shadow-lg); padding: 20px; display: grid; gap: 10px; }
.buybox__title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 1.9rem); letter-spacing: -.02em; margin: 4px 0 0; overflow-wrap: anywhere; }
.buybox__summary { margin: 0; color: var(--muted); }
.buybox__store { margin: 0; font-weight: 500; }
.buybox__store a { font-weight: 700; }
.buybox__stats { margin: 0; display: flex; gap: 12px; font-size: .9rem; font-family: var(--font-mono); }
.buybox__price { padding: 6px 0; }
.buybox__price .price { font-size: 1.8rem; padding: 2px 12px; border-width: 3px; box-shadow: var(--shadow-sm); }
.buybox__form { display: grid; gap: 10px; margin: 0; }
.buybox__perks { list-style: none; padding: 12px 0 0; margin: 4px 0 0; border-top: var(--line-thin); display: grid; gap: 6px; font-size: .9rem; }
.buybox__perks li::before { content: '✔'; font-weight: 700; margin-right: 8px; }
.buybox .notice { margin: 0; }
.store-mini { display: flex; align-items: center; gap: 12px; border: var(--line); background: var(--yellow); box-shadow: var(--shadow-sm); padding: 12px; text-decoration: none; }
.store-mini span:last-child { display: flex; flex-direction: column; }
.store-mini small { font-size: .82rem; }
.store-mini:hover { box-shadow: var(--shadow); transform: translate(-2px, -2px); }
.deliverables { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.deliverables li { display: flex; gap: 12px; align-items: center; border: var(--line-thin); padding: 10px 12px; }
.deliverables li div { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.deliverables small { color: var(--muted); }
.deliverables__icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; background: var(--yellow); border: var(--line-thin); font-weight: 700; }

.reviews { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.review { border: var(--line-thin); padding: 12px; }
.review__head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review__stars { color: var(--ink); letter-spacing: 1px; }
.review__date { margin-left: auto; font-size: .82rem; }
.review__body { margin: 8px 0 0; overflow-wrap: anywhere; }
.review-form { display: grid; gap: 10px; border: var(--line-thin); background: var(--paper-2); padding: 14px; }
.review-form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.star-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.star-input legend { font-weight: 700; margin-bottom: 4px; padding: 0; width: 100%; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2rem; line-height: 1; cursor: pointer; color: #c9c2b0; -webkit-text-stroke: 1.5px var(--ink); padding: 0 2px; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: var(--yellow); }
.star-input input:focus-visible + label { outline: 3px dashed var(--ink); }

.store-hero { display: flex; gap: 22px; align-items: center; border: var(--line); background: var(--white); box-shadow: var(--shadow); padding: 22px; margin-bottom: 22px; flex-wrap: wrap; }
.store-hero__body { flex: 1; min-width: 240px; }
.store-hero__bio { margin: 8px 0 10px; max-width: 680px; }
.store-hero__stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }

/* ---------- keranjang & checkout ---------- */
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.line-items { display: grid; gap: 14px; }
.line-item { display: flex; gap: 14px; align-items: center; background: var(--white); border: var(--line); box-shadow: var(--shadow-sm); padding: 12px; }
.line-item--problem { background: #fff3f3; }
.line-item__body { flex: 1; min-width: 0; }
.line-item__title { font-size: 1.05rem; margin: 0; overflow-wrap: anywhere; }
.line-item__title a { text-decoration: none; }
.line-item__store { margin: 2px 0 0; color: var(--muted); font-size: .88rem; }
.line-item__problem { margin: 6px 0 0; font-weight: 700; color: #b3121b; font-size: .9rem; }
.line-item__remove { margin: 0; }
.summary { background: var(--white); border: var(--line); box-shadow: var(--shadow-lg); padding: 20px; position: sticky; top: 92px; display: grid; gap: 12px; }
.summary__title { font-family: var(--font-display); font-size: 1.3rem; margin: 0; }
.summary__rows { margin: 0; display: grid; gap: 6px; }
.summary__rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 2px dashed #d6cdb4; }
.summary__rows dt { color: var(--muted); }
.summary__rows dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.summary__total { border-bottom: 0 !important; padding-top: 8px !important; }
.summary__total dt { color: var(--ink); font-weight: 700; }
.summary__total dd { font-family: var(--font-mono); font-size: 1.3rem; display: flex; flex-direction: column; }
.summary__total dd small { font-size: .75rem; font-weight: 400; color: var(--muted); }
.summary__note { font-size: .85rem; color: var(--muted); margin: 0; }
.summary__discount dt, .summary__discount dd { color: #0b7a3b; font-weight: 700; }

/* ---------- voucher di ringkasan ---------- */
.voucher-box { display: grid; gap: 10px; }
.voucher-form { display: flex; gap: 8px; margin: 0; }
.voucher-form .field__input { flex: 1; min-width: 0; width: 0; text-transform: uppercase; font-family: var(--font-mono); font-weight: 700; letter-spacing: .04em; }
.voucher-form .field__input::placeholder { text-transform: none; font-family: var(--font-body); font-weight: 400; letter-spacing: 0; }
.voucher-applied { display: flex; align-items: center; gap: 10px; padding: 10px; border: 2px dashed var(--ink); background: #d9f7e5; }
.voucher-applied form { margin: 0 0 0 auto; }
.voucher-applied__icon { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; background: var(--green); border: var(--line-thin); font-family: var(--font-display); }
.voucher-applied__body { display: flex; flex-direction: column; min-width: 0; }
.voucher-applied__body small { font-size: .8rem; }
.voucher-invalid { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: var(--line-thin); background: #fff0c2; font-size: .88rem; }
.voucher-invalid p { margin: 0; }
.voucher-invalid form { margin: 0; flex-shrink: 0; }
.voucher-code { display: inline-block; padding: 2px 8px; border: 2px dashed var(--ink); background: var(--yellow); letter-spacing: .05em; }
.voucher-code-input { text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* ---------- checkout tamu & link akses ---------- */
.checkout-account { margin: 4px 0 0; font-size: .92rem; }
.access-box { display: flex; gap: 18px; align-items: flex-start; background: var(--yellow); border: var(--line); box-shadow: var(--shadow); padding: 20px; margin-bottom: 22px; }
.access-box__icon { display: grid; place-items: center; width: 52px; height: 52px; flex-shrink: 0; background: var(--white); border: var(--line); font-size: 1.6rem; transform: rotate(-6deg); }
.access-box__body { flex: 1; min-width: 0; }
.access-box__title { font-family: var(--font-display); font-size: 1.2rem; margin: 2px 0 6px; }
.access-box__body p { margin: 0 0 10px; }
.access-box__body p:last-child { margin-bottom: 0; }
.access-box__link { display: flex; gap: 8px; margin: 0 0 10px; }
.access-box__link .field__input { flex: 1; min-width: 0; font-size: .82rem; background: var(--white); }
.link-account-form { margin-top: 14px; padding-top: 14px; border-top: 2px dashed var(--ink); }
.link-account-form .field__label { width: 100%; }
.link-account-form .field__input { flex: 1; min-width: 220px; }

/* ---------- unduhan di halaman pesanan ---------- */
.downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.download { display: flex; align-items: flex-start; gap: 12px; border: var(--line-thin); padding: 10px; }
.download__body { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.download__body small { color: var(--muted); }
.download .btn { flex-shrink: 0; }

/* ---------- form voucher (penjual & admin) ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px 16px; }
.form-grid .field { margin: 0; align-content: start; }
.form-grid .field__label { min-height: 1.6em; }
.voucher-create { margin-top: 0; }
.voucher-create > .btn { justify-self: start; }
.section-block { margin-top: 30px; }
.section-block .section__title { margin-bottom: 8px; }
.summary .notice { margin: 0; }
.mini-items { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 10px; }
.mini-item { display: flex; align-items: center; gap: 12px; border: var(--line-thin); padding: 8px; }
.mini-item--text { padding: 10px 12px; }
.mini-item--problem { background: #fff3f3; }
.mini-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; overflow-wrap: anywhere; }
.mini-item__body small { color: var(--muted); }
.summary__soft { font-weight: 400 !important; color: var(--muted); }
.summary__total dd > span { display: flex; flex-direction: column; }

/* ---------- pilihan metode bayar (checkout) ---------- */
.pay-options { display: grid; gap: 10px; }
.pay-option { position: relative; display: flex; gap: 14px; align-items: flex-start; border: var(--line); background: var(--white); padding: 12px 14px 12px 46px; cursor: pointer; transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease; }
.pay-option:hover { background: var(--paper-2); }
.pay-option.is-selected, .pay-option:has(.pay-option__radio:checked) { background: var(--paper-2); box-shadow: var(--shadow-sm); transform: translate(-2px, -2px); }
.pay-option.is-disabled { cursor: not-allowed; background: #f1ede3; color: var(--muted); transform: none; box-shadow: none; }
.pay-option.is-disabled .pay-logo { opacity: .5; filter: grayscale(1); }
.pay-option__radio { position: absolute; left: 14px; top: 16px; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.pay-option__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-option__name { font-size: 1rem; }
.pay-option__desc { font-size: .88rem; color: var(--muted); }
.pay-option__fee { font-family: var(--font-mono); font-size: .8rem; font-weight: 700; }
.pay-option.is-disabled .pay-option__fee { color: #b3121b; }

/* ---------- logo metode bayar (logo resmi saja, tanpa kotak) ---------- */
.pay-logo { display: inline-flex; align-items: center; justify-content: flex-start; flex-shrink: 0; line-height: 0; vertical-align: middle; }
.pay-logo img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; }
.pay-logo--md { width: 96px; height: 40px; }
.pay-logo--sm, .pay-logo--sm img { height: 40px; }
.pay-logo--sm img { max-width: 170px; }
.pay-logo--xs, .pay-logo--xs img { height: 24px; }
.pay-logo--xs img { max-width: 100px; }
/* QRIS aslinya hitam: di latar gelap dibuat putih */
.site-footer .pay-logo--qris img { filter: invert(1); }
.pay-badges .pay-logo--xs, .pay-badges .pay-logo--xs img { height: 28px; }
.pay-badges .pay-logo--xs img { max-width: 116px; }
.qr-box__label.qr-box__label--logo { position: static; display: flex; justify-content: center; margin: 0 0 14px; padding: 0; background: none; line-height: 0; }
.paycode-box .qr-box__label--logo { margin-bottom: 0; }
.buybox__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 14px 0 0; }
.hero-card--3 .pay-logo { align-self: flex-start; }

/* ---------- jenis produk (form) ---------- */
.type-options { display: grid; gap: 8px; margin-bottom: 14px; }
.type-option { display: flex; gap: 10px; align-items: flex-start; border: var(--line-thin); background: var(--white); padding: 10px 12px; cursor: pointer; }
.type-option:has(input:checked) { background: var(--paper-2); box-shadow: var(--shadow-sm); }
.type-option input { margin-top: 4px; accent-color: var(--ink); }
.type-option span { display: flex; flex-direction: column; gap: 2px; }
.type-option small { color: var(--muted); }

/* ---------- stok & detail akun yang dikirim ---------- */
.chip--soldout { background: var(--red-soft); margin-top: 4px; }
.chip--few { background: var(--orange); margin-top: 4px; }
.buybox__stock { margin: 8px 0 0; font-weight: 700; }
.buybox__stock.is-few b { background: var(--orange); padding: 0 6px; border: var(--line-thin); }
.cred { margin: 10px 0 6px; display: grid; gap: 6px; }
.cred > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 8px; align-items: center; border: var(--line-thin); background: var(--paper-2); padding: 8px 10px; }
.cred dt { font-family: var(--font-mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }
.cred dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.cred dd .mono { overflow-wrap: anywhere; font-weight: 700; user-select: all; }
.cred--canva { display: grid; gap: 8px; justify-items: start; }
.cred--canva p, .cred--canva form { margin: 0; }
.delivery-wait { margin: 8px 0 0; padding: 8px 10px; border: 2px dashed var(--ink); background: #fff7d6; font-weight: 700; }
.download--account { align-items: flex-start; }
@media (max-width: 560px) {
  .cred > div { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- peringatan kode lama & catatan admin ---------- */
.old-code { margin-top: 16px; display: grid; gap: 10px; justify-items: start; }
.old-code p { margin: 0; }
.admin-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.admin-note p { margin: 0; flex: 1 1 320px; }
.admin-note form { margin: 0; }
.chip--warn { background: var(--orange); margin-top: 4px; }
.check-inline { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; white-space: nowrap; }

/* ---------- kode bayar minimarket ---------- */
.paycode-box { position: relative; background: var(--white); border: var(--line); box-shadow: var(--shadow-lg); padding: 20px 18px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.paycode-box__caption { font-family: var(--font-mono); font-weight: 700; font-size: .8rem; text-transform: uppercase; color: var(--muted); }
.paycode-box__code { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 .45em; font-family: var(--font-mono); font-size: clamp(1.05rem, 5.4vw, 1.75rem); letter-spacing: .04em; line-height: 1.2; border: 3px dashed var(--ink); background: var(--yellow); padding: 8px 10px; user-select: all; }
.paycode-box__missing { margin: 0; }
.timer__label { display: flex; flex-direction: column; }
.timer__deadline { font-weight: 400; font-size: .8rem; color: var(--muted); }
.pay-guide { border: var(--line-thin); background: var(--white); }
.pay-guide > summary { cursor: pointer; font-weight: 700; padding: 10px 14px; list-style-position: inside; }
.pay-guide[open] > summary { border-bottom: var(--line-thin); }
.pay-guide .pay-steps { border: 0; }

/* ---------- halaman bayar ---------- */
.pay { margin-bottom: 28px; }
.pay__head { margin-bottom: 18px; }
.pay__grid { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 30px; align-items: start; }
.pay__qr-col { display: grid; gap: 12px; }
.qr-box { position: relative; background: var(--white); border: var(--line); box-shadow: var(--shadow-lg); padding: 18px; }
.qr-box__label { position: absolute; top: -16px; left: 16px; background: var(--ink); color: var(--white); font-family: var(--font-display); padding: 2px 10px; letter-spacing: .05em; }
.qr-box__img { width: 100%; height: auto; image-rendering: pixelated; }
.qr-box__overlay { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 250, 240, .93); text-align: center; padding: 20px; }
.qr-box__overlay strong { font-family: var(--font-display); font-size: 1.4rem; border: var(--line); background: var(--red-soft); padding: 8px 14px; box-shadow: var(--shadow); }
.pay__hint, .pay__help { font-size: .88rem; color: var(--muted); margin: 0; }
.pay__info-col { display: grid; gap: 16px; }
.amount-box { border: var(--line); background: var(--yellow); box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 8px; justify-items: start; }
.amount-box__label { font-family: var(--font-mono); font-weight: 700; font-size: .8rem; text-transform: uppercase; }
.amount-box__value { font-family: var(--font-mono); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); line-height: 1.1; letter-spacing: -.03em; }
.amount-box__note { margin: 0; font-size: .9rem; }
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: var(--line); background: var(--white); padding: 10px 16px; }
.timer__label { font-weight: 700; }
.timer__value { font-family: var(--font-mono); font-weight: 700; font-size: 1.6rem; }
.timer.is-urgent { background: var(--orange); }
.timer.is-over { background: var(--red-soft); }
.pay-status { display: flex; align-items: center; gap: 12px; border: var(--line); padding: 12px 16px; font-weight: 700; background-color: var(--white); }
.pay-status--waiting { background-image: repeating-linear-gradient(-45deg, rgba(11, 11, 11, .06) 0 12px, transparent 12px 24px); background-size: 34px 34px; animation: stripes 1.2s linear infinite; }
.pay-status--paid { background: var(--green); animation: none; }
.pay-status--closed { background: var(--red-soft); animation: none; }
.pay-status__dot { width: 14px; height: 14px; border: var(--line-thin); background: var(--yellow); flex-shrink: 0; animation: blink 1s steps(2, start) infinite; }
.pay-status--paid .pay-status__dot { background: var(--ink); animation: none; }
@keyframes stripes { to { background-position: 34px 0; } }
@keyframes blink { to { visibility: hidden; } }
.pay-steps { margin: 0; padding: 14px 14px 14px 36px; border: var(--line-thin); background: var(--white); display: grid; gap: 4px; }
.pay__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pay__actions form { margin: 0; }

.state-card { border: var(--line); box-shadow: var(--shadow-lg); padding: 28px; margin-bottom: 28px; position: relative; overflow: hidden; }
.state-card__title { font-family: var(--font-display); font-size: clamp(1.5rem, 4vw, 2.3rem); letter-spacing: -.02em; }
.state-card__actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }
.state-card__actions form { margin: 0; }
.state-card__stamp { position: absolute; right: 18px; top: 18px; font-family: var(--font-display); font-size: 1.6rem; border: 4px solid var(--ink); padding: 4px 12px; transform: rotate(10deg); background: var(--white); box-shadow: var(--shadow); }

.status { display: inline-block; font-family: var(--font-mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; border: var(--line-thin); padding: 2px 8px; white-space: nowrap; background: var(--white); }
.status--pending { background: var(--yellow); }
.status--paid, .status--active { background: var(--green); }
.status--expired, .status--archived, .status--draft { background: #e6e1d3; }
.status--cancelled, .status--rejected { background: var(--pink); }
.status--failed, .status--banned { background: var(--red); }

/* ---------- tabel ---------- */
.table-wrap { overflow-x: auto; border: var(--line); background: var(--white); box-shadow: var(--shadow); }
.panel .table-wrap { box-shadow: none; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; background: var(--ink); color: var(--white); font-family: var(--font-mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; white-space: nowrap; }
.table td { padding: 10px 12px; border-top: var(--line-thin); vertical-align: top; overflow-wrap: anywhere; }
.table tbody tr:hover td { background: var(--paper-2); }
.table__action { white-space: nowrap; text-align: right; }

/* ---------- pustaka ---------- */
.library { display: grid; gap: 18px; }
.library-item { display: flex; gap: 18px; background: var(--white); border: var(--line); box-shadow: var(--shadow); padding: 16px; }
.library-item__body { flex: 1; min-width: 0; }
.library-item__title { font-size: 1.2rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.library-item__title a { text-decoration: none; }
.library-item__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0 6px; }
.library-item__actions small { font-weight: 400; }
.delivery { margin-top: 10px; border: var(--line-thin); background: var(--paper-2); }
.delivery summary { cursor: pointer; font-weight: 700; padding: 10px 12px; }
.delivery .prose { padding: 0 12px 12px; }

/* ---------- form ---------- */
.auth { display: grid; place-items: start center; }
.auth__card { width: 100%; max-width: 480px; background: var(--white); border: var(--line); box-shadow: var(--shadow-lg); padding: 28px; }
.auth__card .page-title { margin-bottom: 6px; }
.form { display: grid; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.form .field { margin-bottom: 0; }
.field__label { font-weight: 700; }
.field__input { width: 100%; min-height: 46px; padding: 10px 12px; border: var(--line); background: var(--white); border-radius: 0; box-shadow: inset 0 0 0 transparent; transition: box-shadow .1s ease, background-color .1s ease; appearance: none; }
textarea.field__input { resize: vertical; min-height: 96px; line-height: 1.5; }
select.field__input { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field__input:focus { outline: none; box-shadow: var(--shadow-sm); background-color: var(--paper-2); }
.field__input--sm { min-height: 38px; padding: 6px 10px; border-width: 2px; width: auto; }
.field__help { margin: 0; font-size: .85rem; color: var(--muted); }
.field__error { margin: 0; font-size: .88rem; font-weight: 700; color: #b3121b; }
.field__error::before { content: '✖ '; }
.field--invalid .field__input, .field__input[aria-invalid="true"] { border-color: #b3121b; background: #fff5f5; }
.field__static { margin: 0; padding: 10px 12px; border: var(--line-thin); border-style: dashed; }
.field__link { justify-self: start; font-weight: 700; }
.product-card .cover__label { display: none; }
.field__counter { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); justify-self: end; margin-top: -2px; }
.password-wrap { display: flex; }
.password-wrap .field__input { flex: 1; border-right: 0; }
.password-toggle { border: var(--line); background: var(--paper-2); padding: 0 14px; font-weight: 700; cursor: pointer; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: grid; place-items: center; padding: 0 12px; border: var(--line); border-right: 0; background: var(--paper-2); font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.input-prefix .field__input { flex: 1; min-width: 0; }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.stat-row--small { grid-template-columns: repeat(5, 1fr); }
.stat { border: var(--line); box-shadow: var(--shadow-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; background-color: var(--white); min-width: 0; }
.stat > span { font-family: var(--font-mono); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.stat strong { font-family: var(--font-display); font-size: clamp(1.15rem, 2.4vw, 1.6rem); line-height: 1.15; overflow-wrap: anywhere; }
.stat small { font-size: .8rem; }
a.stat:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }

.subnav { display: flex; gap: 0; flex-wrap: wrap; border: var(--line); background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: 24px; }
.subnav__link { padding: 10px 16px; font-weight: 700; text-decoration: none; border-right: var(--line-thin); }
.subnav__link:hover { background: var(--paper-2); }
.subnav__link.is-active { background: var(--yellow); }
.subnav__link--out { margin-left: auto; border-right: 0; border-left: var(--line-thin); }
.subnav--admin .subnav__link.is-active { background: var(--purple); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab { padding: 6px 12px; border: var(--line-thin); background: var(--white); font-weight: 700; text-decoration: none; font-size: .9rem; }
.tab.is-active { background: var(--ink); color: var(--white); }

.seller-products { display: grid; gap: 14px; }
.seller-product { display: flex; gap: 16px; align-items: center; background: var(--white); border: var(--line); box-shadow: var(--shadow-sm); padding: 12px; }
.seller-product__body { flex: 1; min-width: 0; }
.seller-product__top { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px; }
.seller-product__title { font-size: 1.1rem; margin: 0 0 2px; overflow-wrap: anywhere; }
.seller-product__title a { text-decoration: none; }
.seller-product__body p { margin: 0; }
.seller-product__actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 300px; }
.seller-product__actions form { margin: 0; }

.product-form__grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.product-form__side .panel--sticky { top: 92px; }
.dropzone { display: grid; justify-items: center; gap: 4px; text-align: center; border: var(--line); border-style: dashed; background: var(--paper-2); padding: 24px 16px; cursor: pointer; position: relative; transition: background-color .1s ease; }
.dropzone:hover, .dropzone.is-dragover { background: var(--yellow); }
.dropzone.has-file { background: var(--green); border-style: solid; }
.dropzone__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__input:focus-visible + .dropzone__icon { outline: 3px dashed var(--ink); outline-offset: 4px; }
.dropzone__icon { display: grid; place-items: center; width: 48px; height: 48px; border: var(--line); background: var(--white); font-size: 1.4rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.dropzone__text { font-weight: 700; overflow-wrap: anywhere; max-width: 100%; }
.dropzone__hint { font-size: .82rem; color: var(--muted); }
.current-file { margin: 0 0 8px; padding: 8px 10px; border: var(--line-thin); background: var(--white); font-size: .92rem; overflow-wrap: anywhere; }
.cover-preview { aspect-ratio: 4 / 3; border: var(--line-thin); border-style: dashed; display: grid; place-items: center; padding: 10px; text-align: center; font-size: .88rem; overflow: hidden; background: var(--paper-2); }
.cover-preview img { width: 100%; height: 100%; object-fit: cover; }
.cover-preview:has(img) { padding: 0; border-style: solid; }
.file-btn { cursor: pointer; }
.price-preview { margin: 0; display: grid; gap: 4px; border: var(--line-thin); padding: 10px 12px; background: var(--paper-2); font-size: .92rem; }
.price-preview > div { display: flex; justify-content: space-between; gap: 10px; }
.price-preview dd { margin: 0; font-family: var(--font-mono); font-weight: 700; }
.price-preview__net { border-top: 2px dashed var(--ink); padding-top: 4px; font-weight: 700; }
.upload-progress { margin-bottom: 12px; }
.upload-progress__bar { height: 22px; border: var(--line); background: var(--white); overflow: hidden; }
.upload-progress__bar span { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--yellow) 0 10px, #f5cf1d 10px 20px); transition: width .2s ease; }
.upload-progress p { margin: 6px 0 0; font-family: var(--font-mono); }

.onboarding { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.onboarding__pitch { border: var(--line); box-shadow: var(--shadow-lg); padding: 28px; }
.onboarding__pitch .page-title { margin-bottom: 18px; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 36px; min-height: 26px; font-weight: 500; }
.checklist li::before { content: '✔'; position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 24px; height: 24px; background: var(--white); border: var(--line-thin); font-size: .8rem; font-weight: 700; }
.narrow-panel { max-width: 640px; }

.withdrawals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.withdrawal { margin: 0; }
.withdrawal__actions { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: var(--line-thin); }
.withdrawal__actions .field__input { flex: 1; min-width: 160px; }
.temp-password { font-size: 1.6rem; font-weight: 700; background: var(--white); border: var(--line); padding: 10px 14px; display: inline-block; user-select: all; }

.error-page { text-align: center; padding: 30px 0; }
.error-page__code { font-family: var(--font-display); font-size: clamp(5rem, 22vw, 11rem); line-height: 1; color: var(--yellow); -webkit-text-stroke: 4px var(--ink); text-shadow: 8px 8px 0 var(--ink); margin-bottom: 10px; }
.error-page__msg { max-width: 560px; margin: 12px auto 24px; font-size: 1.1rem; }
.error-page__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.faq { border: var(--line-thin); margin-bottom: 10px; background: var(--white); }
.faq summary { cursor: pointer; padding: 12px 14px; font-weight: 700; }
.faq[open] summary { background: var(--yellow); border-bottom: var(--line-thin); }
.faq p { padding: 12px 14px; margin: 0; }

/* ---------- footer ---------- */
.site-footer { border-top: var(--line); background: var(--ink); color: var(--white); padding: 40px 0 18px; margin-top: 40px; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--yellow); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.site-footer__title { font-family: var(--font-mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--yellow); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer__tagline { margin: 14px 0; color: #d9d9d9; max-width: 380px; }
.logo--footer .logo__mark { box-shadow: 3px 3px 0 var(--pink); }
.logo--footer .logo__text { color: var(--white); }
.pay-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 30px; padding-top: 16px; border-top: 2px solid #333; font-size: .85rem; color: #bdbdbd; }

/* ---------- responsif ---------- */
@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(4, 1fr); }
  .stat-row--small { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .site-header__inner { flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .search { order: 3; max-width: none; flex-basis: 100%; }
  .menu__name { display: none; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { height: 260px; }
  .hero-card--1 { width: 150px; height: 190px; }
  .hero-card--2 { width: 140px; height: 160px; }
  .hero-card--3 { width: 150px; height: 150px; }
  .hero-card__qr { width: 80px; height: 80px; }
  .hero-card__big { font-size: 3rem; }
  .product, .checkout-layout, .product-form__grid, .pay__grid, .onboarding, .two-col { grid-template-columns: 1fr; }
  /* HP: kotak beli langsung di bawah cover, sebelum deskripsi & ulasan */
  .product { display: flex; flex-direction: column; gap: 20px; }
  .product__main, .product__side { display: contents; }
  .product__main > *, .product__side > * { margin: 0; }
  .product .cover--lg { order: 1; }
  .product .buybox { order: 2; }
  .product .store-mini { order: 3; }
  .product__main > .panel { order: 4; }
  /* HP: total & tombol bayar langsung setelah daftar produk */
  .checkout-layout--pay { display: flex; flex-direction: column; gap: 22px; }
  .checkout-layout--pay .checkout-layout__main { display: contents; }
  .checkout-layout--pay .checkout-layout__main > .panel { margin: 0; order: 4; }
  .checkout-layout--pay .checkout-layout__main > .panel:first-child { order: 1; }
  .checkout-layout--pay .checkout-layout__main > .checkout-buyer { order: 2; }
  .checkout-layout--pay .checkout-layout__main > .checkout-method { order: 3; }
  .checkout-layout--pay .summary { order: 4; }
  .product__side, .summary, .panel--sticky, .product-form__side .panel--sticky { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .withdrawals { grid-template-columns: 1fr; }
  .shelf-empty { grid-template-columns: 1fr; gap: 24px; }
  /* HP: nominal & batas waktu di atas, lalu QR */
  .pay__grid { display: flex; flex-direction: column; gap: 14px; }
  .pay__qr-col, .pay__info-col { display: contents; }
  .pay .amount-box { order: 1; }
  .pay .timer { order: 2; }
  .pay .qr-box { order: 3; margin-top: 14px; width: 100%; max-width: 420px; align-self: center; }
  /* minimarket: kode bayar paling atas (ditunjukkan ke kasir) */
  .pay .paycode-box { order: 0; margin-top: 14px; }
  .pay .pay-guide { order: 7; }
  .pay__qr-col > .btn { order: 4; width: 100%; max-width: 420px; align-self: center; }
  .pay-option { padding-left: 42px; gap: 10px; flex-direction: column; }
  .pay__hint { order: 5; }
  .pay-status { order: 6; }
  .pay-steps { order: 7; }
  .pay__actions { order: 8; }
  .pay__help { order: 9; }

  /* tabel jadi kartu */
  .table--cards thead { display: none; }
  .table--cards, .table--cards tbody, .table--cards tr, .table--cards td { display: block; width: 100%; }
  .table--cards tr { border-top: var(--line); padding: 8px 0; }
  .table--cards tr:first-child { border-top: 0; }
  .table--cards td { border-top: 0; padding: 4px 12px; display: flex; justify-content: space-between; gap: 12px; text-align: right; }
  .table--cards td::before { content: attr(data-label); font-family: var(--font-mono); font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--muted); text-align: left; flex-shrink: 0; }
  .table--cards td.table__action { justify-content: flex-end; flex-wrap: wrap; }
  .table--cards td.table__action::before { content: none; }
  .table--cards td[colspan] { justify-content: center; }
  .table--cards td[colspan]::before { content: none; }
}

@media (max-width: 640px) {
  :root { --shadow: 4px 4px 0 var(--ink); --shadow-lg: 6px 6px 0 var(--ink); }
  .site-header { position: static; }
  .site-header__inner { min-height: 0; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__text { font-size: .95rem; }
  .nav { gap: 6px; }
  .nav__link { padding: 4px 6px; }
  .nav__link:not(.nav__link--sell):not(.nav__link--orders) { display: none; }
  .nav__cart { width: 40px; height: 40px; }
  .nav__login { display: none; }
  .menu__toggle { padding: 2px; }
  .menu__panel { width: min(260px, calc(100vw - 32px)); }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  /* chip kategori: satu baris yang bisa digeser, menempel ke tepi layar */
  .cat-chips { margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .cat-chips__list { flex-wrap: nowrap; overflow-x: auto; padding: 4px var(--gutter) 12px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cat-chips__list::-webkit-scrollbar { display: none; }
  .cat-chips__list > li { flex-shrink: 0; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .cat-chips__list--wrap { flex-wrap: wrap; overflow: visible; padding: 2px 0 6px; }
  .browse-bar { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 10px; }
  .segmented { display: flex; }
  .segmented__item { flex: 1; padding: 6px 8px; }
  .sort-form { justify-content: space-between; }
  .sort-form .field__input { flex: 1; min-width: 0; }
  .shelf-empty { padding: 26px 20px 28px; }
  .shelf-empty__art { width: 256px; height: 176px; }
  .shelf-card { width: 98px; height: 124px; font-size: 1.7rem; padding: 8px; }
  .shelf-card--1 { top: 36px; }
  .shelf-card--2 { left: 79px; }
  .shelf-card--3 { left: 158px; top: 44px; }
  .no-match { flex-direction: column; gap: 18px; padding: 24px 20px; }
  .no-match__icon { width: 64px; height: 64px; font-size: 2.3rem; }
  .product-card__body { padding: 10px; }
  .product-card__title { font-size: .95rem; }
  .price { font-size: .9rem; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero { padding: 30px 0 36px; }
  .hero__art { display: none; }
  .hero__stats li { padding: 8px 12px; }
  .page { padding-top: 20px; }
  .line-item { flex-wrap: wrap; }
  .line-item .cover--sm { width: 84px; }
  .line-item__body { flex-basis: calc(100% - 150px); }
  .line-item__price { margin-left: 98px; }
  .library-item, .seller-product { flex-direction: column; align-items: stretch; }
  .library-item .cover--sm, .seller-product .cover--sm { width: 100%; }
  .seller-product__actions { max-width: none; justify-content: flex-start; }
  .stat-row, .stat-row--small { grid-template-columns: 1fr 1fr; gap: 10px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .subnav__link { flex: 1 1 auto; text-align: center; padding: 8px 10px; }
  .subnav__link--out { margin-left: 0; border-left: 0; }
  .state-card { padding: 20px; }
  .state-card__stamp { position: static; display: inline-block; margin-bottom: 12px; font-size: 1.2rem; }
  .auth__card { padding: 20px; }
  .cta-band { padding: 22px; }
  .timer__value { font-size: 1.3rem; }
  .toolbar__sort { margin-left: 0; }
}

@media (max-width: 520px) {
  .access-box { flex-direction: column; padding: 16px; }
  .access-box__link { flex-direction: column; }
  .download { flex-wrap: wrap; }
  .download .btn { width: 100%; }
}

@media (max-width: 400px) {
  .product-grid { gap: 10px; }
  .product-card__body { padding: 8px; gap: 4px; }
  .product-card__body .chip { display: none; }
  .product-card__meta { flex-direction: column; align-items: flex-start; gap: 4px; }
  .nav__register { padding: 5px 8px; }
}

@media (max-width: 340px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .pay__actions, .btn { display: none !important; }
  body { background: #fff; }
}
