:root {
  --ink: #23261f;
  --canvas: #f1ede0;
  --panel: #faf8f1;
  --line: #ddd5bf;
  --muted: #74705f;
  --brand: #1E5C4F;
  --accent: #A84D53;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Inter', -apple-system, sans-serif; color: var(--ink); background: var(--canvas); }
a { color: inherit; text-decoration: none; }

/* topbar */
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); background: var(--panel); position: sticky; top: 0; z-index: 30; flex-wrap: wrap; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--brand); color: var(--canvas); display: flex; align-items: center; justify-content: center; font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; flex-shrink: 0; }
.brand-name { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; line-height: 1.1; }
.brand-sub { font-size: 12px; color: var(--muted); margin-top: 1px; }

.main-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.main-nav > a { padding: 10px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.main-nav > a:hover { background: #fff; }
.main-nav > a.active { background: var(--brand); color: #fff; }

.cart-btn { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-family: inherit; cursor: pointer; color: var(--ink); }
.cart-btn:hover { border-color: var(--brand); }
.cart-btn.active { border-color: var(--brand); color: var(--brand); }
.cart-badge { background: var(--accent); color: #fff; font-size: 10.5px; min-width: 18px; height: 18px; border-radius: 999px; display: flex; align-items: center; justify-content: center; padding: 0 4px; }

/* layout helpers */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.hero { max-width: 1080px; margin: 0 auto; padding: 34px 24px 6px; }
.hero h1 { font-family: 'Fraunces', serif; font-size: 28px; margin: 0 0 6px; }
.hero p { color: var(--muted); font-size: 14.5px; margin: 0; max-width: 62ch; line-height: 1.55; }

/* landing menu cards */
.menu-grid { max-width: 1080px; margin: 0 auto; padding: 24px 24px 60px; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.menu-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.menu-card .menu-icon { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; }
.menu-card h2 { font-family: 'Fraunces', serif; font-size: 20px; margin: 6px 0 0; }
.menu-card p { color: var(--muted); font-size: 13.5px; line-height: 1.55; margin: 0; }
.menu-card .btn-primary { align-self: flex-start; margin-top: 6px; }

/* filters */
.filters { max-width: 1080px; margin: 0 auto; padding: 18px 24px 0; display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pill { padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13px; cursor: pointer; color: var(--ink); font-family: inherit; }
.filter-pill.active, a.filter-pill.active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* card grid (produk & layanan) */
.card-grid { max-width: 1080px; margin: 0 auto; padding: 18px 24px 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.card:hover { border-color: var(--brand); }
.card-thumb { width: 100%; height: 130px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; overflow: hidden; }
.card-name { font-weight: 600; font-size: 14px; line-height: 1.35; }
.card-meta { font-size: 11.5px; color: var(--muted); }
.card-price { font-weight: 600; font-size: 14.5px; color: var(--brand); font-family: 'Fraunces', serif; }
.card-desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 0; }

.badge { align-self: flex-start; font-size: 11px; padding: 3px 9px; border-radius: 999px; border: 1px solid; }
.badge-hijau { background:#eaf2ee; color:#1E5C4F; border-color:#bfd9cd; }
.badge-kuning { background:#fbf1df; color:#8a5c14; border-color:#e8cf9e; }
.badge-merah { background:#f5e6e6; color:#8a3338; border-color:#e0bcbe; }
.badge-abu { background:#efece2; color:var(--muted); border-color:var(--line); }

.btn-primary, button.btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 8px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font-size: 13px; font-family: inherit; cursor: pointer; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .5; cursor: default; }
.btn-ghost { display: inline-flex; align-items:center; justify-content:center; gap:6px; padding: 9px 15px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 13px; cursor: pointer; font-family: inherit; color: var(--ink); }
.btn-danger { border-color: #e0bcbe; color: var(--accent); background:#fff; }
.btn-whatsapp { display: flex; align-items: center; gap: 7px; padding: 10px 18px; border-radius: 8px; border: none; background: #25D366; color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; font-family: inherit; }
.btn-whatsapp:hover { filter: brightness(0.96); }
.btn-sm { padding: 6px 10px; font-size: 12px; }

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

/* detail page */
.detail-panel { max-width: 720px; margin: 0 auto; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.detail-thumb { width: 100%; height: 220px; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 14px; }
.detail-price { font-family: 'Fraunces', serif; font-size: 22px; font-weight: 600; color: var(--brand); margin: 8px 0; }
.detail-meta { display:flex; gap:10px; align-items:center; margin-bottom: 6px; flex-wrap: wrap; }

/* cart table */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.cart-table th, .cart-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: 13.5px; text-align: left; }
.cart-table th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.qty-form { display: flex; align-items: center; gap: 6px; }
.qty-form input[type=number] { width: 52px; padding: 6px; border: 1px solid var(--line); border-radius: 6px; font-family: inherit; text-align: center; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.cart-total-row { display: flex; justify-content: space-between; font-family: 'Fraunces', serif; font-size: 19px; font-weight: 600; margin: 14px 0; padding-top: 14px; border-top: 2px solid var(--line); }

/* forms */
.form-panel { max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.form-grid { display: flex; flex-direction: column; gap: 14px; }
.form-field label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-family: inherit; font-size: 13.5px; background: #fff;
}
.form-field textarea { resize: vertical; min-height: 70px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; }
.alert-error { background: #f5e6e6; color: #8a3338; border: 1px solid #e0bcbe; }
.alert-success { background: #eaf2ee; color: #1E5C4F; border: 1px solid #bfd9cd; }

.jadwal-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 18px; }
.jadwal-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-size: 13.5px; }
.jadwal-item:has(input:checked) { border-color: var(--brand); background: #f3f8f6; }
.jadwal-item input { accent-color: var(--brand); }
.jadwal-full { opacity: .5; }

footer.site-footer { text-align: center; padding: 24px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .hero h1 { font-size: 23px; }
  .topbar { flex-direction: column; align-items: stretch; }
  .main-nav { justify-content: space-between; }
}
