:root {
  --bg: #FBF9F3;
  --surface: #FFFFFF;
  --surface-muted: #F1EEE4;
  --sage: #4C7A5A;
  --sage-dark: #375C43;
  --sage-tint: #E4EDE9;
  --blue: #5A7E93;
  --blue-tint: #E6EEF2;
  --warning: #A8710F;
  --warning-bg: #FBF0DC;
  --text: #2B2620;
  --text-secondary: #6B655A;
  --text-muted: #9C9686;
  --border: #EAE4D6;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Public Sans', sans-serif;
  padding-bottom: 76px; /* ruang untuk bottom nav fixed */
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
  max-width: 480px;
  margin: 0 auto;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--sage);
}
.icon-btn {
  background: none;
  border: none;
  color: var(--text);
  padding: 4px;
  cursor: pointer;
}

.search-row {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 10px;
}
.search-row input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 14px;
}
.search-row input:focus { outline: 2px solid var(--sage); outline-offset: 1px; }

.hero {
  max-width: 480px;
  margin: 0 auto;
  padding: 6px 16px 18px;
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin: 0 0 8px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: var(--text);
}
.hero-sub {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
}
.hero-actions { display: flex; gap: 8px; margin-bottom: 4px; }
.hero-cta {
  background: var(--sage);
  color: #fff;
  border: none;
  padding: 12px 18px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.hero-cta-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  color: var(--sage-dark);
  border: 1px solid var(--border);
  padding: 12px 16px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.hero-chips { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hero-chip { font-size: 10.5px; padding: 4px 10px; border-radius: 999px; }
.hero-chip.c-neutral { background: var(--surface-muted); color: var(--text-secondary); }
.hero-chip.c-sage { background: var(--sage-tint); color: var(--sage-dark); }
.hero-chip.c-blue { background: var(--blue-tint); color: var(--blue); }

.trustbar {
  max-width: 480px;
  margin: 0 auto;
  overflow: hidden;
  transition: max-height .35s ease, opacity .3s ease;
  max-height: 130px;
}
.trustbar.collapsed { max-height: 0; opacity: 0; }
.trustbar-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.trustbar-track::-webkit-scrollbar { display: none; }
.trustbar-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background: var(--sage-tint);
  color: var(--sage-dark);
  padding: 22px 20px;
  margin: 0 16px;
  border-radius: 14px;
  min-height: 70px;
}
.trustbar-title { font-family: 'Playfair Display', serif; font-size: 16px; margin: 0 0 4px; font-weight: 600; color: var(--sage-dark); }
.trustbar-sub { font-size: 12px; margin: 0; color: var(--text-secondary); }
.trustbar-dots { display: flex; justify-content: center; gap: 5px; padding: 8px 0 2px; }
.trustbar-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--border);
}
.trustbar-dots span.active { background: var(--sage); }

.filterbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  max-width: 480px;
  margin: 0 auto;
}
.filter-chip {
  font-family: inherit;
  font-size: 13px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  white-space: nowrap;
}
.filter-chip.active { border-color: var(--sage); color: var(--sage); font-weight: 600; }
.chev { font-size: 10px; }

.product-grid {
  max-width: 480px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px;
  cursor: pointer;
}
.card-image {
  aspect-ratio: 1 / 1;
  background: var(--surface-muted);
  border-radius: 10px;
  margin-bottom: 8px;
  background-size: cover;
  background-position: center;
}
.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
  line-height: 1.3;
}
.card-price-row { display: flex; align-items: baseline; gap: 6px; margin: 0 0 6px; flex-wrap: wrap; }
.card-price { font-size: 14px; font-weight: 600; }
.card-price-old { font-size: 11px; color: var(--text-muted); text-decoration: line-through; }
.badge {
  display: inline-block;
  font-size: 10.5px;
  padding: 3px 8px;
  border-radius: 999px;
  margin-right: 4px;
  margin-top: 2px;
}
.badge-success { background: var(--sage-tint); color: var(--sage); }
.badge-warning { background: var(--warning-bg); color: var(--warning); }
.badge-points { background: #EFEAF7; color: #6B4FA0; }

.empty-state {
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
  padding: 40px 20px;
}

.legal-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 8px;
}
.legal-back { font-size: 12.5px; margin: 0 0 16px; }
.legal-back a { color: var(--sage-dark); text-decoration: none; }
.legal-title { font-family: 'Playfair Display', serif; font-size: 24px; font-weight: 600; margin: 0 0 4px; color: var(--text); }
.legal-updated { font-size: 11.5px; color: var(--text-muted); margin: 0 0 20px; }
.legal-page h2 { font-size: 14.5px; font-weight: 600; color: var(--sage-dark); margin: 22px 0 8px; }
.legal-page p, .legal-page li { font-size: 13px; line-height: 1.7; color: var(--text-secondary); }
.legal-page ul { margin: 6px 0; padding-left: 18px; }
.legal-page a { color: var(--sage-dark); }

.site-footer {
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 16px;
  border-top: 1px solid var(--border);
}
.site-footer p {
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

.bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-around;
  padding: 8px 0 max(8px, env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
}
.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-muted);
  text-decoration: none;
}
.nav-item.active { color: var(--sage); }

.sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 36, 32, 0.45);
  display: flex;
  align-items: flex-end;
  z-index: 20;
}
.sheet-overlay[hidden] { display: none; }
.sheet {
  background: var(--surface);
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 18px 18px 0 0;
  padding: 16px;
  max-height: 70vh;
  overflow-y: auto;
}
.sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 500;
}
.sheet-close { background: none; border: none; font-size: 16px; cursor: pointer; color: var(--text-muted); }
.sheet-body { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.tag-option { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.price-inputs { display: flex; align-items: center; gap: 8px; }
.price-inputs input {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-family: inherit;
}
.sheet-apply {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  background: var(--sage);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
