/* ===== Font (OFL, dihosting sendiri; lisensi di /fonts) ===== */
@font-face { font-family: "Fraunces"; src: url(/fonts/Fraunces.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url(/fonts/PlusJakartaSans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }

/* ===== Tema: token warna, huruf, motif =====
   Elemen khas: (1) logo/monogram, (2) garis kontur (--motif), (3) bingkai foto lengkung (--frame),
   (4) stempel bulat, (5) angka editorial, (6) blok rasa berwarna, (7) kartu tiket. */
:root, [data-theme="kopi"] {
  --bg: #f4ede2; --surface: #fffaf2; --ink: #2a1b14; --muted: #6b5444; --line: #e2d6c3;
  --accent: #a84b24; --on-accent: #fffaf2; --leaf: #3f5b3a; --madu: #d9a441; --sage: #dfe3d3;
  --dark: #2a1b14; --on-dark: #f4ede2; --dark-muted: #cbb8a3;
  --head-bg: #e9dcc6; --tile: #ebe0cf; --hero-bg: #f4ede2; --accent-strong: #8f3e1d;
  --r1: #e9c891; --r2: #d9ad74; --r3: #c8925a; --r4: #8a5a36; --r5: #4a2c1d;
  --font-head: "Fraunces", Georgia, serif; --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 18px; --head-weight: 600; --frame: 220px 220px 22px 22px; --frame-alt: 22px 22px 120px 22px;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='120' fill='none' stroke='%23b4532a' stroke-opacity='.3' stroke-width='1.4'%3E%3Cpath d='M0 90C60 70 110 40 170 44s100 40 160 30 70-30 70-30'/%3E%3Cpath d='M0 104C70 84 120 58 178 62s104 38 162 28 60-24 60-24'/%3E%3Cpath d='M0 76C50 56 100 24 160 26s96 40 156 32 84-36 84-36'/%3E%3Cpath d='M0 118C80 100 130 76 186 80s108 34 164 24 50-18 50-18'/%3E%3C/svg%3E");
  color-scheme: light;
}
[data-theme="segar"] {
  --bg: #fdf8f1; --surface: #ffffff; --ink: #1d2a33; --muted: #52606b; --line: #e6e0d6;
  --accent: #c2410c; --on-accent: #ffffff; --leaf: #237a35; --madu: #f4b740; --sage: #dff1ec;
  --dark: #0f4c5c; --on-dark: #f1fbfd; --dark-muted: #a8d5df;
  --head-bg: #fde7cc; --tile: #fff1e0; --hero-bg: #fff4e6; --accent-strong: #9a3412;
  --r1: #f6d37a; --r2: #f0b55a; --r3: #e2903f; --r4: #b0622a; --r5: #5e3417;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif; --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 22px; --head-weight: 700; --frame: 28px; --frame-alt: 28px;
  --motif: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='120' fill='none' stroke='%230f4c5c' stroke-opacity='.22' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M0 70q20-16 40 0t40 0 40 0 40 0'/%3E%3Cpath d='M0 96q20-16 40 0t40 0 40 0 40 0'/%3E%3C/svg%3E");
}
[data-theme="netral"] {
  --bg: #f6f6f4; --surface: #ffffff; --ink: #1b2230; --muted: #5b6270; --line: #e2e2de;
  --accent: #1b2230; --on-accent: #ffffff; --leaf: #1f7a4d; --madu: #e9e5da; --sage: #ececea;
  --dark: #1b2230; --on-dark: #f6f6f4; --dark-muted: #b5b9c2;
  --head-bg: #e9e9e5; --tile: #ececea; --hero-bg: #f6f6f4; --accent-strong: #1b2230;
  --r1: #e3d6bf; --r2: #c9b48f; --r3: #a8875f; --r4: #765637; --r5: #3d2b1d;
  --font-head: "Plus Jakarta Sans", system-ui, sans-serif; --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --radius: 12px; --head-weight: 700; --frame: 12px; --frame-alt: 12px; --motif: none;
}

/* ===== Dasar ===== */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--font-body); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.1; margin: 0 0 .4em; letter-spacing: -.015em; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h2 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
main { min-height: 60vh; padding-bottom: 56px; }
.ends-story main { padding-bottom: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 720px; }
.small { font-size: .875rem; color: var(--muted); }
.hint { display: block; font-weight: 400; font-size: .8rem; color: var(--muted); }
.err { color: #b3261e; }
.eyebrow, .kicker { font: 700 .7rem/1.3 var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 50; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.kontur { background: var(--motif) repeat-x; height: 120px; pointer-events: none; }

/* ===== Logo & monogram ===== */
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; flex: none; }
.wm { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.wm b { font: var(--head-weight) 1.3rem/1.05 var(--font-head); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wm small { font: 700 .56rem/1 var(--font-body); letter-spacing: .32em; color: var(--accent-strong, var(--accent)); margin-top: 4px; text-transform: uppercase; }
.mono-logo { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--dark); color: var(--madu); display: grid; place-items: center; overflow: hidden; font: var(--head-weight) 1.05rem/1 var(--font-head); }
.mono-logo span { position: relative; z-index: 1; margin-top: -4px; }
[data-theme="kopi"] .mono-logo::after { content: ""; position: absolute; left: -6px; right: -6px; bottom: 7px; height: 14px; border-top: 2px solid var(--accent); border-radius: 50% 50% 0 0; }
.mono-logo.inv { background: var(--on-dark); color: var(--dark); }
.mono-logo.xl { width: 96px; height: 96px; font-size: 2.2rem; margin: 0 auto 14px; }

/* ===== Header ===== */
.announce { background: var(--dark); color: var(--on-dark); text-align: center; font-size: .8rem; font-weight: 600; padding: 7px 16px; letter-spacing: .01em; }
.top { position: sticky; top: 0; z-index: 20; background: var(--head-bg); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 66px; }
.nav { display: flex; align-items: center; gap: 20px; font-weight: 600; font-size: .95rem; flex: none; }
.nav a { text-decoration: none; }
.cartlink { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; background: var(--ink); color: var(--bg); }
.cartlink b { background: var(--madu); color: #2a1b14; border-radius: 999px; min-width: 22px; padding: 0 6px; text-align: center; font-size: .8rem; }
@media (max-width: 640px) { .hide-sm { display: none; } .nav { gap: 8px; } .modebtn { width: 36px; height: 36px; } .cartlink { padding: 8px 12px; } }
@media (max-width: 420px) { .wm b { font-size: 1.06rem; } .logo-img, .mono-logo { width: 38px; height: 38px; } }

/* ===== Tombol ===== */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 10px 0; padding: 14px 22px; min-height: 50px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 1rem var(--font-body); text-align: center; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn:disabled { opacity: .6; }
form .btn, .cobox .btn, .buyrow .btn, .paybox .btn { width: 100%; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
  .btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink), 4px 4px 0 var(--ink); }
}

/* ===== Hero ===== */
.hero { background: var(--hero-bg); overflow: hidden; }
.hero-in { padding-top: 28px; padding-bottom: 8px; }
.hero h1 { font-size: clamp(2.1rem, 8.6vw, 4rem); max-width: 16ch; margin-bottom: 14px; }
.hero .lead { color: var(--muted); font-size: 1.05rem; max-width: 38ch; margin: 0 0 12px; }
.hero-ph { position: relative; margin: 34px 0 20px; isolation: isolate; }
.hero-ph img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--frame); }
.hero-ph .kontur { position: absolute; left: -18px; right: -18px; bottom: -36px; z-index: -1; }
@media (min-width: 900px) {
  .hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
  .hero-ph { margin: 0; }
}
.stamp { position: absolute; right: -4px; top: -40px; width: 116px; height: 116px; z-index: 2; }
.hero-in > .stamp { position: relative; display: block; right: auto; top: auto; margin: 16px 0; }
.stamp svg { width: 100%; height: 100%; overflow: visible; }
.st-bg { fill: var(--madu); }
.st-line { fill: none; stroke: #2a1b14; stroke-width: 1.5; stroke-dasharray: 2 4; }
.st-ring { font: 700 10.5px var(--font-body); fill: #2a1b14; }
.st-mid { font: var(--head-weight) 19px var(--font-head); fill: #2a1b14; }
/* Stempel berputar hanya saat disorot (animasi terus-menerus = hitung ulang style tiap frame di HP). */
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .hero-ph:hover .stamp svg { animation: putar 12s linear infinite; } }
@keyframes putar { to { transform: rotate(360deg); } }

/* ===== Angka editorial & keunggulan ===== */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding-top: 36px; padding-bottom: 12px; }
.facts div { border-top: 2px solid var(--ink); padding-top: 10px; }
.facts b { display: block; font: var(--head-weight) clamp(1.7rem, 6vw, 2.6rem)/1 var(--font-head); }
.facts span { display: block; margin-top: 6px; font-size: .8rem; line-height: 1.35; color: var(--muted); }
.perks { background: var(--surface); border-block: 1px solid var(--line); margin-top: 20px; }
.perks .wrap { display: grid; gap: 4px 24px; padding-block: 14px; }
@media (min-width: 720px) { .perks .wrap { grid-template-columns: repeat(3, 1fr); } }
.perks p { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; font-size: .92rem; }
.perks svg { color: var(--leaf); flex: none; }

/* ===== Seksi ===== */
.sec { padding-block: 40px 8px; }
.sh { margin-bottom: 18px; }
.row-sh { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.row-sh h2 { margin: 0; }
.more { font-weight: 700; font-size: .9rem; text-decoration: none; border-bottom: 2px solid var(--accent); }
.search input { width: min(300px, 86vw); margin: 0; border-radius: 999px; padding: 11px 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 0 18px; scrollbar-width: none; }
.chips a { flex: none; scroll-snap-align: start; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chips a[aria-current] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ===== Kartu ===== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card:hover, .tiket:hover, .tile:hover, .rs:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 var(--ink); border-color: var(--ink); }
}
.ph { position: relative; background: var(--tile); aspect-ratio: 4 / 5; }
.ph img, .ph .noimg { width: 100%; height: 100%; object-fit: cover; }
.noimg { display: grid; place-items: center; background: var(--tile); color: var(--muted); font: var(--head-weight) 2.4rem var(--font-head); aspect-ratio: 1; }
.badge { position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--ink); color: var(--bg); font-size: .7rem; font-weight: 700; letter-spacing: .05em; padding: 5px 10px; border-radius: 999px; }
.badge.b-hot { background: var(--accent); color: var(--on-accent); }
.badge.b-new { background: var(--leaf); color: #fff; }
.badge.b-fav { background: var(--madu); color: #2a1b14; }
.badge.out { background: var(--ink); color: var(--bg); }
p.badge.out { position: static; display: inline-block; margin: 0; }
.cb { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 14px; flex: 1; }
.cb h3 { font-size: 1.12rem; margin: 0; }
.notes { color: var(--muted); font-size: .86rem; margin: 2px 0 0; line-height: 1.4; }
.notes.big { font-size: 1.04rem; margin-bottom: 10px; }
.cf { margin-top: auto; padding-top: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.price { font-weight: 700; color: var(--accent); }
.price small { font-weight: 600; color: var(--muted); font-size: .75rem; }
.was { color: var(--muted); font-size: .82rem; }

/* Bento rekomendasi: 1 kartu besar + 2 kecil (beda dari grid katalog) */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.card.big { grid-column: 1 / -1; display: grid; grid-template-columns: 1.05fr 1fr; }
.card.big .ph { aspect-ratio: auto; min-height: 240px; }
.card.big .cb { padding: 16px; justify-content: center; }
.card.big h3 { font-size: 1.5rem; }
@media (min-width: 900px) {
  .bento { grid-template-columns: 1.6fr 1fr 1fr; }
  .card.big { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .card.big .ph { min-height: 100%; }
}

/* Meter sangrai: 5 segmen + teks */
.roast { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 600; color: var(--muted); }
.roast .seg { display: inline-flex; gap: 2px; }
.roast i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.roast i.on.r1 { background: var(--r1); } .roast i.on.r2 { background: var(--r2); } .roast i.on.r3 { background: var(--r3); }
.roast i.on.r4 { background: var(--r4); } .roast i.on.r5 { background: var(--r5); }
.roast.big { font-size: .9rem; margin: 4px 0 16px; } .roast.big i { width: 22px; height: 8px; border-radius: 4px; }

/* Ubin kategori */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; text-decoration: none; color: #fff; background: var(--dark); transition: transform .15s, box-shadow .15s; }
.tile:first-child, .tile:last-child:nth-child(even) { grid-column: 1 / -1; aspect-ratio: 2 / 1; }
@media (min-width: 820px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .tile:first-child { grid-column: span 2; aspect-ratio: auto; } .tile:last-child:nth-child(even):not(:first-child) { grid-column: auto; aspect-ratio: 1; } }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 25%, var(--tc) 100%); opacity: .94; }
.tile span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.tile b { display: block; font: var(--head-weight) 1.3rem/1.15 var(--font-head); }
.tile small { opacity: .9; font-size: .8rem; }
.t0 { --tc: var(--accent); } .t1 { --tc: var(--leaf); } .t2 { --tc: var(--r4); } .t3 { --tc: var(--dark); }

/* Blok rasa (aksen arah B) di seksi sage bertepi kontur */
.rasa-sec { position: relative; margin-top: 56px; padding: 40px 0 44px; background: var(--sage); }
.rasa-sec::before { content: ""; position: absolute; left: 0; right: 0; top: -28px; height: 30px; background: var(--sage);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V18C60 4 120 0 200 10s140 14 200 0v20z'/%3E%3C/svg%3E") center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 30' preserveAspectRatio='none'%3E%3Cpath d='M0 30V18C60 4 120 0 200 10s140 14 200 0v20z'/%3E%3C/svg%3E") center / 100% 100%; }
.rasa { display: grid; gap: 12px; }
@media (min-width: 820px) { .rasa { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.rs { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--radius); text-decoration: none; min-height: 150px; transition: transform .15s, box-shadow .15s; }
.rs.r1 { background: var(--madu); color: #2a1b14; }
.rs.r3 { background: var(--accent); color: var(--on-accent); }
.rs.r5 { background: var(--dark); color: var(--on-dark); }
.rs-l { font: 700 .7rem var(--font-body); letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.rs b { font: var(--head-weight) 1.45rem/1.15 var(--font-head); }
.rs > span:not(.rs-l):not(.roast) { font-size: .92rem; opacity: .95; }
.rs .roast { margin-top: auto; color: inherit; } .rs .roast .rl { display: none; }
.rs .roast i { width: 22px; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.rs.r1 .roast i { background: rgba(42, 27, 20, .18); }
.rs .roast i.on { background: currentColor !important; }

/* Kartu tiket (aksen arah B) untuk produk terkait */
.tikets { display: grid; gap: 12px; }
@media (min-width: 820px) { .tikets { grid-template-columns: 1fr 1fr; } }
.tiket { display: grid; grid-template-columns: 112px 1fr; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.tk-ph { overflow: hidden; border-radius: calc(var(--radius) - 2px) 0 0 calc(var(--radius) - 2px); background: var(--tile); }
.tk-ph img, .tk-ph .noimg { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.tk-tx { position: relative; padding: 12px 14px; border-left: 2px dashed var(--line); }
.tk-tx::before, .tk-tx::after { content: ""; position: absolute; left: -10px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--line); }
.tk-tx::before { top: -10px; } .tk-tx::after { bottom: -10px; }
.tk-tx h3 { font-size: 1.1rem; margin: 0; }
.tk-row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.tk-go { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; }

/* Cerita */
.story { position: relative; background: var(--dark); color: var(--on-dark); margin-top: 56px; overflow: hidden; }
.story-in { position: relative; z-index: 1; display: grid; gap: 24px; padding-block: 48px 64px; align-items: center; }
@media (min-width: 820px) { .story-in { grid-template-columns: 1fr 1fr; gap: 56px; padding-block: 72px 96px; } }
.story h2 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.story-ph img { border-radius: var(--frame-alt); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.story .eyebrow, .story h2 em { color: var(--madu); }
.story p { color: var(--on-dark); opacity: .9; }
.story .btn.ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px var(--on-dark); }
.story > .kontur { position: absolute; left: -40px; right: -40px; bottom: 0; opacity: .8; }

/* ===== Halaman produk ===== */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 16px; }
.crumbs a { text-decoration: none; }
.pd { display: grid; gap: 22px; padding-block: 12px 32px; }
@media (min-width: 880px) { .pd { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; } .gallery { position: sticky; top: 84px; } }
.gallery { position: relative; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--frame); background: var(--tile); scrollbar-width: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 4 / 5; }
.slide img, .slide .noimg { width: 100%; height: 100%; object-fit: cover; }
.gallery > .badge { top: 16px; left: 16px; }
[data-theme="kopi"] .gallery > .badge { top: auto; bottom: 86px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.thumbs a { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--tile); }
.thumbs a.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pinfo h1 { font-size: clamp(2rem, 7vw, 2.9rem); margin-bottom: 6px; }
.pprice { font-size: 1.55rem; margin: 6px 0 10px; }
fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
legend { font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { margin: 0; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; font-size: .92rem; }
.pill input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pill input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.pill input:disabled + span { opacity: .45; text-decoration: line-through; }
.buyrow { display: flex; gap: 10px; align-items: stretch; }
.buyrow .btn { margin: 0; flex: 1; }
.specs { margin-top: 30px; }
.specs h2, .desc h2 { font-size: 1.3rem; }
.specs dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; margin: 0; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.specs dt, .specs dd { margin: 0; padding: 11px 14px; border-bottom: 1px dashed var(--line); }
.specs dt { color: var(--muted); font-size: .84rem; font-weight: 700; letter-spacing: .02em; }
.specs dl > :nth-last-child(-n+2) { border-bottom: 0; }
.desc { margin-top: 26px; }
.buybar { display: none; }
@media (max-width: 879px) {
  .buybar { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1.5px solid var(--ink); }
  .buybar span { font-weight: 700; font-size: 1.1rem; color: var(--accent); }
  .buybar .btn { margin: 0; flex: 1; }
  .has-buybar .foot { padding-bottom: 96px; }
}

/* ===== Form ===== */
label { display: block; margin-bottom: 14px; font-weight: 600; font-size: .92rem; }
input, textarea, select { width: 100%; font: inherit; font-weight: 400; padding: 12px 14px; margin-top: 6px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); }
input:focus, textarea:focus, select:focus { border-color: var(--ink); outline: none; }
input[type=color] { height: 48px; padding: 4px; }
input[type=radio], input[type=checkbox] { width: auto; margin: 0; accent-color: var(--accent); }
.stepper { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); width: max-content; }
.stepper button { width: 40px; height: 44px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--ink); }
.stepper input, .stepper span { width: 36px; text-align: center; border: 0; margin: 0; padding: 0; background: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper.sm button { width: 40px; height: 40px; }

/* ===== Checkout & pesanan ===== */
.flow { display: flex; gap: 6px; list-style: none; padding: 0; margin: 24px 0 0; font-size: .78rem; font-weight: 700; }
.flow li { padding: 5px 12px; border-radius: 999px; background: var(--surface); color: var(--muted); border: 1.5px solid var(--line); }
.flow li.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ptitle { font-size: clamp(1.9rem, 6vw, 2.6rem); margin-top: 18px; }
.narrow > .eyebrow:first-child { margin-top: 28px; }
.narrow > .eyebrow:first-child + .ptitle { margin-top: 0; }
.co { display: grid; gap: 16px; padding-bottom: 32px; }
.cobox { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 18px; }
.cobox h2 { font-size: 1.25rem; }
.cline { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.cline img, .cline .noimg { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; font-size: 1.2rem; }
.cline small { display: block; color: var(--muted); }
.cline .amt { font-weight: 700; text-align: right; }
.sum { display: flex; justify-content: space-between; padding: 8px 0 0; }
.sum.total { font-weight: 700; font-size: 1.15rem; border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 12px; }
.opt { display: flex; align-items: flex-start; gap: 12px; padding: 14px; margin-bottom: 8px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--bg); }
.opt small { display: block; font-weight: 400; color: var(--muted); }
.opt input { margin-top: 4px; }
.opt input:checked + span b { text-decoration: underline 2px var(--accent); text-underline-offset: 4px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .88rem; }
.consent input { margin-top: 4px; }
.trust { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: .82rem; color: var(--muted); margin: 0; }
.lines { width: 100%; border-collapse: collapse; }
.lines td { padding: 10px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.lines td small { display: block; color: var(--muted); }
.lines td:last-child { text-align: right; white-space: nowrap; }
.lines .q { color: var(--muted); width: 48px; }
.lines .total td { font-weight: 700; font-size: 1.1rem; border-bottom: 0; }
.status { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tile); font-weight: 700; }
.s-lunas, .s-dikirim, .s-selesai { background: #dcefdc; color: #1f5f2a; }
.s-batal { background: #fbe3e1; color: #8c1d18; }
.steps { display: flex; list-style: none; padding: 0; margin: 18px 0; }
.steps li { flex: 1; text-align: center; font-size: .8rem; color: var(--muted); position: relative; padding-top: 30px; counter-increment: s; }
.steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--line); color: var(--ink); font-weight: 700; line-height: 24px; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 11px; left: -50%; width: 100%; height: 3px; background: var(--line); }
.steps li:first-child::after { display: none; }
.steps li.done { color: var(--ink); font-weight: 600; }
.steps li.done::before { content: "✓"; background: var(--leaf); color: #fff; }
.steps li.done::after { background: var(--leaf); }
.paybox { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: 20px; margin: 16px 0; text-align: center; box-shadow: 5px 5px 0 var(--madu); }
.paybox .big { font: var(--head-weight) 2.3rem var(--font-head); margin: 0 0 6px; color: var(--accent); }
.paybox .qris { margin: 14px auto; max-width: 300px; width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.thanks { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 16px 0; }
.thanks .illus { width: 72px; flex: none; color: var(--ink); }
.thanks p { margin: 0; }
.resi { background: var(--surface); padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); }

/* ===== Kosong, 404, legal, tentang ===== */
.empty { text-align: center; padding: 28px 0; color: var(--muted); }
.empty .illus, .big-empty .illus { width: 140px; margin: 0 auto 8px; color: var(--ink); }
.empty .btn { margin-inline: auto; }
.big-empty { padding: 48px 18px 24px; }
.big-empty .btns { justify-content: center; }
.legal { padding-block: 24px 40px; }
.legal h1 { font-size: clamp(1.8rem, 6vw, 2.4rem); }
.legal h2 { font-size: 1.15rem; margin-top: 26px; }
.toc { background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 12px 0 8px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 24px; font-size: .9rem; }
.toc a { text-decoration: none; border-bottom: 1px solid var(--line); }
.about-hero { background: var(--hero-bg); text-align: center; padding: 40px 0 8px; }
.about-hero h1 { font-size: clamp(2rem, 7vw, 3rem); }
.about-hero .lead { color: var(--muted); }
.about-logo { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 14px; border-radius: 20px; }
.about-ph img { border-radius: var(--frame-alt); margin: 18px 0; }

/* ===== Footer ===== */
.foot { position: relative; background: var(--dark); color: var(--dark-muted); padding: 40px 0 24px; font-size: .9rem; overflow: hidden; }
.foot > .kontur { position: absolute; left: 0; right: 0; top: -40px; opacity: .5; }
.fgrid { position: relative; display: grid; gap: 22px; }
@media (min-width: 720px) { .fgrid { grid-template-columns: 1.4fr 1fr 1fr; } }
.fbrand { color: var(--on-dark); margin-bottom: 10px; }
.fbrand .wm small { color: var(--madu); }
.fbrand .logo-img { background: var(--on-dark); border-radius: 50%; padding: 3px; }
.fh { color: var(--on-dark); font-weight: 700; margin: 0 0 6px; }
.foot a { text-decoration: none; display: inline-block; padding: 4px 0; }
.foot a:hover { text-decoration: underline; }
.soc { display: inline-flex; align-items: center; gap: 6px; }
.fsmall { position: relative; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .78rem; }
.fsmall p { margin: 4px 0; }

/* Seksi di bawah layar pertama baru di-layout saat mendekati viewport (hemat CPU HP). */
.rasa-sec, .story, .foot { content-visibility: auto; contain-intrinsic-size: auto 600px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

/* ===== Mode gelap (dipasang mode.js; bawaan ikut setelan perangkat) ===== */
[data-mode="gelap"] { color-scheme: dark; }
[data-mode="gelap"][data-theme="kopi"] {
  --bg: #1a120d; --surface: #241912; --ink: #f1e6d6; --muted: #c4ae96; --line: #3b2b21;
  --accent: #e08a5a; --accent-strong: #e08a5a; --on-accent: #1a120d; --leaf: #4d6e46; --madu: #e0b25a; --sage: #212a1d;
  --dark: #0f0a07; --on-dark: #f1e6d6; --dark-muted: #bba48c; --head-bg: #2a1d15; --tile: #2c2018; --hero-bg: #1f150f;
}
[data-mode="gelap"][data-theme="segar"] {
  --bg: #0f1b21; --surface: #16262e; --ink: #e8f1f4; --muted: #a9bcc4; --line: #263a44;
  --accent: #ff8a4c; --accent-strong: #ff8a4c; --on-accent: #0f1b21; --madu: #f4b740; --sage: #12302b;
  --dark: #0a1418; --on-dark: #e8f1f4; --dark-muted: #9fb8c2; --head-bg: #13232a; --tile: #1d2f38; --hero-bg: #12212a;
}
[data-mode="gelap"][data-theme="netral"] {
  --bg: #121418; --surface: #1b1e24; --ink: #eceef2; --muted: #a8adb8; --line: #2c3038;
  --accent: #eceef2; --accent-strong: #eceef2; --on-accent: #121418; --madu: #d9d4c7; --sage: #1f2228;
  --dark: #0b0c0f; --on-dark: #eceef2; --dark-muted: #a8adb8; --head-bg: #1b1e24; --tile: #23262d; --hero-bg: #16181d;
}
[data-mode="gelap"] .s-lunas, [data-mode="gelap"] .s-dikirim, [data-mode="gelap"] .s-selesai { background: #1f3a24; color: #cdeccf; }
[data-mode="gelap"] .s-batal { background: #3d1c1a; color: #f6c9c5; }
[data-mode="gelap"] .paybox .qris { background: #fff; padding: 8px; }

.modebtn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; padding: 0; }
.modebtn .ic-terang { display: none; }
[data-mode="gelap"] .modebtn .ic-gelap { display: none; }
[data-mode="gelap"] .modebtn .ic-terang { display: block; }

/* ===== Batik kawung (motif tradisional, digambar ulang sendiri) =====
   HP: pita batik di bawah header. Layar lebar: bingkai batik di sisi kiri & kanan halaman. */
:root, [data-theme] {
  --batik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23a84b24' stroke-width='1.3' stroke-opacity='.75'%3E%3Cellipse cx='24' cy='13' rx='5' ry='9'/%3E%3Cellipse cx='24' cy='35' rx='5' ry='9'/%3E%3Cellipse cx='13' cy='24' rx='9' ry='5'/%3E%3Cellipse cx='35' cy='24' rx='9' ry='5'/%3E%3Cellipse cx='0' cy='11' rx='5' ry='9'/%3E%3Cellipse cx='11' cy='0' rx='9' ry='5'/%3E%3Cellipse cx='48' cy='11' rx='5' ry='9'/%3E%3Cellipse cx='37' cy='0' rx='9' ry='5'/%3E%3Cellipse cx='0' cy='37' rx='5' ry='9'/%3E%3Cellipse cx='11' cy='48' rx='9' ry='5'/%3E%3Cellipse cx='48' cy='37' rx='5' ry='9'/%3E%3Cellipse cx='37' cy='48' rx='9' ry='5'/%3E%3C/g%3E%3Cg fill='%23d9a441'%3E%3Ccircle cx='24' cy='24' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='48' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='48' r='2.2'/%3E%3Ccircle cx='48' cy='48' r='2.2'/%3E%3C/g%3E%3Cg fill='%23a84b24' fill-opacity='.5'%3E%3Ccircle cx='24' cy='7' r='.9'/%3E%3Ccircle cx='24' cy='41' r='.9'/%3E%3Ccircle cx='7' cy='24' r='.9'/%3E%3Ccircle cx='41' cy='24' r='.9'/%3E%3C/g%3E%3C/svg%3E");
  --batik-alpha: .55;
}
[data-theme="segar"] { --batik: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%230f4c5c' stroke-width='1.3' stroke-opacity='.6'%3E%3Cellipse cx='24' cy='13' rx='5' ry='9'/%3E%3Cellipse cx='24' cy='35' rx='5' ry='9'/%3E%3Cellipse cx='13' cy='24' rx='9' ry='5'/%3E%3Cellipse cx='35' cy='24' rx='9' ry='5'/%3E%3Cellipse cx='0' cy='11' rx='5' ry='9'/%3E%3Cellipse cx='11' cy='0' rx='9' ry='5'/%3E%3Cellipse cx='48' cy='11' rx='5' ry='9'/%3E%3Cellipse cx='37' cy='0' rx='9' ry='5'/%3E%3Cellipse cx='0' cy='37' rx='5' ry='9'/%3E%3Cellipse cx='11' cy='48' rx='9' ry='5'/%3E%3Cellipse cx='48' cy='37' rx='5' ry='9'/%3E%3Cellipse cx='37' cy='48' rx='9' ry='5'/%3E%3C/g%3E%3Cg fill='%23f4b740'%3E%3Ccircle cx='24' cy='24' r='2.2'/%3E%3Ccircle cx='0' cy='0' r='2.2'/%3E%3Ccircle cx='48' cy='0' r='2.2'/%3E%3Ccircle cx='0' cy='48' r='2.2'/%3E%3Ccircle cx='48' cy='48' r='2.2'/%3E%3C/g%3E%3C/svg%3E"); }
[data-theme="netral"] { --batik: none; }
[data-mode="gelap"] { --batik-alpha: .35; }
.batik-band { height: 14px; background: var(--batik) center / 28px 28px repeat-x, var(--head-bg); opacity: 1; border-bottom: 1px solid var(--line); }
[data-theme="netral"] .batik-band { display: none; }
@media (min-width: 1200px) {
  body::before, body::after { content: ""; position: fixed; top: 0; bottom: 0; z-index: 30; pointer-events: none; width: max(0px, calc((100vw - 1140px) / 2)); max-width: 260px; background: var(--batik) 0 0 / 48px 48px repeat; opacity: var(--batik-alpha); }
  body::before { left: 0; -webkit-mask: linear-gradient(90deg, #000 40%, transparent); mask: linear-gradient(90deg, #000 40%, transparent); }
  body::after { right: 0; -webkit-mask: linear-gradient(270deg, #000 40%, transparent); mask: linear-gradient(270deg, #000 40%, transparent); }
  [data-theme="netral"] body::before, [data-theme="netral"] body::after { display: none; }
}
