/* ssc-klinik.com -- Sahabat Satwa Celebes. Plain CSS, no build step. */
:root {
  --purple: #4e2a6f;
  --purple-700: #3c2056;
  --purple-50: #f4f0f8;
  --mint: #7fd1bf;
  --mint-50: #e9f8f4;
  --ink: #1d1626;
  --muted: #5f5870;
  --line: #e7e2ee;
  --bg: #ffffff;
  --rose: #c2185b;
  --wa: #1fa855;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(78, 42, 111, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--purple); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; line-height: 1.1; }
.brand img { width: 42px; height: 42px; }
.brand small { display: block; font-weight: 600; color: var(--muted); font-size: 12px; }
.nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav a:hover { color: var(--purple); }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 760px) { .nav .hide-sm { display: none; } .brand small { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-weight: 800; text-decoration: none; border: 0; cursor: pointer; font-size: 15px; font-family: inherit; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-ghost { background: #fff; color: var(--purple); border: 2px solid var(--purple); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: .5; cursor: default; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--purple) 0%, #6a3f92 60%, #5d8f9a 120%); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.12; margin: 0 0 14px; letter-spacing: -.02em; }
.hero p.lead { font-size: 18px; opacity: .92; margin: 0 0 22px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.8); }
.hero .badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); font-weight: 700; font-size: 14px; }
.hero-logo { background: #fff; border-radius: 50%; padding: 18px; width: min(340px, 80%); height: auto; aspect-ratio: 1; object-fit: contain; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
@media (max-width: 760px) { .hero .wrap { grid-template-columns: 1fr; padding-top: 32px; padding-bottom: 36px; } .hero-logo { width: 112px; padding: 10px; order: -1; margin: 0; } }

/* Sections */
section.block { padding: 56px 0; }
section.block.alt { background: var(--purple-50); }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin: 0 0 8px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 26px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin: 10px 0 6px; font-size: 19px; }
.card p { margin: 0 0 12px; color: var(--muted); font-size: 15px; }
.card a.more { font-weight: 800; text-decoration: none; }
.icon { width: 46px; height: 46px; border-radius: 14px; background: var(--mint-50); display: flex; align-items: center; justify-content: center; font-size: 24px; }

/* Promos */
.promos { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.promo { scroll-snap-align: start; flex: 0 0 300px; display: flex; gap: 12px; background: #fff; border: 1px solid #f3c9da; border-radius: var(--radius); padding: 14px; }
.promo img, .promo .ph { width: 64px; height: 64px; border-radius: 12px; object-fit: cover; flex-shrink: 0; }
.promo .ph { background: #fde7ef; display: flex; align-items: center; justify-content: center; font-size: 28px; }
.promo b { display: block; }
.promo small { color: var(--muted); display: block; }

/* Info row */
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.info .map { border-radius: var(--radius); overflow: hidden; min-height: 300px; border: 1px solid var(--line); }
.info iframe { width: 100%; height: 100%; min-height: 300px; border: 0; }
.facts { list-style: none; padding: 0; margin: 0 0 20px; }
.facts li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; gap: 10px; }
@media (max-width: 760px) { .info { grid-template-columns: 1fr; } }

/* Service page */
.page-hero { background: var(--purple-50); padding: 40px 0 32px; }
.page-hero h1 { margin: 6px 0 10px; font-size: clamp(28px, 4.5vw, 42px); line-height: 1.15; }
.crumbs { font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 32px; font-size: 24px; }
.prose ul { padding-left: 20px; }
.prose li { margin: 6px 0; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 10px 0; background: #fff; }
summary { font-weight: 700; cursor: pointer; }
.callout { background: var(--mint-50); border-radius: var(--radius); padding: 20px; margin: 28px 0; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }

/* Store */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.toolbar input { flex: 1; min-width: 200px; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); font: inherit; }
.pill { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 700; cursor: pointer; font-family: inherit; }
.pill[aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.products { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.product { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.product .pic { height: 150px; background: var(--purple-50); display: flex; align-items: center; justify-content: center; font-size: 40px; }
.product .pic img { width: 100%; height: 100%; object-fit: cover; }
.product .body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product .name { font-weight: 700; font-size: 14px; line-height: 1.35; }
.price { font-weight: 900; font-size: 17px; }
.price s { color: var(--muted); font-weight: 600; font-size: 13px; display: block; }
.price.promo { color: var(--rose); }
.tag { font-size: 12px; font-weight: 800; color: var(--rose); }
.badge-gift { font-size: 12px; font-weight: 700; background: #fff4dc; color: #8a5a00; border-radius: 8px; padding: 3px 7px; }
.product .btn { margin-top: auto; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); background: var(--purple-50); border-radius: var(--radius); }
.cart { position: sticky; bottom: 0; z-index: 15; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
.cart .wrap { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 16px; }
.cart small { color: var(--muted); display: block; }
.fees { width: 100%; border-collapse: collapse; font-size: 14px; }
.fees th, .fees td { border-bottom: 1px solid var(--line); padding: 8px; text-align: left; }
.qty { display: inline-flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-weight: 900; cursor: pointer; }

/* Footer + floating WhatsApp */
footer { background: var(--purple-700); color: #e9e2f2; padding: 40px 0 90px; font-size: 15px; }
footer a { color: #fff; }
footer .cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
footer h4 { margin: 0 0 8px; color: #fff; }
.fab { position: fixed; right: 16px; bottom: 16px; z-index: 30; box-shadow: 0 10px 30px rgba(31,168,85,.35); }
body.has-cart .fab { bottom: 88px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Dealer order page -- big, simple, thumb-friendly */
.dhead { background: var(--purple); color: #fff; padding: 22px 0; }
.dhead h1 { margin: 0; font-size: 26px; }
.dhead p { margin: 4px 0 0; opacity: .9; }
.dhead .chip { background: rgba(255,255,255,.16); margin: 8px 6px 0 0; }
.dtabs { display: flex; gap: 8px; margin: 18px 0 12px; }
.dtabs button { flex: 1; padding: 14px; font-size: 18px; font-weight: 800; border-radius: 16px; border: 2px solid var(--line); background: #fff; font-family: inherit; cursor: pointer; }
.dtabs button[aria-pressed="true"] { background: var(--purple); border-color: var(--purple); color: #fff; }
.dgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); padding-bottom: 150px; }
.dcard { background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 10px; display: flex; flex-direction: column; gap: 6px; }
.dcard.on { border-color: var(--wa); background: #f2fbf5; }
.dpic { aspect-ratio: 1; background: #fff; border-radius: 12px; overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 40px; }
.dpic img { width: 100%; height: 100%; object-fit: contain; }
.dname { font-weight: 700; font-size: 14px; line-height: 1.3; min-height: 36px; }
.dprice { font-weight: 900; font-size: 18px; }
.davail { font-size: 12px; font-weight: 800; }
.davail.ok { color: var(--wa); } .davail.soon { color: #b45309; } .davail.out { color: #9ca3af; }
.dqty { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; gap: 4px; align-items: center; }
.dqty button { height: 46px; border-radius: 12px; border: 0; font-size: 26px; font-weight: 900; background: var(--purple); color: #fff; cursor: pointer; }
.dqty button:disabled { background: #e5e7eb; color: #9ca3af; }
.dqty input { height: 46px; text-align: center; font-size: 18px; padding: 0 2px; font-weight: 900; border: 2px solid var(--line); border-radius: 12px; width: 100%; font-family: inherit; }
.dbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 2px solid var(--line); box-shadow: 0 -10px 30px rgba(0,0,0,.08); }
.dbar .wrap { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; padding: 12px 16px; align-items: center; }
.dbar .tot { font-size: 22px; font-weight: 900; white-space: nowrap; }
.dbar .nudge { grid-column: 1 / -1; color: #b45309; font-weight: 800; font-size: 14px; }
.dbar .nudge:empty { display: none; }
#send { font-size: 18px; padding: 16px 22px; }
.dnote { width: 100%; padding: 12px; border-radius: 12px; border: 2px solid var(--line); font: inherit; margin: 6px 0 12px; }
.ddone { background: #e9f8ef; border: 2px solid var(--wa); border-radius: 18px; padding: 18px; margin: 16px 0; font-size: 16px; }
.dorders { list-style: none; padding: 0; margin: 0 0 140px; }
.dorders li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.dorders .st { color: var(--muted); font-size: 14px; }

/* Partner view */
.mtbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.mtbl th, .mtbl td { border-bottom: 1px solid var(--line); padding: 8px 6px; text-align: left; vertical-align: middle; }
.mtbl th { background: var(--purple-50); position: sticky; top: 64px; }
.mtbl .r { text-align: right; white-space: nowrap; }
.mtbl .pic img { width: 44px; height: 44px; object-fit: contain; }
.mtbl .bad { color: #b91c1c; font-weight: 800; } .mtbl .warn { color: #b45309; font-weight: 800; } .mtbl .ok { color: var(--wa); font-weight: 700; }
.chip.warn { background: #fff4dc; color: #8a5a00; }
.chip { background: var(--purple-50); color: var(--purple); }
.hero .chip, .dhead .chip { color: #fff; }
.muted { color: var(--muted); }
.scroll-x { overflow-x: auto; }
