/* Katalog & Order WhatsApp — tampilan katalog hangat & bersih, warna aksen dari Pengaturan */
.kwa [hidden], .kwa[hidden] { display: none !important; }
.kwa { --kwa-accent: #c2410c; --kwa-ink: #1c1917; --kwa-muted: #78716c; --kwa-line: #e7e5e4; --kwa-soft: #f5f5f4; --kwa-card: #ffffff; --kwa-r: 14px;
  font-family: inherit; color: var(--kwa-ink); box-sizing: border-box; }
.kwa *, .kwa *::before, .kwa *::after { box-sizing: inherit; }
.kwa-ic { flex-shrink: 0; }
:where(.kwa) :where(button, input, select, textarea) { font-family: inherit; color: inherit; }

.kwa-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 22px; }
.kwa-search { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; padding: 0 14px; height: 44px; border: 1px solid var(--kwa-line); border-radius: 999px; background: var(--kwa-card); color: var(--kwa-muted); margin: 0; }
.kwa-search input { font-size: 15px; border: 0; outline: 0; background: transparent; width: 100%; height: 100%; padding: 0; color: var(--kwa-ink); }
.kwa-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.kwa-chips button { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--kwa-line); background: var(--kwa-card); cursor: pointer; font-size: 14px; }
.kwa-chips button.on { background: var(--kwa-ink); border-color: var(--kwa-ink); color: #fff; }

.kwa-grid { display: grid; grid-template-columns: repeat(var(--kwa-cols, 3), minmax(0, 1fr)); gap: 20px; }
.kwa-card { background: var(--kwa-card); border: 1px solid var(--kwa-line); border-radius: var(--kwa-r); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s; }
.kwa-card:hover { border-color: #d6d3d1; }
.kwa-img { position: relative; display: block; aspect-ratio: 1; background: var(--kwa-soft); }
.kwa-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.kwa-card:hover .kwa-img img { transform: scale(1.03); }
.kwa-card.is-habis .kwa-img img { filter: grayscale(1); opacity: .6; }
.kwa-tag { position: absolute; top: 12px; left: 12px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--kwa-accent); color: #fff; }
.kwa-tag.soft { background: #fff; color: var(--kwa-ink); }
.kwa-tag.dark { background: var(--kwa-ink); }
.kwa-body { padding: 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.kwa-body h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 600; }
.kwa-body h3 a { color: inherit; text-decoration: none; }
.kwa-desc { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--kwa-muted); }
.kwa-price { display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
.kwa-price b { font-size: 17px; }
.kwa-price s { color: var(--kwa-muted); font-size: 13px; }
.kwa-low { font-size: 12.5px; color: var(--kwa-accent); font-weight: 600; }
.kwa-buy { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.kwa-buy select { flex: 1; min-width: 0; height: 40px; border: 1px solid var(--kwa-line); border-radius: 10px; padding: 0 10px; background: var(--kwa-card); font-size: 13.5px; }
.kwa-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--kwa-accent); color: #fff !important; font-weight: 600; font-size: 14px; cursor: pointer; flex-shrink: 0; }
.kwa-buy select + .kwa-add span { display: none; }
.kwa-buy select + .kwa-add { width: 40px; padding: 0; }
.kwa-add:disabled { background: var(--kwa-line); color: var(--kwa-muted) !important; cursor: not-allowed; }
.kwa-add.added { background: var(--kwa-ink); }
.kwa-empty { text-align: center; color: var(--kwa-muted); padding: 40px 0; grid-column: 1 / -1; }
.kwa-single .kwa-card { border: 0; background: transparent; max-width: 460px; }
.kwa-single .kwa-body { padding: 0; }
.kwa-single .kwa-buy select + .kwa-add { width: auto; padding: 0 18px; }
.kwa-single .kwa-buy select + .kwa-add span { display: inline; }

/* Tombol keranjang melayang */
.kwa-fab { position: fixed; right: 20px; bottom: 20px; z-index: 9998; display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; background: var(--kwa-ink); color: #fff; cursor: pointer; font-weight: 600; box-shadow: 0 8px 24px rgba(28, 25, 23, .22); }
.kwa-fab[hidden] { display: none; }
.kwa-fab-n { min-width: 22px; height: 22px; border-radius: 11px; background: var(--kwa-accent); font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
.kwa-fab.bump { animation: kwa-bump .35s; }
@keyframes kwa-bump { 50% { transform: scale(1.08); } }

/* Laci keranjang */
.kwa-overlay { position: fixed; inset: 0; background: rgba(28, 25, 23, .45); z-index: 9998; }
.kwa-overlay[hidden] { display: none; }
.kwa-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 9999; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; }
.kwa-drawer.open { transform: none; }
.kwa-drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--kwa-line); }
.kwa-drawer h2 { margin: 0; font-size: 19px; }
.kwa-x { border: 0; background: var(--kwa-soft); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.kwa-drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px 20px; }
.kwa-lines { list-style: none; margin: 0; padding: 0; }
.kwa-lines li { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--kwa-line); }
.kwa-lines img { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--kwa-soft); }
.kwa-lines li > div { flex: 1; min-width: 0; }
.kwa-lines b { display: block; font-size: 14.5px; }
.kwa-lines li > span { font-size: 14px; font-weight: 600; white-space: nowrap; }
.kwa-lines small { display: block; color: var(--kwa-muted); font-size: 12.5px; }
.kwa-qty { display: inline-flex; align-items: center; border: 1px solid var(--kwa-line); border-radius: 999px; margin-top: 6px; }
.kwa-qty button { border: 0; background: none; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; color: var(--kwa-muted); }
.kwa-qty span { min-width: 22px; text-align: center; font-size: 14px; font-weight: 600; }
.kwa-line-total { font-weight: 600; font-size: 14px; white-space: nowrap; }
.kwa-form { margin-top: 18px; display: grid; gap: 12px; }
.kwa-form[hidden] { display: none; }
.kwa-form h3 { margin: 6px 0 0; font-size: 15px; }
.kwa-form label, .kwa-track-form label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: #44403c; margin: 0; }
.kwa-form small { font-weight: 400; color: var(--kwa-muted); }
.kwa-form input, .kwa-form select, .kwa-form textarea, .kwa-track-form input { width: 100%; border: 1px solid var(--kwa-line); border-radius: 10px; padding: 10px 12px; font-size: 15px; font-weight: 400; background: #fff; }
.kwa-form :focus, .kwa-track-form input:focus { outline: 2px solid var(--kwa-accent); outline-offset: -1px; border-color: transparent; }
.kwa-form .bad { border-color: #dc2626; }
.kwa-drawer footer { border-top: 1px solid var(--kwa-line); padding: 16px 20px 20px; }
.kwa-drawer footer[hidden] { display: none; }
.kwa-sum { display: flex; justify-content: space-between; font-size: 14px; color: #44403c; padding: 3px 0; }
.kwa-sum.total { font-size: 17px; font-weight: 700; color: var(--kwa-ink); padding-top: 8px; }
.kwa-btn { display: flex; width: 100%; align-items: center; justify-content: center; gap: 8px; height: 50px; margin-top: 12px; border: 0; border-radius: 12px; background: var(--kwa-accent); color: #fff !important; font-weight: 700; font-size: 15.5px; cursor: pointer; text-decoration: none !important; }
.kwa-btn:disabled { opacity: .6; cursor: wait; }
.kwa-err { background: #fef2f2; color: #b91c1c; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; margin: 10px 0 0; }
.kwa-err[hidden] { display: none; }
.kwa-muted { color: var(--kwa-muted); font-size: 13.5px; }
.kwa-done { text-align: center; padding: 40px 6px; }
.kwa-done[hidden] { display: none; }
.kwa-done-ic { width: 64px; height: 64px; border-radius: 50%; background: #dcfce7; color: #15803d; display: inline-grid; place-items: center; }
.kwa-done h3 { margin: 16px 0 8px; font-size: 20px; }

/* Lacak pesanan */
.kwa-track { max-width: 620px; }
.kwa-track-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.kwa-track-form .kwa-btn { margin: 0; height: 44px; padding: 0 18px; }
.kwa-track-card { margin-top: 24px; border: 1px solid var(--kwa-line); border-radius: var(--kwa-r); padding: 22px; background: #fff; }
.kwa-track-head { display: flex; justify-content: space-between; align-items: center; }
.kwa-track-head small { display: block; color: var(--kwa-muted); font-size: 12.5px; }
.kwa-track-head b { font-size: 19px; }
.kwa-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.kwa-steps { list-style: none; margin: 22px 0 8px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.kwa-steps li { position: relative; display: grid; justify-items: center; text-align: center; gap: 8px; font-size: 13px; color: var(--kwa-muted); }
.kwa-steps li::before { content: ""; position: absolute; top: 17px; left: -50%; width: 100%; height: 2px; background: var(--kwa-line); z-index: 0; }
.kwa-steps li:first-child::before { display: none; }
.kwa-steps li.done::before { background: var(--kwa-accent); }
.kwa-steps span { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--kwa-soft); }
.kwa-steps li.done { color: var(--kwa-ink); }
.kwa-steps li.done span { background: var(--kwa-accent); color: #fff; }
.kwa-steps small { display: block; font-size: 11.5px; color: var(--kwa-muted); }
.kwa-resi { background: var(--kwa-soft); border-radius: 10px; padding: 10px 14px; font-size: 14px; }

@media (max-width: 900px) { .kwa-grid { grid-template-columns: repeat(min(var(--kwa-cols, 3), 2), minmax(0, 1fr)); gap: 14px; } }
@media (max-width: 520px) {
  .kwa-body { padding: 12px; } .kwa-body h3 { font-size: 14.5px; } .kwa-desc { display: none; }
  .kwa-buy { flex-direction: column; } .kwa-buy select + .kwa-add { width: 100%; } .kwa-buy select + .kwa-add span { display: inline; }
  .kwa-track-form { grid-template-columns: 1fr; } .kwa-steps { font-size: 11px; }
}
