/* =========================================================
   Kinmy Klinik — Design System
   Krem lembut · Hijau zaitun tua · Emas
   ========================================================= */
:root {
  --cream: #FBF8F1;
  --cream-2: #F4EFE3;
  --sage: #EEF0E3;
  --sage-2: #E3E8D4;
  --white: #FFFFFF;
  --green-900: #22361C;
  --green-800: #2E4724;
  --green-700: #3A5A2D;
  --green-500: #5C7F45;
  --green-100: #E5ECD9;
  --gold-700: #8E6A22;
  --gold-600: #A88232;
  --gold-500: #BF9A4A;
  --gold-300: #E3CD98;
  --gold-100: #F5ECD6;
  --ink: #2A2B22;
  --ink-2: #4E4F42;
  --muted: #7A7A6B;
  --line: #E6DFCF;
  --danger: #A23B2C;
  --danger-bg: #FBECE8;
  --warn: #9A6A12;
  --warn-bg: #FBF2DC;
  --ok: #3F7A2E;
  --ok-bg: #E8F1E1;
  --shadow-sm: 0 1px 2px rgba(60, 50, 20, .06), 0 2px 8px rgba(60, 50, 20, .05);
  --shadow: 0 10px 30px -12px rgba(60, 50, 20, .22);
  --radius: 18px;
  --radius-sm: 12px;
  --serif: 'Cormorant Garamond', 'Libre Caslon Text', Georgia, serif;
  --sans: 'Mulish', 'Segoe UI', system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green-700); text-decoration: none; }
a:hover { color: var(--gold-700); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--green-900); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
em.gold, .gold-text { font-style: italic; color: var(--gold-600); }
:focus-visible { outline: 2px solid var(--gold-500); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.alt { background: var(--sage); }
.section.tight { padding: 56px 0; }
.eyebrow {
  font-size: .78rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 700;
  color: var(--green-500); margin-bottom: 14px; display: inline-block;
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow { display: inline-flex; align-items: center; gap: 16px; color: var(--gold-700); }
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ''; width: 40px; height: 1px; background: var(--gold-500); }
.section-head p { color: var(--ink-2); }
.lead { font-size: 1.1rem; color: var(--ink-2); }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.center { text-align: center; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .95rem; line-height: 1.2; transition: .2s ease; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--green-800); color: #fff; }
.btn-primary:hover { background: var(--green-900); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-outline { border-color: var(--green-800); color: var(--green-900); background: transparent; }
.btn-outline:hover { background: var(--green-800); color: #fff; }
.btn-gold { background: linear-gradient(135deg, var(--gold-500), var(--gold-700)); color: #fff; }
.btn-gold:hover { filter: brightness(1.06); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--green-800); padding: 10px 14px; }
.btn-ghost:hover { background: var(--green-100); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--green-800); border-bottom: 1px solid currentColor; padding-bottom: 2px; font-size: .92rem; }
.link-arrow svg { width: 16px; height: 16px; }

/* ---------------- Header ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 241, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 84px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--gold-700); flex: none; }
.brand img { height: 54px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.85rem; letter-spacing: .06em; background: linear-gradient(180deg, #C9A24E, #8E6A22); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { font-size: .66rem; letter-spacing: .5em; font-weight: 700; color: var(--green-700); margin-top: 4px; padding-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; list-style: none; padding: 0; }
.nav-links a { display: block; white-space: nowrap; padding: 8px 12px; color: var(--ink); font-weight: 600; font-size: .95rem; position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; background: var(--gold-600); transform: scaleX(0); transition: .2s; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--green-900); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); display: grid; place-items: center; color: var(--green-800); transition: .2s; }
.icon-btn:hover { border-color: var(--gold-500); color: var(--gold-700); }
.icon-btn svg { width: 20px; height: 20px; }
.badge-count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--gold-600); color: #fff; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.badge-count:empty, .badge-count[data-n="0"] { display: none; }
.menu-toggle { display: none; }

@media (max-width: 1140px) {
  .nav-links { position: fixed; inset: 84px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--cream); border-bottom: 1px solid var(--line); padding: 12px 24px 24px; gap: 0; transform: translateY(-120%); transition: transform .3s ease; box-shadow: var(--shadow); max-height: calc(100vh - 84px); overflow: auto; }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav-links a::after { display: none; }
  .menu-toggle { display: grid; }
  .nav-actions .btn-booking span { display: none; }
  .nav-actions .btn-booking { padding: 12px; }
}
@media (max-width: 520px) {
  .brand img { height: 42px; }
  .brand-name { font-size: 1.45rem; }
  .nav { gap: 10px; height: 72px; }
  .nav-links { inset: 72px 0 auto 0; }
  .nav-actions .btn-booking { display: none; }
  .container { padding: 0 16px; }
}

/* ---------------- Hero ---------------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--cream) 38%, rgba(251, 248, 241, 0) 62%), var(--cream); }
.hero-media { position: absolute; inset: 0 0 0 40%; background: url('../img/hero.jpg') center/cover no-repeat; }
.hero-media::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--cream) 0%, rgba(251, 248, 241, .6) 18%, rgba(251, 248, 241, 0) 45%), linear-gradient(0deg, var(--cream) 0%, rgba(251, 248, 241, 0) 25%); }
.hero-inner { position: relative; padding: 96px 0 140px; max-width: 620px; }
.hero h1 { margin-bottom: 22px; }
.hero p.lead { margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 860px) {
  .hero { background: var(--cream); }
  .hero-media { position: relative; inset: auto; height: 300px; }
  .hero-media::before { background: linear-gradient(0deg, var(--cream) 0%, rgba(251, 248, 241, 0) 40%); }
  .hero-inner { padding: 8px 0 48px; }
}

.features { position: relative; margin-top: -70px; z-index: 2; }
.features-grid { display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(255, 255, 255, .86); backdrop-filter: blur(6px); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.feature { display: flex; gap: 14px; align-items: flex-start; padding: 26px 22px; position: relative; }
.feature + .feature::before { content: ''; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.feature h4 { font-family: var(--sans); font-size: .98rem; font-weight: 700; margin: 0 0 4px; color: var(--ink); }
.feature p { font-size: .84rem; color: var(--muted); margin: 0; line-height: 1.45; }
.ico-circle { flex: none; width: 58px; height: 58px; border-radius: 50%; background: var(--gold-100); color: var(--green-700); display: grid; place-items: center; }
.ico-circle svg { width: 28px; height: 28px; }
@media (max-width: 1080px) {
  .features { margin-top: 0; padding-top: 24px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .feature + .feature::before { display: none; }
}
@media (max-width: 520px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------------- Cards & grids ---------------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-body { padding: 24px; }
.card h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.card-hover { transition: .25s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-300); }

.svc-card { position: relative; display: flex; flex-direction: column; color: inherit; }
.svc-card .svc-img { height: 150px; background-size: cover; background-position: center; }
.svc-card .svc-icon { position: absolute; top: 116px; left: 22px; width: 64px; height: 64px; border-radius: 50%; background: var(--white); display: grid; place-items: center; color: var(--green-700); box-shadow: var(--shadow-sm); }
.svc-card .svc-icon svg { width: 28px; height: 28px; }
.svc-card .card-body { padding-top: 44px; display: flex; gap: 12px; align-items: flex-end; flex: 1; }
.svc-card .card-body > div { flex: 1; }
.svc-card p { color: var(--muted); font-size: .9rem; margin: 0; }
.svc-card .arrow { color: var(--green-800); flex: none; }
.svc-card .arrow svg { width: 20px; height: 20px; }

.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li { display: flex; gap: 12px; padding: 8px 0; }
.check-list li svg { flex: none; width: 22px; height: 22px; color: var(--gold-600); margin-top: 2px; }

.cta-band { background: radial-gradient(ellipse at 80% 0%, #3A5A2D 0%, #22361C 70%); color: #F3EEDF; border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #D9D6C3; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-end; }
.cta-band .btn-outline { color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-outline:hover { background: #fff; color: var(--green-900); }
.cta-band::after { content: ''; position: absolute; right: -60px; bottom: -80px; width: 280px; height: 280px; background: url('../img/logo-emblem.png') center/contain no-repeat; opacity: .08; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } .cta-band .actions { justify-content: flex-start; } }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; padding: 8px; }
.stat b { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--gold-700); line-height: 1; }
.stat span { font-size: .88rem; color: var(--muted); }
@media (max-width: 700px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------------- Page hero (inner pages) ---------------- */
.page-hero { background: linear-gradient(180deg, var(--sage) 0%, var(--cream) 100%); padding: 64px 0 40px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; right: -40px; top: -30px; width: 260px; height: 260px; background: url('../img/logo-emblem.png') center/contain no-repeat; opacity: .07; }
.page-hero p { max-width: 720px; color: var(--ink-2); }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }

/* ---------------- Chips, tags, badges ---------------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); font-size: .88rem; font-weight: 600; color: var(--ink-2); transition: .15s; user-select: none; }
.chip:hover { border-color: var(--gold-500); }
.chip.active, .chip[aria-pressed="true"] { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.tag.gold { background: var(--gold-100); color: var(--gold-700); }
.tag.red { background: var(--danger-bg); color: var(--danger); }
.tag.warm { background: #FBE6D6; color: #9A4A1A; }
.tag.cool { background: #E0ECF0; color: #2E5A6A; }

/* ---------------- Forms ---------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.field label, .label { font-weight: 700; font-size: .9rem; color: var(--ink); }
.field .hint { font-size: .8rem; color: var(--muted); }
.input, select.input, textarea.input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); transition: .15s; font-size: .95rem;
}
.input:focus { outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(191, 154, 74, .15); }
textarea.input { min-height: 96px; resize: vertical; }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; background: var(--cream-2); border: 1.5px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 640px) { .form-row, .form-row.three { grid-template-columns: 1fr; } }

.search-box { position: relative; }
.search-box svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search-box .input { padding-left: 46px; border-radius: 999px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.choice { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--white); cursor: pointer; font-size: .9rem; transition: .15s; }
.choice:hover { border-color: var(--gold-300); }
.choice input { margin-top: 3px; accent-color: var(--green-700); flex: none; }
.choice:has(input:checked) { border-color: var(--green-700); background: var(--green-100); }

.q-block { padding: 20px 0; border-bottom: 1px dashed var(--line); }
.q-block:last-child { border-bottom: 0; }
.q-title { font-weight: 700; margin-bottom: 10px; display: flex; gap: 8px; align-items: baseline; }
.q-title .tag { flex: none; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.seg label { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); cursor: pointer; font-size: .88rem; font-weight: 600; transition: .15s; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label:has(input:checked) { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.seg label:has(input:focus-visible) { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* range */
.pain-scale { padding: 8px 0; }
input[type="range"] { width: 100%; accent-color: var(--green-700); height: 28px; }
.pain-legend { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }
.pain-value { font-family: var(--serif); font-size: 2.4rem; color: var(--green-900); line-height: 1; }

/* ---------------- Tabs ---------------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 12px 18px; border: 0; background: none; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--green-800); }
.tab.active { color: var(--green-900); border-bottom-color: var(--gold-600); }

/* ---------------- Herbal A–Z ---------------- */
.az-bar { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 24px 0; }
.az-bar button { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--white); font-weight: 800; color: var(--green-800); font-family: var(--serif); font-size: 1.1rem; }
.az-bar button:hover:not([disabled]) { border-color: var(--gold-500); }
.az-bar button.active { background: var(--green-800); color: #fff; border-color: var(--green-800); }
.az-bar button[disabled] { opacity: .3; cursor: default; }
.az-bar button.all { width: auto; padding: 0 14px; font-family: var(--sans); font-size: .85rem; }
.letter-group { margin-bottom: 40px; scroll-margin-top: 110px; }
.letter-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.letter-head b { font-family: var(--serif); font-size: 2.6rem; color: var(--gold-600); line-height: 1; }
.letter-head::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.herb-card { cursor: pointer; text-align: left; border: 1px solid var(--line); padding: 0; font: inherit; color: inherit; background: var(--white); width: 100%; }
.herb-card .card-body { display: flex; gap: 16px; align-items: flex-start; }
.herb-thumb { flex: none; width: 60px; height: 60px; border-radius: 14px; display: grid; place-items: center; }
.herb-thumb svg { width: 34px; height: 34px; }
.herb-card .latin { font-style: italic; color: var(--muted); font-size: .86rem; margin-bottom: 8px; }
.herb-card p { font-size: .88rem; color: var(--ink-2); margin: 0 0 10px; }

/* ---------------- Modal ---------------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-start; justify-content: center; padding: 40px 16px; background: rgba(34, 40, 25, .55); backdrop-filter: blur(3px); overflow-y: auto; }
.modal.open { display: flex; }
.modal-box { background: var(--cream); border-radius: 24px; max-width: 760px; width: 100%; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); position: relative; animation: pop .25s ease; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-close { position: absolute; top: 16px; right: 16px; }
.modal-head { padding: 32px 32px 20px; border-bottom: 1px solid var(--line); background: var(--sage); border-radius: 24px 24px 0 0; }
.modal-body { padding: 28px 32px 32px; }
.modal-body h4 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin: 24px 0 8px; }
.modal-body h4:first-child { margin-top: 0; }
@media (max-width: 600px) { .modal-head, .modal-body { padding-left: 20px; padding-right: 20px; } }
.recipe-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 20px; }
.recipe-box dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; margin: 0; font-size: .92rem; }
.recipe-box dt { font-weight: 700; color: var(--green-700); }
.recipe-box dd { margin: 0; }
.alert { display: flex; gap: 12px; padding: 14px 18px; border-radius: var(--radius-sm); font-size: .9rem; border: 1px solid; }
.alert svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.alert-warn { background: var(--warn-bg); color: #6E4C0E; border-color: #EBD8A8; }
.alert-danger { background: var(--danger-bg); color: #7E2A1E; border-color: #EBC4BA; }
.alert-info { background: var(--green-100); color: var(--green-800); border-color: #CFDCBE; }
.alert-ok { background: var(--ok-bg); color: var(--green-800); border-color: #CFDCBE; }

/* ---------------- Shop ---------------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
.shop-side { position: sticky; top: 108px; }
.shop-side h4 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-700); margin: 0 0 12px; }
.side-list { list-style: none; padding: 0; margin: 0 0 28px; }
.side-list button { width: 100%; text-align: left; padding: 9px 12px; border-radius: 10px; border: 0; background: none; color: var(--ink-2); font-weight: 600; display: flex; justify-content: space-between; }
.side-list button:hover { background: var(--cream-2); }
.side-list button.active { background: var(--green-100); color: var(--green-900); }
.side-list small { color: var(--muted); font-weight: 600; }
.shop-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; }
.shop-toolbar .search-box { flex: 1; min-width: 220px; }
.shop-toolbar select { width: auto; border-radius: 999px; }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .shop-side { position: static; }
  .side-list { display: flex; flex-wrap: wrap; gap: 6px; }
  .side-list button { border: 1px solid var(--line); background: var(--white); border-radius: 999px; width: auto; gap: 6px; }
}
.product-card { display: flex; flex-direction: column; }
.product-img { position: relative; aspect-ratio: 1/1; background: linear-gradient(160deg, var(--cream-2), var(--sage)); display: grid; place-items: center; cursor: pointer; }
.product-img svg { width: 72%; height: 72%; filter: drop-shadow(0 12px 14px rgba(60, 50, 20, .18)); }
.product-img .discount { position: absolute; top: 12px; left: 12px; }
.product-card .card-body { display: flex; flex-direction: column; flex: 1; padding: 18px; }
.product-card .cat { font-size: .74rem; color: var(--gold-700); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.product-card h3 { margin: 4px 0 6px; font-size: 1rem; cursor: pointer; }
.product-card .meta { font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.price { font-weight: 800; color: var(--green-900); font-size: 1.1rem; }
.price s { font-weight: 600; color: var(--muted); font-size: .82rem; margin-left: 6px; }
.product-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.rating { color: var(--gold-600); font-size: .8rem; font-weight: 700; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); }
.qty button { width: 34px; height: 34px; border: 0; background: none; font-size: 1.1rem; color: var(--green-800); }
.qty span, .qty input { width: 34px; text-align: center; font-weight: 700; border: 0; background: none; }

/* cart drawer */
.drawer { position: fixed; inset: 0; z-index: 120; pointer-events: none; }
.drawer .scrim { position: absolute; inset: 0; background: rgba(34, 40, 25, .45); opacity: 0; transition: .25s; }
.drawer .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: var(--cream); transform: translateX(100%); transition: .3s ease; display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(0, 0, 0, .3); }
.drawer.open { pointer-events: auto; }
.drawer.open .scrim { opacity: 1; }
.drawer.open .panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--line); background: var(--white); }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item .thumb { width: 64px; height: 64px; border-radius: 12px; background: var(--sage); display: grid; place-items: center; }
.cart-item .thumb svg { width: 48px; height: 48px; }
.cart-item h5 { margin: 0 0 4px; font-size: .92rem; }
.cart-item .remove { border: 0; background: none; color: var(--muted); font-size: .78rem; text-decoration: underline; padding: 0; }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: .94rem; }
.sum-row.total { font-weight: 800; font-size: 1.1rem; color: var(--green-900); border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty svg { width: 56px; height: 56px; margin: 0 auto 12px; color: var(--gold-500); }

/* ---------------- Diagnosa ---------------- */
.stepper { display: flex; gap: 0; margin-bottom: 32px; counter-reset: step; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper li { list-style: none; flex: 1; min-width: 110px; text-align: center; position: relative; font-size: .8rem; font-weight: 700; color: var(--muted); padding-top: 44px; }
.stepper li::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--white); border: 1.5px solid var(--line); color: var(--muted); z-index: 1; }
.stepper li::after { content: ''; position: absolute; top: 18px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.stepper li:first-child::after { display: none; }
.stepper li.done::before { background: var(--gold-100); border-color: var(--gold-500); color: var(--gold-700); }
.stepper li.done::after, .stepper li.current::after { background: var(--gold-500); }
.stepper li.current { color: var(--green-900); }
.stepper li.current::before { background: var(--green-800); border-color: var(--green-800); color: #fff; }
.stepper { padding: 0; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: pop .25s ease; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }

.body-map-wrap { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: start; }
@media (max-width: 760px) { .body-map-wrap { grid-template-columns: 1fr; } }
.body-maps { display: flex; gap: 12px; justify-content: center; }
.body-map { width: 170px; }
.body-map figcaption { text-align: center; font-size: .78rem; font-weight: 700; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-top: 6px; }
.body-map svg { width: 100%; height: auto; }
.body-map .silhouette { fill: var(--cream-2); stroke: var(--gold-300); stroke-width: 1.5; }
.body-map .zone { fill: rgba(92, 127, 69, 0); stroke: transparent; cursor: pointer; transition: .15s; }
.body-map .zone:hover { fill: rgba(191, 154, 74, .28); }
.body-map .zone.selected { fill: rgba(162, 59, 44, .5); stroke: #A23B2C; stroke-width: 1.2; }
.body-map .zone:focus-visible { outline: none; stroke: var(--gold-700); stroke-width: 2; }
.selected-zones { min-height: 40px; }

.result-hero { background: radial-gradient(ellipse at 90% 0%, #3A5A2D 0%, #22361C 75%); color: #EDE8D6; border-radius: 24px; padding: 36px; margin-bottom: 28px; }
.result-hero h2 { color: #fff; margin-bottom: 8px; }
.result-hero .tag { background: rgba(255, 255, 255, .14); color: #F3E5BE; }
.bagang { display: grid; gap: 14px; margin-top: 22px; }
.bg-row { display: grid; grid-template-columns: 100px 1fr 100px; gap: 12px; align-items: center; font-size: .86rem; font-weight: 700; }
.bg-row span:last-child { text-align: right; }
.bg-track { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .16); position: relative; }
.bg-track::before { content: ''; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: rgba(255, 255, 255, .5); }
.bg-dot { position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-300); border: 3px solid #22361C; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px var(--gold-300); }
@media (max-width: 520px) { .bg-row { grid-template-columns: 74px 1fr 74px; font-size: .76rem; } .result-hero { padding: 24px 20px; } }

.vital-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.vital { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; border-left: 4px solid var(--line); }
.vital .lbl { font-size: .78rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.vital .val { font-family: var(--serif); font-size: 1.7rem; color: var(--green-900); font-weight: 600; line-height: 1.2; }
.vital .st { font-size: .84rem; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.vital .st svg { width: 15px; height: 15px; }
.vital.ok { border-left-color: var(--ok); } .vital.ok .st { color: var(--ok); }
.vital.warn { border-left-color: #C99A2A; } .vital.warn .st { color: var(--warn); }
.vital.bad { border-left-color: var(--danger); } .vital.bad .st { color: var(--danger); }

.res-section { margin-bottom: 40px; }
.res-section > h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.res-section > h3 .num { width: 36px; height: 36px; border-radius: 50%; background: var(--gold-100); color: var(--gold-700); display: grid; place-items: center; font-size: 1rem; font-family: var(--sans); font-weight: 800; flex: none; }
.ex-card .card-body { padding: 20px; }
.ex-card ol { padding-left: 20px; margin: 10px 0; font-size: .9rem; color: var(--ink-2); }
.ex-card ol li { margin-bottom: 4px; }
.ex-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--green-700); font-size: .9rem; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ' +'; }
details.more[open] summary::after { content: ' −'; }

/* ---------------- Pola makan ---------------- */
.cond-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 40px; }
.cond-btn { padding: 18px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--white); text-align: left; transition: .15s; }
.cond-btn b { display: block; font-size: .95rem; color: var(--ink); }
.cond-btn small { color: var(--muted); }
.cond-btn .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-bottom: 8px; }
.cond-btn:hover { border-color: var(--gold-300); }
.cond-btn.active { border-color: var(--green-800); box-shadow: inset 0 0 0 1px var(--green-800); background: var(--green-100); }
.dd-list { list-style: none; padding: 0; margin: 0; }
.dd-list li { padding: 7px 0 7px 28px; position: relative; font-size: .93rem; border-bottom: 1px dashed var(--line); }
.dd-list li:last-child { border-bottom: 0; }
.dd-list li svg { position: absolute; left: 0; top: 10px; width: 18px; height: 18px; }
.dd-list.yes svg { color: var(--ok); }
.dd-list.no svg { color: var(--danger); }
.menu-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.menu-table th, .menu-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.menu-table th { width: 32%; color: var(--green-800); font-weight: 700; }
.recipe-card .card-body { padding: 26px; }
.recipe-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ing-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 18px; }
.ing-table td { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.ing-table td:last-child { text-align: right; font-weight: 700; color: var(--green-800); padding-left: 12px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 16px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 12px 40px; font-size: .92rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--green-800); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 800; }

/* ---------------- Tables (admin) ---------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 640px; }
table.data th { text-align: left; background: var(--cream-2); padding: 12px 14px; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; }
table.data td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
table.data tr:hover td { background: #FDFBF6; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--green-900); color: #CFCBB8; padding: 72px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h5 { font-family: var(--sans); color: var(--gold-300); font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: #CFCBB8; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 5px 0; font-size: .92rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 56px; background: var(--cream); border-radius: 14px; padding: 4px; }
.footer-brand .brand-name { font-size: 1.7rem; }
.footer-brand .brand-sub { color: var(--gold-300); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .82rem; color: #9C9886; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------------- Toast & misc ---------------- */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { background: var(--green-900); color: #fff; padding: 12px 20px; border-radius: 999px; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); animation: pop .25s ease; display: flex; align-items: center; gap: 10px; }
.toast svg { width: 18px; height: 18px; color: var(--gold-300); }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; background: #2E7D4F; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.wa-float:hover { color: #fff; transform: scale(1.05); }
.wa-float svg { width: 28px; height: 28px; }
.disclaimer { font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.skeleton { background: linear-gradient(90deg, var(--cream-2), var(--white), var(--cream-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 120px; }
@keyframes sk { to { background-position: -200% 0; } }
.hidden { display: none !important; }

@media print {
  .site-header, .site-footer, .wa-float, .step-nav, .no-print, .stepper { display: none !important; }
  body { background: #fff; }
  .result-hero { background: #22361C !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { break-inside: avoid; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
