/* Tema glassmorphism. Warna dasar diisi dari pengaturan admin lewat --cl-* ("r,g,b").
   Prinsip: permukaan kaca tipis (blur + border terang tipis + highlight atas),
   satu warna aksen dipakai hemat, gerakan halus & bisa dimatikan (reduced motion). */
:root {
  --cl-accent: 101,113,255;
  --cl-background: 10,10,14;
  --cl-card: 24,24,28;
  --text: 244,244,247;
  --muted: rgba(var(--text), .62);
  --faint: rgba(var(--text), .42);
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.14);
  --glass: rgba(var(--cl-card), .42);
  --glass-hi: rgba(255,255,255,.035);
  --radius: 16px;
  --radius-sm: 10px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --ok: 52,211,153;
  --warn: 251,191,36;
  --bad: 248,113,113;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 15px; line-height: 1.55;
  /* spasi bawaan Plus Jakarta Sans sempit — tanpa ini kata-kata kelihatan nempel */
  word-spacing: .08em;
  background: rgb(var(--cl-background)); color: rgb(var(--text));
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
input, textarea { font: inherit; color: inherit; }
::selection { background: rgba(var(--cl-accent), .35); }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ── latar: cahaya gradasi + grain ─────────────────────────────────────────── */
.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.backdrop::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(var(--cl-accent), .16), transparent 60%),
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; will-change: transform; }
.orb-1 { width: 520px; height: 520px; left: -140px; top: -120px; background: rgb(var(--cl-accent)); opacity: .32; animation: drift-1 26s var(--ease) infinite alternate; }
.orb-2 { width: 460px; height: 460px; right: -120px; top: 28vh; background: rgb(var(--cl-accent)); filter: blur(100px) hue-rotate(70deg); opacity: .22; animation: drift-2 32s var(--ease) infinite alternate; }
.orb-3 { width: 420px; height: 420px; left: 30vw; bottom: -200px; background: rgb(var(--cl-accent)); filter: blur(110px) hue-rotate(-60deg); opacity: .18; animation: drift-3 38s var(--ease) infinite alternate; }
@keyframes drift-1 { to { transform: translate(18vw, 12vh) scale(1.15); } }
@keyframes drift-2 { to { transform: translate(-16vw, -10vh) scale(.9); } }
@keyframes drift-3 { to { transform: translate(-12vw, -18vh) scale(1.2); } }
.grain {
  position: absolute; inset: -50%; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── permukaan kaca ────────────────────────────────────────────────────────── */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--glass-hi), transparent 40%), var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 24px 48px -28px rgba(0,0,0,.7);
}

.app { display: flex; flex-direction: column; justify-content: space-between; max-width: 80rem; min-height: 100vh; margin: 0 auto; padding: 1rem; }
@media (min-width: 768px) { .app { padding: 1.5rem; } }
@media (min-width: 1024px) { .app { padding: 2rem; } }

/* ── pengumuman ── */
.announcement {
  display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 1rem; padding: .55rem 1rem;
  font-size: 13.5px; font-weight: 500; text-align: center;
  background: linear-gradient(90deg, rgba(var(--cl-accent), .18), rgba(var(--cl-accent), .08));
  border: 1px solid rgba(var(--cl-accent), .3); border-radius: 999px;
}
.announcement a { text-decoration: underline; }
.pulse-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--cl-accent)); box-shadow: 0 0 0 0 rgba(var(--cl-accent), .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(var(--cl-accent), 0); } 100% { box-shadow: 0 0 0 0 rgba(var(--cl-accent), 0); } }

/* ── header ── */
.header-card { display: flex; flex-direction: column; overflow: hidden; }
.header-card::after { /* garis cahaya tipis di tepi atas */
  content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--cl-accent), .8), transparent);
}
.brand { display: flex; align-items: center; justify-content: center; gap: .9rem; padding: 1.1rem 1.25rem; min-width: 0; }
.brand img, .brand-mark { flex: none; width: 46px; height: 46px; border-radius: 12px; object-fit: cover; }
.brand-mark { display: grid; place-items: center; font-weight: 800; font-size: 20px; background: linear-gradient(135deg, rgb(var(--cl-accent)), rgba(var(--cl-accent), .45)); box-shadow: 0 8px 24px -8px rgba(var(--cl-accent), .7); }
.brand-text { display: grid; min-width: 0; }
.brand-name { font-size: 1.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.2; }
.brand-tag { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stats { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-top: 1px solid var(--line); }
.stat { padding: .9rem .5rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-value { font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { margin-top: .1rem; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
@media (min-width: 768px) {
  .header-card { flex-direction: row; justify-content: space-between; align-items: stretch; }
  .brand { justify-content: flex-start; padding: 1.5rem 1.75rem; }
  .stats { border-top: 0; border-left: 1px solid var(--line); }
  .stat { padding: 1.25rem 2.25rem; display: flex; flex-direction: column; justify-content: center; }
  .stat-value { font-size: 1.9rem; }
  .stat-label { font-size: 12px; }
}

/* ── nav ── */
.nav { position: sticky; top: .75rem; z-index: 20; margin: 1rem 0 0; }
.nav-inner { display: flex; gap: .5rem; padding: .35rem; width: max-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; border-radius: 14px; border: 1px solid transparent; transition: background .3s, border-color .3s, box-shadow .3s; }
.nav-inner::-webkit-scrollbar { display: none; }
.nav.stuck .nav-inner { background: rgba(var(--cl-card), .6); border-color: var(--line); -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: 0 16px 32px -20px rgba(0,0,0,.8); }
.pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; white-space: nowrap;
  font-size: 14px; font-weight: 600; color: var(--muted); border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease);
}
.pill i { font-size: 12px; opacity: .7; }
.pill:hover { color: rgb(var(--text)); background: rgba(255,255,255,.07); border-color: var(--line-strong); }
.pill:active { transform: scale(.97); }
.pill.active { color: #fff; background: linear-gradient(180deg, rgba(var(--cl-accent), .95), rgba(var(--cl-accent), .75)); border-color: rgba(var(--cl-accent), 1); box-shadow: 0 8px 22px -8px rgba(var(--cl-accent), .8), inset 0 1px 0 rgba(255,255,255,.25); }
.pill.active i { opacity: 1; }

/* ── section ── */
.section { padding: 2rem 0 1rem; }
.section.narrow { max-width: 52rem; margin: 0 auto; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.section-sub { margin-top: .15rem; font-size: 14px; color: var(--muted); }
.eyebrow { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--cl-accent)); }

.search { display: flex; align-items: center; gap: .75rem; width: 100%; max-width: 26rem; padding: .7rem 1rem; border-radius: 12px; color: var(--faint); cursor: text; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: rgba(var(--cl-accent), .7); box-shadow: 0 0 0 4px rgba(var(--cl-accent), .15); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: rgb(var(--text)); }
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { filter: invert(1); opacity: .5; }
.search kbd { font: 600 11px/1 inherit; padding: .25rem .45rem; border-radius: 6px; border: 1px solid var(--line-strong); color: var(--faint); }
@media (max-width: 640px) { .search { max-width: none; } .search kbd { display: none; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.chip { padding: .45rem .95rem; font-size: 13px; font-weight: 600; border-radius: 999px; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--line); transition: all .2s var(--ease); }
.chip:hover { color: rgb(var(--text)); border-color: var(--line-strong); }
.chip.active { color: #fff; background: rgba(var(--cl-accent), .22); border-color: rgba(var(--cl-accent), .7); }

/* ── grid & kartu produk ── */
.grid { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1536px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.product-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; transition: transform .35s var(--ease), border-color .35s, box-shadow .35s; }
.product-card::before { /* cahaya ngikutin kursor — posisi diisi store.js */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(var(--cl-accent), .14), transparent 45%);
}
.product-card:hover { transform: translateY(-4px); border-color: rgba(var(--cl-accent), .45); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 30px 60px -30px rgba(var(--cl-accent), .55); }
.product-card:hover::before { opacity: 1; }
.product-media { position: relative; padding: .6rem .6rem 0; }
.media-frame { position: relative; overflow: hidden; border-radius: 11px; aspect-ratio: 16/9; background: rgba(255,255,255,.03); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.product-card:hover .media-frame img { transform: scale(1.05); }
.no-image { display: grid; place-items: center; width: 100%; height: 100%; font-size: 2rem; color: rgba(255,255,255,.15); }
.sold-out .media-frame img { filter: grayscale(.7) brightness(.6); }
.sold-tag { position: absolute; inset: auto auto .6rem .6rem; padding: .25rem .6rem; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; border-radius: 7px; background: rgba(0,0,0,.6); border: 1px solid var(--line-strong); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.badges { position: absolute; top: 1.1rem; right: 1.1rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.badges.inline { position: static; justify-content: flex-start; margin-top: .75rem; }
.badge {
  --b: rgb(var(--cl-accent));
  padding: .28rem .6rem; font-size: 11px; font-weight: 800; letter-spacing: .04em; color: #fff; border-radius: 7px;
  background: color-mix(in srgb, var(--b) 82%, transparent); border: 1px solid color-mix(in srgb, var(--b) 60%, #fff 25%);
  box-shadow: 0 6px 16px -6px var(--b); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.product-info { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.15rem 1.15rem; flex: 1; }
.product-info h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock { display: inline-flex; align-items: center; gap: .45rem; font-size: 13px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--ok)); box-shadow: 0 0 10px rgba(var(--ok), .8); }
.stock-low .dot { background: rgb(var(--warn)); box-shadow: 0 0 10px rgba(var(--warn), .8); }
.stock-out .dot { background: rgb(var(--bad)); box-shadow: none; }
.price-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: .4rem; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .5rem; min-width: 0; font-variant-numeric: tabular-nums; }
.price .now { font-size: 1.1rem; font-weight: 800; color: rgb(var(--cl-accent)); filter: brightness(1.15); }
.price .was { font-size: 13px; color: var(--faint); text-decoration: line-through; }
.price .from { font-size: 12px; font-weight: 600; color: var(--muted); }
.go { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); color: var(--muted); font-size: 13px; transition: all .3s var(--ease); }
.product-card:hover .go { color: #fff; background: rgb(var(--cl-accent)); border-color: rgb(var(--cl-accent)); transform: translateX(2px); }

.empty { display: grid; justify-items: center; gap: .6rem; padding: 3.5rem 1rem; text-align: center; color: var(--muted); }
.empty i { font-size: 1.6rem; opacity: .6; }

/* ── tombol & form ── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.25rem; font-weight: 700; font-size: 15px; border-radius: 12px; overflow: hidden;
  transition: transform .2s var(--ease), box-shadow .25s, filter .2s, background .2s;
}
.btn-block { width: 100%; }
.btn-primary {
  color: #fff; background: linear-gradient(180deg, rgba(var(--cl-accent), 1), rgba(var(--cl-accent), .82));
  border: 1px solid rgba(255,255,255,.14); box-shadow: 0 12px 30px -12px rgba(var(--cl-accent), .9), inset 0 1px 0 rgba(255,255,255,.25);
}
.btn-primary::after { /* kilau lewat pas hover */
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%); transition: transform .7s var(--ease);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 16px 36px -12px rgba(var(--cl-accent), 1), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-primary i.fa-arrow-right { transition: transform .25s var(--ease); }
.btn-primary:hover i.fa-arrow-right { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-ghost { border: 1px solid var(--line-strong); background: rgba(255,255,255,.04); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn:disabled, .btn.disabled { pointer-events: none; opacity: .45; box-shadow: none; filter: grayscale(.4); }
.btn.loading span { opacity: .6; }
.btn.loading::before { content: ""; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: grid; gap: .45rem; }
.field > span, .label { font-size: 13px; font-weight: 600; color: rgba(var(--text), .85); }
.field em { color: rgb(var(--bad)); font-style: normal; }
.field small { font-weight: 500; color: var(--faint); margin-left: .25rem; }
.field .field-hint { margin: -.1rem 0 0; font-size: 12px; }
.field input, .field textarea {
  width: 100%; padding: .75rem .9rem; border-radius: 11px; outline: 0; resize: vertical;
  background: rgba(0,0,0,.25); border: 1px solid var(--line); transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field textarea:focus { border-color: rgba(var(--cl-accent), .75); box-shadow: 0 0 0 4px rgba(var(--cl-accent), .15); background: rgba(0,0,0,.35); }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form-error, .field-error { padding: .65rem .85rem; font-size: 13.5px; color: #fecaca; background: rgba(var(--bad), .12); border: 1px solid rgba(var(--bad), .35); border-radius: 10px; }
.field-error { margin-top: .5rem; padding: .45rem .7rem; font-size: 12.5px; }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

/* ── halaman produk ── */
.back { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1.25rem; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .2s, gap .2s var(--ease); }
.back:hover { color: rgb(var(--text)); gap: .7rem; }
.product-layout { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 1024px) { .product-layout { grid-template-columns: 3fr 2fr; gap: 2rem; } .product-side { position: sticky; top: 5.5rem; } }
.product-panel { overflow: hidden; }
.panel-head { padding: 1.4rem 1.5rem; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.12); }
.panel-head h1 { margin-top: .25rem; font-size: clamp(1.3rem, 2.4vw, 1.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.25; }
.product-hero { aspect-ratio: 16/9; background: rgba(0,0,0,.2); border-bottom: 1px solid var(--line); }
.product-hero img { width: 100%; height: 100%; object-fit: cover; }
.panel-body { padding: 1.25rem 1.5rem 1.5rem; }
.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.1rem; }
.tab { padding: .45rem .85rem; font-size: 13px; font-weight: 600; border-radius: 9px; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.02); transition: all .2s; }
.tab:hover { color: rgb(var(--text)); }
.tab.active { color: rgb(var(--cl-accent)); background: rgba(var(--cl-accent), .12); border-color: rgba(var(--cl-accent), .4); filter: brightness(1.2); }
.tab-panel { animation: fade-in .35s var(--ease); }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } }
.rich { color: rgba(var(--text), .82); font-size: 15px; line-height: 1.75; overflow-wrap: anywhere; }
.rich strong { color: rgb(var(--text)); }
.rich a { color: rgb(var(--cl-accent)); filter: brightness(1.25); text-decoration: underline; text-underline-offset: 2px; }

.buy-card { overflow: hidden; }
.buy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.5rem; background: rgba(0,0,0,.12); border-bottom: 1px solid var(--line); }
.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; font-variant-numeric: tabular-nums; }
.buy-price .total { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.buy-price .each { font-size: 13px; color: var(--muted); }
.buy-price .was { width: 100%; font-size: 13px; color: var(--faint); text-decoration: line-through; }
.buy-price .was:empty { display: none; }
.stock-chip { flex: none; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem .7rem; font-size: 12.5px; font-weight: 600; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); }
.buy-body { display: grid; gap: 1.25rem; padding: 1.4rem 1.5rem; }
.block .label { display: block; margin-bottom: .6rem; }
.variant-list { display: grid; gap: .5rem; }
.variant { display: flex; justify-content: space-between; align-items: center; gap: 1rem; width: 100%; padding: .8rem 1rem; text-align: left; font-size: 14px; font-weight: 600; border-radius: 11px; border: 1px solid var(--line); background: rgba(255,255,255,.025); transition: all .2s var(--ease); }
.variant:hover { border-color: rgba(var(--cl-accent), .45); background: rgba(var(--cl-accent), .06); }
.variant.active { border-color: rgba(var(--cl-accent), .9); background: rgba(var(--cl-accent), .14); box-shadow: 0 0 0 3px rgba(var(--cl-accent), .15); }
.variant-name { display: grid; }
.variant-name small { font-size: 11.5px; color: rgb(var(--bad)); font-weight: 600; }
.variant.sold-out { opacity: .55; }
.variant-price { white-space: nowrap; font-variant-numeric: tabular-nums; }
.qty { display: flex; overflow: hidden; border-radius: 11px; border: 1px solid var(--line); background: rgba(0,0,0,.25); transition: border-color .2s, box-shadow .2s; }
.qty:focus-within { border-color: rgba(var(--cl-accent), .75); box-shadow: 0 0 0 4px rgba(var(--cl-accent), .15); }
.qty button { flex: none; width: 46px; height: 44px; color: var(--muted); background: rgba(255,255,255,.04); transition: background .2s, color .2s; }
.qty button:hover:not(:disabled) { background: rgb(var(--cl-accent)); color: #fff; }
.qty button:disabled { opacity: .35; cursor: default; }
.qty input { flex: 1; min-width: 0; text-align: center; font-weight: 700; background: transparent; border: 0; outline: 0; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.buy-foot { display: grid; gap: .6rem; padding: 1.1rem 1.5rem 1.3rem; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.buy-foot p { display: flex; align-items: flex-start; gap: .65rem; }
.buy-foot i { width: 16px; margin-top: .2rem; text-align: center; color: rgb(var(--cl-accent)); filter: brightness(1.25); }
.buy-foot strong { color: rgb(var(--text)); }
.related { margin-top: 3rem; }
.related .section-title { margin-bottom: 1.25rem; }

/* ── galeri showcase ── */
.product-hero video, .product-hero .yt { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; }
.gallery { position: relative; }
.gallery-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; }
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; background: #000; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.yt { position: relative; padding: 0; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s, transform .6s var(--ease); }
.yt:hover img { opacity: 1; transform: scale(1.02); }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.play { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; font-size: 22px; color: #fff; background: rgba(var(--cl-accent), .85); border: 1px solid rgba(255,255,255,.3); box-shadow: 0 0 0 10px rgba(var(--cl-accent), .18), 0 20px 40px -10px rgba(var(--cl-accent), .9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: transform .3s var(--ease); }
.play i { margin-left: 4px; }
.yt:hover .play { transform: scale(1.08); }
.gal-btn {
  position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px;
  border-radius: 50%; color: #fff; background: rgba(10,10,14,.45); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.8);
  transition: background .2s, transform .2s var(--ease), opacity .2s;
}
.gal-btn:hover { background: rgb(var(--cl-accent)); transform: scale(1.06); }
.gal-btn:disabled { opacity: 0; pointer-events: none; }
.gal-btn.prev { left: 14px; }
.gal-btn.next { right: 14px; }
.gal-foot { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .75rem; pointer-events: none; }
.gal-count, .gal-dots { pointer-events: auto; padding: .35rem .65rem; border-radius: 999px; background: rgba(10,10,14,.5); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.gal-count { font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gal-dots { display: flex; align-items: center; gap: .4rem; }
.dot-btn { display: grid; place-items: center; width: 8px; height: 8px; padding: 0; border-radius: 999px; background: rgba(255,255,255,.4); transition: width .3s var(--ease), background .3s; }
.dot-btn i { display: none; }
.dot-btn.is-video { width: 16px; height: 16px; background: rgba(255,255,255,.25); }
.dot-btn.is-video i { display: block; font-size: 7px; margin-left: 1px; }
.dot-btn.active { width: 22px; background: rgb(var(--cl-accent)); }
.dot-btn.is-video.active { width: 26px; }
@media (max-width: 640px) { .gal-btn { width: 36px; height: 36px; margin-top: -18px; } .gal-btn.prev { left: 8px; } .gal-btn.next { right: 8px; } }

/* ── pengiriman otomatis (halaman order lunas) ── */
.delivery { width: 100%; display: grid; gap: .9rem; padding: 1.1rem; text-align: left; border-radius: 14px; background: rgba(var(--ok), .07); border: 1px solid rgba(var(--ok), .3); }
.delivery-head { display: flex; align-items: center; gap: .8rem; }
.delivery-head > i { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; color: rgb(var(--ok)); background: rgba(var(--ok), .14); }
.delivery-title { font-weight: 800; }
.delivery-text { padding: .85rem 1rem; border-radius: 11px; background: rgba(0,0,0,.25); border: 1px solid var(--line); font-size: 14.5px; }
.files { display: grid; gap: .5rem; }
.file { display: flex; align-items: center; gap: .8rem; padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: border-color .2s, background .2s, transform .2s var(--ease); }
.file:hover { border-color: rgba(var(--cl-accent), .6); background: rgba(var(--cl-accent), .08); transform: translateY(-1px); }
.file-icon { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 10px; color: rgb(var(--cl-accent)); background: rgba(var(--cl-accent), .14); filter: brightness(1.2); }
.file-meta { display: grid; flex: 1; min-width: 0; }
.file-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-go { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: #fff; background: rgb(var(--cl-accent)); box-shadow: 0 8px 20px -8px rgba(var(--cl-accent), .9); }

/* ── modal checkout ── */
.modal { width: min(30rem, calc(100vw - 1.5rem)); max-height: calc(100vh - 1.5rem); padding: 0; border: 0; background: transparent; color: inherit; overflow: visible; }
.modal::backdrop { background: rgba(4,4,8,.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.modal[open] .modal-card { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.97); } }
.modal-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; padding: 1.5rem; max-height: calc(100vh - 1.5rem); overflow-x: hidden; overflow-y: auto; background: linear-gradient(180deg, rgba(255,255,255,.05), transparent 40%), rgba(var(--cl-card), .82); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.modal-head h2 { margin-top: .2rem; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.icon-btn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); border: 1px solid var(--line); transition: all .2s; }
.icon-btn:hover { color: rgb(var(--text)); background: rgba(255,255,255,.06); }
.order-line { min-width: 0; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.2); overflow: hidden; }
.order-line-main { display: flex; align-items: center; gap: .85rem; padding: .75rem; }
.order-line-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .65rem .85rem; font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--line); background: rgba(255,255,255,.02); }
.order-line img, .thumb-ph { flex: none; width: 64px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; }
.thumb-ph { display: grid; place-items: center; background: rgba(255,255,255,.05); color: var(--faint); }
.order-line-text { flex: 1; min-width: 0; }
.order-line-name { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-line-total { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; color: rgb(var(--cl-accent)); filter: brightness(1.2); white-space: nowrap; }

/* ── halaman order ── */
.order-page { max-width: 60rem; margin: 0 auto; }
.order-layout { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .order-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.order-card { display: grid; gap: 1.1rem; padding: 1.75rem; }
.order-card h1 { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.qr-card { justify-items: center; text-align: center; }
.qr-frame { position: relative; width: min(100%, 280px); padding: 14px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 24px 60px -20px rgba(var(--cl-accent), .7); overflow: hidden; }
.qr svg { display: block; width: 100%; height: auto; }
.scan-line { position: absolute; left: 8px; right: 8px; height: 2px; top: 10%; background: linear-gradient(90deg, transparent, rgba(var(--cl-accent), .9), transparent); box-shadow: 0 0 12px rgba(var(--cl-accent), .9); animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 50% { top: 88%; } }
.amount { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.timer { width: 100%; display: grid; gap: .5rem; font-size: 13.5px; color: var(--muted); }
.timer strong { color: rgb(var(--text)); font-variant-numeric: tabular-nums; }
.timer-bar { height: 5px; border-radius: 999px; background: rgba(255,255,255,.07); overflow: hidden; }
.timer-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, rgb(var(--cl-accent)), rgba(var(--cl-accent), .6)); transform-origin: left; transition: transform 1s linear; }
.waiting { display: inline-flex; align-items: center; gap: .6rem; width: max-content; padding: .45rem .85rem; font-size: 13.5px; font-weight: 700; border-radius: 999px; color: rgb(var(--warn)); background: rgba(var(--warn), .1); border: 1px solid rgba(var(--warn), .3); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: rgb(var(--warn)); animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
.steps { display: grid; gap: .6rem; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.steps li { display: flex; gap: .75rem; align-items: flex-start; }
.steps li span { flex: none; display: grid; place-items: center; width: 22px; height: 22px; font-size: 12px; font-weight: 800; border-radius: 7px; color: rgb(var(--cl-accent)); background: rgba(var(--cl-accent), .14); filter: brightness(1.2); }
.summary-list { display: grid; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.18); overflow: hidden; text-align: left; width: 100%; }
.summary-list div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .7rem .95rem; font-size: 14px; }
.summary-list div + div { border-top: 1px solid var(--line); }
.summary-list dt { color: var(--muted); }
.summary-list dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-list dd small { display: block; font-weight: 500; color: var(--muted); }
.summary-list .total dd { font-size: 1.05rem; font-weight: 800; color: rgb(var(--cl-accent)); filter: brightness(1.2); }
.copy { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .5rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.04); transition: all .2s; }
.copy:hover { border-color: rgba(var(--cl-accent), .6); }
.copy code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.copy i { font-size: 12px; color: var(--muted); }
.copy.copied i::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; color: rgb(var(--ok)); }
.state { max-width: 32rem; margin: 0 auto; justify-items: center; text-align: center; }
.state .lead { color: var(--muted); }
.state-icon { display: grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; font-size: 28px; }
.state-icon.ok { color: rgb(var(--ok)); background: rgba(var(--ok), .12); box-shadow: 0 0 0 8px rgba(var(--ok), .06), 0 20px 50px -10px rgba(var(--ok), .5); }
.state-icon.bad { color: rgb(var(--bad)); background: rgba(var(--bad), .12); box-shadow: 0 0 0 8px rgba(var(--bad), .05); }
.state-icon svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.state-icon circle { stroke-width: 2; opacity: .3; }
.state-icon path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .25s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.after-paid { width: 100%; padding: 1rem 1.1rem; border-radius: 12px; text-align: left; font-size: 14.5px; color: rgba(var(--text), .85); background: rgba(var(--cl-accent), .1); border: 1px solid rgba(var(--cl-accent), .3); }

/* ── reviews ── */
.rating-summary { display: grid; gap: 1.5rem; padding: 1.5rem; margin-bottom: 1.25rem; align-items: center; }
@media (min-width: 640px) { .rating-summary { grid-template-columns: 12rem 1fr; } }
.rating-big { text-align: center; }
.rating-num { font-size: 3rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stars { display: inline-flex; gap: .15rem; margin: .5rem 0 .25rem; color: #fbbf24; font-size: 14px; }
.stars.small { margin: 0; font-size: 11px; }
.rating-bars { display: grid; gap: .45rem; }
.bar-row { display: grid; grid-template-columns: 2.5rem 1fr 2rem; align-items: center; gap: .75rem; font-size: 13px; font-weight: 600; }
.bar-row i { margin-left: .25rem; font-size: 10px; color: #fbbf24; }
.bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; }
.bar span { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #fbbf24, #f59e0b); transform-origin: left; animation: grow 1s var(--ease) both; }
@keyframes grow { from { transform: scaleX(0); } }
.reviews { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.review { display: flex; flex-direction: column; gap: .9rem; padding: 1.25rem; transition: transform .3s var(--ease), border-color .3s; }
.review:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.review-head { display: flex; align-items: center; gap: .75rem; }
.avatar { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 800; background: linear-gradient(135deg, rgba(var(--cl-accent), .9), rgba(var(--cl-accent), .4)); }
.review-name { font-weight: 700; font-size: 14px; }
.review-head .date { margin-left: auto; font-size: 12px; color: var(--faint); white-space: nowrap; }
.review-text { color: rgba(var(--text), .82); font-size: 14.5px; overflow-wrap: anywhere; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar:has(img) { background: rgba(255,255,255,.06); }
.review-who { min-width: 0; }
.review-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.verified { display: inline-flex; align-items: center; gap: .35rem; font-size: 12px; font-weight: 600; color: rgb(var(--ok)); }
.review-product { display: inline-flex; align-items: center; gap: .45rem; width: max-content; max-width: 100%; padding: .3rem .6rem; font-size: 12.5px; font-weight: 600; color: var(--muted); border-radius: 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.review-product:hover { color: rgb(var(--text)); }

/* ── faq / terms / 404 ── */
.faq { display: grid; gap: .75rem; }
.faq details { overflow: hidden; transition: border-color .25s; }
.faq details[open] { border-color: rgba(var(--cl-accent), .35); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; font-size: 12px; border-radius: 8px; color: var(--muted); background: rgba(255,255,255,.05); transition: transform .3s var(--ease), background .3s, color .3s; }
.faq details[open] summary i { transform: rotate(45deg); color: #fff; background: rgb(var(--cl-accent)); }
.answer { padding: 0 1.3rem 1.2rem; animation: fade-in .35s var(--ease); }
.prose { display: grid; gap: 1rem; padding: 2rem; }
.prose h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; }
.prose.center { justify-items: center; }
.big-code { font-size: 4.5rem; font-weight: 800; letter-spacing: -.05em; line-height: 1; background: linear-gradient(180deg, #fff, rgba(var(--cl-accent), .8)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── footer ── */
.footer { margin-top: 3.5rem; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line); }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.footer-brand img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; }
.socials { display: flex; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; color: var(--muted); border: 1px solid var(--line); background: rgba(255,255,255,.03); transition: all .25s var(--ease); }
.socials a:hover { color: var(--hover); border-color: var(--hover); transform: translateY(-2px); background: rgba(255,255,255,.06); }
.footer-bottom { display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1.5rem; font-size: 13px; color: var(--faint); background: rgba(0,0,0,.15); }
.footer-bottom a:hover { color: rgb(var(--text)); }
@media (min-width: 640px) { .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; } }

/* ── animasi muncul saat discroll (kelas .in dipasang store.js) ── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 60ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .glass, .nav.stuck .nav-inner { background: rgba(var(--cl-card), .92); }
}
