:root {
  --green-dark: #14532d;
  --green-main: #166534;
  --green-bright: #16a34a;
  --green-light: #dcfce7;
  --green-soft: #f0fdf4;
  --gold: #ca8a04;
  --gold-light: #fef9c3;
  --gold-border: #facc15;
  --bg: #f5f5f4;
  --card: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
  --shadow-sm: 0 2px 8px rgba(20, 83, 45, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 83, 45, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 16px;
  padding-bottom: 92px;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 14px;
}

/* ==========================================================================
   1. HERO BANNER & FLOATING STORE PROFILE CARD
   ========================================================================== */
.hero-header {
  position: relative;
  margin-bottom: 18px;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: var(--green-dark);
}

@media (min-width: 769px) {
  .hero-banner {
    height: 275px;
  }
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(12, 46, 25, 0.72) 0%,
    rgba(12, 46, 25, 0.22) 48%,
    rgba(12, 46, 25, 0.78) 100%
  );
}

.hero-top-badge-wrap {
  position: absolute;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-top-pill {
  display: inline-block;
  background: rgba(20, 83, 45, 0.92);
  color: #fef08a;
  border: 1px solid rgba(250, 204, 21, 0.65);
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.store-card {
  position: relative;
  z-index: 10;
  margin-top: -58px;
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

@media (min-width: 769px) {
  .store-card {
    margin-top: -70px;
    padding: 24px;
  }
}

.store-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.store-logo {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  background: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

@media (min-width: 769px) {
  .store-logo {
    width: 82px;
    height: 82px;
  }
}

.store-info-full {
  width: 100%;
}

.store-badges {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.badge-heritage {
  display: inline-block;
  background: var(--gold-light);
  color: #854d0e;
  border: 1px solid var(--gold-border);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

.badge-halal-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #ffffff;
  color: #581c87;
  border: 1.5px solid #d8b4fe;
  padding: 2px 10px 2px 6px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.badge-halal-btn:hover {
  background: #faf5ff;
  border-color: #9333ea;
}

.halal-badge-img {
  width: 20px;
  height: 25px;
  object-fit: contain;
  display: block;
  border-radius: 3px;
}

.badge-open {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}

.store-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
  margin-bottom: 3px;
}

@media (min-width: 769px) {
  .store-title {
    font-size: 1.85rem;
  }
}

.store-tagline {
  font-size: 0.94rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.store-meta-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  font-size: 0.92rem;
}

.store-meta-link {
  color: var(--green-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
  padding: 5px 10px;
  border-radius: 8px;
}

.store-meta-link:hover {
  background: var(--green-light);
}

.map-chip {
  background: var(--green-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
}

.store-meta-time {
  color: var(--text);
  font-size: 0.9rem;
}

.store-channels {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}

.wa-channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .wa-channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.wa-card-btn {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wa-card-btn:active {
  transform: scale(0.99);
}

.wa-kasir {
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  color: #fff;
  border: 2px solid #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.22);
}

.wa-manager {
  background: #fffbeb;
  color: var(--text);
  border: 2px solid var(--gold);
}

.wa-btn-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-icon {
  font-size: 1.45rem;
  line-height: 1;
}

.wa-title {
  display: block;
  font-weight: 800;
  font-size: 0.98rem;
}

.wa-phone {
  display: block;
  font-size: 0.85rem;
  opacity: 0.92;
  font-weight: 600;
}

.wa-sub-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
}

.wa-sub-badge.fast {
  background: rgba(255, 255, 255, 0.18);
  color: #fef08a;
}

.wa-sub-badge.po {
  background: #fef08a;
  color: #713f12;
}

.ojol-bar {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #fafaf9;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.ojol-label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}

.ojol-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn-ojol {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none;
  color: #fff;
  letter-spacing: 0.01em;
}

.btn-ojol svg {
  flex-shrink: 0;
}

.btn-gofood { background: #dc2626; }
.btn-grab { background: #00b14f; }
.btn-shopee { background: #ee4d2d; }

/* ==========================================================================
   2. STRIP KARTU VOUCHER DISKON GESER HORIZONTAL
   ========================================================================== */
.promo-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.section-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-heading {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--green-dark);
}

@media (min-width: 769px) {
  .section-heading {
    font-size: 1.35rem;
  }
}

.section-sub {
  font-size: 0.86rem;
  color: var(--muted);
}

.saving-pill {
  background: var(--green-dark);
  color: #fef08a;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 11px;
  border-radius: 99px;
  border: 1px solid var(--gold);
}

.voucher-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.voucher-strip::-webkit-scrollbar {
  height: 5px;
}

.voucher-strip::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 99px;
}

.voucher-card {
  flex: 0 0 255px;
  scroll-snap-align: start;
  display: flex;
  align-items: stretch;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid #15803d;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(20, 83, 45, 0.07);
}

.voucher-card.voucher-featured {
  border-color: var(--gold);
  background: linear-gradient(135deg, #fefce8 0%, #ffffff 100%);
}

.voucher-card.voucher-happy {
  border-color: #14532d;
  background: linear-gradient(135deg, #dcfce7 0%, #fefce8 100%);
}

.voucher-card.voucher-ongkir {
  border-color: #0369a1;
  background: linear-gradient(135deg, #e0f2fe 0%, #ffffff 100%);
}

.voucher-ongkir .voucher-left {
  background: #0c4a6e;
}

@media (min-width: 769px) {
  .voucher-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }

  .voucher-card {
    flex: unset;
    min-width: 0;
  }
}

.voucher-left {
  background: var(--green-dark);
  color: #fff;
  padding: 10px 12px;
  min-width: 96px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-right: 2px dashed rgba(250, 204, 21, 0.65);
}

.voucher-featured .voucher-left {
  background: #854d0e;
}

.voucher-tag {
  font-size: 0.68rem;
  font-weight: 800;
  color: #fef08a;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.voucher-pct {
  font-size: 1.02rem;
  font-weight: 900;
  line-height: 1.15;
}

.voucher-right {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.voucher-right h3 {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 2px;
}

.voucher-right p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.promo-terms {
  margin-top: 8px;
  font-size: 0.82rem;
  color: var(--muted);
  background: #fafaf9;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
}

/* ==========================================================================
   3. SEKSI SOROTAN "MENU ANDALAN & PAKET ACARA"
   ========================================================================== */
.featured-section {
  margin-bottom: 18px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .featured-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
    gap: 12px;
  }
  .featured-card {
    flex: 0 0 84%;
    scroll-snap-align: start;
  }
}

.featured-card {
  background: var(--card);
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  box-shadow: var(--shadow-sm);
}

.featured-img-wrap {
  width: 118px;
  flex-shrink: 0;
  position: relative;
  background: var(--green-light);
  cursor: pointer;
}

.featured-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.featured-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.featured-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 4px;
}

.badge-hot {
  background: #dc2626;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

.badge-save {
  background: var(--gold-light);
  color: #854d0e;
  border: 1px solid var(--gold-border);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

.featured-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 3px;
  cursor: pointer;
}

.featured-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 8px;
  line-height: 1.35;
}

.featured-cta-btn {
  align-self: flex-start;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.featured-cta-btn:hover {
  background: var(--green-main);
}

/* ==========================================================================
   4. STICKY SEARCH & CATEGORY NAVIGATION BAR
   ========================================================================== */
.sticky-nav-wrap {
  position: sticky;
  top: 0;
  z-index: 45;
  background: rgba(245, 245, 244, 0.96);
  backdrop-filter: blur(8px);
  padding: 10px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.sticky-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 820px) {
  .sticky-nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 440px;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 1rem;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  padding: 11px 38px 11px 38px;
  border-radius: 99px;
  border: 1.5px solid #cbd5e1;
  background: #fff;
  font-size: 0.96rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.search-box input:focus {
  border-color: var(--green-main);
  box-shadow: 0 0 0 3px rgba(22, 101, 52, 0.14);
}

.clear-search-btn {
  position: absolute;
  right: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #e7e5e4;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-btn {
  flex: 0 0 auto;
  padding: 9px 15px;
  min-height: 44px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
  box-shadow: 0 2px 8px rgba(20, 83, 45, 0.22);
}

/* ==========================================================================
   5. KATALOG MOBILE-FIRST 2 KOLOM & KARTU PRODUK
   ========================================================================== */
.catalog-section {
  margin-bottom: 28px;
}

.catalog-header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.catalog-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--green-dark);
}

.catalog-count {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  background: #e7e5e4;
  padding: 3px 10px;
  border-radius: 99px;
}

.catalog-helper-tip {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 14px;
}

/* Desktop: Multi-column grid dengan rasio potret 4:5 */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: 16px;
}

/* Mobile-First (max-width: 768px): 2 Kolom Sejajar ala ShopeeFood / GrabFood */
@media (max-width: 768px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card.in-cart {
  border: 2px solid var(--green-bright);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.14);
}

.card-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: var(--green-soft);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.card-img-wrap:hover img {
  transform: scale(1.03);
}

.card-badge-top {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(20, 83, 45, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 99px;
}

.card-zoom-hint {
  position: absolute;
  bottom: 6px;
  right: 6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.66);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.card-body {
  padding: 11px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 4px;
  line-height: 1.25;
  cursor: pointer;
}

.card-desc {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 10px;
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.price-tag-toko {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--green-main);
  background: var(--green-soft);
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid #bbf7d0;
}

.add-btn-plus {
  width: 100%;
  min-height: 44px;
  background: var(--green-bright);
  color: #fff;
  border: none;
  padding: 9px 10px;
  border-radius: 9px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.25);
}

.add-btn-plus:hover {
  background: var(--green-main);
}

.card-stepper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--green-soft);
  border: 1.5px solid var(--green-bright);
  border-radius: 9px;
  padding: 3px;
}

.step-btn {
  width: 34px;
  height: 32px;
  border-radius: 7px;
  border: none;
  background: var(--green-dark);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}

.step-qty {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--green-dark);
}

/* ==========================================================================
   6. PENYUSUN PESANAN WHATSAPP (#pesan-wa)
   ========================================================================== */
.order-builder {
  background: var(--card);
  border: 2px solid var(--green-main);
  border-radius: 16px;
  padding: 20px;
  margin: 28px 0;
  box-shadow: var(--shadow-md);
}

.order-builder-head {
  margin-bottom: 16px;
}

.builder-badge {
  display: inline-block;
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 6px;
}

.order-builder-head h2 {
  font-size: 1.3rem;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.order-builder-head p {
  font-size: 0.92rem;
  color: var(--muted);
}

.cart-summary-box {
  background: var(--green-soft);
  border: 1px solid #86efac;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 18px;
}

.cart-summary-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  color: var(--green-dark);
}

.btn-reset-cart {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.cart-row-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text);
}

.cart-row-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.builder-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 769px) {
  .builder-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.order-builder label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin: 12px 0 5px;
  color: var(--green-dark);
}

.order-builder label:first-child {
  margin-top: 0;
}

.order-builder input,
.order-builder select,
.order-builder textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.96rem;
  color: var(--text);
  background: #fff;
}

.builder-actions {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  background: #fafaf9;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.pickup-info-box {
  background: #fff;
  border-left: 4px solid var(--green-main);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.wa-guidance-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-guide-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--text);
}

.btn-send-wa {
  width: 100%;
  border-radius: 12px;
  padding: 13px 14px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 3px;
  transition: transform 0.15s ease;
}

.btn-send-wa:active {
  transform: scale(0.99);
}

.btn-send-kasir {
  background: var(--green-bright);
  color: #fff;
  border: 2px solid var(--green-dark);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-send-manager {
  background: #fffbeb;
  color: var(--text);
  border: 2px solid var(--gold);
}

.btn-send-main {
  font-size: 1rem;
  font-weight: 800;
}

.btn-send-sub {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.95;
}

/* ==========================================================================
   6B. INFORMASI PEMESANAN & FAQ TRANSAKSIONAL (RAMAH USIA 40-60 TAHUN)
   ========================================================================== */
.faq-section {
  background: var(--card);
  border: 2px solid #bbf7d0;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.faq-head {
  margin-bottom: 16px;
}

.faq-pill {
  display: inline-block;
  background: var(--green-dark);
  color: #fef08a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.faq-head h2 {
  color: var(--green-dark);
  font-size: 1.3rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.faq-head p {
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--green-soft);
  border: 1.5px solid #bbf7d0;
  border-radius: 12px;
  padding: 14px 16px;
}

.faq-question {
  cursor: pointer;
  list-style: none;
  font-size: 1.04rem;
  font-weight: 700;
  color: #14532d;
  line-height: 1.45;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: "▾";
  font-size: 1.1rem;
  color: #14532d;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.faq-item[open] .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #86efac;
  font-size: 1rem;
  line-height: 1.65;
  color: #1c1917;
}

@media (max-width: 600px) {
  .faq-section {
    padding: 16px 14px;
  }

  .faq-head h2 {
    font-size: 1.18rem;
  }

  .faq-question {
    font-size: 1rem;
  }

  .faq-answer {
    font-size: 0.96rem;
  }
}

/* ==========================================================================
   7. ABOUT GEO & FOOTER
   ========================================================================== */
.about-geo {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 28px;
}

.about-geo h2 {
  color: var(--green-dark);
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.bio-paragraph {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}

.geo-specs {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.geo-specs h3 {
  font-size: 1.05rem;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.bio2-intro {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.geo-specs ul {
  margin-left: 20px;
  font-size: 0.94rem;
}

.geo-specs li {
  margin-bottom: 4px;
}

.footer {
  background: #1c1917;
  color: #e7e5e4;
  text-align: center;
  padding: 24px 0;
  font-size: 0.9rem;
}

.footer p {
  margin-bottom: 4px;
}

.footer-wa a {
  color: #86efac;
  text-decoration: none;
  font-weight: 700;
}

/* ==========================================================================
   8. MODAL DETAIL PRODUK & STICKY BOTTOM CART BAR
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-dialog {
  background: #fff;
  width: 100%;
  max-width: 480px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  border: none;
  padding: 7px 13px;
  border-radius: 99px;
  font-weight: 800;
  font-size: 0.85rem;
  cursor: pointer;
}

.modal-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--green-soft);
  overflow: hidden;
}

.modal-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.modal-body {
  padding: 18px;
  overflow-y: auto;
}

.modal-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.modal-badge {
  background: var(--green-light);
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}

.modal-badge-saving {
  background: var(--gold-light);
  color: #854d0e;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 6px;
}

.modal-desc {
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.5;
}

.modal-price-note {
  background: var(--green-soft);
  border: 1px solid #bbf7d0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.85rem;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-qty-control {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  background: #fafaf9;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: none;
  background: var(--green-dark);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
}

.qty-val {
  min-width: 36px;
  text-align: center;
  font-weight: 800;
  font-size: 1.05rem;
}

.btn-modal-add {
  flex: 1;
  background: var(--green-bright);
  color: #fff;
  border: none;
  padding: 13px 16px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.96rem;
  cursor: pointer;
}

.halal-modal-dialog {
  max-width: 520px;
}

.halal-modal-body {
  padding-top: 22px;
}

.halal-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
  padding-right: 48px;
}

.halal-modal-logo {
  width: 60px;
  height: 74px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  flex-shrink: 0;
}

.halal-modal-head .modal-title {
  margin-top: 6px;
  margin-bottom: 4px;
  font-size: 1.25rem;
}

.halal-modal-sub {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.halal-cert-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.halal-cert-card {
  background: #faf5ff;
  border: 1.5px solid #e9d5ff;
  border-radius: 12px;
  padding: 12px 14px;
}

.halal-cert-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 10px;
  margin-bottom: 4px;
  color: #4c1d95;
  font-size: 0.95rem;
}

.halal-cert-date {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b21a8;
  background: #f3e8ff;
  padding: 2px 8px;
  border-radius: 99px;
}

.halal-cert-no {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.halal-cert-no code {
  background: #ffffff;
  border: 1px solid #d8b4fe;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 0.94rem;
  color: #581c87;
  font-weight: 800;
}

.halal-cert-meta {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.45;
}

.halal-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.halal-verify-link {
  text-decoration: none;
  text-align: center;
}

.btn-halal-close {
  background: #e7e5e4;
  color: var(--text);
  border: none;
  padding: 13px 18px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
}

/* STICKY BOTTOM CART BAR */
.sticky-cart-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--green-dark);
  color: #fff;
  border-top: 3px solid var(--gold);
  padding: 10px 0;
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.22);
}

.sticky-cart-bar[hidden] {
  display: none !important;
}

.sticky-cart-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.sticky-cart-info {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-width: 0;
}

.cart-badge-pill {
  background: var(--gold);
  color: #fff;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 6px 11px;
  border-radius: 99px;
  white-space: nowrap;
}

.cart-text-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cart-text-wrap strong {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-sub-hint {
  font-size: 0.75rem;
  color: #dcfce7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-sticky-wa {
  background: #22c55e;
  color: #fff;
  border: 2px solid #fff;
  padding: 10px 15px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ==========================================================================
   8. PEMBANDING HARGA TOKO VS ONLINE, STOK LIVE POS, KERINGAN & SNACK BOX PO
   ========================================================================== */
.compare-card {
  background: var(--card);
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.compare-grid-compact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-col {
  padding: 11px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  border-right: 1px solid #e7e5e4;
}

.compare-col:last-child {
  border-right: none;
}

.compare-name {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
}

.compare-online {
  font-size: 0.76rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.compare-toko {
  font-size: 1rem;
  font-weight: 900;
  color: var(--green-main);
  line-height: 1.15;
}

.compare-save {
  font-size: 0.7rem;
  font-weight: 800;
  color: #854d0e;
  background: var(--gold-light);
  padding: 2px 6px;
  border-radius: 6px;
}

@media (min-width: 720px) {
  .compare-col {
    padding: 14px 12px;
  }
  .compare-name {
    font-size: 0.92rem;
  }
  .compare-online {
    font-size: 0.86rem;
  }
  .compare-toko {
    font-size: 1.18rem;
  }
  .compare-save {
    font-size: 0.76rem;
  }
}

/* Live POS Stock Status Panel */
.stock-status-bar {
  background: var(--card);
  border: 1.5px solid #bbf7d0;
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: var(--shadow-sm);
}

.stock-status-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.stock-live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #f59e0b;
}

.stock-live-dot.loading {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.22);
}

.stock-live-dot.live {
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.22);
}

.stock-live-dot.fallback {
  background: #0284c7;
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.16);
}

.stock-status-texts {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.stock-status-texts strong {
  font-size: 0.94rem;
  color: var(--green-dark);
}

.stock-status-texts span {
  font-size: 0.8rem;
  color: var(--muted);
}

.stock-status-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  width: 100%;
}

@media (min-width: 720px) {
  .stock-status-actions {
    display: flex;
    flex-wrap: nowrap;
    width: auto;
  }
}

.stock-toggle-btn,
.stock-refresh-btn {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--text);
  text-align: center;
  white-space: nowrap;
}

.stock-toggle-btn[aria-pressed="true"] {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

.stock-refresh-btn {
  background: var(--green-soft);
  color: var(--green-dark);
  border-color: #bbf7d0;
}

.stock-refresh-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Badges Stok & Harga Coret per Kartu */
.inline-strike {
  color: #9ca3af;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px;
  margin-bottom: 5px;
}

.stock-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  line-height: 1.3;
}

.stock-ready {
  background: #dcfce7;
  color: #14532d;
  border: 1px solid #86efac;
}

.stock-low {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
}

.stock-empty {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.stock-po {
  background: #fef9c3;
  color: #854d0e;
  border: 1px solid #fde047;
}

.stock-check {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.card-unit-note {
  font-size: 0.73rem;
  color: var(--muted);
  font-weight: 600;
}

.card.is-out-of-stock .card-img-wrap img {
  filter: grayscale(35%) opacity(0.84);
}

.price-box {
  margin-top: auto;
  margin-bottom: 8px;
  padding: 7px 8px;
  background: #fafaf9;
  border: 1px solid #eceae7;
  border-radius: 9px;
}

.price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.price-online-strike {
  font-size: 0.8rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.price-toko-now {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--green-main);
}

.price-save-tag {
  display: inline-block;
  margin-top: 2px;
  font-size: 0.72rem;
  font-weight: 800;
  color: #854d0e;
  background: var(--gold-light);
  padding: 1px 6px;
  border-radius: 5px;
}

.price-po-text {
  font-size: 0.86rem;
  font-weight: 800;
  color: #854d0e;
}

.add-btn-po {
  background: #b45309;
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.25);
}

.add-btn-po:hover {
  background: #92400e;
}

.add-btn-soldout {
  background: #e7e5e4;
  color: #57534e;
  box-shadow: none;
}

.add-btn-soldout:hover {
  background: #d6d3d1;
}

.empty-catalog-box {
  grid-column: 1 / -1;
  background: var(--card);
  border: 1.5px dashed var(--border);
  border-radius: 14px;
  padding: 26px 16px;
  text-align: center;
}

.empty-catalog-box p {
  color: var(--muted);
  margin-bottom: 10px;
}

.btn-reset-filter {
  background: var(--green-dark);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 9px;
  font-weight: 800;
  cursor: pointer;
}

/* Seksi Keringan & Menu Toko Lainnya */
.extra-stock-panel {
  margin-top: 22px;
  background: var(--card);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}

.extra-stock-head h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--green-dark);
  margin-bottom: 2px;
}

.extra-stock-head p {
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 12px;
}

.extra-stock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 900px) {
  .extra-stock-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .extra-stock-grid {
    grid-template-columns: 1fr;
  }
}

.extra-card {
  border: 1.5px solid #eceae7;
  border-radius: 11px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  background: #fafaf9;
}

.extra-card.in-cart {
  border-color: var(--green-bright);
  background: var(--green-soft);
}

.extra-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.extra-card-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text);
}

.extra-card-cat {
  font-size: 0.74rem;
  color: var(--muted);
}

.extra-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.extra-card-actions {
  min-width: 110px;
}

/* Seksi Informasi Snack Box (Pre-Order Showcase) */
.snackbox-info-section {
  margin: 28px 0;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
  border: 2px solid #fde68a;
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.snackbox-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.snackbox-pill {
  display: inline-block;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 99px;
  margin-bottom: 6px;
}

.snackbox-head h2 {
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--green-dark);
  margin-bottom: 4px;
}

.snackbox-head p {
  font-size: 0.92rem;
  color: var(--text);
  max-width: 720px;
}

.btn-snackbox-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #b45309;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 16px;
  border-radius: 11px;
  box-shadow: 0 3px 10px rgba(180, 83, 9, 0.25);
  max-width: 100%;
  text-align: center;
  line-height: 1.3;
}

@media (max-width: 640px) {
  .btn-snackbox-wa {
    width: 100%;
  }
}

.btn-snackbox-wa:hover {
  background: #92400e;
}

.snackbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (max-width: 820px) {
  .snackbox-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.snackbox-card {
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.snackbox-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.snackbox-img-wrap {
  aspect-ratio: 4 / 3;
  background: #fafaf9;
  overflow: hidden;
  position: relative;
}

.snackbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.snackbox-po-badge {
  position: absolute;
  top: 7px;
  left: 7px;
  background: rgba(146, 64, 14, 0.9);
  color: #fef3c7;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 6px;
}

.snackbox-card-body {
  padding: 8px 10px 10px;
}

.snackbox-card-body h3 {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2px;
}

.snackbox-card-body span {
  font-size: 0.76rem;
  color: #92400e;
  font-weight: 600;
}

/* Modal Price Compare & Variant Selector */
.modal-badge-stock {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 99px;
}

.modal-price-compare {
  background: var(--green-soft);
  border: 1.5px solid #bbf7d0;
  border-radius: 11px;
  padding: 10px 12px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.modal-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.variant-chip {
  padding: 6px 11px;
  border-radius: 99px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.variant-chip.active {
  background: var(--green-dark);
  color: #fff;
  border-color: var(--green-dark);
}

/* Ringkasan Total & Penghematan di Keranjang WA */
.cart-totals-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1.5px dashed #bbf7d0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.cart-total-row.grand {
  font-size: 1.06rem;
  font-weight: 900;
  color: var(--green-dark);
  margin-top: 3px;
}

.cart-saving-highlight {
  margin-top: 4px;
  background: var(--gold-light);
  border: 1px solid #fde047;
  color: #854d0e;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.84rem;
  font-weight: 800;
}

/* ==========================================================================
   9. WIDGET LIVE CHAT AI & KASIR TOKO (RAMAH USIA 40-60 TAHUN)
   ========================================================================== */
.livechat-widget {
  position: relative;
  z-index: 90;
}

.livechat-fab {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 88;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: #14532d;
  color: #ffffff;
  border: 2.5px solid #ca8a04;
  border-radius: 999px;
  padding: 13px 20px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(20, 83, 45, 0.35), 0 0 0 3px rgba(202, 138, 4, 0.2);
  transition: transform 0.2s ease, bottom 0.22s ease, box-shadow 0.2s ease;
}

.livechat-fab:hover {
  transform: translateY(-2px);
  background: #166534;
}

.livechat-fab:active {
  transform: scale(0.98);
}

.livechat-fab[hidden] {
  display: none !important;
}

/* Otomatis naik saat sticky-cart-bar tampil agar tidak saling menutupi */
#sticky-cart-bar:not([hidden]) ~ #livechat-widget .livechat-fab,
body.has-sticky-cart .livechat-fab,
.livechat-fab.has-sticky-cart {
  bottom: 86px;
}

.livechat-fab-icon {
  font-size: 1.3rem;
  line-height: 1;
}

.livechat-fab-text {
  letter-spacing: 0.01em;
}

.livechat-fab-badge {
  background: #dc2626;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: 900;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
}

.livechat-fab-badge[hidden] {
  display: none !important;
}

.livechat-panel {
  position: fixed;
  right: 16px;
  bottom: 18px;
  z-index: 110;
  width: 410px;
  max-width: calc(100vw - 24px);
  height: 615px;
  max-height: calc(100vh - 32px);
  background: #ffffff;
  border: 2.5px solid #14532d;
  border-radius: 18px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: bottom 0.22s ease;
}

.livechat-panel[hidden] {
  display: none !important;
}

#sticky-cart-bar:not([hidden]) ~ #livechat-widget .livechat-panel,
body.has-sticky-cart .livechat-panel {
  bottom: 86px;
  max-height: calc(100vh - 102px);
}

@media (max-width: 640px) {
  .livechat-fab {
    right: 12px;
    bottom: 14px;
    padding: 12px 18px;
    font-size: 1rem;
  }

  #sticky-cart-bar:not([hidden]) ~ #livechat-widget .livechat-fab,
  body.has-sticky-cart .livechat-fab,
  .livechat-fab.has-sticky-cart {
    bottom: 84px;
  }

  .livechat-panel,
  #sticky-cart-bar:not([hidden]) ~ #livechat-widget .livechat-panel,
  body.has-sticky-cart .livechat-panel {
    inset: 8px;
    right: 8px;
    bottom: 8px;
    width: auto;
    max-width: none;
    height: auto;
    max-height: none;
    border-radius: 16px;
    z-index: 130;
  }
}

.livechat-header {
  background: #14532d;
  color: #ffffff;
  padding: 12px 14px;
  border-bottom: 2.5px solid #ca8a04;
  flex-shrink: 0;
}

.livechat-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.livechat-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.livechat-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #ca8a04;
  background: #ffffff;
  flex-shrink: 0;
}

.livechat-title {
  font-size: 1.08rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.livechat-subtitle {
  font-size: 0.82rem;
  color: #dcfce7;
  font-weight: 600;
}

.livechat-close-btn {
  background: #ffffff;
  color: #14532d;
  border: 2px solid #ca8a04;
  border-radius: 10px;
  padding: 8px 14px;
  min-height: 42px;
  font-size: 0.96rem;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.livechat-close-btn:hover {
  background: #fef9c3;
}

.livechat-status-row {
  margin-top: 9px;
  display: flex;
  align-items: center;
}

.livechat-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  width: 100%;
  justify-content: center;
  text-align: center;
}

.livechat-status-badge.mode-ai {
  background: #166534;
  color: #fef08a;
  border: 1.5px solid rgba(250, 204, 21, 0.7);
}

.livechat-status-badge.mode-human {
  background: #fef08a;
  color: #713f12;
  border: 2px solid #ca8a04;
}

.livechat-name-bar {
  background: #f0fdf4;
  border-bottom: 1px solid #bbf7d0;
  padding: 7px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.livechat-name-bar label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #14532d;
  white-space: nowrap;
}

.livechat-name-bar input {
  flex: 1;
  min-width: 0;
  border: 1.5px solid #86efac;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 16px;
  font-weight: 600;
  color: #1c1917;
  background: #ffffff;
}

.livechat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  background: #f5f5f4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.livechat-msg-row {
  display: flex;
  flex-direction: column;
  max-width: 88%;
}

.livechat-msg-row.sender-customer {
  align-self: flex-end;
  align-items: flex-end;
}

.livechat-msg-row.sender-agent {
  align-self: flex-start;
  align-items: flex-start;
}

.livechat-sender-label {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 3px;
  padding: 0 4px;
  color: #14532d;
}

.livechat-msg-row.sender-customer .livechat-sender-label {
  color: #57534e;
}

.livechat-bubble {
  font-size: 16px;
  line-height: 1.5;
  padding: 11px 14px;
  border-radius: 14px;
  word-wrap: break-word;
  white-space: pre-line;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.livechat-msg-row.sender-agent .livechat-bubble {
  background: #ffffff;
  color: #1c1917;
  border: 1.5px solid #d6d3d1;
  border-top-left-radius: 4px;
}

.livechat-msg-row.sender-agent.is-kasir .livechat-bubble {
  background: #fffbeb;
  border-color: #ca8a04;
}

.livechat-msg-row.sender-customer .livechat-bubble {
  background: #14532d;
  color: #ffffff;
  border: 1.5px solid #14532d;
  border-top-right-radius: 4px;
}

.livechat-time {
  font-size: 0.76rem;
  color: #57534e;
  margin-top: 3px;
  padding: 0 4px;
  font-weight: 600;
}

.livechat-quick-replies {
  background: #ffffff;
  border-top: 1px solid #e7e5e4;
  padding: 8px 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.livechat-chip {
  background: #f0fdf4;
  color: #14532d;
  border: 1.5px solid #15803d;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.94rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.livechat-chip:hover {
  background: #dcfce7;
}

.livechat-input-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #ffffff;
  border-top: 1.5px solid #e7e5e4;
  flex-shrink: 0;
}

.livechat-input {
  flex: 1;
  min-width: 0;
  border: 2px solid #a8a29e;
  border-radius: 11px;
  padding: 11px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #1c1917;
  background: #ffffff;
}

.livechat-input:focus {
  outline: none;
  border-color: #14532d;
}

.livechat-send-btn {
  background: #14532d;
  color: #ffffff;
  border: 2px solid #ca8a04;
  border-radius: 11px;
  padding: 11px 18px;
  min-height: 46px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  flex-shrink: 0;
}

.livechat-send-btn:hover {
  background: #166534;
}

.livechat-send-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.livechat-footer {
  background: #fafaf9;
  border-top: 1px solid #e7e5e4;
  padding: 9px 10px;
  flex-shrink: 0;
}

.btn-livechat-wa {
  width: 100%;
  background: linear-gradient(135deg, #15803d 0%, #14532d 100%);
  color: #ffffff;
  border: 2px solid #ca8a04;
  border-radius: 11px;
  padding: 11px 14px;
  min-height: 46px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 10px rgba(20, 83, 45, 0.2);
}

.btn-livechat-wa:hover {
  background: #166534;
}
