: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;
  --danger: #B3402A;
}

* { 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;
  gap: 10px;
  justify-content: space-between;
  padding: 14px 16px 6px;
  max-width: 480px;
  margin: 0 auto;
}
.topbar-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  flex: none;
  margin-right: -4px;
  border-radius: 999px;
  background: var(--surface-muted);
  color: var(--text);
  border: none;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}
.topbar-back:active { background: var(--border); }
.brand-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.brand-icon { width: 26px; height: 26px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--sage-dark);
}
.brand-sub {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.icon-btn {
  background: none;
  border: none;
  color: var(--text);
  padding: 4px;
  cursor: pointer;
}

/* Header beranda (logo + Tanya produk + cari) selalu menempel di atas. */
.sticky-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
}
.sticky-head .topbar { padding-bottom: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.topbar-wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--sage);
  color: var(--sage-dark);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
/* Mode cari: sembunyikan hero & trustbar supaya produk langsung kelihatan. */
body.searching .hero,
body.searching .trustbar { display: none; }

.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: var(--head-h, 56px);
  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-ongkir-free { background: var(--sage-tint); color: var(--sage-dark); font-weight: 600; }
.badge-ongkir-old { text-decoration: line-through; color: var(--text-muted); margin-right: 4px; font-weight: 400; }
.badge-ongkir-clickable { cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

.location-bar {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
}
.location-bar strong { color: var(--text); font-weight: 600; }
.location-bar button {
  background: none;
  border: none;
  color: var(--sage-dark);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.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); }

body.has-actionbar { padding-bottom: 84px; }

.product-detail { max-width: 480px; margin: 0 auto; }

.gallery {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--surface-muted);
}
.gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  background-color: var(--surface-muted);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.gallery-back {
  position: absolute;
  top: 12px; left: 12px;
  width: 34px; height: 34px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  text-decoration: none;
}
.gallery-dots {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 5px;
}
.gallery-dots span { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.6); }
.gallery-dots span.active { background: #fff; }

.product-info { padding: 18px 16px; }
.product-name {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 10px;
  color: var(--text);
}
.product-price-row { display: flex; align-items: baseline; gap: 8px; margin: 0 0 16px; }
.product-price { font-size: 18px; font-weight: 600; color: var(--text); }
.product-price-old { font-size: 13px; color: var(--text-muted); text-decoration: line-through; }

.badge-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tag-pill {
  font-size: 11px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: 999px;
}

.product-shipping-row {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 14px 0 18px;
  color: var(--text-secondary);
  font-size: 12.5px;
}

.product-desc {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
  white-space: pre-line;
}

.confirm-page { max-width: 480px; margin: 0 auto; padding: 60px 24px 30px; text-align: center; }
.confirm-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--sage-tint); color: var(--sage-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 18px;
}
.confirm-title { font-family: 'Playfair Display', serif; font-size: 21px; font-weight: 600; margin: 0 0 6px; color: var(--text); }
.confirm-code { font-size: 13px; color: var(--sage-dark); font-weight: 600; margin: 0 0 16px; letter-spacing: 0.03em; }
.confirm-desc { font-size: 13px; color: var(--text-secondary); line-height: 1.7; margin: 0 0 22px; }

.track-page { max-width: 480px; margin: 0 auto; padding: 16px; }
.track-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; margin: 0 0 16px; color: var(--text); }
.track-form { border: 1px solid var(--border); border-radius: 12px; padding: 14px; margin-bottom: 18px; }

.track-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.track-card-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 14px; }

.track-timeline { display: flex; align-items: flex-start; }
.track-step { display: flex; flex-direction: column; align-items: center; flex: 0 0 auto; width: 60px; }
.track-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.track-dot.done { background: var(--sage); }
.track-step span { font-size: 10px; color: var(--text-muted); margin-top: 5px; text-align: center; }
.track-step-current { color: var(--sage-dark) !important; font-weight: 600; }
.track-line { flex: 1; height: 1px; background: var(--border); margin-top: 5px; }
.track-line.done { background: var(--sage); }

.cart-page { max-width: 480px; margin: 0 auto; padding: 16px; }

.account-page { max-width: 480px; margin: 0 auto; padding: 20px 16px; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 20px; border-bottom: 1px solid var(--border); }
.account-tab {
  background: none; border: none; padding: 10px 4px; margin-right: 16px;
  font-family: inherit; font-size: 14px; color: var(--text-muted); cursor: pointer;
  border-bottom: 2px solid transparent;
}
.account-tab.active { color: var(--sage-dark); font-weight: 600; border-bottom-color: var(--sage); }
.account-error { color: #B3402A; font-size: 12.5px; margin: 10px 0 0; }
.forgot-password-link {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--sage-dark);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 14px;
  cursor: pointer;
  text-decoration: underline;
}

.account-greeting { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; margin: 0 0 20px; color: var(--text); }
.account-points-card { background: var(--sage-tint); border-radius: 14px; padding: 18px; margin-bottom: 20px; }
.account-points-label { font-size: 12px; color: var(--sage-dark); margin: 0 0 4px; }
.account-points-value { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; margin: 0 0 8px; color: var(--sage-dark); }
.account-points-link { font-size: 12.5px; color: var(--sage-dark); font-weight: 600; text-decoration: none; }

.account-menu { display: flex; flex-direction: column; gap: 1px; background: var(--border); border-radius: 12px; overflow: hidden; }
.account-menu-item { display: block; background: var(--surface); padding: 14px 16px; font-size: 13.5px; color: var(--text); text-decoration: none; }

.reward-page { max-width: 480px; margin: 0 auto; padding: 20px 16px; }
.reward-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.reward-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 10px; }
.reward-card-image { aspect-ratio: 1/1; background-color: var(--surface-muted); background-size: contain; background-repeat: no-repeat; background-position: center; border-radius: 10px; margin-bottom: 8px; }
.reward-card-name { font-size: 13px; font-weight: 500; margin: 0 0 4px; line-height: 1.3; }
.reward-card-points { font-size: 12.5px; color: var(--sage-dark); font-weight: 600; margin: 0 0 8px; }
.reward-card-btn {
  width: 100%; padding: 9px; border-radius: 8px; border: none;
  background: var(--sage); color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 500; cursor: pointer;
}
.reward-card-btn:disabled { background: var(--surface-muted); color: var(--text-muted); cursor: not-allowed; }

.checkout-page { max-width: 480px; margin: 0 auto; padding: 16px; }
.checkout-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; margin: 0 0 16px; color: var(--text); }
.checkout-section { margin-bottom: 20px; }
.checkout-section-title { font-size: 13px; font-weight: 600; color: var(--sage-dark); margin: 0 0 10px; }

.summary-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-secondary); padding: 5px 0; }
.summary-subtotal { border-top: 1px solid var(--border); margin-top: 6px; padding-top: 8px; font-weight: 600; color: var(--text); }

.field-label { display: block; font-size: 11.5px; color: var(--text-secondary); margin: 12px 0 5px; }
.field-label:first-child { margin-top: 0; }
.checkout-section input:not([type="radio"]):not([type="checkbox"]), .checkout-section textarea, .checkout-section select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-family: inherit;
  font-size: 13.5px;
  resize: vertical;
  color: var(--text);
}
.checkout-section select:disabled { opacity: 0.5; cursor: not-allowed; }
.field-hint { font-size: 11.5px; color: var(--sage-dark); margin: 6px 0 0; }

.city-suggestions {
  border: 1px solid var(--border);
  border-radius: 9px;
  margin-top: 4px;
  overflow: hidden;
  background: var(--surface);
}
.city-option { padding: 9px 12px; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid var(--border); }
.city-option:last-child { border-bottom: none; }
.city-option:hover { background: var(--sage-tint); }

.location-detail {
  font-size: 11.5px;
  color: var(--sage-dark);
  background: var(--sage-tint);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px;
  line-height: 1.7;
}

.shipping-box { border: 1px solid var(--border); border-radius: 10px; padding: 12px; }
.shipping-empty { font-size: 12.5px; color: var(--text-muted); margin: 0; }
.shipping-free-text { color: var(--sage-dark); font-weight: 600; }

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--sage-dark);
  border: 1px solid var(--border);
  padding: 11px 16px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
}
.danger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  color: var(--danger);
  border: 1px solid var(--danger);
  padding: 9px 14px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
}

.address-page { max-width: 480px; margin: 0 auto; padding: 20px 16px; }
.address-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.address-card.is-default { border-color: var(--sage); }
.address-default-badge { display: inline-block; font-size: 10.5px; background: var(--sage-tint); color: var(--sage-dark); padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
.address-card-label { font-size: 13.5px; font-weight: 600; margin: 0 0 2px; color: var(--text); }
.address-card-recipient { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 2px; }
.address-card-text { font-size: 12.5px; color: var(--text-secondary); margin: 0 0 10px; line-height: 1.5; }
.address-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.address-card-actions .secondary-btn, .address-card-actions .danger-btn { padding: 8px 12px; font-size: 12px; }
.shipping-rule-note { font-size: 11.5px; color: var(--sage-dark); margin: 8px 0 0; }
.shipping-etd-note { font-size: 11.5px; color: var(--text-muted); margin: 6px 0 0; }

.saved-address-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.saved-address-card.is-selected { border-color: var(--sage); background: var(--sage-tint); }
.saved-address-card input[type="radio"] { margin-top: 3px; flex: none; accent-color: var(--sage); }
.saved-address-card-body { flex: 1; min-width: 0; }
.saved-address-card-label { font-size: 13.5px; font-weight: 600; margin: 0 0 2px; color: var(--text); }
.saved-address-card-text { font-size: 12.5px; color: var(--text-secondary); margin: 0; line-height: 1.5; }
.logout-link {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--danger);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 12px;
  margin-top: 28px;
  cursor: pointer;
}
.new-address-link {
  display: inline-block;
  font-size: 12.5px;
  color: var(--sage-dark);
  font-weight: 600;
  text-decoration: none;
  padding: 6px 2px;
  cursor: pointer;
}

.checkout-disclaimer { font-size: 10.5px; color: var(--text-muted); line-height: 1.6; }
.checkout-disclaimer a { color: var(--sage-dark); }
.cart-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 600; margin: 0 0 14px; color: var(--text); }
.cart-empty { text-align: center; color: var(--text-muted); font-size: 13px; padding: 60px 20px; line-height: 1.8; }
.cart-empty a { color: var(--sage-dark); font-weight: 500; }

.cart-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.cart-item-image { width: 64px; height: 64px; background: var(--surface-muted); background-size: cover; background-position: center; border-radius: 10px; flex: none; }
.cart-item-info { flex: 1; }
.cart-item-name { font-size: 13.5px; font-weight: 500; margin: 0 0 4px; color: var(--text); }
.cart-item-price { font-size: 13px; color: var(--text-secondary); margin: 0 0 8px; }
.cart-item-controls { display: flex; align-items: center; justify-content: space-between; }
.qty-stepper {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); border-radius: 8px; padding: 5px 9px;
}
.qty-stepper button { background: none; border: none; font-size: 14px; font-weight: 600; color: var(--sage-dark); cursor: pointer; width: 14px; }
.qty-stepper span { font-size: 12.5px; min-width: 12px; text-align: center; }
.cart-item-remove { background: none; border: none; font-size: 11.5px; color: var(--text-muted); text-decoration: underline; cursor: pointer; }

.cart-subtotal { display: flex; flex-direction: column; }
.cart-subtotal-label { font-size: 10.5px; color: var(--text-muted); }
.cart-subtotal-value { font-size: 15px; font-weight: 600; color: var(--text); }

.actionbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 10px 14px max(10px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 10px;
}
.actionbar[hidden] { display: none; }
.actionbar-wa {
  width: 42px; height: 42px; flex: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--sage-dark);
}
.actionbar-qty {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
  flex: none;
}
.actionbar-qty button {
  background: none; border: none;
  font-size: 15px; font-weight: 600;
  color: var(--sage-dark);
  cursor: pointer;
  width: 16px;
}
.actionbar-qty span { font-size: 13px; min-width: 14px; text-align: center; }
.actionbar-cta {
  flex: 1;
  background: var(--sage);
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
}
.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); }
.nav-badge {
  position: absolute;
  top: -2px;
  right: 10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.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;
}

/* Toast konfirmasi "ditambahkan ke keranjang" -- muncul jelas di tengah bawah
   layar (mirip Shopee) supaya user yakin klik-nya berhasil, tidak perlu klik 2x. */
.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  transform: translateX(-50%) translateY(12px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  pointer-events: none;
  z-index: 999;
  transition: opacity 0.22s ease, transform 0.22s ease;
  white-space: nowrap;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.toast-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  color: var(--sage-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

@keyframes addToCartPulse {
  0% { transform: scale(1); }
  35% { transform: scale(0.94); }
  60% { transform: scale(1.03); }
  100% { transform: scale(1); }
}
.actionbar-cta.added {
  background: var(--sage-dark);
  animation: addToCartPulse 0.35s ease;
}
