/* Runan Store · /pouch-kopi/ · mobile-first */
:root {
  --bg: #fbf8f3;          /* putih hangat */
  --bg-2: #f3eee6;
  --card: #ffffff;
  --ink: #1a1714;         /* hampir hitam */
  --ink-2: #5b534b;
  --line: #e4ddd2;
  --accent: #0e72ba;      /* biru logo Runan: satu warna aksi */
  --accent-ink: #ffffff;
  --accent-soft: #e3eef8;
  --font-head: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 16px;
  --gutter: 16px;
  --dock-h: 76px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 960px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  overflow-x: clip;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom)); /* dock tidak menutupi konten terakhir */
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(32px, 8.6vw, 60px); }
h2 { font-size: clamp(26px, 6vw, 42px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.center { text-align: center; }

/* ── Tombol ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 22px; border-radius: 999px; border: 0;
  font: 700 16px/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s, box-shadow .2s;
}
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px rgb(14 114 186 / .7); }
.btn-primary:hover { background: #0b5f9c; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost:hover { background: var(--bg-2); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 15px; }
.btn:active { transform: scale(.98); }
.link-btn { background: none; border: 0; color: var(--accent); font: 600 14px var(--font-body); cursor: pointer; padding: 10px 4px; min-height: 44px; }

/* ── Header ─────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter); background: rgb(251 248 243 / .92);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand img { height: 30px; width: auto; }
.top-wa { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: 14px; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.top-wa svg { width: 18px; height: 18px; }

/* ── Hero ───────────────────────────────────────────── */
.hero { display: grid; gap: 20px; padding: 20px var(--gutter) 32px; max-width: 1280px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--ink);
  background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #1f9d55; box-shadow: 0 0 0 3px rgb(31 157 85 / .18); }
.lead { font-size: 17px; color: var(--ink-2); max-width: 36em; }
.cta-row { display: grid; gap: 10px; margin: 20px 0 16px; }
.facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: var(--ink-2); }
.facts li { display: inline-flex; align-items: center; gap: 6px; }
.facts li::before { content: ""; width: 14px; height: 14px; flex: none; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/10px no-repeat; }
.hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; background: #e9e9e9; aspect-ratio: 4 / 3; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 70%; }
@media (min-width: 600px) { .cta-row { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: center; gap: 48px; padding-top: 40px; padding-bottom: 56px; }
  .hero-media { aspect-ratio: 3 / 2.2; }
}

/* ── Seksi ──────────────────────────────────────────── */
.section { padding: 48px 0; }
.section-lead { color: var(--ink-2); max-width: 46em; }
@media (min-width: 960px) { .section { padding: 80px 0; } }

/* ── Katalog ────────────────────────────────────────── */
.catalog { background: var(--bg-2); }
.filters { display: grid; gap: 10px; margin: 20px 0 8px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chips button {
  flex: none; min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--card); color: var(--ink); font: 600 14px var(--font-body);
  transition: background-color .2s, border-color .2s, color .2s;
}
.chips button[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (min-width: 960px) { .chips { flex-wrap: wrap; overflow: visible; margin: 0; padding-inline: 2px; } }
.result-count { font-size: 14px; color: var(--ink-2); margin: 4px 0 16px; }

.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@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)); } }

.card { min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: opacity .3s var(--ease), transform .3s var(--ease); }
.card[hidden] { display: none; }
.card-photo { aspect-ratio: 4 / 3; background: #eeeae4; overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transition: transform .5s var(--ease); }
.card-photo img.contain { object-fit: contain; padding: 8px; }
.card-body { padding: 16px; display: grid; gap: 14px; min-width: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-head h3 { margin: 0; }
.tag { flex: none; font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--bg-2); border-radius: 999px; padding: 4px 10px; }
.opt-label { font-size: 13px; font-weight: 700; color: var(--ink-2); margin: 0 0 6px; display: block; }
.opt-label span { font-weight: 500; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; }
.sizes button {
  min-height: 44px; padding: 6px 4px; border-radius: 10px; cursor: pointer; text-align: center;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); font: 700 14px/1.2 var(--font-body);
  transition: border-color .2s, background-color .2s, color .2s;
}
.sizes button[aria-checked="true"] { border-color: var(--accent); background: var(--accent-soft); color: #0a4f82; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button {
  width: 44px; height: 44px; border-radius: 50%; padding: 0; cursor: pointer; position: relative;
  border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); background: var(--c, #ccc);
  transition: box-shadow .2s, transform .2s var(--ease);
}
.swatches button[data-clear] { background: repeating-conic-gradient(#e7e7e7 0 25%, #fff 0 50%) 50% / 12px 12px; }
.swatches button[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--accent); transform: scale(1.04); }
.price-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line); }
.price { font-family: var(--font-head); font-size: 22px; font-weight: 700; line-height: 1.1; }
.price small { font: 500 13px var(--font-body); color: var(--ink-2); }
.dim { font-size: 13px; color: var(--ink-2); }
.qty { display: grid; gap: 6px; }
.qty-ctrl { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.qty-ctrl button { border: 0; background: var(--bg-2); font: 700 20px var(--font-body); cursor: pointer; min-height: 44px; color: var(--ink); }
.qty-ctrl input { border: 0; text-align: center; font: 700 16px var(--font-body); min-width: 0; width: 100%; color: var(--ink); background: #fff; -moz-appearance: textfield; }
.qty-ctrl input::-webkit-outer-spin-button, .qty-ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.card-actions { display: grid; gap: 8px; }
.card-actions .btn { width: 100%; }
.added { font-size: 13px; color: #1f7a45; min-height: 1.2em; margin: -4px 0 0; }
.hidden-note { color: var(--ink-2); font-size: 14px; }

/* ── Repeat order ───────────────────────────────────── */
.repeat-inner { display: grid; gap: 24px; align-items: center; }
.repeat-media { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
.repeat-media img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.repeat-copy p { color: var(--ink-2); }
@media (min-width: 960px) { .repeat-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }

/* ── Scroll film ────────────────────────────────────── */
.cine { position: relative; height: 240vh; background: #efe9df; }
.cine-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.cine-canvas, .cine-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine-poster { z-index: 0; }
.cine-canvas { z-index: 1; }
.cine-cap {
  position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: calc(var(--dock-h) + 24px); margin: 0 auto; max-width: 520px;
  background: rgb(251 248 243 / .9); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px;
  font: 700 clamp(18px, 4.6vw, 26px)/1.25 var(--font-head); letter-spacing: -.01em;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.cine-cap.on { opacity: 1; transform: none; }

/* ── Cara pesan ─────────────────────────────────────── */
.step-list { list-style: none; counter-reset: s; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.step-list li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; color: var(--ink-2); }
.step-list li::before { content: counter(s); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: #fff; font: 700 16px var(--font-head); }
.step-list strong { color: var(--ink); display: block; }
@media (min-width: 960px) { .step-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ── FAQ ────────────────────────────────────────────── */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; min-height: 56px; padding: 16px 40px 16px 0; position: relative; font-weight: 700; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 500 26px/1 var(--font-body); color: var(--accent); transition: transform .25s var(--ease); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); margin: 0 0 16px; }
.faq details .btn { margin-bottom: 18px; }

/* ── Penutup & footer ───────────────────────────────── */
.closing { background: var(--ink); color: #fff; }
.closing p { color: #d8d1c7; }
.closing .btn-primary { box-shadow: none; }
.foot { padding: 32px var(--gutter); display: grid; gap: 6px; justify-items: center; text-align: center; font-size: 14px; color: var(--ink-2); }
.foot img { height: 28px; width: auto; }
.foot p { margin: 0; }

/* ── Dock bawah (CTA tetap + daftar pesanan) ────────── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgb(255 255 255 / .96); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px -18px rgb(0 0 0 / .35);
}
.dock-bar { display: flex; gap: 8px; max-width: 760px; margin: 0 auto; }
.dock-cta { flex: 1; min-width: 0; }
.dock-cta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock-toggle { flex: none; min-height: 52px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--ink); background: #fff; font: 700 14px var(--font-body); cursor: pointer; color: var(--ink); }
.dock-toggle span { display: inline-grid; place-items: center; min-width: 22px; height: 22px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; margin-right: 4px; }
.dock-list { max-width: 760px; margin: 0 auto 10px; max-height: 50vh; overflow: auto; }
.dock-list-head { display: flex; justify-content: space-between; align-items: center; }
.dock-list ul { list-style: none; padding: 0; margin: 4px 0 10px; display: grid; gap: 6px; }
.dock-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 14px; background: var(--bg); border-radius: 10px; padding: 6px 6px 6px 12px; }
.dock-list li button { flex: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--ink-2); }
.field { display: grid; gap: 4px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.field input { min-height: 44px; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; font: 400 16px var(--font-body); color: var(--ink); }
@media (max-width: 380px) { .dock-cta { font-size: 14px; padding-inline: 14px; } .btn svg { width: 20px; height: 20px; } }

/* ── Reduced motion: semua tetap berfungsi, tanpa animasi ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .cine { height: auto; }
  .cine-stage { position: relative; height: auto; aspect-ratio: 16 / 9; }
  .cine-canvas { display: none; }
  .cine-cap { position: static; opacity: 1; transform: none; margin: 12px var(--gutter); }
  .cine-cap + .cine-cap { display: none; }
}
