:root {
  color-scheme: light;
  --leaf: #1f5130;
  --leaf-2: #2a6a40;
  --leaf-soft: #e8f1e6;
  --turmeric: #f2b632;
  --turmeric-soft: #fff3d1;
  --chili: #b42a23;
  --ink: #1d2a21;
  --muted: #56625a;
  --line: #dbe3d8;
  --bg: #ffffff;
  --r: 18px;
  --head: "Fredoka", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --safe: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.locked { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); }
body.has-bar { padding-bottom: calc(84px + var(--safe)); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.1; margin: 0 0 .35em; }
p { margin: 0 0 .7em; }
a { color: var(--leaf); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--turmeric); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 60; }
.skip:focus { top: 12px; }
.demo-strip { margin: 0; padding: 7px 16px; text-align: center; font-size: 13px; background: var(--turmeric); color: #2b1d00; }

/* hero */
.hero { position: relative; background: var(--leaf); color: #fff; }
.hero-photo { height: 210px; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-card { position: relative; margin-top: -36px; padding: 0 16px 28px; display: grid; justify-items: center; text-align: center; }
.mark { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--turmeric); color: var(--leaf); font: 700 28px/1 var(--head); border: 4px solid var(--leaf); box-shadow: 0 0 0 3px var(--turmeric); }
.hero h1 { font-size: clamp(2.2rem, 1.6rem + 3vw, 3.4rem); margin: 10px 0 4px; font-weight: 700; }
.tagline { max-width: 34ch; color: #e3eee0; }
.po-pill { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 500; }
.po-pill .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--turmeric); box-shadow: 0 0 0 4px rgba(242, 182, 50, .25); }
.po-pill.is-closed { background: rgba(0, 0, 0, .25); }
.links { width: 100%; max-width: 440px; display: grid; gap: 10px; }
.link { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; text-decoration: none; font-weight: 500; transition: background .2s; }
.link:hover { background: rgba(255, 255, 255, .2); }
.link svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.link-main { background: var(--turmeric); border-color: var(--turmeric); color: #2b1d00; font: 600 18px/1 var(--head); min-height: 58px; }
.link-main:hover { background: #f6c552; }
.link-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.link-row .link { flex-direction: column; gap: 4px; min-height: 66px; padding: 8px 4px; font-size: 13px; }

/* PO */
.po { max-width: 1120px; margin: 0 auto; padding: 32px 16px 24px; scroll-margin-top: 8px; }
.po-head h2 { font-size: clamp(1.7rem, 1.3rem + 1.8vw, 2.4rem); color: var(--leaf); }
.po-note { color: var(--muted); max-width: 60ch; }
.step { margin-top: 22px; }
.step h3, .step-3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; }
.step-3 { font-family: var(--body); font-size: 15px; color: var(--muted); margin-top: 24px; }
.num { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); color: #fff; font: 600 16px/1 var(--head); }
.step-3 .num { background: var(--leaf-soft); color: var(--leaf); }
.dates { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.date { flex: 0 0 auto; width: 104px; scroll-snap-align: start; display: grid; gap: 1px; justify-items: start; text-align: left; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.date:hover:not(:disabled) { border-color: var(--leaf); }
.date.on { border-color: var(--leaf); background: var(--leaf-soft); box-shadow: inset 0 0 0 1px var(--leaf); }
.date.full { cursor: not-allowed; background: #f4f5f3; color: #6b736d; }
.d-dow { font-size: 13px; text-transform: capitalize; color: var(--muted); }
.d-day { font: 600 19px/1.2 var(--head); }
.d-left { font-size: 13px; font-weight: 700; color: var(--leaf); }
.d-left.low { color: var(--chili); }
.date.full .d-left { color: #6b736d; }
.d-meter { width: 100%; height: 5px; border-radius: 3px; background: var(--line); margin-top: 5px; overflow: hidden; }
.d-meter i { display: block; height: 100%; background: var(--turmeric); }
.date.full .d-meter i { background: #9aa39c; }
.hint { font-size: 14px; color: var(--muted); }
.warn { color: var(--chili); font-weight: 700; }

.cats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; }
.cat { flex: none; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 500; cursor: pointer; }
.cat.on { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.grid { list-style: none; padding: 0; margin: 6px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.loading { grid-column: 1 / -1; color: var(--muted); padding: 20px 0; }
.card { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 2px; padding: 0 0 12px; border: 1.5px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; cursor: pointer; overflow: hidden; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--leaf); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 1; background: var(--leaf-soft); margin-bottom: 8px; overflow: hidden; }
.card-img img, .item-img img, .line-img img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; font: 700 40px/1 var(--head); color: var(--leaf); }
.card.is-out .card-img img { filter: grayscale(.8); opacity: .7; }
.tag { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: var(--turmeric); color: #2b1d00; font-size: 12px; font-weight: 700; }
.tag-out { background: #fff; color: var(--chili); }
.card-name { padding: 0 12px; font-weight: 700; font-size: 15px; line-height: 1.3; }
.card-price { padding: 0 12px; margin-top: auto; color: var(--leaf); font-weight: 700; font-size: 15px; }

/* info */
.info { max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
.info h2 { font-size: 1.6rem; color: var(--leaf); }
.how { list-style: none; counter-reset: s; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.how li { counter-increment: s; position: relative; padding: 14px 14px 14px 56px; border-radius: 16px; background: var(--leaf-soft); }
.how li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--turmeric); font: 600 16px/1 var(--head); color: #2b1d00; }
.pickup { padding: 14px; border-radius: 16px; border: 1.5px dashed var(--line); color: var(--muted); }
.foot { background: var(--leaf); color: #dfeadc; text-align: center; padding: 24px 16px; }
.foot p { margin: 0 0 4px; }
.small { font-size: 13px; color: #c4d4c1; }

/* floating bar */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 12px calc(10px + var(--safe)); background: linear-gradient(transparent, rgba(255, 255, 255, .95) 30%); }
.bar-btn { width: 100%; max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 18px 8px 8px; border: 0; border-radius: 18px; background: var(--leaf); color: #fff; cursor: pointer; box-shadow: 0 10px 28px rgba(31, 81, 48, .35); text-align: left; }
.bar-count { flex: none; min-width: 44px; height: 44px; padding: 0 8px; border-radius: 12px; display: grid; place-items: center; background: var(--turmeric); color: #2b1d00; font: 700 18px/1 var(--head); }
.bar-text { flex: 1; display: grid; }
.bar-text span { font-size: 13px; color: #cfe0cc; }
.bar.bump .bar-btn { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.03); } }

/* dialog */
.sheet { border: 0; padding: 0; width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 22px 22px 0 0; background: #fff; color: var(--ink); overflow: hidden; }
.sheet[open] { display: flex; flex-direction: column; animation: up .25s ease-out; }
.sheet::backdrop { background: rgba(16, 30, 20, .55); }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.sheet-top { flex: none; display: flex; justify-content: flex-end; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.x { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--leaf-soft); cursor: pointer; }
.sheet-body { overflow-y: auto; padding: 16px 16px calc(16px + var(--safe)); overscroll-behavior: contain; }
.sheet-body h2 { font-size: 1.6rem; }
.sheet-body h2:focus { outline: none; }
.item-img { margin: -16px -16px 12px; aspect-ratio: 4 / 3; background: var(--leaf-soft); }
.item-cat { margin: 0; font-size: 13px; color: var(--muted); }
.item-price { font: 600 1.3rem/1 var(--head); color: var(--leaf); }
.soldout { padding: 10px 12px; border-radius: 12px; background: #fde8e6; color: var(--chili); font-weight: 700; }
.opts { border: 0; padding: 0; margin: 12px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.opts legend { width: 100%; font-weight: 700; margin-bottom: 6px; padding: 0; font-size: 15px; }
.opt { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer; }
.opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--leaf); background: var(--leaf-soft); font-weight: 700; }
.opt:has(input:focus-visible) { outline: 3px solid var(--turmeric); outline-offset: 2px; }
.opt small { color: var(--muted); font-weight: 500; margin-left: 4px; }
.qty-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.stepper { display: inline-flex; align-items: center; gap: 6px; }
.stepper button { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }
.stepper button:hover { border-color: var(--leaf); }
.stepper output { min-width: 26px; text-align: center; font-weight: 700; font-size: 17px; }
.stepper.sm button { width: 40px; height: 40px; font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions.sticky { position: sticky; bottom: calc(-16px - var(--safe)); margin: 14px -16px calc(-16px - var(--safe)); padding: 12px 16px calc(12px + var(--safe)); background: linear-gradient(transparent, #fff 25%); }
.btn { flex: 1 1 200px; display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 20px; border: 0; border-radius: 14px; background: var(--leaf); color: #fff; font: 600 17px/1 var(--head); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--leaf-2); }
.btn:disabled { background: #a7b1a9; cursor: not-allowed; }
.btn-soft { background: var(--leaf-soft); color: var(--leaf); }
.btn-big { min-height: 58px; }
.btn-wa { background: #1c7c43; }
.linkbtn { display: block; margin: 10px auto 0; min-height: 44px; border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; }

.lines { list-style: none; padding: 0; margin: 4px 0 12px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line-img { width: 56px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--leaf-soft); }
.line-info { display: grid; font-size: 14px; }
.line-info small { color: var(--muted); }
.form { display: grid; gap: 4px; }
.form > label { font-weight: 700; font-size: 14px; margin-top: 8px; }
.form > label small { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #b6c1b5; border-radius: 12px; background: #fff; }
.form textarea { resize: vertical; min-height: 70px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--leaf); border-color: var(--leaf); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 12px; border-top: 2px solid var(--ink); }
.total strong { font: 600 1.4rem/1 var(--head); }
.err { color: var(--chili); font-weight: 700; margin: 6px 0 0; }
.err:empty { display: none; }
.code-big { font: 700 2.4rem/1 var(--head); color: var(--leaf); letter-spacing: .04em; margin: 4px 0 12px; }
.sum { padding-left: 18px; color: var(--muted); font-size: 14px; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet { max-width: 560px; margin: auto; border-radius: 22px; }
  .item-img { aspect-ratio: 16 / 10; }
  .how { grid-template-columns: repeat(3, 1fr); }
}
/* desktop: hero dibagi dua (foto kiri, link-in-bio kanan), PO jadi dua kolom */
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 560px; }
  .hero-photo { height: auto; }
  .hero-card { margin: 0; align-content: center; padding: 48px 56px; }
  .po { display: grid; grid-template-columns: 340px 1fr; grid-template-rows: auto auto 1fr; gap: 8px 48px; padding: 56px 24px 32px; align-items: start; }
  .po-head { grid-column: 1; }
  .po > .step-date { grid-column: 1; grid-row: 2; position: sticky; top: 16px; }
  .po > .step-menu { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .po > .step-3 { grid-column: 1; grid-row: 3; }
  .dates { flex-wrap: wrap; overflow: visible; }
  .date { width: calc(50% - 5px); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .info { padding: 32px 24px 64px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
