:root {
  --ink: #2A1B3D;
  --ink-2: #5B4A70;
  --muted: #7D6F8E;
  --bg: #FFF7EC;
  --surface: #FFFFFF;
  --line: #EADFD0;
  --lime: #C6F432;
  --lime-2: #E9FBA9;
  --coral: #FF5A4E;
  --plum-soft: #F1E9FA;
  --radius: 18px;
  --shadow: 0 1px 0 var(--line), 0 8px 24px -16px rgba(42, 27, 61, .35);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.55 var(--sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 800; }
h2 { font-size: clamp(21px, 3.2vw, 28px); font-weight: 800; }
h3 { font-size: 17px; font-weight: 600; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--lime); padding: 8px 12px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--bg); }
.top-in { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font: 800 25px/1 var(--display); letter-spacing: -.03em; }
.logo-mark { width: 22px; height: 29px; stroke: none; }
.top-search { flex: 1; display: flex; max-width: 520px; margin-left: auto; background: rgba(255,255,255,.1); border-radius: 999px; }
.top-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: inherit; font: inherit; font-size: 15px; padding: 9px 4px 9px 16px; }
.top-search input::placeholder { color: rgba(255,247,236,.6); }
.top-search button { background: none; border: 0; color: inherit; padding: 0 14px; cursor: pointer; }
.btn-ask { display: inline-flex; align-items: center; gap: 6px; background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; padding: 9px 16px; font: 700 15px var(--sans); cursor: pointer; }
.cats { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; font-size: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); }
.cats a:hover { background: rgba(255,255,255,.18); }
.top-cari { display: none; color: inherit; padding: 8px; }
@media (max-width: 640px) {
  .top-search { display: none; }
  .top-cari { display: inline-flex; margin-left: auto; }
  .hero { padding: 28px 0 32px; }
}

/* Hero */
.hero { background: var(--ink); color: var(--bg); padding: 36px 0 44px; border-radius: 0 0 32px 32px; }
.eyebrow { display: inline-block; background: var(--lime); color: var(--ink); font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 999px; margin: 0 0 14px; transform: rotate(-1.5deg); }
.hero h1 span { color: var(--lime); }
.lead { font-size: 17px; color: var(--ink-2); max-width: 640px; }
.hero .lead { color: rgba(255,247,236,.82); }
.hero-ask { display: flex; gap: 8px; background: var(--bg); padding: 6px; border-radius: 999px; max-width: 640px; margin-top: 22px; box-shadow: 0 0 0 4px rgba(198,244,50,.35); }
.hero-ask input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--ink); padding: 10px 6px 10px 16px; }
.hero-ask button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--ink); color: var(--bg); font: 700 15px var(--sans); padding: 10px 18px; border-radius: 999px; cursor: pointer; }
.hero-ask .logo-mark { width: 16px; height: 21px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { border: 1px solid rgba(255,247,236,.3); background: transparent; color: inherit; font: 500 14px var(--sans); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chip:hover { background: rgba(198,244,50,.15); border-color: var(--lime); }

/* Shelves */
.shelf { margin: 36px 0; }
.shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.shelf-head a { font-weight: 700; font-size: 14px; display: inline-flex; gap: 4px; align-items: center; text-decoration: none; }
.shelf-head svg { width: 16px; height: 16px; }
.guide-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 14px; scrollbar-width: thin; }
.guide-chip { flex: 0 0 auto; width: 260px; text-decoration: none; background: var(--plum-soft); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.guide-chip strong { font-family: var(--display); font-weight: 600; font-size: 16px; line-height: 1.2; }
.guide-chip span { font-size: 13px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 4px; }
.guide-chip svg { width: 14px; height: 14px; }
.guide-chip:hover { background: var(--lime-2); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px max(16px, calc((100vw - 1180px) / 2 + 16px)) 12px; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail-flush { padding-left: 0; padding-right: 0; }

/* Card */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.card-link { text-decoration: none; display: flex; flex-direction: column; gap: 8px; }
.card-img { aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--plum-soft); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-title { font-size: 15px; margin: 0; line-height: 1.25; }
.card-cocok { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.why { margin: 0; font-size: 13px; font-weight: 700; background: var(--lime-2); padding: 4px 8px; border-radius: 8px; }
.card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.price { font-weight: 700; color: var(--coral); }
.price.big { font: 800 30px var(--display); }
.sold { font-size: 12px; color: var(--muted); }
.btn-buy { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; background: var(--ink); color: var(--bg); font-weight: 700; font-size: 14px; border-radius: 12px; padding: 9px 12px; }
.btn-buy:hover { background: #3E2A57; }
.btn-buy.big { font-size: 17px; padding: 15px 18px; border-radius: 14px; background: var(--coral); }
.btn-buy.big:hover { background: #E8483D; }

/* Grid & sort */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } }
.sortbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 16px 0; font-size: 14px; }
.sortbar button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.sortbar button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* Category tiles */
.cat-grid-wrap { margin: 44px auto; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cat-tile { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); padding: 12px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; }
.cat-imgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 6px; }
.cat-imgs img { aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--plum-soft); }
.cat-tile strong { font: 600 18px var(--display); }
.cat-tile span { font-size: 13px; color: var(--muted); }

/* Pages */
.page, .guide { padding-top: 20px; padding-bottom: 40px; }
.page section, .guide section { margin: 32px 0; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--ink-2); }
.crumbs i { font-style: normal; opacity: .5; }
.meta { font-size: 14px; color: var(--muted); }
.note { background: #FFF1D6; border-left: 4px solid #F2B035; padding: 10px 14px; border-radius: 8px; font-size: 14px; }
.tip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.tip { background: var(--surface); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); }
.tip h3 { margin-bottom: 4px; }
.tip p { margin: 0; font-size: 15px; color: var(--ink-2); }
.picks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
@media (min-width: 720px) { .picks { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.pick { position: relative; display: flex; }
.pick .card { width: 100%; }
.pick-no { position: absolute; z-index: 2; top: -6px; left: -6px; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); border: 2px solid var(--ink); font: 800 16px/28px var(--display); text-align: center; }
.faq details { background: var(--surface); border-radius: 12px; padding: 12px 16px; margin-bottom: 8px; box-shadow: var(--shadow); }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--ink-2); }
.ask-cta { background: var(--ink); color: var(--bg); border-radius: var(--radius); padding: 20px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 32px 0; }
.ask-cta p { margin: 0; font: 600 20px var(--display); }
.btn-ask-big { background: var(--lime); color: var(--ink); border: 0; border-radius: 999px; padding: 12px 20px; font: 700 16px var(--sans); cursor: pointer; }
.prose { max-width: 760px; }
.prose li { margin-bottom: 8px; }

/* Product detail */
.pd { display: grid; gap: 20px; }
@media (min-width: 820px) { .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; } .pd-img { position: sticky; top: 120px; } }
.pd-img { border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.pd-img img { width: 100%; aspect-ratio: 1; object-fit: cover; }
@media (max-width: 819px) { .pd-img { max-width: 340px; width: 78%; margin: 0 auto; } }
.pd-info { display: flex; flex-direction: column; gap: 12px; }
.pd-info h1 { font-size: clamp(28px, 4.5vw, 40px); margin: 0; }
.pd-full { margin: 0; color: var(--muted); font-size: 14px; }
.pd-stats { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; }
.pd-stats .sold { font-size: 15px; }
.pd-date { margin: 0; font-size: 13px; color: var(--muted); }
.pd-cocok { background: var(--lime-2); border-radius: 14px; padding: 12px 16px; }
.pd-cocok h2 { font-size: 15px; font-family: var(--sans); font-weight: 700; margin: 0 0 2px; }
.pd-cocok p { margin: 0; }
.btn-ghost { background: transparent; border: 2px solid var(--ink); color: var(--ink); border-radius: 14px; padding: 12px 16px; font: 700 15px var(--sans); cursor: pointer; }
.pd-guides h2 { font-size: 15px; font-family: var(--sans); font-weight: 700; margin: 8px 0 6px; }
.pd-guides a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 500; }
.pd-guides svg { width: 16px; height: 16px; }

/* Search page */
.big-search { display: flex; gap: 8px; background: var(--surface); box-shadow: var(--shadow); border-radius: 999px; padding: 6px; max-width: 640px; }
.big-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; padding: 10px 14px; color: var(--ink); }
.big-search button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--ink); color: var(--bg); border-radius: 999px; padding: 10px 18px; font: 700 15px var(--sans); cursor: pointer; }
.result-info { color: var(--muted); font-size: 14px; }

/* Footer */
.foot { background: var(--ink); color: rgba(255,247,236,.85); padding: 32px 0 24px; margin-top: 48px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.foot-in > div:first-child { max-width: 420px; }
.logo-foot { color: var(--bg); margin-bottom: 8px; }
.foot-links { display: flex; flex-direction: column; gap: 8px; }
.disclosure { font-size: 13px; opacity: .7; margin-top: 24px; }

/* Ask sheet */
.ask { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.ask[hidden] { display: none; }
.ask-backdrop { position: absolute; inset: 0; background: rgba(42,27,61,.55); }
.ask-sheet { position: relative; width: 100%; max-width: 620px; max-height: 88vh; background: var(--bg); border-radius: 24px 24px 0 0; display: flex; flex-direction: column; animation: up .22s ease-out; }
@media (min-width: 720px) { .ask { align-items: center; } .ask-sheet { border-radius: 24px; max-height: 80vh; } }
@keyframes up { from { transform: translateY(24px); opacity: 0; } }
.ask-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; border-bottom: 1px solid var(--line); }
.ask-who { display: flex; gap: 10px; align-items: center; }
.ask-who .logo-mark { width: 30px; height: 40px; }
.ask-who h2 { font-size: 20px; margin: 0; }
.ask-who p { margin: 0; font-size: 13px; color: var(--muted); }
.x { border: 0; background: var(--plum-soft); width: 36px; height: 36px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink); }
.ask-log { flex: 1; overflow-y: auto; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 92%; padding: 10px 14px; border-radius: 16px; font-size: 15px; }
.msg-me { align-self: flex-end; background: var(--ink); color: var(--bg); border-bottom-right-radius: 4px; }
.msg-bot { align-self: flex-start; background: var(--surface); box-shadow: var(--shadow); border-bottom-left-radius: 4px; }
.msg-bot p { margin: 0 0 6px; }
.msg-bot p:last-child { margin-bottom: 0; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.opts button { border: 1px solid var(--ink); background: transparent; border-radius: 999px; padding: 6px 12px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.opts button:hover { background: var(--lime-2); }
.res { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.res-item { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; background: var(--bg); border-radius: 12px; padding: 8px; }
.res-item img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.res-item h4 { margin: 0; font: 600 15px var(--display); }
.res-item h4 a { text-decoration: none; }
.res-item .tag { display: inline-block; font-size: 11px; font-weight: 700; background: var(--lime); padding: 1px 8px; border-radius: 999px; margin-bottom: 2px; }
.res-item p { margin: 2px 0; font-size: 13px; color: var(--ink-2); }
.res-item .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.res-item .btn-buy { padding: 6px 10px; font-size: 13px; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }
.ask-form { display: flex; gap: 8px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.ask-form textarea { flex: 1; min-width: 0; resize: none; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; background: var(--surface); color: var(--ink); }
.btn-send { border: 0; background: var(--ink); color: var(--bg); border-radius: 14px; padding: 0 18px; font: 700 15px var(--sans); cursor: pointer; }
.btn-send:disabled { opacity: .5; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* HP: chip contoh jadi satu baris geser (taruh di akhir biar menang urutan) */
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-right: -16px; padding-right: 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
}
