/* Toko Kayo, sistem desain "Dompet Akses". Lihat docs/DESIGN.md. */
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Onest"; src: url("/fonts/onest.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #141824;
  --panel: #191e2b;
  --card: #1c2130;
  --surface-2: #252b3c;
  --field: #151a26;
  --ink: #eef1f7;
  --ink-2: #c5cbd8;
  --muted: #a0a8ba;
  --line: #2a3043;
  --line-strong: #394157;
  --line-hover: #56607a;
  --accent: #5a4cf5;
  --accent-deep: #4a3ce6;
  --accent-soft: #2a2757;
  --accent-text: #b0a9ff;
  --teal: #2dd4bf;
  --ok: #4ade9a;
  --ok-soft: #173326;
  --warn: #f7c26b;
  --warn-soft: #3a2d16;
  --danger: #ff8a8a;
  --danger-soft: #3a1d22;
  --info: #7cc4ff;
  --info-soft: #172d44;
  --on-light: #0f1320;
  --hairline: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Onest", "Segoe UI", system-ui, sans-serif;
  --r-s: 8px;
  --r-m: 12px;
  --r-l: 20px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --wrap: 78rem;
  --lift: 0 26px 50px -24px rgba(0, 0, 0, 0.85);
  --shadow-pop: 0 28px 60px -22px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.03);
  /* Pegas: sedikit melewati target lalu kembali, supaya gerak terasa hidup. */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  /* Motif sampul per kategori, garis putih tipis. */
  --motif-umum: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='white' stroke-width='1.4'%3E%3Ccircle cx='12' cy='12' r='5'/%3E%3Ccircle cx='36' cy='36' r='5'/%3E%3C/svg%3E");
  --motif-streaming: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M9 8l13 7.5L9 23z'/%3E%3Cpath d='M39 38l13 7.5L39 53z'/%3E%3C/svg%3E");
  --motif-musik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 30v8M15 18v20M24 26v12M33 10v28M42 20v18M51 28v10'/%3E%3C/svg%3E");
  --motif-ai: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' fill='none' stroke='white' stroke-width='1.3'%3E%3Cpath d='M10 12l22 10 18-12M32 22l-6 24 26 6M26 46L10 12'/%3E%3Cg fill='white' stroke='none'%3E%3Ccircle cx='10' cy='12' r='2.6'/%3E%3Ccircle cx='32' cy='22' r='2.6'/%3E%3Ccircle cx='50' cy='10' r='2.6'/%3E%3Ccircle cx='26' cy='46' r='2.6'/%3E%3Ccircle cx='52' cy='52' r='2.6'/%3E%3C/g%3E%3C/svg%3E");
  --motif-kreativitas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='32' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 20c8-14 24-14 32 0s24 14 32 0'/%3E%3C/svg%3E");
  --motif-produktivitas: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='52' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='14' height='14' rx='3'/%3E%3Cpath d='M9.5 13l3 3 5-6'/%3E%3Cpath d='M28 11h18M28 16h12'/%3E%3C/svg%3E");
  --motif-keamanan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='48' fill='none' stroke='white' stroke-width='1.4'%3E%3Cpath d='M14 2l12 7v14l-12 7-12-7V9zM42 26l12 7v14M30 33l12-7'/%3E%3C/svg%3E");
  --motif-discord: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='56' fill='none' stroke='white' stroke-width='1.6' stroke-linejoin='round'%3E%3Cpath d='M8 8h22a4 4 0 0 1 4 4v10a4 4 0 0 1-4 4H16l-6 5v-5H8a4 4 0 0 1-4-4V12a4 4 0 0 1 4-4z'/%3E%3Ccircle cx='15' cy='17' r='1.4' fill='white'/%3E%3Ccircle cx='23' cy='17' r='1.4' fill='white'/%3E%3C/svg%3E");
  --motif-media-sosial: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 26s-9-5.5-9-11.5A4.6 4.6 0 0 1 16 12a4.6 4.6 0 0 1 9 2.5C25 20.5 16 26 16 26z'/%3E%3Cpath d='M44 38v12M38 44h12'/%3E%3C/svg%3E");
  --motif-sistem-operasi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' fill='none' stroke='white' stroke-width='1.4'%3E%3Crect x='6' y='6' width='14' height='14' rx='2'/%3E%3Crect x='22' y='6' width='14' height='14' rx='2'/%3E%3Crect x='6' y='22' width='14' height='14' rx='2'/%3E%3Crect x='22' y='22' width='14' height='14' rx='2'/%3E%3C/svg%3E");
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='264' height='264' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='14' y='18' width='34' height='26' rx='6'/%3E%3Cpath d='M27 25l10 6-10 6z'/%3E%3Cpath d='M112 20v24'/%3E%3Ccircle cx='106' cy='45' r='5'/%3E%3Cpath d='M112 20l14-4v22'/%3E%3Ccircle cx='120' cy='40' r='5'/%3E%3Cpath d='M196 18h30a5 5 0 0 1 5 5v16a5 5 0 0 1-5 5h-18l-8 7v-7h-4a5 5 0 0 1-5-5V23a5 5 0 0 1 5-5z'/%3E%3Cpath d='M48 122s-14-8.5-14-18a7.5 7.5 0 0 1 14-3.7 7.5 7.5 0 0 1 14 3.7c0 9.5-14 18-14 18z'/%3E%3Cpath d='M142 92l14 5v10c0 9-6 15-14 18-8-3-14-9-14-18V97z'/%3E%3Cpath d='M136 108l5 5 8-9'/%3E%3Cpath d='M206 98h28a10 10 0 0 1 10 11l-2 11a6 6 0 0 1-10 3l-5-5h-14l-5 5a6 6 0 0 1-10-3l-2-11a10 10 0 0 1 10-11z'/%3E%3Cpath d='M212 106v8M208 110h8'/%3E%3Ccircle cx='230' cy='108' r='1.5'/%3E%3Ccircle cx='235' cy='113' r='1.5'/%3E%3Cpath d='M22 206h30a9 9 0 0 0 0-18 13 13 0 0 0-25-3 8 8 0 0 0-5 21z'/%3E%3Cpath d='M104 184h44v8a5 5 0 0 0 0 10v8h-44v-8a5 5 0 0 0 0-10z'/%3E%3Cpath d='M126 186v22' stroke-dasharray='3 3'/%3E%3Cpath d='M200 210v-8a16 16 0 0 1 32 0v8'/%3E%3Crect x='196' y='206' width='8' height='12' rx='3'/%3E%3Crect x='228' y='206' width='8' height='12' rx='3'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.3l2.3 2.3 4.7-5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body { position: relative; isolation: isolate; margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 1rem/1.6 var(--body); }
/* Latar: semburat ungu dan teal yang sangat tipis, lalu pola ikon layanan digital (putar, musik, chat, game, ...). */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 8% -8%, rgba(90, 76, 245, 0.2), transparent 62%),
    radial-gradient(900px 560px at 100% 4%, rgba(45, 212, 191, 0.09), transparent 60%),
    radial-gradient(1000px 700px at 50% 110%, rgba(90, 76, 245, 0.1), transparent 65%); }
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--pattern) 0 0 / 264px auto; opacity: 0.045; -webkit-mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.55) 70%, #000); mask-image: linear-gradient(to bottom, #000, rgba(0, 0, 0, 0.55) 70%, #000); }
main { flex: 1; padding-bottom: 5rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.65rem); }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--accent-text); text-underline-offset: 0.2em; }
a:hover { color: #c7c2ff; }
::selection { background: rgba(84, 70, 245, 0.55); color: #fff; }
img { max-width: 100%; height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 30; padding: 0.6rem 1rem; background: var(--ink); color: var(--on-light); border-radius: var(--r-s); }
.skip:focus { left: 0.5rem; }
.muted { color: var(--muted); }
.fine { font-size: 0.86rem; color: var(--muted); }
.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.m0 { margin: 0; }
.mt { margin-top: 1.25rem; }
.mt-s { margin-top: 0.75rem; }
.mb { margin-bottom: 1rem; }

/* Ikon */
.icon { width: 1.25rem; height: 1.25rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.45s var(--spring); }

/* Merek */
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); text-decoration: none; font: 500 1.08rem/1 var(--display); letter-spacing: -0.03em; white-space: nowrap; }
.wordmark b { font-weight: 700; }
.wordmark:hover { color: var(--ink); }
.wordmark .mark { width: 1.75rem; height: 1.75rem; object-fit: contain; transition: transform 0.6s var(--spring); }
.wordmark:hover .mark { transform: rotate(-8deg) scale(1.08); }

/* Kepala halaman */
.announcement { max-width: none; margin: 0; padding: 0.5rem var(--gutter); background: var(--panel); color: #fff; text-align: center; font-size: 0.92rem; }
.site-header { position: sticky; top: 0; z-index: 10; background: transparent; border-bottom: 1px solid transparent; transition: border-color 0.25s, background 0.25s; }
.site-header.is-scrolled { border-color: var(--line); background: rgba(20, 24, 36, 0.94); }
.header-inner { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 4.25rem; }
.site-nav { display: flex; align-items: center; gap: 0.15rem; margin-left: auto; }
.site-nav :is(a, button) { position: relative; display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.75rem; padding: 0.5rem 0.75rem; border-radius: var(--r-m); color: var(--ink-2); font-weight: 500; text-decoration: none; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.site-nav form { display: grid; margin: 0; }
.site-nav button { border: 0; background: none; font: inherit; cursor: pointer; }
.site-nav :is(a, button):hover, .site-nav :is(a, button)[aria-current="page"] { background: var(--card); color: var(--ink); }
.site-nav :is(a, button):hover .icon { transform: translateY(-2px) rotate(-8deg); }
.cart-count { min-width: 1.35rem; padding: 0 0.38rem; border-radius: 1rem; background: var(--accent); color: #fff; font: 600 0.75rem/1.35rem var(--body); text-align: center; animation: bump 0.5s var(--spring) both; }
@keyframes bump { from { transform: scale(0.4); } }

/* Kaki halaman */
.site-footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--panel); color: #aab2c2; }
.site-footer a { color: #e6e9f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-main { display: grid; grid-template-columns: minmax(0, 1.4fr) auto auto; align-items: center; gap: 0.45rem clamp(0.8rem, 2.5vw, 2rem); padding-block: 0.65rem; }
.footer-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; color: var(--muted); font-size: 0.88rem; }
.footer-copyright { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; }
.footer-copyright img { width: 1.5rem; height: 1.5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 0.95rem; font-size: 0.92rem; }
.footer-links a, .footer-brand a { display: inline-flex; align-items: center; min-height: 2.75rem; overflow-wrap: anywhere; }
.footer-pay { display: flex; align-items: center; gap: 0.55rem; margin: 0; font-size: 0.88rem; }
.pay-badge { flex: none; padding: 0.1rem 0.45rem; border-radius: 6px; background: #fff; color: var(--on-light); font: 700 0.75rem/1.4 var(--display); letter-spacing: -0.02em; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 3rem; padding: 0.6rem 1.35rem; border: 1px solid var(--accent); border-radius: var(--r-m); background: var(--accent); color: #fff; font: 600 1rem/1.1 var(--body); text-decoration: none; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.35s var(--spring), box-shadow 0.3s; }
.btn:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 24px -14px var(--accent); }
.btn:active { transform: scale(0.97); transition-duration: 0.08s; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--card); color: var(--ink); border-color: var(--line-hover); box-shadow: none; }
.btn-small { min-height: 2.4rem; padding: 0.4rem 0.9rem; font-size: 0.92rem; }
.btn-full { width: 100%; }
.btn[disabled] { background: var(--surface-2); border-color: var(--line-strong); color: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }
.link-btn { padding: 0.25rem 0; border: 0; background: none; color: var(--accent-text); font: inherit; text-decoration: underline; cursor: pointer; }

/* Formulir */
.field { display: block; margin-bottom: 1.1rem; }
.field > span:first-child, .field > label, .legend { display: block; margin-bottom: 0.35rem; font-weight: 600; font-size: 0.95rem; }
.field > .hint { display: block; margin: 0.35rem 0 0; font-size: 0.86rem; font-weight: 400; color: var(--muted); }
.field > .hint.discount { color: var(--danger); font-weight: 600; }
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], input[type="number"], input[type="password"], input[type="url"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 2.9rem; padding: 0.55rem 0.85rem; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--field); color: var(--ink); font: inherit; transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 7rem; resize: vertical; }
input::placeholder, textarea::placeholder { color: #6c7486; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="file"] { font: inherit; max-width: 100%; }
.legend-title { display: block; padding: 0; margin-bottom: 0.9rem; font: 600 1.2rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }

/* Pesan */
.flash { max-width: none; margin: 1.25rem 0; padding: 0.85rem 1.1rem; border-radius: var(--r-m); background: var(--card); border: 1px solid var(--line); font-weight: 500; animation: drop 0.5s var(--spring) both; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }
.flash-ok { background: var(--ok-soft); border-color: #1d5a41; color: #8ee6bd; }
.flash-error { background: var(--danger-soft); border-color: #6b2a2f; color: #ffb3b3; }
.notice { max-width: none; margin-bottom: 1.25rem; padding: 0.9rem 1.1rem; border-radius: var(--r-m); background: var(--warn-soft); color: #f6cd8d; }
.notice > :last-child { margin-bottom: 0; }
.notice a { color: #f6cd8d; }

/* Ubin ikon aplikasi */
.logo { --brand: var(--accent); position: relative; display: inline-grid; place-items: center; flex: none; width: 4rem; height: 4rem; border-radius: 24%; background: #fff; overflow: hidden; }
.logo img { display: block; }
.logo-cover img { width: 100%; height: 100%; object-fit: cover; }
.logo-pad img { width: 66%; height: 66%; object-fit: contain; }
.logo-initials { background: linear-gradient(150deg, color-mix(in oklab, var(--brand) 80%, white), var(--brand)); }
.logo-initials span { font: 700 1.25rem/1 var(--display); color: #fff; letter-spacing: -0.03em; }
.logo-sm { width: 1.75rem; height: 1.75rem; border-radius: 26%; box-shadow: 0 0 0 2px var(--card); }
.logo-sm .logo-initials span, .logo-sm span { font-size: 0.6rem; }
.logo-lg { width: 7.5rem; height: 7.5rem; }
.logo-lg .logo-initials span, .logo-initials.logo-lg span { font-size: 2.4rem; }

/* Sampul produk: gradasi merek, motif kategori, potongan besar ikon, ubin ikon */
.cover { --brand: var(--accent); --motif: var(--motif-umum); position: relative; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(90% 80% at 12% 0%, color-mix(in oklab, var(--brand) 45%, white) 0%, transparent 62%),
    linear-gradient(155deg, color-mix(in oklab, var(--brand) 88%, white) 0%, var(--brand) 42%, color-mix(in oklab, var(--brand) 52%, #070a12) 100%);
}
.cover[data-motif="streaming"] { --motif: var(--motif-streaming); }
.cover[data-motif="musik"] { --motif: var(--motif-musik); }
.cover[data-motif="ai"] { --motif: var(--motif-ai); }
.cover[data-motif="kreativitas"] { --motif: var(--motif-kreativitas); }
.cover[data-motif="produktivitas"] { --motif: var(--motif-produktivitas); }
.cover[data-motif="keamanan"] { --motif: var(--motif-keamanan); }
.cover[data-motif="discord"] { --motif: var(--motif-discord); }
.cover[data-motif="media-sosial"] { --motif: var(--motif-media-sosial); }
.cover[data-motif="sistem-operasi"] { --motif: var(--motif-sistem-operasi); }
.cover-motif { position: absolute; inset: 0; z-index: -1; background: var(--motif) 0 0 / 54px auto; opacity: 0.17; -webkit-mask-image: radial-gradient(120% 90% at 20% 15%, #000 30%, transparent 85%); mask-image: radial-gradient(120% 90% at 20% 15%, #000 30%, transparent 85%); transition: background-position 1.6s var(--ease-out); }
.cover-echo { position: absolute; z-index: -1; right: -16%; bottom: -34%; width: 74%; aspect-ratio: 1; border-radius: 24%; object-fit: cover; opacity: 0.32; mix-blend-mode: soft-light; transform: rotate(-16deg); transition: transform 0.9s var(--spring); }
.cover-echo.echo-pad { object-fit: contain; border-radius: 0; filter: brightness(0) invert(1); opacity: 0.16; mix-blend-mode: normal; }
.cover .logo { z-index: 1; box-shadow: 0 16px 30px -14px rgba(5, 8, 16, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.22); transform: rotate(-5deg); transition: transform 0.6s var(--spring); }

/* Kartu poster: sampul merek penuh, nama dan harga di atasnya */
.pass { --brand: var(--accent); position: relative; display: block; height: 100%; border-radius: var(--r-l); color: #fff; text-decoration: none; transition: transform 0.55s var(--spring), box-shadow 0.4s var(--ease-out); }
.pass:hover { color: #fff; transform: translateY(-6px) rotate(-0.6deg); box-shadow: 0 26px 44px -26px color-mix(in srgb, var(--brand) 80%, #000); }
.pass:active { transform: translateY(-2px) scale(0.985); transition-duration: 0.1s; }
.pass:focus-visible { outline-offset: 3px; }
.pass .cover { height: 100%; aspect-ratio: 1 / 1; grid-template-rows: 1fr auto; border-radius: inherit; }
.pass .cover > .logo { align-self: center; margin-top: 0.7rem; width: 2.9rem; height: 2.9rem; }
.pass .cover::before { content: ""; position: absolute; z-index: 2; top: 8px; left: 50%; width: 28px; height: 6px; translate: -50% 0; border-radius: 4px; background: var(--bg); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6); }
.pass .cover::after { content: ""; position: absolute; inset: 45% 0 0; z-index: 0; background: linear-gradient(to top, rgba(5, 8, 16, 0.78), rgba(5, 8, 16, 0)); pointer-events: none; }
.pass:hover .cover .logo { transform: rotate(0deg) translateY(-6px) scale(1.1); }
.pass:hover .cover-echo { transform: rotate(-6deg) scale(1.08); }
.pass:hover .cover-motif { background-position: 27px -18px; }
.pass-info { position: relative; z-index: 1; display: grid; gap: 0.15rem; width: 100%; padding: 0 0.7rem 0.7rem; }
.pass-name { overflow: hidden; color: #fff; font: 700 0.84rem/1.25 var(--body); text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3); }
.pass-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 0.35rem; color: #fff; font: 600 0.86rem/1.2 var(--display); letter-spacing: -0.02em; }
.pass-price small { font: 500 0.7rem/1.2 var(--body); color: rgba(255, 255, 255, 0.78); letter-spacing: 0; }
.pass-flag { position: absolute; z-index: 2; right: 10px; top: 10px; padding: 0.15rem 0.55rem; border-radius: var(--r-s); background: rgba(7, 10, 18, 0.78); color: #fff; font-size: 0.75rem; font-weight: 600; }
.pass-flag.is-deal { background: var(--danger); }
.pass.is-soldout .cover { filter: grayscale(0.9); }
.pass-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 8.6rem), 1fr)); gap: 0.7rem; }

@keyframes rise { from { opacity: 0; transform: translateY(22px); } }

/* Rak */
.shelf { margin-bottom: clamp(2.75rem, 5vw, 3.75rem); }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.1rem; }
.shelf-head p { margin: 0.4rem 0 0; color: var(--muted); }
.shelf-more { flex: none; font-weight: 600; text-decoration: none; }
.shelf-more:hover { text-decoration: underline; }
.shelf-row { display: grid; grid-auto-flow: column; grid-auto-columns: 9rem; gap: 0.7rem; margin-inline: calc(var(--gutter) * -1); padding: 0.75rem var(--gutter) 1.5rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin; }
.shelf-row li { scroll-snap-align: start; }
/* Kartu masuk bergiliran saat rak terlihat; hanya bila JS aktif, supaya konten tidak pernah tersembunyi. */
.reveal .shelf-row li, .reveal .pass-grid li { opacity: 0; transform: translateY(24px) scale(0.97); }
.reveal .is-in li { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.8s var(--spring); transition-delay: calc(var(--n, 0) * 55ms); }

/* Bantuan */
.help { padding-top: 1rem; }
.faq-head { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(16rem, 0.9fr); align-items: center; gap: 1rem; margin: 1.25rem 0; padding: clamp(1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); box-shadow: var(--hairline); }
.faq-head h1 { font-size: clamp(1.75rem, 3.5vw, 2.7rem); }
.faq-head p { margin: 0.45rem 0 0; color: var(--muted); }
.faq-mark { display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--accent-soft); color: var(--accent-text); }
.faq-mark .icon { width: 1.65rem; height: 1.65rem; }
.faq-search label { display: block; margin-bottom: 0.35rem; color: var(--ink-2); font-weight: 600; }
.faq-search > div { display: flex; gap: 0.5rem; }
.faq-search input { min-width: 0; }
.faq-search input::placeholder { color: var(--muted); }
.faq-group h2 .icon { color: var(--accent-text); }
.faq { display: grid; gap: 0.85rem; min-width: 0; }
.faq-group { padding: 0.45rem clamp(0.85rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--hairline); }
.faq-group:target { border-color: var(--accent-text); }
.faq-group h2 { display: flex; align-items: center; gap: 0.65rem; padding: 0.75rem 0; font-size: 1.05rem; }
.faq details { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 0.75rem 2.1rem 0.75rem 0; min-height: 2.75rem; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; top: 50%; right: 0.15rem; translate: 0 -50%; display: grid; place-items: center; width: 1.5rem; height: 1.5rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.faq summary:hover, .faq details[open] summary { color: var(--accent-text); }
.faq details[open] summary::after { content: "−"; background: var(--accent-soft); color: var(--accent-text); }
.faq details p { margin: 0 0 0.9rem; color: var(--ink-2); animation: rise 0.25s var(--ease-out) both; }

/* Masuk, daftar, dan akun */
.account-head p { overflow-wrap: anywhere; }
.account-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; }
.orders-layout, .chat-workspace { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 1fr); align-items: start; gap: clamp(1rem, 2.5vw, 1.75rem); margin-bottom: 2rem; }
.orders-layout-guest { grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.75fr); }
.orders-layout .account-orders { margin: 0; }
.order-lookup, .chat-guide { padding: clamp(1rem, 3vw, 1.5rem); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); box-shadow: var(--hairline); }
.orders-panel-head { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1.25rem; }
.orders-icon, .chat-avatar { display: grid; place-items: center; flex: none; width: 2.75rem; height: 2.75rem; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.orders-panel-head h2, .chat-guide h2 { font-size: 1.1rem; }
.orders-panel-head p, .orders-intro, .orders-empty p, .chat-guide p { margin: 0.35rem 0 0; color: var(--muted); }
.order-lookup .btn { width: 100%; }
.orders-layout .account-orders h2 { margin-bottom: 0; }
.orders-intro { margin-bottom: 1rem; }
.orders-empty { padding: clamp(1.25rem, 4vw, 2.5rem); border: 1px dashed var(--line-strong); border-radius: var(--r-m); text-align: center; }
.orders-empty > .icon { width: 1.65rem; height: 1.65rem; margin-bottom: 0.5rem; color: var(--accent-text); }
.orders-empty .btn { margin-top: 1rem; }
.account-orders, .account-profile { margin-bottom: 1.5rem; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--hairline); }
.account-orders h2, .account-profile h2 { margin-bottom: 1rem; font-size: 1.15rem; }
.account-profile form { max-width: 28rem; }
.order-list { display: grid; gap: 0.5rem; }
.order-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 0.5rem 1.25rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.4s var(--spring); }
.order-cancel-link { display: inline-block; margin: 0.45rem 1rem 0.25rem; font-size: 0.88rem; }
.order-cancel { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.65rem 1rem; margin-top: 1rem; padding: 0.85rem 1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); }
.order-cancel p { margin: 0; color: var(--ink-2); }
.order-row:hover { border-color: var(--line-hover); color: var(--ink); transform: translateX(3px); }
.order-code { font: 600 0.95rem/1.2 var(--display); letter-spacing: -0.02em; }
.order-date { color: var(--muted); font-size: 0.88rem; }
.order-status { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 999px; background: var(--warn-soft); color: var(--warn); box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent); font-size: 0.8rem; font-weight: 600; white-space: nowrap; }
.status-fulfilled { background: var(--ok-soft); color: var(--ok); }
.status-awaiting_verification, .status-processing { background: var(--info-soft); color: var(--info); }
.status-refund_pending { background: var(--danger-soft); color: var(--danger); }
.status-expired, .status-cancelled, .status-failed, .status-refunded { background: var(--surface-2); color: var(--ink-2); }

/* Katalog */
.page-head { padding-block: clamp(1.75rem, 4vw, 2.75rem) 1.25rem; }
.page-head p { margin: 0.65rem 0 0; color: var(--muted); }
.catalog-bar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr) minmax(0, 1.35fr) auto; align-items: end; gap: 0.85rem; margin-block: 1.25rem 1.5rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--panel); box-shadow: var(--hairline); }
.catalog-field { display: grid; gap: 0.35rem; min-width: 0; margin: 0; color: var(--ink-2); font-size: 0.85rem; font-weight: 600; }
.catalog-field :is(select, input) { width: 100%; min-width: 0; min-height: 2.75rem; font-weight: 500; }
.catalog-field select { appearance: none; overflow: hidden; text-overflow: ellipsis; padding-right: 2rem; background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23a0a8ba' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E") no-repeat right 0.8rem center; cursor: pointer; }
.catalog-field :is(select, input):hover { border-color: var(--line-hover); }
.catalog-search-row { display: contents; }
.catalog-query { position: relative; display: block; }
.catalog-query .icon { position: absolute; inset: 50% auto auto 0.8rem; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.catalog-query input { padding-left: 2.3rem; }
.catalog-query input::placeholder { color: var(--muted); }
.catalog-bar .btn { min-height: 2.75rem; }
.catalog-bar [data-hide-js] { grid-column: 1 / -1; }
.js .catalog-bar [data-hide-js] { display: none; }

@media (max-width: 64rem) {
  .catalog-bar {
    gap: 0.55rem 0.65rem;
    margin-block: 0.75rem 1rem;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
  }
  .catalog-field { gap: 0.25rem; }
  .catalog-field :is(input, select) { height: 2.75rem; padding-block: 0.45rem; font-size: 1rem; }
  .catalog-search-row > a.btn { padding-inline: 0.85rem; background: var(--panel); }
  .catalog-search-row > a.btn:hover { background: var(--card); }
}

@media (max-width: 48rem) {
  .catalog-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-search-row { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: inherit; }
  .catalog-field select { padding-inline: 0.65rem 1.65rem; background-position: right 0.55rem center; }
}

.chips, .tabs { display: flex; gap: 0.4rem; overflow-x: auto; scrollbar-width: none; }
.chips { flex: 1 1 24rem; }
.chips a, .tabs a { flex: none; padding: 0.42rem 0.85rem; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); color: var(--ink-2); font-size: 0.92rem; font-weight: 500; text-decoration: none; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.chips a:hover, .tabs a:hover { border-color: var(--line-hover); color: var(--ink); }
.chips a[aria-current="page"], .tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--on-light); }
.tabs { flex-wrap: wrap; margin-bottom: 1rem; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.filters .field { margin: 0; }
.filters input[type="search"] { width: 15rem; min-height: 2.5rem; }
.filters select { width: auto; min-height: 2.5rem; }
.js .filters [data-hide-js] { display: none; }
.empty { padding: 2.5rem 0; }
.empty h2 { margin-bottom: 0.6rem; }

/* Halaman produk */
.cover-hero { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; gap: clamp(0.85rem, 2.3vw, 1.65rem); margin-top: 1.25rem; padding: clamp(1rem, 3vw, 1.9rem); border-radius: 22px; color: #fff; view-transition-name: produk-sampul; }
.cover-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(20deg, rgba(5, 8, 16, 0.62) 0%, rgba(5, 8, 16, 0.2) 45%, transparent 70%); }
.cover-hero .cover-motif { background-size: 72px auto; opacity: 0.2; }
.cover-hero .cover-echo { right: -6%; bottom: -42%; width: 46%; opacity: 0.36; }
.cover-hero > .logo { width: clamp(3rem, 8vw, 5.5rem); height: auto; aspect-ratio: 1; animation: pop 0.9s var(--spring) 0.1s both; }
@keyframes pop { from { opacity: 0; transform: rotate(-18deg) scale(0.6); } }
.cover-copy { animation: rise 0.8s var(--ease-out) 0.15s both; }
.cover-copy .crumbs { padding-top: 0; margin-bottom: 0.6rem; font-size: 0.9rem; color: rgba(255, 255, 255, 0.82); }
.cover-copy .crumbs a { color: #fff; }
.cover-hero h1 { color: #fff; font-size: clamp(1.45rem, 3.8vw, 2.85rem); font-weight: 700; letter-spacing: -0.035em; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25); }
.cover-hero .product-tagline { margin: 0.4rem 0 0; max-width: 62ch; color: rgba(255, 255, 255, 0.9); font-size: 1.05rem; }
.cover-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.7rem; }
.fulfillment-note { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.85rem; padding: 0.45rem 0.75rem; border-inline-start: 2px solid var(--accent-text); background: var(--field); color: var(--ink-2); font-size: 0.88rem; }
.fulfillment-note .icon { color: var(--accent-text); }
.cover-chips li { padding: 0.25rem 0.7rem; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 2rem; background: rgba(255, 255, 255, 0.14); font-size: 0.85rem; font-weight: 500; }
.crumbs { padding-top: 1.25rem; font-size: 0.92rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.product { --brand: var(--accent); display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.9fr); align-items: start; gap: clamp(1.5rem, 4vw, 3rem); padding: 1.5rem 0 clamp(3rem, 6vw, 4.5rem); }
.product-section { margin-bottom: 1.25rem; padding: clamp(1.25rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--hairline); }
.product-section h2 { margin-bottom: 1rem; font-size: 1.15rem; }
.points li { position: relative; padding-left: 2.1rem; margin-bottom: 0.75rem; color: var(--ink-2); }
.points li:last-child { margin-bottom: 0; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.15rem; width: 1.35rem; height: 1.35rem; border-radius: 50%; background: var(--brand) var(--check) center / 12px no-repeat; }
.info-list div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: center; gap: 0.25rem 1rem; padding: 0.85rem 0; border-bottom: 1px dashed var(--line); }
.info-list div:first-child { padding-top: 0; }
.info-list div:last-child { padding-bottom: 0; border-bottom: 0; }
.info-list dt { color: var(--muted); font-size: 0.9rem; }
.info-list dd { margin: 0; color: var(--ink-2); }
.buy-panel { position: sticky; top: 5.5rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--hairline); }
.buy-panel h2 { margin-bottom: 1rem; font-size: 1.2rem; }
.variants { display: grid; gap: 0.5rem; }
.option { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.8rem 0.9rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); cursor: pointer; transition: border-color 0.2s, background 0.2s, transform 0.4s var(--spring); }
.option:hover { border-color: var(--line-strong); transform: translateX(2px); }
.option:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); animation: pick 0.45s var(--spring); }
@keyframes pick { 40% { transform: scale(1.02); } }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.option input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--accent); }
.option-name { font-weight: 600; }
.option-note { display: block; color: var(--muted); font-size: 0.82rem; font-weight: 400; }
.option-price { text-align: right; }
.option-price s { display: block; color: var(--muted); font-size: 0.8rem; }
.option.is-disabled { cursor: not-allowed; opacity: 0.55; }
.option.is-disabled:hover { transform: none; }
.option-two { grid-template-columns: auto 1fr; }
.price { font: 600 1rem/1.2 var(--display); letter-spacing: -0.02em; color: var(--ink); }
.units { margin-top: 1rem; padding: 1rem; border-radius: var(--r-m); background: var(--bg); animation: rise 0.45s var(--ease-out) both; }
.units-label { display: block; margin-bottom: 0.5rem; font-weight: 600; }
.units-row { display: grid; grid-template-columns: 3rem minmax(0, 1fr) 3rem; gap: 0.5rem; }
.units-row input { text-align: center; font: 600 1.15rem/1 var(--display); letter-spacing: -0.02em; }
.units-step { border: 1px solid var(--line-strong); border-radius: var(--r-m); background: var(--card); color: var(--ink); font: 600 1.3rem/1 var(--body); cursor: pointer; transition: transform 0.35s var(--spring), border-color 0.2s; }
.units-step:hover { border-color: var(--line-hover); }
.units-step:active { transform: scale(0.9); }
.units-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.75rem 0 0.5rem; }
.units-chips button { padding: 0.3rem 0.7rem; border: 1px solid var(--line); border-radius: 2rem; background: var(--card); color: var(--ink-2); font: 500 0.85rem/1.2 var(--body); cursor: pointer; transition: background 0.2s, color 0.2s, transform 0.35s var(--spring); }
.units-chips button:hover { transform: translateY(-2px); }
.units-chips button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-light); }
.units .fine { margin: 0.25rem 0 0; }
html:not(.js) .units-step, html:not(.js) .units-chips { display: none; }
html:not(.js) .units-row { grid-template-columns: minmax(0, 1fr); }
.buy-actions { display: grid; gap: 0.6rem; margin-top: 1.25rem; }
.buy-total { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 0.25rem; max-width: none; }
.buy-total span { color: var(--muted); }
.buy-total strong { font: 700 1.6rem/1 var(--display); letter-spacing: -0.03em; }
.buy-total strong.is-changing { animation: tick 0.4s var(--spring); }
@keyframes tick { 40% { transform: translateY(-3px); color: var(--accent-text); } }
.units-input { width: 8rem !important; }

/* Perpindahan halaman: sampul kartu yang diklik berubah menjadi kepala halaman produk. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 0.3s; }
::view-transition-group(produk-sampul) { animation-duration: 0.55s; animation-timing-function: var(--ease-out); }

/* Keranjang dan pembayaran */
.split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(18rem, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 3rem); }
.cart-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo info price" "actions actions actions"; gap: 0.65rem 0.85rem; padding: clamp(0.85rem, 2vw, 1.25rem); margin-bottom: 0.75rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--hairline); }
.cart-line > .logo { grid-area: logo; width: 2.75rem; height: 2.75rem; }
.cart-line-info { grid-area: info; min-width: 0; overflow-wrap: anywhere; }
.cart-line-price { grid-area: price; align-self: start; text-align: right; }
.cart-line h2 { font-size: 1.05rem; }
.cart-line h2 a { color: var(--ink); text-decoration: none; }
.cart-line h2 a:hover { text-decoration: underline; }
.cart-line p { margin: 0.2rem 0 0; color: var(--muted); }
.cart-line-actions { grid-area: actions; display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.75rem; }
.cart-line-actions form { display: flex; align-items: center; gap: 0.5rem; }
.cart-line-actions input { width: clamp(4rem, 15vw, 5rem); min-height: 2.75rem; }
.cart-line-actions .units-input { width: clamp(5.25rem, 20vw, 7rem); }
.cart-line-actions button { min-height: 2.75rem; }
.cart-line-actions .link-btn { padding-inline: 0.4rem; }
.cart-line .discount { color: var(--danger); }
.cart-layout .sum tfoot :is(th, td) { padding-top: 0; border-top: 0; }
.sum { width: 100%; margin-bottom: 1.25rem; border-collapse: collapse; }
.sum th, .sum td { padding: 0.35rem 0; text-align: left; font-weight: 400; vertical-align: top; }
.sum td:last-child { padding-left: 1rem; text-align: right; white-space: nowrap; }
.sum tbody th { color: var(--ink-2); overflow-wrap: anywhere; }
.summary-product { display: block; color: var(--ink); overflow-wrap: anywhere; }
.nota-lines .option-note { overflow-wrap: anywhere; }
.nota-lines .nota-line-with-input td { border-bottom: 0; }
.nota-lines .nota-line-input td { padding-top: 0; }
.sum tfoot th, .sum tfoot td { padding-top: 0.85rem; border-top: 1px solid var(--line); font: 700 clamp(1rem, 3.7vw, 1.35rem)/1.2 var(--display); letter-spacing: -0.03em; }
.discount { color: var(--danger); }
.promo-row { display: flex; gap: 0.5rem; }
.promo-row input { flex: 1; min-width: 0; }
.field > .promo-row { display: flex; margin: 0; font-weight: 400; }
.form-section { margin-bottom: 1.25rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--hairline); }
.form-section h2 { margin-bottom: 1rem; font-size: 1.2rem; }
.plain.form-section { margin-bottom: 1.25rem; padding: 1.5rem; border: 1px solid var(--line); }
.form-section > legend.legend-title { float: left; width: 100%; }
.form-section > legend + * { clear: both; }
.form-section .option + .option { margin-top: 0.5rem; }
.methods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 0.5rem; }
.methods img { width: 3.5rem; height: 1.6rem; object-fit: contain; }

/* Nota */
.order-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(16rem, 1fr); align-items: start; gap: clamp(1.5rem, 4vw, 3rem); padding-top: 1.75rem; }
.nota { position: relative; padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); overflow: hidden; box-shadow: var(--hairline); }
.nota::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: repeating-linear-gradient(90deg, var(--accent) 0 18px, transparent 18px 26px); }
.nota-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; padding-bottom: 1.1rem; margin-bottom: 1.1rem; border-bottom: 1px dashed var(--line-strong); }
.nota-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.nota-head p { margin: 0.25rem 0 0; color: var(--muted); }
.nota-head strong { color: var(--ink); }
.nota-lines { width: 100%; border-collapse: collapse; }
.nota-lines th, .nota-lines td { padding: 0.65rem 0; text-align: left; vertical-align: top; border-bottom: 1px dashed var(--line); }
.nota-lines thead th { color: var(--muted); font-size: 0.85rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.nota-lines .num { padding-left: 1rem; text-align: right; white-space: nowrap; }
.nota .sum { margin: 1rem 0 0; }
.stamp { position: absolute; right: clamp(1.25rem, 4vw, 2.5rem); bottom: 1.25rem; padding: 0.2rem 0.85rem 0.3rem; border: 4px solid var(--ok); border-radius: 10px; color: var(--ok); font: 800 clamp(1.7rem, 5vw, 2.6rem)/1 var(--display); letter-spacing: 0.02em; transform: rotate(-9deg); opacity: 0.9; pointer-events: none; }
.stamp-pending { border-color: var(--warn); color: var(--warn); font-size: clamp(1rem, 3vw, 1.35rem); opacity: 0.85; }
.stamp:target, .stamp.is-new { animation: cap 0.45s cubic-bezier(0.2, 1.5, 0.4, 1) both; }
@keyframes cap { 0% { transform: rotate(-2deg) scale(2.4); opacity: 0; } 70% { transform: rotate(-10deg) scale(0.96); opacity: 0.95; } 100% { transform: rotate(-9deg) scale(1); opacity: 0.9; } }
.nota:has(.stamp) { padding-bottom: 6.5rem; }
.nota-head > div { min-width: 0; overflow-wrap: anywhere; }
.order-facts { margin: 1rem 0 0; }
.pay-box { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--hairline); }
.pay-box h2 { margin-bottom: 0.9rem; font-size: 1.2rem; }
.pay-box > .btn { width: 100%; margin-block: 0.5rem 1rem; }
.pay-box details summary { cursor: pointer; font-weight: 600; color: var(--accent-text); }
.code-line { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.code-value { font: 600 1.35rem/1.2 var(--display); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.qris-card { max-width: 22rem; margin-bottom: 0.9rem; padding: 0.75rem; border: 1px solid var(--line); border-radius: var(--r-m); background: #fff; }
.qris-card img { display: block; width: 100%; height: auto; }
.qris-amount { font-size: 2rem; }
.pay-steps { margin: 0 0 1rem; padding-left: 1.25rem; list-style: decimal; }
.pay-steps li { margin-bottom: 0.35rem; }
.proof-form { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px dashed var(--line-strong); }
.pay-box .proof-form .btn { margin-block: 0; }
.delivery { margin-top: 2rem; }
.delivery > h2 { margin-bottom: 1rem; }
.delivery-item { margin-bottom: 0.9rem; padding: 1.25rem; border: 1px solid #1d5a41; border-radius: var(--r-l); background: var(--ok-soft); }
.delivery-item h3 { margin-bottom: 0.5rem; }
.delivery-item.is-waiting { border-color: var(--line); background: var(--card); }
.delivery-value { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.5rem; padding: 0.6rem 0.85rem; border-radius: var(--r-m); background: var(--card); }
.delivery-value code { flex: 1 1 12rem; min-width: 0; font: 600 1rem/1.4 var(--body); overflow-wrap: anywhere; white-space: pre-wrap; }
.delivery-note { margin: 0.75rem 0 0; white-space: pre-line; }
.timeline { margin-top: 2rem; }
.timeline h2 { margin-bottom: 0.9rem; font-size: 1.15rem; }
.timeline ol { border-left: 2px solid var(--line); margin-left: 0.4rem; }
.timeline li { position: relative; padding: 0 0 0.9rem 1.1rem; }
.timeline li::before { content: ""; position: absolute; left: -0.4rem; top: 0.45rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--card); border: 2px solid var(--accent); }
.timeline li:last-child::before { background: var(--accent); }

/* Halaman teks */
.article { max-width: 46rem; }
.article p, .article li { text-align: justify; overflow-wrap: anywhere; }
.article h2 { margin: 2rem 0 0.6rem; font-size: 1.25rem; }
.article ul { margin-bottom: 1em; padding-left: 1.25rem; list-style: disc; }
.article dl { display: grid; gap: 0.75rem; }
.article dt { font-weight: 600; }
.article dd { margin: 0.15rem 0 0; max-width: 68ch; color: var(--ink-2); }
.narrow-form { max-width: 28rem; }
.narrow-form form { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }


/* Masuk dan Daftar: satu kartu di tengah, ikon pendukung diam di sekelilingnya. */
.auth { display: grid; justify-items: center; padding-block: clamp(1.5rem, 5vw, 4rem) 1.5rem; }
.auth-card { width: min(100%, 26rem); padding: clamp(1.15rem, 4vw, 2rem); border: 1px solid var(--line-strong); border-radius: var(--r-l); background: var(--panel); }
.auth-title { display: grid; justify-items: center; gap: 0.9rem; margin-bottom: 1.55rem; text-align: center; }
.auth-title h1 { display: grid; justify-items: center; gap: 0.4rem; font-size: clamp(1.2rem, 3.5vw, 1.65rem); }
.auth-title-brand { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.auth-title-brand img { width: 0.95em; height: 0.95em; object-fit: contain; }
.auth-context { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.auth-switch { margin: 1.2rem 0 0; color: var(--muted); text-align: center; font-size: 0.92rem; }
.auth-form .btn-full { margin-top: 0.25rem; }
.password-field { position: relative; }
.reveal-btn { position: absolute; right: 0.35rem; top: 50%; translate: 0 -50%; min-height: 2.5rem; padding: 0.35rem 0.55rem; border: 0; border-radius: var(--r-s); background: none; color: var(--ink-2); font: 600 0.82rem/1 var(--body); cursor: pointer; }
.reveal-btn:hover { background: var(--surface-2); color: var(--ink); }
.password-field:has(.reveal-btn) input { padding-right: 6.2rem; }

.auth-providers { display: grid; gap: 0.55rem; margin-top: 1rem; }
.auth-or { display: flex; align-items: center; gap: 0.75rem; margin: 0; color: var(--muted); font-size: 0.85rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-return { max-width: 32rem; margin: 3rem auto; text-align: center; }


/* Grup merek */
.pass-branches { display: block; color: rgba(255, 255, 255, 0.82); font-size: 0.7rem; font-weight: 500; }
.branch-switch { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; }
.branch-switch a { padding: 0.35rem 0.8rem; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; background: rgba(5, 8, 16, 0.28); color: #fff; font-size: 0.88rem; font-weight: 600; text-decoration: none; transition: background 0.2s, color 0.2s; }
.branch-switch a:hover { background: rgba(5, 8, 16, 0.5); color: #fff; }
.branch-switch a[aria-current="page"] { border-color: #fff; background: #fff; color: var(--on-light); }
.branches { margin: 1.75rem 0 2.5rem; }
.branches h2 { margin-bottom: 1rem; font-size: 1.3rem; }
.branch-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 0.75rem; margin: 0; padding: 0; list-style: none; }
.branch { --brand: var(--accent); position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 0.35rem 0.9rem; height: 100%; padding: 1rem 1.1rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 16%, var(--card)), var(--card) 60%); box-shadow: var(--hairline); color: var(--ink); text-decoration: none; transition: border-color 0.2s, transform 0.45s var(--spring), box-shadow 0.3s; }
.branch:hover { border-color: color-mix(in srgb, var(--brand) 70%, var(--line)); color: var(--ink); transform: translateY(-3px); box-shadow: var(--lift); }
.branch .logo { width: 2.75rem; height: 2.75rem; box-shadow: none; }
.branch-main { display: grid; gap: 0.15rem; min-width: 0; }
.branch-main strong { font: 600 1.02rem/1.25 var(--display); letter-spacing: -0.02em; }
.branch-main small { overflow: hidden; color: var(--muted); font-size: 0.85rem; text-overflow: ellipsis; white-space: nowrap; }
.branch-side { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.branch .logo { grid-row: span 2; }
.branch .pass-price { color: var(--ink); font-size: 0.95rem; }
.branch .pass-price small { color: var(--muted); }
.branch-flag { padding: 0.1rem 0.5rem; border-radius: 6px; background: var(--surface-2); color: var(--muted); font-size: 0.75rem; font-weight: 600; }
.branch.is-soldout { opacity: 0.6; }

/* Saran pencarian */
.suggest { position: absolute; z-index: 40; top: calc(100% + 0.45rem); left: 0; right: 0; max-height: min(70vh, 26rem); margin: 0; padding: 0.35rem; overflow-y: auto; list-style: none; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); box-shadow: var(--shadow-pop); text-align: left; }
.suggest a { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: 0.75rem; padding: 0.5rem 0.6rem; border-radius: var(--r-m); color: var(--ink); text-decoration: none; }
.suggest [aria-selected="true"] a, .suggest a:hover { background: var(--accent-soft); }
.suggest-logo { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; overflow: hidden; border-radius: 10px; background: var(--surface-2); font: 600 0.8rem/1 var(--display); }
.suggest-logo img { width: 100%; height: 100%; object-fit: cover; }
.suggest-text { display: grid; min-width: 0; }
.suggest-text strong { overflow: hidden; font-size: 0.95rem; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.suggest-text small { color: var(--muted); font-size: 0.8rem; }
.suggest-price { color: var(--ink-2); font-size: 0.82rem; font-weight: 600; white-space: nowrap; }
.suggest-all a { display: block; margin-top: 0.25rem; padding: 0.65rem 0.6rem; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-m) var(--r-m); color: var(--accent-text); font-weight: 600; }

/* Chat admin */
main:has(> .chat-fab):not(:has(.chat-page, .auth)) { padding-bottom: 0.85rem; }
.chat-fab { position: sticky; z-index: 8; bottom: 1.25rem; display: flex; width: fit-content; margin: 0.85rem 0 0 auto; align-items: center; gap: 0.5rem; padding: 0.75rem 1.1rem 0.75rem 0.95rem; border-radius: 999px; background: var(--panel); color: #fff; font-weight: 600; text-decoration: none; box-shadow: 0 14px 34px -12px rgba(0, 0, 0, 0.9), inset 0 0 0 1px var(--line-strong); transition: transform 0.35s var(--spring); }
.chat-fab:hover { color: #fff; transform: translateY(-2px); }
.chat-fab .icon { width: 1.25rem; height: 1.25rem; }
.chat-fab-badge { display: grid; place-items: center; min-width: 1.35rem; height: 1.35rem; padding: 0 0.35rem; border-radius: 999px; background: var(--accent); font-size: 0.75rem; }
body:has(.chat-page) .chat-fab, body:has(.auth) .chat-fab { display: none; }
.chat-conversation { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--panel); box-shadow: var(--hairline); }
.chat-head { display: flex; align-items: center; gap: 0.85rem; padding: 0.95rem 1.15rem; border-bottom: 1px solid var(--line); }
.chat-head h2 { margin: 0; font-size: 1rem; }
.chat-head p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.88rem; }
.chat-conversation .chat { border: 0; border-radius: 0; }
.chat-conversation .chat-log { height: clamp(16rem, 46vh, 29rem); padding: clamp(1rem, 3vw, 1.5rem); background: var(--field); }
.chat-conversation .chat-form { padding: 0.9rem; }
.chat-conversation .chat-form textarea { min-width: 0; }
.chat-conversation .chat-empty { padding: 0.85rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--r-m); }
.chat-guide > .icon { margin-bottom: 0.6rem; color: var(--accent-text); }
.chat-guide p + p { margin-top: 0.75rem; }
.chat-guide nav { display: grid; gap: 0.6rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.chat-guide nav a { display: flex; align-items: center; gap: 0.6rem; width: fit-content; }
.chat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); overflow: hidden; }
.chat-log { display: flex; flex-direction: column; gap: 0.5rem; height: min(60vh, 34rem); margin: 0; padding: 1rem; overflow-y: auto; list-style: none; background: var(--bg); overscroll-behavior: contain; }
.chat-empty { margin: auto; max-width: 22rem; color: var(--muted); text-align: center; }
.bubble { align-self: flex-start; max-width: min(80%, 30rem); padding: 0.55rem 0.8rem 0.4rem; border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; background: var(--card); }
.bubble p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble time { display: block; margin-top: 0.15rem; color: var(--muted); font-size: 0.72rem; text-align: right; }
.bubble.is-mine { align-self: flex-end; border-color: var(--accent); border-radius: 16px 16px 4px 16px; background: var(--accent); color: #fff; }
.bubble.is-mine time { color: rgba(255, 255, 255, 0.78); }
.chat-form { display: flex; align-items: flex-end; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--line); }
.chat-form textarea { flex: 1; min-height: 2.75rem; max-height: 10rem; resize: none; }
.chat-form.is-sending { opacity: 0.6; pointer-events: none; }
.chat-who { color: var(--muted); }

@media (max-width: 62rem) {
  .header-inner { gap: 0.75rem; }
  .site-nav :is(a, button) { padding-inline: 0.45rem; font-size: 0.9rem; }
  .orders-layout .order-row { grid-template-columns: minmax(0, 1fr) auto; gap: 0.35rem 0.6rem; }
  .order-row .price { grid-area: 1 / 2; text-align: right; }
  .order-row .order-date, .order-row .order-status { grid-column: 1 / -1; }
  .order-row .order-status { justify-self: start; white-space: normal; }
  .footer-main { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-pay { grid-column: 1 / -1; }
  .product, .split, .order-layout { grid-template-columns: minmax(0, 1fr); }
  .buy-panel { position: static; }
  .pay-first aside { order: -1; }
  .product { display: flex; flex-direction: column-reverse; align-items: stretch; }
}
@media (min-width: 46rem) and (max-width: 62rem) {
  .cart-layout { grid-template-columns: minmax(0, 1fr) minmax(15rem, 0.65fr); gap: 1.25rem; }
  .cart-layout .sum tfoot :is(th, td) { font-size: 1.05rem; }
}
@media (min-width: 44.01rem) and (max-width: 48rem) {
  .site-nav :is(a, button) { gap: 0.35rem; padding-inline: 0.3rem; font-size: 0.85rem; }
  .site-nav .icon { width: 1.1rem; height: 1.1rem; }
}
/* Ponsel: navigasi pindah ke bilah bawah seperti aplikasi. */
@media (max-width: 44rem) {
  html { scroll-padding-bottom: 5rem; }
  body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom)); }
  .header-inner { min-height: 3.6rem; }
  .site-nav { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding: 0.35rem 0.25rem calc(0.35rem + env(safe-area-inset-bottom)); background: rgba(25, 30, 43, 0.97); border-top: 1px solid var(--line); }
  .site-nav:has(form) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .site-nav:has(form) :is(a, button) { padding-inline: 0; font-size: clamp(0.62rem, 2.4vw, 0.72rem); }
  .site-nav :is(a, button) { flex-direction: column; gap: 0.15rem; padding: 0.35rem 0.25rem; font-size: 0.72rem; font-weight: 600; color: var(--muted); }
  .site-nav :is(a, button) .icon { width: 1.4rem; height: 1.4rem; }
  .site-nav :is(a, button)[aria-current="page"], .site-nav :is(a, button):hover { color: var(--accent-text); background: none; }
  .cart-count { position: absolute; top: 0.1rem; left: calc(50% + 0.35rem); }
  .pass-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
  .pass-flag { top: 6px; right: 6px; padding: 0.05rem 0.35rem; font-size: 0.6rem; }
  .pass .cover > .logo { width: 2.4rem; height: 2.4rem; margin-top: 0.6rem; }
  .pass-info { padding: 0 0.5rem 0.55rem; }
  .pass-name { font-size: 0.74rem; }
  .pass-price { font-size: 0.76rem; }
  .pass-price small, .pass-branches { font-size: 0.62rem; }
  .pass .cover::before { width: 22px; height: 5px; top: 6px; }
  .split { gap: 1rem; }
  form.split > div > .form-section:last-child { margin-bottom: 0; }
  .cart-line { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "logo info" ". price" "actions actions"; }
  .cart-line-price { justify-self: start; }
  .form-section, .plain.form-section, .pay-box, .nota { padding: 1rem; }
  .form-section > :last-child { margin-bottom: 0; }
  .sum :is(th, td) { font-size: 0.9rem; }
  .sum td:last-child, .nota-lines .num { padding-left: 0.55rem; }
  .nota-lines { font-size: 0.9rem; }
  .nota:has(.stamp) { padding-bottom: 1rem; }
  .stamp { position: static; display: table; margin: 0.85rem 0.4rem 0 auto; transform: rotate(-4deg); }
  .qris-amount { font-size: clamp(1.3rem, 7vw, 2rem); }
  .orders-layout, .chat-workspace { grid-template-columns: minmax(0, 1fr); }
  .buy-panel { padding: 1.25rem; }
  .footer-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0.1rem 0.5rem; }
  .footer-links { grid-column: 1 / -1; grid-row: 2; }
  .footer-pay { grid-column: 2; grid-row: 1; justify-self: end; }
  .faq-head { grid-template-columns: auto minmax(0, 1fr); }
  .faq-search { grid-column: 1 / -1; }
  .cover-hero { align-items: start; }
  .cover-hero .product-tagline { font-size: 0.94rem; }
  .cover-hero .logo-initials span { font-size: 1.15rem; }
  .cover-hero .cover-echo { width: 70%; bottom: -20%; }
  .info-list div { grid-template-columns: minmax(0, 1fr); }
  .shelf-head { flex-wrap: wrap; align-items: baseline; gap: 0.35rem 1rem; }
  .shelf-row { grid-auto-columns: clamp(7.5rem, 32%, 9rem); gap: 0.5rem; }
  .footer-links { gap: 0 0.6rem; font-size: 0.84rem; }
  .footer-pay { gap: 0.35rem; font-size: 0.76rem; }
  .chat-fab { bottom: calc(5rem + env(safe-area-inset-bottom)); padding: 0.75rem; }
  .chat-fab span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .chat-fab-badge { position: absolute; top: -0.3rem; right: -0.3rem; }
  .chat-log { height: 62vh; }
}
@media (max-width: 23.5rem) {
  .pass-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-main { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-pay .payment-caption { max-width: 8ch; }
  .cart-line-actions { gap: 0.25rem 0.4rem; }
  .orders-layout .order-row { grid-template-columns: minmax(0, 1fr); }
  .order-row .price { grid-area: 4 / 1; text-align: left; }
}
@media (pointer: coarse) {
  .site-nav :is(a, button), .btn, summary { touch-action: manipulation; }
  .branch-switch a, .order-cancel-link, .chat-guide nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
  }
  .pass:hover { transform: none; }
  .pass-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; white-space: normal; overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal .shelf-row li, .reveal .pass-grid li { opacity: 1; transform: none; }
  @view-transition { navigation: none; }
}
