/* SpekPas · prototipe katalog pengadaan */
:root {
  --teal: #0B4F4A; --teal-2: #0E6A63; --teal-p: #E3F0EE;
  --amber: #F2B544; --amber-p: #FDF3DD;
  --ink: #15211F; --ink-2: #4D5C59; --ink-3: #7C8986;
  --bg: #F5F6F3; --card: #FFFFFF; --line: #E1E5E1;
  --wa: #1E9E55; --wa-d: #178447; --red: #B4412F;
  --r: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--teal-2); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--teal-2); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 16px; border-radius: 9px; border: 1.5px solid transparent; font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { min-height: 36px; padding: 6px 12px; font-size: 13px; }
.btn--go { background: var(--teal); color: #fff; }
.btn--go:hover { background: var(--teal-2); }
.btn--go:disabled { opacity: .45; cursor: not-allowed; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-d); }
.btn--line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn--line:hover { border-color: var(--ink-3); }

.proto { background: var(--amber); color: #3D2A00; font-size: 12.5px; font-weight: 600; text-align: center; padding: 6px 16px; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.logo svg { width: 34px; height: 34px; }
.logo b { color: var(--teal-2); font-weight: 800; }
.top__tag { color: var(--ink-3); font-size: 14px; padding-left: 18px; border-left: 1px solid var(--line); }
.top__link { margin-left: auto; font-weight: 600; text-decoration: none; }

/* Hero */
.hero { background: var(--teal); color: #fff; padding: 48px 0 40px; position: relative; overflow: hidden; }
.hero::after { content: ''; position: absolute; right: -120px; top: -80px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255,255,255,.04); }
.hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; max-width: 22em; position: relative; z-index: 1; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lead { margin-top: 12px; color: #CFE3E0; max-width: 46em; font-size: 16px; position: relative; z-index: 1; }
.search { margin-top: 26px; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 14px; padding: 8px 8px 8px 16px; max-width: 820px; box-shadow: 0 18px 40px -18px rgba(0,0,0,.45); position: relative; z-index: 1; }
.search svg { width: 22px; height: 22px; color: var(--ink-3); flex: none; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; font-size: 17px; padding: 10px 4px; color: var(--ink); background: transparent; }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.search .btn { min-height: 48px; padding: 0 26px; font-size: 16px; }
.examples { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: relative; z-index: 1; }
.examples .muted { color: #A9C9C4; font-size: 14px; }
.examples button { border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.07); color: #fff; padding: 6px 12px; border-radius: 99px; font-size: 13.5px; cursor: pointer; }
.examples button:hover { background: rgba(255,255,255,.16); }
.stat { margin-top: 18px; font-size: 13px; color: #9EC2BD; position: relative; z-index: 1; }

/* Kategori */
.cats-wrap { background: #fff; border-bottom: 1px solid var(--line); }
.cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 14px 0; }
.cats button { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 1.5px solid transparent; background: none; border-radius: 12px; padding: 10px 6px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.cats button span { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-p); color: var(--teal); display: grid; place-items: center; }
.cats button svg { width: 34px; height: 34px; }
.cats button:hover { background: var(--bg); }
.cats button.on { border-color: var(--teal); color: var(--teal); background: var(--teal-p); }
.cats button.on span { background: var(--teal); color: #fff; }

/* Layout */
.layout { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding-top: 28px; padding-bottom: 60px; align-items: start; }
.side { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; position: sticky; top: 16px; }
.side__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.side__head h2 { font-size: 17px; }
.side__head .link { display: none; }
.side fieldset { border: 0; border-top: 1px solid var(--line); margin: 12px 0 0; padding: 12px 0 0; }
.side legend { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); padding: 0; margin-bottom: 8px; }
.chk { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; cursor: pointer; }
.chk input { width: 17px; height: 17px; accent-color: var(--teal); }
.chk .muted { margin-left: auto; font-size: 12px; }
.side input:not([type]), .side select, #pagu { width: 100%; min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; }
.side > p { margin-top: 16px; }

.bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 16px; }
.read { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; min-height: 30px; }
.chip { background: var(--teal-p); color: var(--teal); font-weight: 600; padding: 4px 10px; border-radius: 99px; font-size: 13px; }
.bar__right { display: flex; gap: 12px; align-items: center; margin-left: auto; }
.sort { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-2); }
.sort select { min-height: 36px; border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; background: #fff; }
.only-m { display: none; }

.group { font-size: 18px; margin: 4px 0 14px; display: flex; align-items: center; gap: 10px; }
.group span { background: var(--teal); color: #fff; font-size: 13px; padding: 2px 9px; border-radius: 99px; }
.group--near { margin-top: 36px; }
.group--near span { background: var(--amber); color: #3D2A00; }
.sub { margin: -8px 0 14px; font-size: 14px; }
.none { margin-bottom: 8px; }

/* Kartu produk */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; position: relative; overflow: hidden; transition: box-shadow .15s, transform .15s; }
.card:hover { box-shadow: 0 12px 28px -16px rgba(11,79,74,.45); transform: translateY(-2px); }
.card__hit { position: absolute; inset: 0; background: none; border: 0; cursor: pointer; z-index: 1; }
.card__img { height: 132px; display: grid; place-items: center; position: relative; color: var(--teal); }
.card__img svg { width: 86px; height: 86px; opacity: .85; }
.k-motor { background: linear-gradient(135deg, #E3F0EE, #D2E8E4); }
.k-mobil { background: linear-gradient(135deg, #E6ECF5, #D6E0EF); color: #22477A; }
.k-laptop, .k-pc { background: linear-gradient(135deg, #EEE9F6, #E1D9F0); color: #4B3A7A; }
.k-printer, .k-proyektor { background: linear-gradient(135deg, #FBEFE2, #F5E2CC); color: #8A4B14; }
.k-ac { background: linear-gradient(135deg, #E2F1F8, #CFE7F3); color: #145F86; }
.card__cat { position: absolute; left: 10px; top: 10px; background: rgba(255,255,255,.85); font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; color: var(--ink-2); }
.tkdn { position: absolute; right: 10px; top: 10px; background: #fff; color: var(--teal); border: 1.5px solid var(--teal); font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }
.card__body { padding: 14px 14px 10px; flex: 1; display: flex; flex-direction: column; }
.card__brand { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.card__name { font-size: 17px; margin-top: 2px; }
.card__spec { font-size: 13.5px; color: var(--ink-2); margin-top: 6px; }
.card__note { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #7A5300; background: var(--amber-p); border-radius: 6px; padding: 5px 8px; }
.card__price { margin-top: auto; padding-top: 12px; font-size: 20px; font-weight: 800; color: var(--ink); }
.card__price small { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.card__vendor { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); display: flex; gap: 5px; align-items: flex-start; }
.card__vendor svg { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.card__acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 14px 14px; position: relative; z-index: 2; }
.cmp { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.cmp input { width: 16px; height: 16px; accent-color: var(--teal); }
.card--near { border-color: #F0D9A6; }

.empty { background: #fff; border: 1px dashed var(--line); border-radius: var(--r); padding: 40px 20px; text-align: center; }
.empty h3 { font-size: 18px; } .empty p { color: var(--ink-2); margin: 8px 0 18px; }

/* Cara pakai */
.how { background: #fff; border-top: 1px solid var(--line); padding: 48px 0; }
.how h2 { font-size: 24px; }
.how ol { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.how li { counter-increment: s; border-top: 3px solid var(--teal); padding-top: 14px; }
.how li::before { content: counter(s); font-weight: 800; color: var(--amber); font-size: 22px; display: block; }
.how b { display: block; font-size: 16px; margin-top: 4px; }
.how span { display: block; color: var(--ink-2); margin-top: 4px; font-size: 14px; }

.foot { padding: 28px 0 100px; font-size: 14px; color: var(--ink-2); }
.foot p + p { margin-top: 6px; }

/* Bar perbandingan */
.cmpbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--ink); color: #fff; transform: translateY(110%); visibility: hidden; transition: transform .2s, visibility .2s; }
.cmpbar.show { transform: none; visibility: visible; }
.cmpbar__in { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.cmpbar__items { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.pill { background: rgba(255,255,255,.12); border-radius: 99px; padding: 5px 6px 5px 12px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.pill button { background: rgba(255,255,255,.2); border: 0; color: #fff; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; line-height: 1; }
.cmpbar__acts { display: flex; gap: 14px; align-items: center; }
.cmpbar .link { color: #CFE3E0; }
.cmpbar .btn--go { background: var(--amber); color: #3D2A00; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10,25,23,.55); display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal__box { background: #fff; border-radius: 16px; width: 100%; max-width: 720px; max-height: calc(100vh - 40px); overflow: auto; padding: 26px; position: relative; }
.modal.wide .modal__box { max-width: 980px; }
.modal__x { position: absolute; right: 14px; top: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); font-size: 22px; cursor: pointer; }
.det { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; margin-bottom: 18px; }
.det__img { height: 140px; border-radius: 12px; display: grid; place-items: center; }
.det__img svg { width: 90px; height: 90px; }
.det h2 { font-size: 24px; margin-top: 2px; padding-right: 30px; }
.det__price { font-size: 24px; font-weight: 800; margin-top: 8px; }
.det__price small { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tkdnbar { margin-top: 10px; background: var(--teal-p); border-radius: 8px; height: 26px; position: relative; overflow: hidden; max-width: 320px; }
.tkdnbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--teal); opacity: .85; }
.tkdnbar span { position: relative; z-index: 1; font-size: 12.5px; font-weight: 700; color: #fff; padding: 0 10px; line-height: 26px; mix-blend-mode: normal; text-shadow: 0 0 6px rgba(0,0,0,.25); }
table.spec { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.spec th, .spec td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.spec th { width: 40%; color: var(--ink-2); font-weight: 600; }
.vend { background: var(--bg); border-radius: 12px; padding: 16px; display: grid; gap: 14px; margin-bottom: 14px; }
.vend b { font-size: 16px; }
.vend__form { display: grid; grid-template-columns: 1fr 1.4fr 110px; gap: 10px; }
.vend__form label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.vend__form input { min-height: 40px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; background: #fff; font-weight: 400; color: var(--ink); }
.vend__acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cmpwrap { overflow-x: auto; margin-top: 14px; }
table.cmpt { width: 100%; border-collapse: collapse; min-width: 560px; }
.cmpt th, .cmpt td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 14px; }
.cmpt thead th { font-size: 15px; background: var(--bg); }
.cmpt tbody th { color: var(--ink-2); font-weight: 600; width: 22%; }
.best { background: #DDF2E6; color: #146B3A; padding: 1px 6px; border-radius: 5px; font-weight: 700; }

.toast { position: fixed; left: 50%; bottom: 84px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; }
  .side { display: none; position: fixed; inset: 0; z-index: 40; border-radius: 0; overflow: auto; padding: 20px; }
  .side.open { display: block; }
  .side__head .link { display: inline; }
  .only-m { display: inline-flex; }
  .cats { grid-template-columns: repeat(7, minmax(88px, 1fr)); overflow-x: auto; }
  .how ol { grid-template-columns: 1fr 1fr; }
  .top__tag { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 14.5px; }
  .hero { padding: 30px 0 28px; }
  .search { padding: 6px 6px 6px 12px; }
  .search input { font-size: 15.5px; }
  .search .btn { padding: 0 16px; min-height: 44px; }
  .grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .card__img { height: 96px; } .card__img svg { width: 60px; height: 60px; }
  .card__body { padding: 10px 10px 8px; } .card__name { font-size: 15px; } .card__price { font-size: 17px; }
  .card__acts { flex-direction: column; align-items: stretch; padding: 0 10px 10px; }
  .card__acts .btn { width: 100%; }
  .bar__right { width: 100%; justify-content: space-between; }
  .sort select { max-width: 140px; }
  .det { grid-template-columns: 1fr; } .det__img { height: 110px; }
  .vend__form { grid-template-columns: 1fr; }
  .how ol { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; } .modal__box { border-radius: 16px 16px 0 0; max-height: 92vh; padding: 20px 16px; }
  .cmpbar__in { flex-direction: column; align-items: stretch; gap: 8px; }
  .cmpbar__acts { justify-content: space-between; }
}
