/* MyCart — landing page (vanilla CSS) */
:root {
  --accent: #fe2c55;
  --text: #161823; --muted: #8a8b91; --line: #eceef0; --bg: #f1f1f2; --card: #fff;
  --ok: #16a34a; --err: #dc2626;
  --radius: 12px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif; color: var(--text); background: var(--bg); line-height: 1.5; font-size: 15px; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { line-height: 1.25; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
[hidden] { display: none !important; }
.preview-bar { background: #111; color: #fff; text-align: center; font-size: .85rem; padding: 8px; }

/* ---------- Butang ---------- */
.btn-buy { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 12px 20px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .1s, filter .15s; }
.btn-buy:hover { filter: brightness(1.05); }
.btn-buy:active { transform: scale(.98); }
.btn-buy:disabled { background: #c4c5c9; cursor: not-allowed; }
.btn-buy small { font-weight: 500; font-size: .75rem; opacity: .9; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 22px; font-size: 1.08rem; }

/* ---------- Galeri ---------- */
.gallery { position: relative; background: #000; overflow: hidden; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; background: #fff; display: flex; align-items: center; justify-content: center; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-video, .slide-youtube { background: #000; }
.slide video, .slide iframe { width: 100%; height: 100%; border: 0; object-fit: contain; background: #000; }
.yt-lite { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; font-size: 1.6rem; display: grid; place-items: center; padding-left: 4px; }
.gallery-track.dragging { scroll-snap-type: none; cursor: grabbing; }
.gallery-track.dragging * { pointer-events: none; }
.gallery-track { cursor: grab; }
.gallery:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.dots { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); display: flex; gap: 5px; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.55); box-shadow: 0 0 2px rgba(0,0,0,.4); transition: width .2s, background .2s; }
.dots i.active { width: 18px; background: #fff; }
.thumbs button.is-video { position: relative; background: #111; }
.thumbs button.is-video::after { content: "▶"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: .9rem; background: rgba(0,0,0,.35); }
.slide-empty { color: var(--muted); background: #f5f5f5; }
.gallery-count { position: absolute; right: 12px; top: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; padding: 3px 10px; border-radius: 999px; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); font-size: 1.4rem; line-height: 1; cursor: pointer; display: none; }
.gallery-nav.prev { left: 10px; } .gallery-nav.next { right: 10px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px; background: var(--card); scrollbar-width: none; }
.thumbs button { flex: 0 0 56px; height: 56px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #f3f3f3; cursor: pointer; font-size: 1.1rem; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active { border-color: var(--accent); }

/* ---------- Harga & meta ---------- */
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { color: var(--accent); font-weight: 800; font-size: 1.6rem; letter-spacing: -.01em; }
.compare { color: var(--muted); font-size: .95rem; }
.discount { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-weight: 700; font-size: .78rem; padding: 2px 6px; border-radius: 4px; }
.meta-row { display: flex; gap: 14px; align-items: center; font-size: .88rem; margin-top: 6px; flex-wrap: wrap; }
.stars { color: #f5a524; }
.stars b { color: var(--text); }
.subtitle { color: #4b4d55; margin: 6px 0 0; }

/* ---------- Variasi & kuantiti ---------- */
.variants { margin: 14px 0; }
.variants .label, .qty-row .label { font-size: .9rem; color: #4b4d55; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #f7f7f8; font: inherit; font-size: .9rem; cursor: pointer; color: var(--text); }
.chip.active { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); color: var(--accent); font-weight: 600; }
.chip:disabled { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.qty-row { display: flex; justify-content: space-between; align-items: center; margin: 14px 0; }
.qty { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: #f5f5f6; font-size: 1.2rem; cursor: pointer; }
.checkout .qty input { width: 54px; margin: 0; padding: 8px 0; text-align: center; border: 0; border-radius: 0; font-weight: 600; -moz-appearance: textfield; box-shadow: none; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* ---------- Seksyen kandungan ---------- */
.block { padding: 18px 0; border-top: 1px solid var(--line); }
.block:first-child { border-top: 0; }
.block h2 { font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.features li { position: relative; padding-left: 30px; }
.features li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; display: grid; place-items: center; }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin: 0; }
.rating-pill { font-size: .8rem; background: #fff7e6; color: #b7791f; padding: 2px 8px; border-radius: 999px; }
.reviews { display: grid; gap: 12px; }
.review { background: #fafafa; border-radius: 10px; padding: 12px 14px; }
.review-head { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.review-head .stars-sm { margin-left: auto; color: #f5a524; font-size: .8rem; letter-spacing: 1px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; }
.review p { margin: 8px 0 0; font-size: .92rem; }
.faqs details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 8px; background: #fff; }
.faqs summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faqs summary::after { content: "+"; color: var(--muted); font-size: 1.2rem; line-height: 1; }
.faqs details[open] summary::after { content: "−"; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs p { margin: 10px 0 0; color: #4b4d55; }

/* ---------- Flash ---------- */
.flash-band { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #ff9a3c)); color: #fff; }
.flash-band .price, .flash-band .compare, .flash-band .discount { color: #fff; }
.flash-band .discount { background: rgba(255,255,255,.22); }
.flash-band .compare { opacity: .8; }
.countdown { text-align: right; line-height: 1.2; }
.countdown small { display: block; font-size: .72rem; opacity: .9; }
.countdown span { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.05rem; }
.flash-pill { display: inline-block; background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); padding: 6px 12px; border-radius: 999px; font-size: .85rem; margin-bottom: 12px; }
.flash-pill b { font-variant-numeric: tabular-nums; }

/* ---------- Template: TikTok ---------- */
.tt-wrap > :last-child { margin-bottom: 0; }
.tt-wrap { max-width: 520px; margin: 0 auto; background: var(--bg); }
.tt-card { background: var(--card); padding: 14px 16px; margin-bottom: 8px; }
.tt-title { font-size: 1.05rem; font-weight: 600; margin: 8px 0 0; }
.tt-info { padding: 4px 16px; }
.info-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font: inherit; color: inherit; }
.info-line:last-child { border-bottom: 0; }
.info-line div { display: flex; flex-direction: column; flex: 1; font-size: .9rem; }
.info-line small { font-size: .8rem; }
.info-btn { background: none; border: 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.ico { font-size: 1.2rem; width: 26px; text-align: center; }
.chev { color: var(--muted); font-size: 1.4rem; }
.tt-sections .block:first-child { padding-top: 4px; }

/* ---------- Buy bar (bawah) ---------- */
.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; align-items: stretch; padding: 10px 12px calc(10px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); max-width: 520px; margin: 0 auto; box-shadow: 0 -4px 20px rgba(0,0,0,.05); }
.buybar .btn-buy { flex: 1; }
.buybar-icon { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 56px; font-size: .7rem; color: #4b4d55; text-decoration: none; }
.buybar-icon svg { width: 24px; height: 24px; fill: #25d366; }

/* ---------- Template: Minimal ---------- */
.mn-top { background: #fff; border-bottom: 1px solid var(--line); padding: 16px 20px; font-weight: 800; font-size: 1.1rem; }
.mn-top a { text-decoration: none; }
.tpl-minimal { background: #fff; }
.mn-wrap { max-width: 1100px; margin: 0 auto; padding: 0 0 100px; }
.mn-grid { display: grid; grid-template-columns: 1fr; }
.mn-info { padding: 18px 16px; }
.mn-info h1 { font-size: 1.5rem; margin: 0; }
.mn-info .price-row { margin: 16px 0 6px; }
.mn-trust { list-style: none; padding: 0; margin: 16px 0 0; color: #4b4d55; font-size: .9rem; display: grid; gap: 6px; }
.mn-sections { padding: 0 16px; max-width: 760px; }
.mn-info > .btn-buy { display: none; }
.mobile-only { display: block; }

/* ---------- Template: Long-form ---------- */
.tpl-longform { background: #fff; }
.lf-wrap { max-width: 720px; margin: 0 auto; padding-bottom: 100px; }
.lf-hero { text-align: center; padding: 36px 20px 22px; }
.lf-hero h1 { font-size: clamp(1.6rem, 6vw, 2.4rem); margin: 0 0 10px; letter-spacing: -.02em; }
.lf-sub { font-size: 1.1rem; color: #4b4d55; margin: 0 auto; max-width: 560px; }
.lf-hero .meta-row { justify-content: center; }
.lf-wrap .gallery { border-radius: 0; }
.lf-offer { text-align: center; padding: 22px 20px; background: color-mix(in srgb, var(--accent) 6%, #fff); }
.lf-offer .price-row, .lf-final .price-row { justify-content: center; margin-bottom: 14px; }
.lf-offer .price, .lf-final .price { font-size: 2rem; }
.lf-sections { padding: 10px 20px; font-size: 1.02rem; }
.lf-sections .block h2 { font-size: 1.35rem; justify-content: center; text-align: center; }
.lf-stack { display: grid; gap: 0; }
.lf-final { text-align: center; padding: 34px 20px; margin: 20px; border-radius: 16px; border: 2px dashed var(--accent); }
.lf-final h2 { margin-top: 0; }

/* ---------- Sheet checkout ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; animation: fade .2s; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; padding: 8px 16px calc(20px + var(--safe-b)); max-width: 520px; margin: 0 auto; animation: up .25s ease-out; overscroll-behavior: contain; }
.sheet-handle { width: 40px; height: 4px; background: #d9d9dc; border-radius: 4px; margin: 4px auto 10px; }
.sheet-close { position: absolute; top: 10px; right: 12px; border: 0; background: #f1f1f2; width: 32px; height: 32px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; line-height: 1; }
.sheet-product { display: flex; gap: 12px; align-items: flex-end; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet-product img { width: 84px; height: 84px; object-fit: cover; border-radius: 8px; margin-top: -26px; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.sheet-title { font-size: .9rem; font-weight: 600; padding-right: 36px; }
.sheet .price { font-size: 1.3rem; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
body.sheet-open { overflow: hidden; }

.checkout fieldset { border: 0; padding: 0; margin: 16px 0; }
.checkout legend { font-weight: 700; margin-bottom: 10px; font-size: .95rem; }
.checkout label { display: block; font-size: .82rem; color: #4b4d55; margin-bottom: 10px; }
.checkout input, .checkout select { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #dcdde0; border-radius: 8px; font: inherit; font-size: 16px; color: var(--text); background: #fff; }
.checkout input:focus, .checkout select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.checkout .invalid { border-color: var(--err); }
.row-2 { display: grid; grid-template-columns: 1fr; gap: 0 10px; }
.row-3 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.row-3 label:last-child { grid-column: 1 / -1; }
.couriers { display: grid; gap: 8px; }
.courier { display: flex !important; align-items: center; gap: 10px; padding: 12px; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; margin: 0 !important; color: var(--text) !important; font-size: .9rem !important; }
.courier input { width: auto !important; margin: 0 !important; accent-color: var(--accent); }
.courier .c-name { flex: 1; }
.courier .c-name small { display: block; color: var(--muted); }
.courier .c-price { font-weight: 700; }
.courier:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.loading-dots::after { content: "…"; animation: dots 1s steps(3) infinite; }
@keyframes dots { 0% { content: "."; } 33% { content: ".."; } 66% { content: "..."; } }
.summary { background: #fafafa; border-radius: 10px; padding: 12px 14px; font-size: .92rem; margin: 6px 0 14px; }
.summary div { display: flex; justify-content: space-between; padding: 3px 0; }
.summary .total { border-top: 1px dashed #ddd; margin-top: 6px; padding-top: 8px; font-weight: 800; font-size: 1.05rem; }
.summary .total span:last-child { color: var(--accent); }
.form-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }
.secure { text-align: center; color: var(--muted); font-size: .8rem; margin: 10px 0 0; }

/* ---------- Katalog, track, halaman status ---------- */
.catalog { max-width: 1100px; margin: 0 auto; padding: 20px 14px 60px; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-item { background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cat-img { aspect-ratio: 1; background: #f3f3f3; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-title { padding: 8px 10px 0; font-size: .9rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cat-item { display: flex; flex-direction: column; }
.cat-price { padding: 4px 10px 10px; color: var(--accent); font-weight: 700; font-size: .95rem; }
.cat-price:has(+ .cat-meta) { padding-bottom: 2px; }
.cat-meta { padding: 0 10px 10px; color: var(--muted); font-size: .78rem; }
.cat-price s { color: var(--muted); font-weight: 400; font-size: .8rem; }
.center-page { max-width: 480px; margin: 0 auto; padding: 60px 20px; text-align: center; }
.status-card { background: #fff; border-radius: 16px; padding: 28px 22px; margin: 24px auto; max-width: 480px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06); }
.status-icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; color: #fff; background: var(--ok); }
.status-icon.wait { background: #f59e0b; }
.status-icon.fail { background: var(--err); }
.status-card table { width: 100%; text-align: left; font-size: .92rem; margin: 18px 0; border-collapse: collapse; }
.status-card th { color: var(--muted); font-weight: 400; padding: 6px 0; width: 40%; vertical-align: top; }
.status-card td { padding: 6px 0; font-weight: 500; }
.track-form { display: grid; gap: 10px; text-align: left; margin-top: 16px; }
.track-form input { padding: 12px; border: 1px solid #dcdde0; border-radius: 8px; font: inherit; font-size: 16px; }
.site-foot { display: flex; justify-content: center; gap: 16px; padding: 20px 16px calc(110px + var(--safe-b)); color: var(--muted); font-size: .82rem; }
.site-foot a { color: inherit; }
.tpl-catalog .site-foot, .tpl-status .site-foot { padding-bottom: 30px; }

/* ---------- Desktop ---------- */
@media (min-width: 600px) {
  .row-2 { grid-template-columns: 1fr 1fr; }
  .row-3 { grid-template-columns: 110px 1fr 1fr; }
  .row-3 label:last-child { grid-column: auto; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 900px) {
  .gallery-nav { display: block; }
  .tpl-tiktok { background: #e9e9eb; }
  .tt-wrap { margin-top: 24px; border-radius: 16px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,.08); background: var(--card); }
  .tt-wrap .tt-card { margin-bottom: 0; border-bottom: 8px solid var(--bg); }
  .tt-wrap .tt-card:last-child { border-bottom: 0; }
  .tpl-tiktok .site-foot { padding-bottom: 140px; }
  .buybar { bottom: 16px; border-radius: 14px; border: 1px solid var(--line); }
  .mn-grid { grid-template-columns: 1.1fr 1fr; gap: 40px; padding: 30px 20px; align-items: start; }
  .mn-media { position: sticky; top: 20px; }
  .mn-media .gallery { border-radius: 14px; }
  .mn-info { padding: 0; }
  .mn-info h1 { font-size: 2rem; }
  .mn-info > .btn-buy { display: flex; margin-top: 18px; }
  .mn-sections { padding: 0 20px; }
  .mobile-only { display: none; }
  .tpl-minimal .site-foot, .tpl-longform .site-foot { padding-bottom: 30px; }
  .sheet { top: 50%; bottom: auto; transform: translateY(-50%); border-radius: 16px; max-height: 90vh; animation: fade .2s; }
  .sheet-handle { display: none; }
  .sheet-product img { margin-top: 0; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------- Butang beli (gaya boleh ubah) ---------- */
.btn-buy { --btn: var(--accent); background: var(--btn); }
.bb-label { display: block; }
.bb-price { display: block; font-size: .78rem; font-weight: 500; opacity: .95; }
.bb-price s { margin-left: 6px; opacity: .75; font-weight: 400; }
.bb-inline { flex-direction: row; gap: 10px; }
.bb-inline .bb-price { font-size: 1rem; font-weight: 700; padding-left: 10px; border-left: 1px solid rgba(255,255,255,.4); }
.bb-gradient { background: linear-gradient(100deg, var(--btn), color-mix(in srgb, var(--btn) 60%, #ff9a3c)); }
.bb-outline { background: #fff; color: var(--btn); box-shadow: inset 0 0 0 2px var(--btn); }
.bb-outline.bb-inline .bb-price { border-color: color-mix(in srgb, var(--btn) 40%, transparent); }
.bb-pill { border-radius: 999px; }
.bb-glow { box-shadow: 0 6px 20px color-mix(in srgb, var(--btn) 45%, transparent); animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--btn) 20%, transparent), 0 6px 24px color-mix(in srgb, var(--btn) 55%, transparent); } }
.btn-buy:disabled { background: #c4c5c9; color: #fff; box-shadow: none; animation: none; }
.price small { font-size: .55em; font-weight: 600; opacity: .8; }

/* ---------- Pilih variasi (banyak) ---------- */
.vlist { margin-top: 14px !important; }
.vrow:not(.qty-row) { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 8px; transition: border-color .15s, background .15s; }
.vrow.picked { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.vrow.is-out { opacity: .5; }
.vname { display: flex; flex-direction: column; min-width: 0; }
.vname b { font-weight: 600; font-size: .92rem; }
.vname small { color: var(--muted); font-size: .8rem; }
.qty-sm button { width: 34px; height: 34px; }
.checkout .qty-sm input { width: 42px; }
.qty button:disabled { opacity: .35; cursor: not-allowed; }
.vlimit { margin: 4px 0 0; }
.vlimit.hit { color: var(--accent); font-weight: 600; }
.variant-preview { margin: 16px 0; }
.variant-preview .label { font-size: .88rem; color: #4b4d55; margin-bottom: 8px; }
.chip.is-out { opacity: .45; text-decoration: line-through; }
.lf-offer .variant-preview .chips { justify-content: center; }
.mn-cta { margin-top: 18px; }
.pay-opt .pay-ico { font-size: 1.3rem; }

/* ---------- Halaman bayaran manual ---------- */
.pay-amount { background: color-mix(in srgb, var(--accent) 8%, #fff); border-radius: 12px; padding: 14px; margin: 16px 0; }
.pay-amount small { display: block; color: var(--muted); font-size: .8rem; }
.pay-amount b { font-size: 1.9rem; color: var(--accent); letter-spacing: -.01em; }
.pay-qr { margin: 0 auto 16px; max-width: 260px; }
.pay-qr img { width: 100%; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.pay-qr figcaption { font-size: .8rem; color: var(--muted); margin-top: 6px; }
.bank-box { border: 1px solid var(--line); border-radius: 12px; text-align: left; overflow: hidden; }
.bank-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.bank-row:last-child { border-bottom: 0; }
.bank-row span { color: var(--muted); width: 90px; flex-shrink: 0; }
.bank-row b { flex: 1; word-break: break-all; }
.copy-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; padding: 4px 10px; font: inherit; font-size: .78rem; cursor: pointer; }
.pay-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px; padding: 10px 12px; font-size: .88rem; text-align: left; }
.receipt-box { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); }
.receipt-box h2 { font-size: 1rem; margin: 0 0 12px; display: flex; justify-content: center; align-items: center; gap: 8px; }
.req { background: var(--err); color: #fff; font-size: .7rem; padding: 2px 8px; border-radius: 999px; }
.receipt-form { display: grid; gap: 10px; }
.file-pick { display: block; border: 2px dashed #d5d6da; border-radius: 10px; padding: 18px 12px; cursor: pointer; color: #4b4d55; font-size: .9rem; }
.file-pick:hover { border-color: var(--accent); }
.file-pick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.file-pick:focus-within { outline: 2px solid var(--accent); }
.btn-wa { display: flex; align-items: center; justify-content: center; margin-top: 10px; padding: 12px; border-radius: 10px; background: #25d366; color: #fff; font-weight: 700; text-decoration: none; }
.form-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; border-radius: 8px; padding: 10px 12px; font-size: .88rem; margin-bottom: 12px; }

/* ---------- Ulasan (semak pesanan) ---------- */
.review-form { display: grid; gap: 10px; text-align: left; margin-top: 22px; padding-top: 18px; border-top: 1px dashed var(--line); }
.review-form h2 { font-size: 1rem; margin: 0; text-align: center; }
.review-form input, .review-form textarea { padding: 12px; border: 1px solid #dcdde0; border-radius: 8px; font: inherit; font-size: 16px; width: 100%; }
.star-input { border: 0; margin: 0 auto; padding: 0; display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; }
.star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.star-input label { font-size: 2.1rem; color: #d9d9dc; cursor: pointer; line-height: 1; transition: color .1s; }
.star-input input:checked ~ label, .star-input label:hover, .star-input label:hover ~ label { color: #f5a524; }
.star-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 4px; }
.review-state { margin-top: 16px; }
.track-reset { margin-top: 18px; }
.linkish { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.verified { font-size: .7rem; color: var(--ok); font-weight: 600; margin-left: 4px; }
/* Pilihan bayaran */
.pay-list { display: grid; gap: 8px; }
.pay-opt .pay-ico { font-size: 1.25rem; width: 26px; text-align: center; flex-shrink: 0; }
/* Footer produk */
.site-foot { flex-wrap: wrap; align-items: center; max-width: 720px; margin: 0 auto; text-align: center; }
.site-foot.has-wa { justify-content: space-between; text-align: left; gap: 12px 16px; }
.foot-text { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; line-height: 1.5; }
.has-wa .foot-text { justify-content: flex-start; flex: 1 1 220px; }
.foot-wa { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: #25d366; color: #fff !important; font-weight: 600; font-size: .85rem; text-decoration: none; flex-shrink: 0; }
.foot-wa svg { width: 18px; height: 18px; fill: #fff; }
.foot-wa:hover { filter: brightness(.95); }
.site-foot.has-wa { flex-wrap: nowrap; }
.has-wa .foot-text { flex: 1 1 auto; min-width: 0; }
@media (max-width: 480px) { .foot-wa { padding: 8px 12px; font-size: .8rem; } }
.powered-by { opacity: .75; }

/* ---------- Mod e-commerce (troli) ---------- */
.shop-top { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; z-index: 20; }
.shop-top-cart { font-size: .9rem; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.cat-item { position: relative; }
.cat-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; flex: 1; }
.cat-img { position: relative; }
.cat-badge { position: absolute; top: 8px; left: 8px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.cat-out { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.6); font-weight: 700; color: #555; }
.cat-add { margin: 0 10px 10px; padding: 8px; border: 1px solid var(--accent); border-radius: 8px; background: #fff; color: var(--accent); font: inherit; font-weight: 700; font-size: .85rem; text-align: center; text-decoration: none; cursor: pointer; }
.cat-add:disabled { opacity: .5; cursor: not-allowed; }
.cart-fab { position: fixed; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); text-decoration: none; }
.tpl-catalog .cart-fab { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
.cart-fab svg { width: 26px; height: 26px; fill: currentColor; }
.cart-count { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #111; color: #fff; font-size: .72rem; font-weight: 700; display: inline-grid; place-items: center; }
.cart-fab .cart-count { position: absolute; top: -4px; right: -4px; border: 2px solid #fff; }
.cart-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-cart { padding: 12px 16px; border: 2px solid var(--accent); border-radius: 10px; background: #fff; color: var(--accent); font: inherit; font-weight: 700; cursor: pointer; }
.btn-cart:disabled, .cart-actions .btn-buy:disabled { opacity: .5; cursor: not-allowed; }
.mc-toast { position: fixed; left: 50%; bottom: calc(110px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); background: #111; color: #fff; padding: 10px 18px; border-radius: 999px; font-size: .9rem; opacity: 0; pointer-events: none; transition: all .2s; z-index: 60; }
.mc-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cart-page { max-width: 720px; margin: 0 auto; padding: 16px 16px 120px; }
.cart-page h1 { font-size: 1.3rem; margin: 6px 0 14px; }
.cart-list { background: #fff; border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line:last-child { border-bottom: 0; }
.cart-line img, .cart-line .ph { width: 64px; height: 64px; border-radius: 8px; object-fit: cover; background: #f3f3f3; }
.cart-line .t { font-weight: 600; font-size: .92rem; text-decoration: none; color: inherit; }
.cart-line .v { color: var(--muted); font-size: .82rem; }
.cart-line .u { color: var(--accent); font-weight: 700; font-size: .9rem; }
.cart-line .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.cart-line .rm { background: none; border: 0; color: var(--muted); font-size: .8rem; cursor: pointer; text-decoration: underline; }
.cart-empty { text-align: center; padding: 40px 16px; background: #fff; border-radius: 12px; }
.cart-page .checkout { background: #fff; border-radius: 12px; padding: 16px; }
@media (min-width: 600px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } .catalog { max-width: 1100px; margin: 0 auto; } }
.cart-line .qty input { width: 42px; margin: 0; padding: 6px 0; text-align: center; border: 0; border-radius: 0; font: inherit; font-weight: 600; -moz-appearance: textfield; background: #fff; }
.cart-line .side b { font-size: .9rem; }
.cart-line .t { display: block; }

/* ---------- Template: Mini Site (HTML sendiri dalam iframe) ---------- */
body.tpl-minisite { overflow: hidden; background: #fff; height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
.ms-frame { flex: 1; display: block; width: 100%; min-height: 0; border: 0; background: #fff; }
.tpl-minisite .site-foot { display: none; }
.tpl-minisite .preview-bar { flex: 0 0 auto; }
.ms-buybar .buybar { background: color-mix(in srgb, #fff 92%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: 16px 16px 0 0; }

/* ---------- Template: Gaya Shopee ---------- */
.tpl-shopee { background: #f5f5f5; }
.tpl-shopee .cart-fab { display: none; }
.sp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; max-width: 520px; margin: 0 auto; padding: 8px 10px; background: #fff; border-bottom: 1px solid var(--line); }
.sp-top-btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; color: var(--accent); text-decoration: none; font-size: 1.8rem; line-height: 1; }
.sp-top-btn svg { width: 24px; height: 24px; fill: var(--accent); }
.sp-top-name { flex: 1; text-align: center; font-weight: 700; font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-top-cart .cart-count { position: absolute; top: 0; right: -2px; background: var(--accent); border: 2px solid #fff; }
.sp-wrap { max-width: 520px; margin: 0 auto; }
.sp-card { background: #fff; padding: 12px 14px; margin-bottom: 8px; }
.sp-flash { margin: 0; }
.sp-head { padding-top: 14px; }
.sp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.sp-cur { color: var(--accent); font-size: 1.55rem; font-weight: 700; letter-spacing: -.01em; }
.sp-price s { color: var(--muted); font-size: .9rem; }
.sp-off { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); font-size: .75rem; font-weight: 700; padding: 1px 5px; border-radius: 2px; }
.sp-title { font-size: 1rem; font-weight: 500; line-height: 1.4; margin: 6px 0 0; }
.sp-tag { display: inline-block; vertical-align: 2px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; padding: 1px 5px; border-radius: 2px; }
.sp-sub { color: #555; font-size: .88rem; margin: 6px 0 0; }
.sp-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: .82rem; color: #555; }
.sp-stats > span + span { padding-left: 14px; border-left: 1px solid var(--line); }
.sp-star { color: #ffb400; }
.sp-dim { color: var(--muted); }
.sp-out { color: var(--err); font-weight: 600; }
.sp-rows { padding: 2px 14px; }
.sp-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; }
.sp-row:last-child { border-bottom: 0; }
button.sp-row { cursor: pointer; }
.sp-row-k { flex: 0 0 92px; color: var(--muted); font-size: .85rem; }
.sp-row-v { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: .88rem; }
.sp-row-v small { color: var(--muted); font-size: .78rem; }
.sp-vchips { flex-direction: row; flex-wrap: wrap; gap: 6px; }
.sp-vchips i { font-style: normal; font-size: .78rem; padding: 3px 8px; border: 1px solid var(--line); border-radius: 2px; background: #fafafa; }
.sp-store { display: flex; align-items: center; gap: 12px; }
.sp-logo { width: 46px; height: 46px; flex: 0 0 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; }
.sp-store-i { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sp-store-i b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-store-i small { color: var(--muted); font-size: .78rem; }
.sp-outline { border: 1px solid var(--accent); color: var(--accent); padding: 6px 12px; border-radius: 2px; font-size: .82rem; text-decoration: none; white-space: nowrap; }
.sp-h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: .88rem; }
.sp-h h2 { font-size: 1rem; margin: 0 auto 0 0; }
.sp-h a { color: var(--accent); text-decoration: none; font-size: .85rem; }
.sp-h-pad { padding: 4px 14px 0; }
.sp-rev { padding: 12px 0; border-top: 1px solid var(--line); }
.sp-rev-h { display: flex; align-items: center; gap: 8px; font-size: .85rem; }
.sp-rev-h .avatar { width: 24px; height: 24px; font-size: .7rem; }
.sp-rev-s { font-size: .75rem; letter-spacing: 1px; margin: 4px 0 0 32px; }
.sp-rev p { margin: 4px 0 0 32px; font-size: .9rem; }
.sp-more-rev summary { list-style: none; cursor: pointer; text-align: center; color: var(--accent); font-size: .88rem; padding: 10px 0 2px; border-top: 1px solid var(--line); }
.sp-more-rev summary::-webkit-details-marker { display: none; }
.sp-more-rev[open] summary { display: none; }
.sp-spec { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: .9rem; }
.sp-spec li { padding-left: 16px; position: relative; }
.sp-spec li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.sp-desc { font-size: .92rem; color: #333; }
.sp-others { padding: 4px 0 12px; }
.sp-others .cat-grid { padding: 0 8px; gap: 8px; }
.sp-others .cat-item { border-radius: 4px; }
.tpl-shopee .site-foot { padding-bottom: calc(80px + var(--safe-b)); }
.sp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; max-width: 520px; margin: 0 auto; display: flex; align-items: stretch; height: calc(56px + var(--safe-b)); padding-bottom: var(--safe-b); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(0,0,0,.05); }
.sp-bar-ico { flex: 0 0 60px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: .68rem; color: #555; text-decoration: none; border-right: 1px solid var(--line); }
.sp-bar-ico svg { width: 22px; height: 22px; fill: var(--accent); }
.sp-bar button { flex: 1; border: 0; font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; }
.sp-bar-cart { background: color-mix(in srgb, var(--accent) 12%, #fff); color: var(--accent); font-size: .78rem !important; }
.sp-bar-cart svg { width: 20px; height: 20px; fill: currentColor; }
.sp-bar-buy { background: var(--accent); color: #fff; font-weight: 700; font-size: .98rem; }
.sp-bar-buy small { font-weight: 500; font-size: .76rem; opacity: .92; }
.sp-bar button:disabled { background: #c4c5c9; color: #fff; cursor: not-allowed; }
@media (min-width: 521px) { .sp-card { border-radius: 4px; } }

/* ---------- Kedai capai had order: "Sila hubungi penjual" ---------- */
.btn-closed { background: #c4c5c9 !important; cursor: not-allowed; }
a.btn-closed-wa { background: #25d366 !important; color: #fff; text-decoration: none; }
.btn-closed-wa .bb-price, .btn-closed .bb-price { font-weight: 500; font-size: .76rem; opacity: .95; }
.sp-bar .sp-bar-closed { flex: 1; border-radius: 0; height: 100%; padding: 0 12px; }
.mc-nudge { animation: mc-nudge .5s ease 2; }
@keyframes mc-nudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

/* Halaman Terma kedai */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 24px 18px 40px; background: #fff; line-height: 1.7; color: #374151; }
.legal-wrap h1 { font-size: 1.5rem; margin: 0 0 4px; color: var(--text); }
.legal-wrap h2 { font-size: 1.05rem; margin: 24px 0 8px; color: var(--text); }
.legal-date { color: var(--muted); font-size: .85rem; margin: 0 0 18px; }
.legal-note { margin-top: 28px; padding: 12px 14px; background: #f7f7f8; border-radius: 10px; font-size: .85rem; color: var(--muted); }
.agree-row { display: flex !important; align-items: flex-start; gap: 10px; margin: 6px 0 14px !important; font-size: .85rem !important; color: #4b4d55 !important; }
.checkout .agree-row input { display: inline-block; width: 18px; height: 18px; margin: 2px 0 0; flex: 0 0 18px; accent-color: var(--accent); }
.agree-row a { color: var(--accent); }
.btn-back-shop { display: block; text-align: center; margin-top: 14px; padding: 10px; color: var(--muted); text-decoration: none; font-size: .9rem; } .btn-back-shop:hover { color: var(--text); }

/* ---------- Kempen derma ---------- */
.tpl-donation { background: var(--bg); }
.dn-wrap { max-width: 560px; margin: 0 auto; padding-bottom: 8px; }
.dn-hero img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.dn-card { background: var(--card); padding: 18px 16px; margin-bottom: 8px; }
.dn-card h2 { font-size: 1rem; margin: 18px 0 10px; }
.dn-card h2:first-child { margin-top: 0; }
.dn-head h1 { font-size: 1.35rem; line-height: 1.3; margin: 8px 0 4px; }
.dn-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, #fff); padding: 3px 10px; border-radius: 999px; }
.dn-org { color: var(--muted); font-size: .88rem; margin: 6px 0 0; }
.dn-progress { margin-top: 16px; }
.dn-raised b { font-size: 1.6rem; color: var(--accent); }
.dn-raised span { color: var(--muted); font-size: .9rem; }
.dn-bar { height: 10px; background: #eceef1; border-radius: 6px; overflow: hidden; margin: 10px 0; }
.dn-bar i { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.dn-stats { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: .85rem; }
.dn-stats b { color: var(--text); }
.dn-amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.dn-amt { border: 1.5px solid var(--line); background: var(--card); border-radius: 10px; padding: 12px 6px; font: inherit; font-weight: 700; color: var(--text); cursor: pointer; }
.dn-amt.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); color: var(--accent); }
.dn-form label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.dn-form input:not([type=checkbox]):not([type=radio]), .dn-form textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; color: var(--text); background: var(--card); }
.dn-form input:focus, .dn-form textarea:focus { outline: none; border-color: var(--accent); }
.dn-own-in { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; margin-top: 4px; background: var(--card); }
.dn-own-in span { padding: 0 4px 0 12px; font-weight: 700; color: var(--text); }
.dn-form .dn-own-in input[name=amount] { border: 0; margin: 0; padding-left: 4px; font-size: 1.1rem; font-weight: 700; }
.dn-own-in:focus-within { border-color: var(--accent); }
.dn-form .agree-row { display: flex; gap: 8px; align-items: flex-start; color: var(--text); }
.dn-form .agree-row input { margin-top: 3px; accent-color: var(--accent); }
.dn-form .pay-list { display: grid; gap: 8px; margin-bottom: 14px; }
.dn-total { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.dn-total b { font-size: 1.3rem; }
.dn-closed { text-align: center; padding: 18px 8px; display: grid; gap: 4px; }
.dn-closed span { color: var(--muted); font-size: .9rem; }
.dn-donors { list-style: none; margin: 0; padding: 0; }
.dn-donors li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.dn-donors li:first-child { border-top: 0; }
.dn-donors li > div { flex: 1; min-width: 0; font-size: .9rem; }
.dn-donors p { margin: 4px 0 0; color: var(--muted); font-style: italic; font-size: .88rem; }
.dn-av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, #fff); color: var(--accent); display: grid; place-items: center; font-weight: 700; }
.dn-amt-s { font-weight: 700; white-space: nowrap; }
.dn-float { position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + var(--safe-b)); background: var(--card); box-shadow: 0 -2px 12px rgba(0,0,0,.08); z-index: 20; }
.dn-float .btn-buy { max-width: 528px; margin: 0 auto; display: flex; }

/* ---------- Laman utama: template Moden ---------- */
.tpl-home-modern { background: #f7f7f8; }
.hm-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hm-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.hm-brand b { font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-logo { width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.hm-nav { display: flex; align-items: center; gap: 18px; font-size: .9rem; }
.hm-nav a { color: var(--text); text-decoration: none; opacity: .8; }
.hm-nav a:hover { opacity: 1; color: var(--accent); }
.hm-cart { opacity: 1 !important; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; }
.hm-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 85%, #fff) 0%, var(--accent) 45%, color-mix(in srgb, var(--accent) 60%, #000) 100%); }
.hm-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.6)); }
.hm-hero-in { position: relative; z-index: 1; max-width: 1100px; margin: 0 auto; padding: 72px 20px 64px; }
.hm-hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.1; margin: 0 0 10px; letter-spacing: -.02em; }
.hm-hero p { font-size: clamp(1rem, 2.4vw, 1.2rem); margin: 0; max-width: 620px; opacity: .92; }
.hm-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.hm-btn { display: inline-flex; align-items: center; padding: 12px 22px; border-radius: 999px; background: #fff; color: var(--accent); font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.hm-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); box-shadow: none; }
.hm-trust { max-width: 1100px; margin: -26px auto 0; position: relative; z-index: 2; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.hm-trust > div { background: #fff; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.hm-trust span { grid-row: span 2; font-size: 1.4rem; }
.hm-trust b { font-size: .9rem; }
.hm-trust small { color: var(--muted); font-size: .78rem; }
.hm-main { max-width: 1100px; margin: 0 auto; padding: 8px 16px 40px; }
.hm-sec { margin-top: 36px; }
.hm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.hm-sec h2 { font-size: 1.3rem; margin: 0; letter-spacing: -.01em; }
.hm-sec h2 small { color: var(--muted); font-weight: 500; font-size: .9rem; }
.hm-tools { display: flex; gap: 8px; }
.hm-tools input, .hm-tools select { padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .9rem; background: #fff; }
.hm-tools input { width: 200px; }
.hm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.hm-card { background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(0,0,0,.05); transition: transform .15s, box-shadow .15s; }
.hm-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.08); }
.hm-card[hidden] { display: none; }
.hm-card-link { color: inherit; text-decoration: none; flex: 1; display: flex; flex-direction: column; }
.hm-img { position: relative; aspect-ratio: 1; background: #f0f0f2; display: grid; place-items: center; }
.hm-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-img > span:first-child:not(.hm-badge) { font-size: 2rem; font-weight: 800; color: #c9cad0; }
.hm-badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; }
.hm-out { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255,255,255,.7); font-weight: 700; color: #555; }
.hm-body { padding: 10px 12px 12px; }
.hm-body h3 { font-size: .92rem; font-weight: 600; margin: 0 0 6px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-price { color: var(--accent); font-weight: 800; }
.hm-price s { color: var(--muted); font-weight: 400; font-size: .8rem; }
.hm-sold { color: var(--muted); font-size: .76rem; margin-top: 2px; }
.hm-add { margin: 0 12px 12px; padding: 9px; border-radius: 10px; border: 1.5px solid var(--accent); background: #fff; color: var(--accent); font: inherit; font-weight: 700; font-size: .85rem; text-align: center; text-decoration: none; cursor: pointer; }
.hm-add:hover { background: var(--accent); color: #fff; }
.hm-add:disabled { opacity: .5; cursor: not-allowed; }
.hm-camps { display: grid; grid-template-columns: 1fr; gap: 12px; }
.hm-camp { display: grid; grid-template-columns: 120px 1fr; background: #fff; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.hm-camp-img { background: #f0f0f2; }
.hm-camp-img img { width: 100%; height: 100%; object-fit: cover; }
.hm-camp-body { padding: 12px 14px; display: grid; gap: 6px; }
.hm-camp-body h3 { margin: 0; font-size: 1rem; }
.hm-camp-raised b { color: var(--accent); font-size: 1.1rem; }
.hm-camp-raised span, .hm-camp-body small { color: var(--muted); font-size: .82rem; }
.hm-camp .dn-bar { margin: 0; height: 8px; }
.hm-camp-cta { color: var(--accent); font-weight: 700; font-size: .88rem; }
.hm-about { background: #fff; border-radius: 16px; padding: 22px; }
.hm-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.hm-foot { background: #111318; color: #c9ccd3; margin-top: 20px; }
.hm-foot-in { max-width: 1100px; margin: 0 auto; padding: 28px 20px 16px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hm-foot-in b { color: #fff; display: block; font-size: 1.05rem; }
.hm-foot-in small { display: block; color: #8b8f99; margin-top: 2px; }
.hm-foot-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: .9rem; }
.hm-foot a { color: #c9ccd3; }
.hm-copy { max-width: 1100px; margin: 0 auto; padding: 14px 20px calc(18px + var(--safe-b)); border-top: 1px solid #23262d; font-size: .8rem; color: #8b8f99; display: flex; gap: 10px; flex-wrap: wrap; }
.hm-copy a { color: #8b8f99; }
.tpl-home-modern .cart-fab { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 640px) { .hm-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } .hm-camps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .hm-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) { .hm-nav a:not(.hm-cart) { display: none; } .hm-trust { margin: -22px 12px 0; grid-template-columns: 1fr 1fr; } .hm-tools { width: 100%; } .hm-tools input { flex: 1; width: auto; } .hm-camp { grid-template-columns: 96px 1fr; } }
.hm-about h2 { margin-bottom: 10px; }

/* v0.20 — Kupon checkout */
.coupon-box { margin: 4px 0 10px; }
.coupon-toggle { background: none; border: 0; padding: 4px 0; color: var(--accent, #fe2c55); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; margin: 0; }
.coupon-row button { flex: 0 0 auto; padding: 0 18px; border-radius: 10px; border: 0; background: #111827; color: #fff; font-weight: 700; cursor: pointer; }
.coupon-applied { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1.5px dashed #16a34a; background: #f0fdf4; border-radius: 10px; font-size: .9rem; }
.coupon-applied small { color: #15803d; }
.coupon-applied button { background: none; border: 0; color: #64748b; text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.coupon-msg { display: block; margin-top: 6px; font-size: .82rem; color: #15803d; }
.coupon-msg.bad { color: #dc2626; }
.summary .discount-row span:last-child { color: #16a34a; font-weight: 700; }
.summary .discount-row small { color: #64748b; font-weight: 400; }
/* Pakej derma */
.dn-pkgs { display: grid; gap: 8px; margin-bottom: 14px; }
.dn-pkg { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 13px 14px; font: inherit; color: var(--text); cursor: pointer; }
.dn-pkg span { font-weight: 600; }
.dn-pkg b { white-space: nowrap; color: var(--accent); }
.dn-pkg.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); box-shadow: 0 0 0 1px var(--accent) inset; }
.dn-or { font-size: .92rem !important; color: var(--muted); font-weight: 600; }

/* ---------- Logo kedai (auto saiz) ---------- */
.shop-logo-img { display: block; height: 34px; width: auto; max-width: 200px; object-fit: contain; }
.shop-brand { display: inline-flex; align-items: center; gap: 6px; }
.hm-brand .shop-logo-img { height: 38px; max-width: 220px; }
.sp-top-name .shop-logo-img { height: 26px; max-width: 160px; margin: 0 auto; }

/* ---------- Template laman utama: Butik ---------- */
.tpl-butik { --bk-ink: #1b1b1b; --bk-soft: #f7f4ef; --bk-line: #e7e2da; --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif; background: #fff; color: var(--bk-ink); }
.bk-notice { background: var(--bk-ink); color: #fff; text-align: center; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; padding: 9px 16px; }
.bk-top { position: sticky; top: 0; z-index: 30; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 14px 20px; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--bk-line); }
.bk-nav { display: flex; gap: 20px; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.bk-nav a { color: var(--bk-ink); text-decoration: none; }
.bk-nav a:hover { color: var(--accent); }
.bk-nav-r { justify-content: flex-end; }
.bk-brand { display: flex; justify-content: center; text-decoration: none; color: var(--bk-ink); }
.bk-brand span { font-family: var(--serif); font-size: 1.5rem; letter-spacing: .04em; white-space: nowrap; }
.bk-brand .shop-logo-img { height: 44px; max-width: 220px; }
.bk-cart { font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.bk-show-m { display: none; }
.bk-hero { position: relative; min-height: 46vh; display: grid; place-items: center; text-align: center; background: var(--bk-soft); overflow: hidden; }
.bk-hero.has-img { min-height: 62vh; color: #fff; }
.bk-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bk-hero.has-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.45)); }
.bk-hero-in { position: relative; z-index: 1; padding: 64px 20px; max-width: 760px; }
.bk-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.08; margin: 0 0 26px; letter-spacing: -.01em; }
.bk-eyebrow { font-size: .76rem; letter-spacing: .22em; text-transform: uppercase; margin: 0 0 14px; opacity: .85; }
.bk-btn { display: inline-block; padding: 14px 34px; border: 1.5px solid currentColor; color: inherit; text-decoration: none; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; transition: background .2s, color .2s; }
.bk-hero:not(.has-img) .bk-btn { background: var(--bk-ink); color: #fff; border-color: var(--bk-ink); }
.bk-btn:hover { background: #fff; color: var(--bk-ink); }
.bk-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-bottom: 1px solid var(--bk-line); }
.bk-trust > div { padding: 18px 20px; text-align: center; border-right: 1px solid var(--bk-line); }
.bk-trust > div:last-child { border-right: 0; }
.bk-trust b { display: block; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; }
.bk-trust small { color: var(--muted); font-size: .82rem; }
.bk-main { max-width: 1240px; margin: 0 auto; padding: 0 20px 56px; }
.bk-sec { margin-top: 56px; }
.bk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; border-bottom: 1px solid var(--bk-line); padding-bottom: 12px; }
.bk-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 3.4vw, 2rem); margin: 0; }
.bk-head h2 small { font-family: inherit; color: var(--muted); font-size: .9rem; }
.bk-tools { display: flex; gap: 8px; }
.bk-tools input, .bk-tools select { padding: 9px 12px; border: 1px solid var(--bk-line); border-radius: 0; font: inherit; font-size: .88rem; background: #fff; }
.bk-tools input { width: 180px; }
.bk-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
.bk-card { position: relative; display: flex; flex-direction: column; }
.bk-card[hidden] { display: none; }
.bk-card-link { color: inherit; text-decoration: none; display: block; }
.bk-img { position: relative; aspect-ratio: 4 / 5; background: var(--bk-soft); overflow: hidden; display: grid; place-items: center; margin-bottom: 12px; }
.bk-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .6s; }
.bk-img > span:first-child { font-family: var(--serif); font-size: 2.4rem; color: #c8bfb2; }
.bk-img .bk-alt { opacity: 0; }
.bk-card:hover .bk-img.has-alt .bk-alt { opacity: 1; }
.bk-card:hover .bk-img img { transform: scale(1.03); }
.bk-tag { position: absolute; top: 10px; left: 10px; background: #fff; color: var(--bk-ink); font-size: .72rem; font-weight: 700; padding: 4px 8px; letter-spacing: .05em; z-index: 1; }
.bk-out { position: absolute; inset: auto 0 0; background: rgba(255,255,255,.88); text-align: center; padding: 8px; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; z-index: 1; }
.bk-card h3 { font-size: .92rem; font-weight: 500; margin: 0 0 4px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-price { font-size: .9rem; }
.bk-price s { color: var(--muted); margin-left: 4px; font-size: .82rem; }
.bk-add { margin-top: 10px; padding: 10px; background: none; border: 1px solid var(--bk-ink); color: var(--bk-ink); font: inherit; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; cursor: pointer; }
.bk-add:hover { background: var(--bk-ink); color: #fff; }
.bk-add:disabled { opacity: .4; cursor: not-allowed; }
.bk-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.bk-rail .bk-card { scroll-snap-align: start; }
.bk-camps { display: grid; gap: 16px; }
.bk-camp { display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; color: inherit; text-decoration: none; border: 1px solid var(--bk-line); padding: 12px; }
.bk-camp-img { aspect-ratio: 1; background: var(--bk-soft); overflow: hidden; }
.bk-camp-img img { width: 100%; height: 100%; object-fit: cover; }
.bk-camp h3 { font-family: var(--serif); font-weight: 400; font-size: 1.2rem; margin: 0 0 6px; }
.bk-camp p { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.bk-camp p b { color: var(--bk-ink); }
.bk-camp .dn-bar { margin: 0 0 8px; height: 6px; }
.bk-link { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.bk-about { background: var(--bk-soft); padding: 48px 24px; text-align: center; }
.bk-about .prose { max-width: 680px; margin: 0 auto; font-family: var(--serif); font-size: 1.15rem; line-height: 1.7; }
.bk-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.bk-foot { background: var(--bk-soft); text-align: center; padding: 44px 20px calc(24px + var(--safe-b)); display: grid; gap: 12px; justify-items: center; border-top: 1px solid var(--bk-line); }
.bk-foot small { color: var(--muted); }
.bk-foot nav { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; }
.bk-foot nav a { color: var(--bk-ink); text-decoration: none; }
.bk-copy { font-size: .78rem; color: var(--muted); margin-top: 8px; }
.bk-copy a { color: var(--muted); }
@media (min-width: 720px) {
  .bk-grid { grid-template-columns: repeat(3, 1fr); gap: 40px 22px; }
  .bk-rail { grid-auto-columns: calc((100% - 48px) / 4); }
  .bk-camps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) { .bk-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 640px) {
  .bk-top { padding: 12px 14px; }
  .bk-nav-l { display: none; }
  .bk-top { grid-template-columns: 1fr auto; }
  .bk-brand { justify-content: flex-start; }
  .bk-brand .shop-logo-img { height: 36px; max-width: 160px; }
  .bk-brand span { font-size: 1.25rem; }
  .bk-hide-m { display: none; }
  .bk-show-m { display: inline; }
  .bk-main { padding: 0 14px 40px; }
  .bk-sec { margin-top: 40px; }
  .bk-trust { grid-template-columns: 1fr; }
  .bk-trust > div { border-right: 0; border-bottom: 1px solid var(--bk-line); padding: 12px; }
  .bk-tools { width: 100%; }
  .bk-tools input { flex: 1; width: auto; min-width: 0; }
  .bk-camp { grid-template-columns: 96px 1fr; }
}

/* Status bayaran: butang invois */
.inv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0 10px; }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); font-weight: 700; font-size: .9rem; text-decoration: none; text-align: center; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 380px) { .inv-actions { grid-template-columns: 1fr; } }
/* Butang kuantiti: input & butang sama tinggi (tiada ruang putih di bawah butang) */
.qty { align-items: stretch; }
.qty button { height: auto; min-height: 0; display: grid; place-items: center; padding: 0; line-height: 1; }
.checkout .qty input, .cart-line .qty input { height: 40px; min-height: 0; padding: 0; line-height: 40px; box-sizing: border-box; }
.checkout .qty-sm input { height: 36px; line-height: 36px; }
.qty-sm button { width: 36px; height: auto; }
/* Derma: mod borang popup */
.dn-head-cta { margin-top: 14px; display: flex; }
.dn-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; max-width: 560px; margin: 0 auto !important; max-height: 90vh; overflow-y: auto; overscroll-behavior: contain; border-radius: 18px 18px 0 0; padding-bottom: calc(20px + var(--safe-b)); transform: translateY(105%); visibility: hidden; transition: transform .28s ease, visibility .28s; box-shadow: 0 -10px 40px rgba(0,0,0,.18); }
.dn-sheet.open { transform: none; visibility: visible; }
.dn-sheet-head { position: sticky; top: -18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card); margin: -18px -16px 12px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); z-index: 2; }
.dn-sheet-head b { font-size: .98rem; line-height: 1.3; }
.dn-sheet-x { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1f1f3; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.dn-sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55; }
body.dn-lock { overflow: hidden; }
.dn-float.is-sticky { z-index: 30; }
/* No telefon dengan bendera Malaysia */
.tel-field { position: relative; display: block; }
.tel-flag { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); display: flex; align-items: center; gap: 6px; pointer-events: none; z-index: 1; }
.tel-flag svg { border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.tel-field input[name=phone] { padding-left: 46px !important; }

/* v0.38 ikon garisan (includes/icons.php) */
.ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -.2em; flex: none; }
/* v0.38 ikon garisan */
.pay-opt .pay-ico { display: grid; place-items: center; color: var(--accent, #1668f5); }
.pay-opt .pay-ico .ic { width: 22px; height: 22px; }
.coupon-toggle .ic, .coupon-applied .ic { width: 1em; height: 1em; vertical-align: -.15em; }

/* v0.43 Variasi 2 kumpulan */
.vg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.vg-tab { position: relative; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #f7f7f8; font: inherit; font-size: .9rem; cursor: pointer; color: var(--text); }
.vg-tab.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, #fff); color: var(--accent); font-weight: 600; }
.vg-tab.is-out { opacity: .5; text-decoration: line-through; }
.vg-badge { position: absolute; top: -8px; right: -8px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; line-height: 20px; text-align: center; text-decoration: none; }
.vg-sub { font-size: .86rem; font-weight: 600; margin-bottom: 8px; }
.vg-sub .muted { font-weight: 400; }
.vg-sum { background: color-mix(in srgb, var(--accent) 6%, #fff); border-radius: 8px; padding: 8px 10px; margin: 4px 0 6px; line-height: 1.45; }
.vrow[hidden] { display: none !important; }
.variant-preview .label + .chips + .label { margin-top: 12px; }
.chips-plain .chip { cursor: default; background: #fff; }

/* v0.44 Akaun pelanggan (/akaun-saya/) */
.ca-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ca-top form { margin: 0; }
.ca-form { display: grid; gap: 2px; text-align: left; margin-top: 14px; }
.ca-form label { display: block; font-size: .82rem; color: #4b4d55; margin-bottom: 10px; }
.ca-form input:not([type=checkbox]), .ca-form select { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #dcdde0; border-radius: 8px; font: inherit; font-size: 16px; color: var(--text); background: #fff; }
.ca-form input:focus, .ca-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.ca-form input:disabled { background: #f6f6f7; color: var(--muted); }
.ca-form .btn-buy { margin-top: 6px; }
.ca-check { display: flex !important; align-items: center; gap: 8px; font-size: .88rem !important; color: var(--text) !important; }
.ca-check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.ca-alt { margin: 16px 0 0; color: var(--muted); }
.ca-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.ca-auth h1 { margin: 0 0 2px; font-size: 1.4rem; }
.ca-auth > .muted { margin: 0 0 8px; }
.ca-wrap { max-width: 640px; margin: 0 auto; padding: 20px 16px; }
.ca-hello { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ca-hello h1 { margin: 0; font-size: 1.3rem; }
.ca-hello p { margin: 0; }
.ca-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; flex: none; }
.ca-tabs { display: flex; flex-wrap: wrap; gap: 6px; overflow-x: auto; margin-bottom: 14px; scrollbar-width: none; }
.ca-tabs a { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: .88rem; font-weight: 600; color: #4b4d55; }
.ca-tabs a svg { width: 16px; height: 16px; }
.ca-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.ca-card { background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 12px; box-shadow: 0 1px 6px rgba(0,0,0,.04); }
.ca-card h2 { font-size: 1rem; margin: 0 0 10px; }
.ca-card.ca-form { margin-top: 0; }
.ca-empty { text-align: center; padding: 28px 16px; }
.ca-verify { border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, #fff); }
.ca-verify p { margin: 6px 0 12px; }
.ca-orders { display: grid; gap: 10px; }
.ca-order { margin: 0; }
.ca-o-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ca-no { font-family: ui-monospace, monospace; font-size: .82rem; color: var(--muted); }
.ca-o-title { font-weight: 600; margin: 6px 0 4px; }
.ca-o-meta { display: flex; justify-content: space-between; font-size: .88rem; color: var(--muted); }
.ca-o-meta b { color: var(--text); }
.ca-o-track { display: flex; align-items: center; gap: 6px; font-size: .84rem; margin-top: 8px; padding: 8px 10px; background: #f6f7f9; border-radius: 8px; }
.ca-o-track svg { width: 16px; height: 16px; flex: none; }
.ca-o-act { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ca-o-act:empty { display: none; }
.ca-badge { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.ca-ok { background: #dcfce7; color: #166534; } .ca-warn { background: #fef3c7; color: #92400e; } .ca-info { background: #dbeafe; color: #1e40af; } .ca-mute { background: #f1f2f4; color: #6b7280; }
.btn-ghost-sm { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 8px; border: 1.5px solid var(--line); background: #fff; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); text-decoration: none; cursor: pointer; }
.btn-ghost-sm:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger-sm { padding: 10px 14px; border-radius: 8px; border: 0; background: var(--err); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.ca-danger summary { cursor: pointer; font-weight: 600; color: var(--err); }
.ca-note { text-align: center; margin-top: 14px; }
.ca-note a { color: var(--accent); }
/* Bar & popup log masuk pelanggan (checkout) */
.cust-bar { display: flex; align-items: flex-start; gap: 8px; padding: 10px 12px; margin: 14px 0 4px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 6%, #fff); font-size: .86rem; color: #4b4d55; line-height: 1.45; }
.cust-ico svg { width: 18px; height: 18px; color: var(--accent); margin-top: 1px; }
.cust-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--accent); cursor: pointer; text-decoration: none; }
.cust-link:hover { text-decoration: underline; }
.cust-modal { position: fixed; inset: 0; z-index: 200; background: rgba(15, 18, 30, .5); display: grid; place-items: center; padding: 16px; }
.cust-modal[hidden] { display: none; }
.cust-box { position: relative; width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 24px 20px 18px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.cust-box h2 { margin: 0 0 2px; font-size: 1.2rem; }
.cust-box > .muted { margin: 0 0 12px; }
.cust-box form label { display: block; font-size: .82rem; color: #4b4d55; margin-bottom: 10px; }
.cust-box form input:not([type=checkbox]) { display: block; width: 100%; margin-top: 4px; padding: 11px 12px; border: 1px solid #dcdde0; border-radius: 8px; font: inherit; font-size: 16px; }
.cust-box form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.cust-alt { margin: 12px 0 0; text-align: center; color: var(--muted); }
.cust-alt a { color: var(--accent); font-weight: 600; text-decoration: none; }
.dn-form .cust-bar { margin-top: 0; }
.ca-auth { margin: 24px 16px; }
@media (min-width: 520px) { .ca-auth { margin: 32px auto; } }

/* v0.45 Produk langganan */
.per { font-size: .62em; font-weight: 600; opacity: .75; white-space: nowrap; }
.bb-price .per, .sp-cur .per { font-size: .7em; }
.sub-plans { display: grid; gap: 8px; }
.sub-plan { justify-content: space-between; }
.sub-plan input { width: 18px !important; height: 18px; margin: 0 !important; flex: none; accent-color: var(--accent); padding: 0 !important; }
.sub-plan .c-name { flex: 1; font-weight: 600; }
.sub-plan .c-price { white-space: nowrap; }
.sub-plan .c-price small { font-weight: 500; color: var(--muted); }
.sub-plan:has(input:checked), .pay-opt:has(input:checked) { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 5%, #fff); }
.sub-sum { background: #f7f8fa; border-radius: 12px; padding: 12px 14px; margin: 14px 0 4px; }
.sub-sum-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: .9rem; padding: 3px 0; }
.sub-sum-row span { display: inline-flex; align-items: center; gap: 6px; }
.sub-sum-row svg { width: 16px; height: 16px; color: var(--accent); }
.sub-sum-row.total { border-top: 1px dashed #d9dbe0; margin-top: 6px; padding-top: 8px; font-size: 1rem; }
.sub-sum-row.total b { color: var(--accent); font-size: 1.1rem; }
.sub-sum p { margin: 8px 0 0; line-height: 1.45; }
.sub-terms { color: #4b4d55; border-left: 3px solid color-mix(in srgb, var(--accent) 40%, #fff); padding-left: 10px; }
.sub-payform { text-align: left; margin: 14px 0; }
.sub-payform .pay-list { margin-bottom: 12px; }
.sub-switch { margin: 12px 0; text-align: left; }
.sub-switch summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.sub-receipt { text-align: left; }
.sr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 2px solid var(--text); }
.sr-head b { display: block; font-size: 1.2rem; letter-spacing: .1em; text-align: right; }
.sr-head small { color: var(--muted); }
.sr-total th, .sr-total td { border-top: 1px solid var(--line); padding-top: 10px !important; font-size: 1.05rem; font-weight: 800; color: var(--text) !important; }
@media print { .no-print, .site-foot { display: none !important; } body.tpl-print { background: #fff; } .tpl-print .status-card { box-shadow: none; margin: 0; max-width: none; } }
.ca-due { background: color-mix(in srgb, var(--accent) 8%, #fff); }
.ca-sub .btn-buy { padding: 9px 16px; font-size: .9rem; }
.ca-hist { width: 100%; }
.ca-hist summary { list-style: none; display: inline-flex; }
.ca-hist summary::-webkit-details-marker { display: none; }
.ca-hist ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; font-size: .85rem; }
.ca-hist li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.ca-hist a { color: var(--accent); margin-left: 6px; }
.ca-cancel { margin-top: 10px; }
.ca-cancel summary { cursor: pointer; color: var(--err); font-size: .85rem; font-weight: 600; }
.ca-cancel p { margin: 8px 0; }

/* v0.46 Produk digital */
.dig-note { display: flex; gap: 6px; align-items: flex-start; margin: -2px 0 6px; }
.dig-note svg, .dig-cta svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.dig-cta { flex-direction: row; gap: 8px; margin-bottom: 8px; }
.dig-page { text-align: center; }
.dig-cover { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; margin: 0 auto 12px; }
.dig-page h1 { font-size: 1.25rem; margin: 0 0 2px; }
.dig-list { display: grid; gap: 8px; margin: 16px 0; text-align: left; }
.dig-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); background: #fff; }
.dig-item:hover { border-color: var(--accent); }
.dig-item.is-off { opacity: .5; pointer-events: none; }
.dig-ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); flex: none; }
.dig-ico svg { width: 20px; height: 20px; }
.dig-name { flex: 1; min-width: 0; }
.dig-name b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dig-name small { color: var(--muted); }
.dig-go { font-size: .82rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.dig-link { margin: 6px 0 12px; }
.dig-text { position: relative; text-align: left; background: #f7f8fa; border-radius: 12px; padding: 12px 14px; margin: 8px 0 12px; font-size: .92rem; }
.dig-text small { display: block; color: var(--muted); font-size: .76rem; margin-bottom: 4px; }
.dig-text div { white-space: normal; word-break: break-word; padding-right: 56px; }
.dig-text .copy-btn { position: absolute; top: 10px; right: 10px; }
.dig-terms { margin: 4px 0 12px; }
.ca-dl { flex-direction: row; gap: 6px; padding: 8px 14px; font-size: .88rem; } .ca-dl svg { width: 16px; height: 16px; }

/* v0.47 Kedai demo */
.demo-pill { position: fixed; left: 12px; bottom: calc(86px + var(--safe-b)); z-index: 60; display: flex; align-items: center; gap: 2px; background: #111827; color: #fff; border-radius: 999px; padding: 4px; font-size: .78rem; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.demo-pill b { background: #f59e0b; color: #111827; border-radius: 999px; padding: 4px 9px; font-size: .7rem; letter-spacing: .06em; }
.demo-pill a { color: #fff; text-decoration: none; padding: 4px 9px; border-radius: 999px; }
.demo-pill a:hover { background: rgba(255,255,255,.15); }
@media (min-width: 900px) { .demo-pill { bottom: 16px; } }
.demo-cust { display: grid; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); text-align: center; }

/* v0.47 Menu hamburger laman utama */
.hm-burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; border-radius: 10px; cursor: pointer; padding: 10px 9px; flex-direction: column; justify-content: space-between; }
.hm-burger span { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.hm-burger:hover { background: rgba(0,0,0,.05); }
.hmenu-back { position: fixed; inset: 0; background: rgba(15,18,30,.45); z-index: 80; }
.hmenu { position: fixed; top: 0; right: 0; bottom: 0; width: min(82vw, 320px); background: #fff; z-index: 81; padding: 14px 18px calc(18px + var(--safe-b)); box-shadow: -10px 0 40px rgba(0,0,0,.18); display: flex; flex-direction: column; text-transform: none; letter-spacing: 0; animation: hmIn .2s ease-out; }
.hmenu[hidden], .hmenu-back[hidden] { display: none; }
@keyframes hmIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.hmenu-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 0 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 1rem; }
.hmenu-x { border: 0; background: #f3f4f6; width: 36px; height: 36px; border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text); }
.hmenu a { display: flex; justify-content: space-between; align-items: center; padding: 14px 2px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--text) !important; font-size: 1rem; font-weight: 500; opacity: 1 !important; }
.hmenu a span { color: var(--muted); font-size: 1.2rem; }
.hmenu .hmenu-wa { margin-top: auto; border: 0; justify-content: center; gap: 8px; background: #25d366; color: #fff !important; border-radius: 12px; font-weight: 700; }
.hmenu .hmenu-wa span { color: #fff; }
body.hmenu-on { overflow: hidden; }
@media (max-width: 640px) {
  .hm-burger { display: flex; }
  .bk-nav-r { align-items: center; gap: 6px; }
  .hm-nav { gap: 6px; }
}
.hm-nav .hm-burger { display: none; } @media (max-width: 640px) { .hm-nav .hm-burger { display: flex; } }

/* v0.48 Akaun saya guna header & footer kedai */
.ca-out { margin: 0 0 0 auto; }
.ca-out .btn-outline { padding: 8px 14px; font-size: .85rem; cursor: pointer; }
.tpl-chrome .ch-nav { display: flex; align-items: center; gap: 16px; font-size: .9rem; font-weight: 600; }
.tpl-chrome .ch-nav a { color: var(--text); }
.tpl-chrome .hm-nav a.on, .tpl-chrome .ch-nav a.on { color: var(--accent); }
@media (max-width: 640px) { .tpl-chrome .ch-nav > a:not(.shop-top-cart) { display: none; } }
.tpl-chrome.tpl-butik .ca-auth, .tpl-chrome.tpl-butik .ca-wrap { font-family: inherit; }

/* v0.49 Akaun saya & Semak pesanan: menu tepi + kotak kandungan */
.sp-shell { max-width: 1040px; margin: 0 auto; padding: 28px 20px 40px; display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 22px; align-items: start; }
.sp-shell.sp-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.sp-side { position: sticky; top: 90px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.sp-user { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); min-width: 0; }
.sp-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.sp-user-txt { min-width: 0; display: grid; } .sp-user-txt b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-user-txt small { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-nav { display: grid; gap: 2px; }
.sp-nav a, .sp-out button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #4b4d55; text-decoration: none; font: inherit; font-size: .92rem; font-weight: 600; background: none; border: 0; width: 100%; text-align: left; cursor: pointer; letter-spacing: 0; text-transform: none; }
.sp-nav a svg, .sp-out svg { width: 18px; height: 18px; flex: none; }
.sp-nav a:hover, .sp-out button:hover { background: #f4f5f7; color: var(--text); text-decoration: none; }
.sp-nav a.on { background: color-mix(in srgb, var(--accent) 10%, #fff); color: var(--accent); }
.sp-out { margin: 6px 0 0; padding-top: 6px; border-top: 1px solid var(--line); }
.sp-out button { color: var(--muted); }
.sp-main { min-width: 0; }
.sp-main > .form-ok, .sp-main > .form-error { margin: 0 0 12px; }
.sp-box { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.sp-box-head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.sp-box-head h1 { margin: 0; font-size: 1.3rem; }
.sp-box-head p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.sp-box-body { padding: 18px 22px 22px; }
.sp-box .ca-card { border: 1px solid var(--line); box-shadow: none; }
.sp-box .ca-form-flat { margin: 0; }
.sp-box .ca-save { padding: 12px 22px; }
.sp-box .ca-note { text-align: left; }
.sp-box .track-form2 { margin: 0; }
.sp-box .ca-alt { text-align: center; }
.sp-box .review-form { display: grid; gap: 10px; margin-top: 12px; }
.sp-box .review-form h2 { margin: 0; }
.sp-box .review-form input[name=name], .sp-box .review-form textarea { padding: 11px 12px; border: 1px solid #dcdde0; border-radius: 8px; font: inherit; font-size: 16px; width: 100%; }
.sp-box .track-reset { margin-top: 14px; }
.sp-box .review-state { margin: 12px 0 0; }
.tpl-butik .sp-box-head h1 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.tpl-catalog.tpl-chrome, .tpl-home-modern.tpl-chrome { background: #f6f7f9; }
@media (max-width: 760px) {
  .sp-shell { grid-template-columns: minmax(0, 1fr); padding: 16px 12px 28px; gap: 12px; }
  .sp-side { position: static; padding: 10px; }
  .sp-user { padding: 2px 2px 10px; }
  .sp-nav { display: flex; overflow-x: auto; gap: 4px; scrollbar-width: none; }
  .sp-nav::-webkit-scrollbar { display: none; }
  .sp-nav a { width: auto; white-space: nowrap; padding: 8px 12px; font-size: .86rem; }
  .sp-out { margin: 0; padding: 0; border: 0; flex: none; }
  .sp-out button { white-space: nowrap; padding: 8px 12px; font-size: .86rem; }
  .sp-box-head { padding: 16px 16px 12px; }
  .sp-box-body { padding: 14px 14px 18px; }
}
.tpl-chrome { min-height: 100vh; display: flex; flex-direction: column; }
.tpl-chrome > main { flex: 1 0 auto; width: 100%; }
.tpl-chrome .ca-auth { border: 1px solid var(--line); box-shadow: none; max-width: 520px; }
@media (max-width: 559px) { .tpl-chrome .ca-auth { width: auto; } }

/* v0.50 Butang edit produk (admin log masuk) */
.adm-edit-fab { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 90; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 12px; border-radius: 999px; background: #111318; color: #fff !important; font-size: .85rem; font-weight: 700; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); opacity: .92; }
.adm-edit-fab:hover { opacity: 1; text-decoration: none; }
.adm-edit-fab svg { width: 16px; height: 16px; }
@media print { .adm-edit-fab { display: none; } }

/* v0.52 Footer landing: butang WhatsApp sejajar (bertindan di tengah, ikut lebar kolum halaman) */
.site-foot.has-wa { flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 14px; }
.has-wa .foot-text { justify-content: center; flex: none; }
/* Deskripsi dari editor */
.prose h2 { font-size: 1.15rem; margin: 18px 0 8px; } .prose h3 { font-size: 1.02rem; margin: 14px 0 6px; } .prose h4 { font-size: .95rem; margin: 12px 0 6px; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; } .prose li { margin: 3px 0; }
.prose blockquote { margin: 0 0 12px; padding: 6px 12px; border-left: 3px solid color-mix(in srgb, var(--accent) 50%, #fff); color: #4b4d55; }
.prose a { color: var(--accent); }
/* v0.69 social proof — 1 baris, atas kanan */
.sp-proof { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; z-index: 85; display: flex; align-items: center; gap: 8px; max-width: min(360px, calc(100vw - 24px)); padding: 6px 6px 6px 8px; border-radius: 999px; background: rgba(255,255,255,.97); color: #1f2430; font-size: .8rem; line-height: 1.2; box-shadow: 0 8px 24px rgba(15,23,42,.16); border: 1px solid rgba(15,23,42,.06); opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .3s; pointer-events: none; }
.sp-proof.on { opacity: 1; transform: none; pointer-events: auto; }
.sp-proof.sp-proof-low { top: calc(58px + env(safe-area-inset-top, 0px)); }
.sp-proof-ic { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e8f7ee; color: #16a34a; }
.sp-proof-ic svg { width: 14px; height: 14px; }
.sp-proof-txt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sp-proof-txt b { font-weight: 700; }
.sp-proof-x { flex: none; border: 0; background: none; color: #98a2b3; font-size: 1rem; line-height: 1; width: 22px; height: 22px; border-radius: 50%; cursor: pointer; padding: 0; }
.sp-proof-x:hover { background: #f2f4f7; color: #475467; }
@media (prefers-reduced-motion: reduce) { .sp-proof { transition: opacity .2s; transform: none; } }
/* v0.70 troli ikut produk & halaman senarai */
.btn-cart-bb { flex: none; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 76px; padding: 6px 10px; border: 1.5px solid var(--accent); border-radius: 12px; background: #fff; color: var(--accent); font: inherit; font-size: .72rem; font-weight: 700; line-height: 1.1; cursor: pointer; }
.btn-cart-bb svg { width: 20px; height: 20px; }
.btn-cart-bb:disabled { opacity: .5; cursor: not-allowed; }
.cart-part { padding-top: 6px; }
.cart-part .btn-buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.cart-part .btn-buy svg { width: 18px; height: 18px; }
.cart-part-note { text-align: center; margin: 10px 0 0; }
.mc-toast.show { pointer-events: auto; }
.mc-toast a { color: #fff; font-weight: 700; margin-left: 4px; text-decoration: underline; }
.cart-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.cart-more { font-size: .88rem; color: var(--accent); text-decoration: none; font-weight: 600; }
.cart-empty svg { width: 40px; height: 40px; color: var(--muted); margin-bottom: 6px; }
.tpl-cart .cart-list { background: #fff; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 16px; }
.list-page { max-width: 1100px; margin: 0 auto; padding: 22px 14px 80px; }
.list-head h1 { font-size: 1.5rem; margin: 0 0 4px; letter-spacing: -.01em; }
.list-head p { margin: 0 0 14px; }
.list-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; scrollbar-width: none; }
.list-tabs::-webkit-scrollbar { display: none; }
.list-tabs a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: inherit; text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.list-tabs a svg { width: 16px; height: 16px; }
.list-tabs a.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.list-tabs-home { max-width: 1100px; margin: 0 auto; padding: 12px 14px 0; }
.cat-add { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.cat-add svg { width: 16px; height: 16px; }
.cat-add-ghost { border-color: var(--line); color: inherit; }
/* v0.71 gambar variasi */
.chip.chip-img { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; }
.chip.chip-img img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; flex: none; }
.vg-tab.has-img { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; }
.vg-tab.has-img img { width: 34px; height: 34px; border-radius: 6px; object-fit: cover; flex: none; }
.vthumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex: none; margin-right: -2px; }
.vrow .vthumb + .vname { flex: 1; }
.sheet-product img[data-sheet-img] { transition: opacity .15s; }
.sp-vimg { width: 30px; height: 30px; border-radius: 6px; object-fit: cover; border: 1px solid var(--line); }
.tpl-home-modern .list-tabs-home, .tpl-butik .list-tabs-home { width: fit-content; max-width: 100%; margin: 0 auto; padding: 20px 14px 4px; }
.list-page .list-cats { width: auto; margin: 0; padding: 0 0 14px; }
/* v0.74 banner promo laman utama */
.home-promo { max-width: 1100px; margin: 18px auto 0; padding: 0 14px; }
.home-promo a, .home-promo img { display: block; }
.home-promo img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.35); }
/* v0.75 baris jenis produk: ikon laman utama, halaman senarai dalam laman utama */
.list-types { scroll-margin-top: 76px; }
.list-tabs a.lt-home { padding: 8px 11px; }
.list-tabs a.lt-home svg { width: 18px; height: 18px; }
.list-sub { color: var(--muted, #6b7280); margin: 2px 0 12px; font-size: .9rem; }
.cat-list-title { font-size: 1.4rem; margin: 4px 0 10px; }
.list-types, .list-types:target { outline: none; }
main.is-loading { opacity: .45; transition: opacity .15s; pointer-events: none; }
