/* Harum Manis Fresh — tampilan toko: "rak swalayan pagi hari".
   Lihat docs/rencana-desain.html. Kuning label HANYA untuk harga; merah krat hanya promo & musiman.
   Warna hijau/merah sementara sampai logo asli masuk. */
:root {
  --cream: #fafaf7;       /* putih rak (latar halaman) */
  --paper: #ffffff;
  --leaf: #1f7a4d;        /* hijau sayur: tombol utama */
  --leaf-deep: #165c39;
  --leaf-brand: #1f7a4d;
  --sprout: #e6f1ea;
  --label: #ffd43b;       /* kuning label harga rak */
  --label-ink: #000000;   /* hitam cetak label */
  --krat: #d93a2b;        /* merah keranjang plastik: promo & musiman */
  --orange: #ffd43b;      /* alias lama, dipakai titik notifikasi & penanda */
  --orange-ink: #7a5600;
  --orange-soft: #fff4cc;
  --ink: #23302a;
  --muted: #5d6b63;
  --line: #dfe3dc;
  --danger: #b4402c;
  --wa: #1fa855;
  --r: 10px;
  --shadow: none;
  --serif: "Barlow Condensed", "Arial Narrow", sans-serif;   /* judul, harga, angka jam (papan toko) */
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 15px/1.5 var(--sans); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
a { color: var(--leaf); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
svg.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 30; background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 10px; height: 62px; }
.logo { display: flex; align-items: center; height: 40px; flex: none; }
.logo { text-decoration: none; }
.logo img { height: 40px; width: auto; }
@media (max-width: 400px) { .logo img { height: 32px; } }
.logo img + .wordmark { display: none; } /* logo asli ada → sembunyikan tulisan */
.wordmark { font-family: var(--serif); font-weight: 800; font-size: 17px; line-height: 1; color: var(--ink); display: flex; flex-direction: column; gap: 3px; }
.wordmark b { font-family: var(--sans); font-size: 10.5px; font-weight: 800; letter-spacing: .22em; text-transform: uppercase; color: var(--leaf-brand); }
.loc-chip {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; text-align: left;
  background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px;
}
.loc-chip svg { color: var(--leaf-brand); }
.loc-chip small { display: block; font-size: 11px; color: var(--muted); line-height: 1.2; }
.loc-chip b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-chip .txt { min-width: 0; }
.icon-btn {
  position: relative; flex: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); display: grid; place-items: center;
}
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

.window-bar { background: var(--leaf); color: #f3efe4; font-size: 13px; }
.window-bar .wrap { display: flex; align-items: center; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.window-bar .pulse { width: 8px; height: 8px; border-radius: 50%; background: #9fe0a8; flex: none; box-shadow: 0 0 0 0 rgba(159,224,168,.7); animation: pulse 2s infinite; }
.window-bar.closed .pulse { background: #f0b27f; animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(159,224,168,0); } 100% { box-shadow: 0 0 0 0 rgba(159,224,168,0); } }

/* ---------- intro ---------- */
.intro { padding: 26px 0 8px; }
.intro .kicker { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); font-weight: 700; }
.intro h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(28px, 7vw, 44px); line-height: 1.08; margin: 8px 0 10px; letter-spacing: -.01em; max-width: 16ch; }
.intro h1 em { font-style: italic; color: var(--leaf); }
.intro p.lead { margin: 0; color: var(--muted); max-width: 46ch; }
.promises { list-style: none; padding: 4px 14px; margin: 12px 0 0; display: grid; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.promises li + li { border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .promises { grid-template-columns: repeat(3, 1fr); padding: 4px 0; }
  .promises li { padding-left: 16px !important; padding-right: 16px !important; }
  .promises li + li { border-top: 0; border-left: 1px solid var(--line); }
}
.promises li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; font-size: 13.5px; color: var(--muted); }
.promises li b { display: block; font-size: 14px; }
.promises .n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--sprout); color: var(--leaf); display: grid; place-items: center; font-weight: 700; font-size: 13px; }

/* ---------- banner besar ---------- */
.hero {
  margin-top: 16px; background: var(--leaf-deep); color: #f4f1e6; border-radius: 24px; overflow: hidden;
  display: grid; position: relative;
}
@media (min-width: 760px) { .hero { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.hero::before { /* pola titik halus */
  content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
  background-image: radial-gradient(#fff 1px, transparent 1.2px); background-size: 18px 18px;
}
.hero-copy { position: relative; padding: 24px 20px 8px; }
@media (min-width: 760px) { .hero-copy { padding: 40px 0 40px 40px; } }
.kicker-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.kicker-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 7.6vw, 50px); line-height: 1.05; margin: 12px 0 10px; letter-spacing: -.015em; color: #fff; }
.hero h1 em { font-style: italic; color: var(--orange); }
.hero p { margin: 0; color: #cfe0c9; max-width: 40ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.btn.ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn.ghost-light:hover { background: rgba(255,255,255,.08); }
.hero-meta { margin-top: 14px; font-size: 12.5px; color: #b9cdb2; }
.hero-art { position: relative; aspect-ratio: 4 / 3; max-height: 230px; margin: 0 auto; width: 100%; }
@media (min-width: 760px) { .hero-art { max-height: none; } }
.hero-art svg, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* kategori */
.cats { display: grid; grid-auto-flow: column; grid-auto-columns: 92px; gap: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .cats { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); } }
.cat { border: 1px solid var(--line); background: var(--paper); border-radius: 16px; padding: 12px 8px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.cat .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--sprout); color: var(--leaf); }
.cat .ic svg { width: 28px; height: 28px; stroke-width: 1.6; }
.cat b { font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.cat small { font-size: 11.5px; color: var(--muted); }
.cat[aria-pressed="true"] { border-color: var(--leaf); box-shadow: inset 0 0 0 1px var(--leaf); }
.cat.buah .ic { background: var(--orange-soft); color: var(--orange-ink); }
.cat.kacang .ic { background: #ece4cf; color: #7a6338; }
.cat.paket .ic { background: #f3e3c4; color: #7c5410; }
.cat.all .ic { background: var(--ink); color: var(--paper); }

/* 2 banner promo */
.promos { display: grid; gap: 12px; }
@media (min-width: 720px) { .promos { grid-template-columns: 1fr 1fr; } }
.promo { position: relative; overflow: hidden; border-radius: 20px; padding: 18px 18px 16px; min-height: 168px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.promo.sun { background: var(--orange); color: var(--ink); }
.promo.green { background: var(--leaf); color: #fff; }
.promo .lbl { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.promo h3 { font-family: var(--serif); font-weight: 800; font-size: 24px; line-height: 1.1; margin: 4px 0 4px; max-width: 13ch; }
.promo p { margin: 0; font-size: 13.5px; max-width: 24ch; opacity: .9; position: relative; z-index: 1; }
.promo h3 { position: relative; z-index: 1; }
@media (max-width: 480px) { .promo .art { width: 120px; height: 120px; right: -24px; bottom: auto; top: -24px; } .promo .art svg { width: 48px; height: 48px; } }
.promo .row2 { display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }
.promo .row2 b { font-size: 18px; }
.promo .row2 s { opacity: .7; font-size: 13px; }
.promo .art { position: absolute; right: -18px; bottom: -18px; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; }
.promo.sun .art { background: rgba(255,255,255,.35); color: #7c5410; }
.promo.green .art { background: rgba(255,255,255,.1); color: #cfe8c5; }
.promo .art svg { width: 64px; height: 64px; stroke-width: 1.3; }
.promo .btn { padding: 9px 14px; font-size: 13.5px; }
.promo.sun .btn { background: var(--ink); color: #fff; }
.promo.green .btn { background: var(--orange); color: var(--ink); }

/* ---------- section ---------- */
.sec { padding: 22px 0 4px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sec-head h2 { font-family: var(--serif); font-weight: 800; font-size: 22px; margin: 0; letter-spacing: -.01em; }
.sec-head span { color: var(--muted); font-size: 13px; }
@media (max-width: 480px) { .sec-head span { display: none; } }
.promises li b { color: var(--ink); }

/* paket & promo */
.hscroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 78%); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .hscroll { grid-auto-columns: minmax(280px, 1fr); } }
.deal {
  scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 12px; box-shadow: var(--shadow);
}
.deal .ph { border-radius: 12px; aspect-ratio: 1; }
.deal h3 { margin: 0; font-size: 15px; }
.deal p { margin: 2px 0 6px; color: var(--muted); font-size: 12.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.deal .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* rak / katalog */
.shelf-bar { position: sticky; top: 62px; z-index: 20; background: var(--cream); padding: 12px 0 8px; }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding: 11px 12px 11px 40px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 6px 0 10px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 920px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.card .ph { aspect-ratio: 5 / 4; position: relative; }
.card .tag { position: absolute; left: 8px; top: 8px; background: var(--orange); color: var(--ink); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.card .tag.low { background: var(--ink); color: #fff; }
.card .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.card h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.card .unit { color: var(--muted); font-size: 12.5px; }
.card .foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price b { font-size: 15.5px; color: var(--leaf-deep); }
.price s { display: block; font-size: 12px; color: var(--muted); line-height: 1; }
.soldout { opacity: .55; }

/* placeholder foto */
.ph { background: var(--sprout); display: grid; place-items: center; overflow: hidden; color: var(--leaf); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph svg { width: 42%; height: 42%; stroke-width: 1.3; opacity: .8; }
.ph.buah { background: var(--orange-soft); color: var(--orange-ink); }
.ph.kacang { background: #ece4cf; color: #7a6338; }
.ph.paket { background: #e9e0cd; color: var(--leaf-deep); }

/* tombol tambah & stepper */
.add { width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--leaf); color: #fff; display: grid; place-items: center; flex: none; }
.add:hover { background: var(--leaf-deep); }
.add svg { width: 20px; height: 20px; stroke-width: 2.4; }
.step { display: flex; align-items: center; gap: 2px; background: var(--sprout); border-radius: 12px; padding: 3px; }
.step button { width: 32px; height: 32px; border: 0; border-radius: 9px; background: var(--paper); color: var(--leaf); display: grid; place-items: center; }
.step button svg { width: 16px; height: 16px; stroke-width: 2.4; }
.step span { min-width: 22px; text-align: center; font-weight: 700; color: var(--leaf-deep); }

/* tentang */
.about { margin-top: 24px; background: var(--leaf); color: #efeadc; border-radius: 22px; padding: 26px 20px; }
.about h2 { font-family: var(--serif); font-weight: 800; font-size: 26px; margin: 0 0 4px; color: #fff; }
.about > p { margin: 0 0 18px; color: #cfd8c7; max-width: 52ch; }
.how { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: s; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(4, 1fr); } }
.how li { counter-increment: s; border-top: 1px solid rgba(255,255,255,.18); padding-top: 12px; font-size: 14px; color: #dfe6d6; }
.how li::before { content: "0" counter(s); display: block; font-family: var(--serif); font-size: 22px; color: var(--orange); margin-bottom: 4px; }
.how b { display: block; color: #fff; font-size: 15px; margin-bottom: 2px; }
.facts { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); } }
.fact { background: rgba(255,255,255,.07); border-radius: 14px; padding: 12px 14px; font-size: 13.5px; color: #dfe6d6; }
.fact b { display: block; color: #fff; margin-bottom: 2px; font-size: 14.5px; }

footer.ft { padding: 22px 0 130px; color: var(--muted); font-size: 13px; }
footer.ft .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

/* ---------- cart bar & WA ---------- */
.cartbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); pointer-events: none; }
.cartbar .in {
  pointer-events: auto; max-width: 1040px; margin: 0 auto; background: var(--ink); color: var(--paper); border-radius: 16px;
  padding: 10px 10px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 10px; box-shadow: 0 14px 30px -12px rgba(0,0,0,.45);
}
.cartbar small { display: block; color: #c9bfae; font-size: 12px; }
.cartbar b { font-size: 16px; }
.cartbar .go { border: 0; background: var(--orange); color: var(--ink); font-weight: 700; padding: 12px 16px; border-radius: 12px; display: flex; align-items: center; gap: 6px; }

.wa-fab {
  position: fixed; right: 16px; bottom: 20px; z-index: 36; width: 56px; height: 56px; border-radius: 50%; border: 0;
  background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(31,168,85,.7);
}
.wa-fab svg { width: 28px; height: 28px; fill: currentColor; stroke: none; }
body.has-cart .wa-fab { bottom: 92px; }
.wa-pop {
  position: fixed; right: 16px; bottom: 86px; z-index: 37; width: min(330px, calc(100vw - 32px)); background: var(--paper);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 40px -18px rgba(0,0,0,.4); overflow: hidden;
}
body.has-cart .wa-pop { bottom: 158px; }
.wa-pop header { background: var(--wa); color: #fff; padding: 14px 16px; display: flex; gap: 10px; align-items: center; }
.wa-pop header .av { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; font-weight: 700; }
.wa-pop header small { display: block; opacity: .85; font-size: 12px; }
.wa-pop .bubble { margin: 14px 16px 6px; background: var(--cream); border-radius: 4px 14px 14px 14px; padding: 10px 12px; font-size: 13.5px; }
.wa-pop .opts { padding: 6px 12px 14px; display: grid; gap: 6px; }
.wa-pop .opts a { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 14px; font-weight: 500; }
.wa-pop .opts a:hover { border-color: var(--wa); color: var(--wa); }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 40; background: rgba(32, 27, 20, .45); }
.sheet {
  position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-height: 94vh; background: var(--cream);
  border-radius: 22px 22px 0 0; display: flex; flex-direction: column; overflow: hidden;
  animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(40px); } }
@media (prefers-reduced-motion: reduce) { .sheet { animation: none; } .window-bar .pulse { animation: none; } }
@media (min-width: 760px) {
  .sheet { left: 50%; bottom: auto; top: 50%; width: 640px; max-height: 90vh; border-radius: 22px; transform: translate(-50%, -50%); animation: none; }
}
.sheet-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
.sheet-h h2 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 20px; }
.sheet-b { overflow-y: auto; padding: 14px 16px 22px; display: flex; flex-direction: column; gap: 12px; }
.sheet-f { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); }
.x { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--cream); display: grid; place-items: center; }

.box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.box h3 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.row.total { border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 10px; font-weight: 700; font-size: 17px; }
.muted { color: var(--muted); font-size: 13px; }
.line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line .nm { font-weight: 600; font-size: 14px; }

.btn { border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; background: var(--leaf); color: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn:hover { background: var(--leaf-deep); }
.btn.block { width: 100%; }
.btn.orange { background: var(--orange); color: var(--ink); }
.btn.orange:hover { background: #e39b00; }
.btn.wa { background: var(--wa); }
.btn.line-btn { background: var(--paper); color: var(--leaf); border: 1px solid var(--line); }
.btn.sm { padding: 8px 12px; font-size: 13.5px; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link { border: 0; background: none; color: var(--leaf); font-weight: 700; padding: 0; text-decoration: underline; text-underline-offset: 3px; }

label.f { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.in { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
textarea.in { min-height: 64px; resize: vertical; }
.in:focus, .search input:focus { outline: 2px solid var(--leaf); outline-offset: 1px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg label { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13.5px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.opts { display: grid; gap: 8px; }
.opt { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 11px 12px; cursor: pointer; }
.opt input { margin-top: 3px; accent-color: var(--leaf); }
.opt b { display: block; font-size: 14px; }
.opt:has(input:checked) { border-color: var(--leaf); background: #f3f6ec; }
.opt .pre { display: inline-block; font-size: 11px; font-weight: 700; color: #8a4b0b; background: var(--orange-soft); border-radius: 6px; padding: 1px 6px; margin-right: 6px; vertical-align: 1px; }

.addr { display: flex; gap: 10px; align-items: flex-start; }
.addr .pin { flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--orange-soft); color: var(--orange-ink); display: grid; place-items: center; }
.addr b { display: block; }
.addr .act { margin-left: auto; flex: none; }

#map { height: 280px; border-radius: 14px; border: 1px solid var(--line); margin-top: 10px; z-index: 0; }
.map-note { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 7px 10px; border-radius: 10px; background: var(--sprout); color: var(--leaf-deep); font-weight: 600; }
.badge.warn { background: #f7ded8; color: var(--danger); }
.badge.mid { background: var(--orange-soft); color: #8a4b0b; }

.alert { background: #f7ded8; color: var(--danger); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.hint { background: var(--orange-soft); color: #7b420c; border-radius: 10px; padding: 8px 10px; font-size: 13px; margin-top: 8px; }

.empty { text-align: center; color: var(--muted); padding: 30px 10px; }
.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sprout); color: var(--leaf-deep); }
.status.batal { background: #f7ded8; color: var(--danger); }
.status.baru, .status.dikonfirmasi { background: var(--orange-soft); color: #8a4b0b; }

.done { text-align: center; padding: 10px 4px; }
.done .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--sprout); color: var(--leaf); display: grid; place-items: center; margin: 6px auto 10px; }
.done .tick svg { width: 32px; height: 32px; stroke-width: 2.4; }
.done h3 { font-family: var(--serif); font-size: 24px; margin: 0 0 4px; font-weight: 600; }
.code { display: inline-block; font-weight: 800; letter-spacing: .04em; background: var(--paper); border: 1px dashed var(--leaf); border-radius: 10px; padding: 6px 12px; color: var(--leaf-deep); }

/* detail produk */
[data-open] { cursor: pointer; }
.gallery { flex-shrink: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 18px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery .ph { aspect-ratio: 4 / 3; scroll-snap-align: start; }
.gallery .ph svg { width: 30%; height: 30%; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--leaf); width: 16px; border-radius: 3px; }
.pd-name { font-family: var(--serif); font-weight: 800; font-size: 26px; line-height: 1.15; margin: 4px 0 0; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.pd-price b { font-size: 22px; color: var(--leaf-deep); }
.pd-price s { color: var(--muted); }
.facts-row { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 10px; border-radius: 10px; background: var(--paper); border: 1px solid var(--line); }
.fchip svg { width: 16px; height: 16px; color: var(--leaf); }
.fchip.fresh { background: var(--sprout); border-color: transparent; color: var(--leaf-deep); font-weight: 600; }
.mini { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mini::-webkit-scrollbar { display: none; }
.mini article { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mini .ph { aspect-ratio: 1; }
.mini .ph svg { width: 36%; height: 36%; }
.mini div.t { padding: 8px 10px; font-size: 13px; }
.mini div.t b { display: block; color: var(--leaf-deep); }
.pd-foot { display: flex; gap: 10px; align-items: center; }
.pd-foot .step { padding: 5px; }
.pd-foot .step button { width: 38px; height: 38px; }
.pd-foot .btn { flex: 1; }

.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 12px; z-index: 60; font-size: 14px; }
[hidden] { display: none !important; }

/* barang timbang */
.price b small, .pd-price b small, .row2 b small, .mini b small { font-size: .68em; font-weight: 600; color: var(--muted); margin-left: 1px; }
.kg-note { margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--orange-soft); color: var(--orange-ink); font-size: 13px; line-height: 1.45; }

/* katalog toko (ribuan produk) */
.grid .more { grid-column: 1 / -1; justify-self: center; background: transparent; color: var(--leaf); border: 1.5px solid currentColor; margin-top: 6px; }
.grid .more small { font-weight: 500; opacity: .75; }
.card .body h3 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* varian */
.price .from { display: block; font-size: 11px; font-weight: 600; color: var(--muted); line-height: 1; margin-bottom: 1px; }
.card .pick { border: 0; border-radius: 999px; padding: 7px 13px; font-weight: 800; font-size: 12.5px; background: var(--leaf); color: #fff; white-space: nowrap; }
.variants { display: grid; gap: 8px; }
.vlabel { font-weight: 800; font-size: 14px; }
.vchips { display: flex; flex-wrap: wrap; gap: 8px; }
.vchip { position: relative; display: grid; gap: 1px; text-align: left; min-width: 92px; max-width: 100%; padding: 8px 12px; border-radius: 12px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.vchip span { font-weight: 700; font-size: 13.5px; }
.vchip small { font-size: 12px; color: var(--muted); }
.vchip[aria-pressed="true"] { border-color: var(--leaf); background: #eef6e6; box-shadow: inset 0 0 0 1px var(--leaf); }
.vchip[aria-pressed="true"] small { color: var(--leaf-deep); font-weight: 700; }
.vchip.out { opacity: .55; }
.vchip.out span { text-decoration: line-through; }
.vchip i { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--orange); color: var(--ink);
  font-style: normal; font-size: 11.5px; font-weight: 800; display: grid; place-items: center; }

/* ---------- tema Natal & Tahun Baru ---------- */
:root { --berry: #b8322a; --night: #14261a; }
.hero.season { background: radial-gradient(120% 90% at 85% 0%, #24502b 0%, var(--leaf-deep) 45%, #173f1b 100%); }
.hero.season::before { opacity: .09; background-size: 22px 22px; }
.hero.season .kicker-pill i { background: var(--berry); box-shadow: 0 0 0 3px rgba(184, 50, 42, .25); }
@media (min-width: 760px) { .hero.season .hero-art { margin-right: 12px; } }

/* parsel */
.parcels { display: grid; gap: 12px; }
@media (min-width: 640px) { .parcels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .parcels { grid-template-columns: repeat(4, 1fr); } }
.parcel { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 112px 1fr; cursor: pointer; }
@media (min-width: 980px) { .parcel { grid-template-columns: 1fr; } }
.parcel .ph { position: relative; min-height: 118px; aspect-ratio: auto; }
@media (min-width: 980px) { .parcel .ph { aspect-ratio: 4 / 3; } }
.ph.parsel { background: repeating-linear-gradient(-45deg, #f6e7c9 0 10px, #f2dfba 10px 20px); color: var(--berry); grid-template-rows: 1fr auto; padding-bottom: 8px; }
.ph.parsel svg { width: 40px; height: 40px; opacity: 1; stroke-width: 1.5; align-self: end; }
.ph.parsel small { font-size: 11px; font-weight: 600; color: #8a5a2a; }
.parcel .tag { position: absolute; left: 8px; top: 8px; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: #fff; }
.parcel .tag.pre { background: var(--berry); }
.parcel .body { padding: 12px 14px 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.parcel h3 { margin: 0; font-family: var(--serif); font-weight: 800; font-size: 18px; line-height: 1.15; }
.parcel p { margin: 0 0 6px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.parcel .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.parcel.custom { background: var(--leaf); border-color: var(--leaf); color: #fff; cursor: default; }
.parcel.custom .ph { background: rgba(255,255,255,.08); color: var(--orange); }
.parcel.custom .ph svg { width: 44px; height: 44px; opacity: 1; }
.parcel.custom p { color: #d6e6cf; }
.parcel.custom .btn { background: var(--orange); color: var(--ink); }

/* pesta tahun baru: minuman per karton */
.party { position: relative; margin-top: 22px; padding: 20px 16px 16px; border-radius: 22px; overflow: hidden; color: #f4efe2;
  background: var(--night); }
.party::before { /* confetti halus */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(circle, var(--orange) 1.4px, transparent 1.6px), radial-gradient(circle, #e4472b 1.2px, transparent 1.4px), radial-gradient(circle, #fdefc6 1px, transparent 1.2px);
  background-size: 76px 62px, 94px 80px, 54px 46px; background-position: 8px 10px, 40px 34px, 22px 4px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 46%); -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 46%); }
.party > * { position: relative; }
.party-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 6px 18px; margin-bottom: 14px; }
.party-kick { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); }
.party h2 { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 5.4vw, 30px); line-height: 1.1; margin: 4px 0 0; color: #fff; letter-spacing: -.01em; }
.party h2 em { font-style: italic; color: var(--orange); }
.party-head p { margin: 0; color: #b9c4b4; font-size: 13px; max-width: 34ch; }
@media (min-width: 760px) { .party { padding: 26px 24px 20px; } }
.party .deal { border-color: transparent; color: var(--ink); align-items: start; }
.party .deal > div:last-child { display: flex; flex-direction: column; min-height: 100%; }
.party .deal .foot { margin-top: auto; }
.party .deal .pick { border: 0; border-radius: 999px; padding: 7px 13px; font-weight: 800; font-size: 12.5px; background: var(--leaf); color: #fff; white-space: nowrap; }
.ph.minuman { background: #fbe7c0; color: #9a5a00; }
.deal.all-krt { grid-template-columns: 1fr auto; align-content: center; text-align: left; background: rgba(255,255,255,.06); border: 1px dashed rgba(255,255,255,.28); color: #fff; box-shadow: none; }
.deal.all-krt b { grid-column: 1; font-size: 15px; }
.deal.all-krt span { grid-column: 1; font-size: 12.5px; color: #b9c4b4; }
.deal.all-krt svg { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 22px; height: 22px; color: var(--orange); }

/* ---------- desain v2: rak swalayan (lihat docs/rencana-desain.html) ---------- */
/* huruf rapat butuh ukuran sedikit lebih besar dari serif lama */
.hero h1 { font-size: clamp(38px, 10vw, 60px); line-height: .98; letter-spacing: -.005em; }
.sec-head h2 { font-size: 27px; line-height: 1; }
.about h2 { font-size: 32px; line-height: 1; }
.party h2 { font-size: clamp(26px, 6.6vw, 36px); line-height: 1; }
.pd-name { font-size: 32px; line-height: 1; }
.sheet-h h2 { font-size: 24px; }
.promo h3 { font-size: 30px; line-height: 1; }
.parcel h3 { font-size: 22px; line-height: 1.02; }
.done h3 { font-size: 30px; }
.wordmark { font-size: 21px; font-weight: 800; }
h1, h2, h3 { text-wrap: balance; }

/* tanpa label kapital & tanpa kata miring berwarna */
.wordmark b, .promo .lbl, .party-kick, .box h3, .intro .kicker { text-transform: none; letter-spacing: 0; }
.wordmark b { font-size: 12px; font-weight: 700; color: var(--leaf); }
.promo .lbl { font-size: 13.5px; font-weight: 600; opacity: .85; }
.box h3 { font-size: 15px; color: var(--ink); }
.hero h1 em, .party h2 em, .intro h1 em { font-style: normal; color: inherit; }

/* bentuk: radius menurut peran (lembar 20, kartu 10, foto 6, label 3); tanpa bayangan */
.hero, .about, .party { border-radius: 20px; }
.card, .deal, .parcel, .box, .mini article, .cat { border-radius: var(--r); }
.deal .ph, .gallery { border-radius: 6px; }
.promo { border-radius: 14px; }
.promises { border-radius: var(--r); }
.promises li { padding-left: 0; }

/* tombol: hijau sayur; kuning tidak dipakai tombol */
.btn.orange, .cartbar .go { background: var(--leaf); color: #fff; }
.btn.orange:hover { background: var(--leaf-deep); }
.cartbar .go { background: #fff; color: var(--ink); }
.hero .btn.orange { background: #fff; color: var(--ink); }
.hero .btn.orange:hover { background: #eef3ef; }
.promo.sun { background: var(--sprout); color: var(--ink); }
.promo.sun .art { background: rgba(31,122,77,.1); color: var(--leaf); }
.promo.sun .btn { background: var(--leaf); color: #fff; }
.promo.green .btn { background: #fff; color: var(--ink); }
.card .tag { background: var(--krat); color: #fff; border-radius: 3px; }
.card .tag.low { background: var(--ink); }
.vchip i { background: var(--leaf); color: #fff; }
.icon-btn .dot { background: var(--krat); }
.parcel.custom .btn { background: #fff; color: var(--ink); }
.parcel.custom .ph { color: #fff; }

/* label harga rak: satu-satunya elemen kuning */
.harga { position: relative; display: inline-grid; grid-template-columns: auto auto; align-items: baseline; justify-content: start; column-gap: 2px;
  background: var(--label); color: var(--label-ink); border-radius: 3px; padding: 3px 9px 4px 16px; line-height: 1; font-family: var(--serif); white-space: nowrap; }
.harga::before { content: ""; position: absolute; left: 5px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--cream); }
.harga small { font-size: 12px; font-weight: 700; }
.harga b { font-size: 21px; font-weight: 800; letter-spacing: -.005em; color: inherit; }
.harga i { grid-column: 1 / -1; font: 600 10.5px/1.1 var(--sans); font-style: normal; margin-top: 2px; }
.harga s { grid-column: 1 / -1; font: 500 11px/1.1 var(--sans); opacity: .85; margin-top: 2px; }
.harga.promo { background: var(--krat); color: #fff; }
.price { min-width: 0; }
.price .harga b { font-size: 20px; }
.pd-price { align-items: center; margin-top: 8px; }
.pd-price .harga { padding: 5px 12px 6px 20px; }
.pd-price .harga::before { left: 7px; width: 6px; height: 6px; margin-top: -3px; background: var(--cream); }
.pd-price .harga small { font-size: 17px; }
.pd-price .harga b { font-size: 36px; }
.pd-price .harga i, .pd-price .harga s { font-size: 12px; }
.mini div.t { display: grid; gap: 6px; justify-items: start; }
.mini .harga b { font-size: 17px; }
.promo .row2 .harga b { font-size: 24px; }
.promo.green .harga::before { background: var(--leaf); }
.party .harga::before, .deal .harga::before { background: var(--paper); }
.card .harga::before, .parcel .harga::before, .mini .harga::before { background: var(--paper); }
.card .foot { flex-wrap: wrap; row-gap: 8px; }
/* foto belum ada: kata pertama nama barang, bukan ikon yang berulang */
.ph-nm { font: 800 clamp(26px, 8vw, 40px)/.95 var(--serif); color: currentColor; opacity: .55; padding: 0 10px; text-align: center; overflow-wrap: anywhere; text-transform: lowercase; }

/* ---------- minuman karton: saring per merek, kartu besar ---------- */
.party-head > div p { margin: 6px 0 0; color: #c9d3c5; font-size: 14px; }
.party-head p.free { margin: 0; color: var(--label); font-size: 13.5px; font-weight: 600; max-width: 40ch; }
.party-head p.free:empty { display: none; }
.brands { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 12px; }
.brands::-webkit-scrollbar { display: none; }
@media (min-width: 760px) { .brands { flex-wrap: wrap; overflow: visible; } }
.brand { flex: none; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 700; font-size: 14px; }
.brand small { font-weight: 500; opacity: .7; margin-left: 2px; }
.brand[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.brand:focus-visible { outline: 2px solid var(--label); outline-offset: 2px; }
.krts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .krts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 920px) { .krts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } }
.krt { background: var(--paper); color: var(--ink); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.krt .ph { aspect-ratio: 1; }
.krt .ph.minuman { background: #fbecc9; color: #8a5a00; }
.krt .ph-nm { font-size: clamp(24px, 7vw, 34px); text-transform: none; opacity: .7; }
.krt .body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.krt .br { font-size: 12.5px; font-weight: 700; color: var(--leaf); }
.krt h3 { margin: 0; font: 800 20px/1.02 var(--serif); }
.krt .unit { color: var(--muted); font-size: 12.5px; }
.krt .foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.krt .pick { border: 0; border-radius: 999px; padding: 8px 13px; font-weight: 700; font-size: 13px; background: var(--leaf); color: #fff; white-space: nowrap; }
.krt .harga::before { background: var(--paper); }

/* ---------- hiasan Natal & Tahun Baru (ringan: gambar statis + satu animasi opacity) ---------- */
body.natal .window-bar { position: relative; }
body.natal .window-bar::after, body.natal .window-bar::before {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; z-index: 5;
  background-repeat: repeat-x; background-size: 120px 18px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18'%3E%3Cpath d='M0 2Q30 10 60 2T120 2' fill='none' stroke='%23165c39' stroke-width='1.5'/%3E%3Ccircle cx='15' cy='10' r='3.4' fill='%23d93a2b'/%3E%3Ccircle cx='45' cy='10' r='3.4' fill='%23ffd43b'/%3E%3Ccircle cx='75' cy='10' r='3.4' fill='%23ffffff' stroke='%23dfe3dc'/%3E%3Ccircle cx='105' cy='10' r='3.4' fill='%231f7a4d'/%3E%3C/svg%3E");
}
body.natal .window-bar::before { /* lampu kedip: lapisan kedua, hanya opacity yang beranimasi */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='18'%3E%3Ccircle cx='15' cy='10' r='5.5' fill='%23ffd43b' opacity='.45'/%3E%3Ccircle cx='75' cy='10' r='5.5' fill='%23ffd43b' opacity='.45'/%3E%3C/svg%3E");
  animation: kedip 2.4s ease-in-out infinite alternate; will-change: opacity; }
@keyframes kedip { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { body.natal .window-bar::before { animation: none; opacity: 0; } }
body.natal #parselTitle::after { content: ""; display: inline-block; width: 26px; height: 20px; margin-left: 8px; vertical-align: -1px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 20'%3E%3Cpath d='M13 12C9 4 2 4 1 8c3 0 5 2 6 5 2-2 4-2 6-1zM13 12c4-8 11-8 12-4-3 0-5 2-6 5-2-2-4-2-6-1z' fill='%231f7a4d'/%3E%3Ccircle cx='11' cy='14' r='3' fill='%23d93a2b'/%3E%3Ccircle cx='15.5' cy='15' r='3' fill='%23d93a2b'/%3E%3C/svg%3E") no-repeat center / contain; }
