/* =========================================================
   Palet kalem: krem · hijau sage · terakota
   Ubah warna di :root untuk mengganti tema seluruh situs
   ========================================================= */
:root {
  --bg: #f7f3ee;
  --card: #fffdf9;
  --sand: #efe6da;
  --ink: #2f3a32;
  --muted: #7a7f76;
  --line: #e8e0d5;
  --sage: #6b8f71;
  --sage-dark: #4f6f55;
  --sage-soft: #e3ebe2;
  --clay: #c8795a;
  --clay-soft: #f6e4da;
  --forest: #3e5545;
  --radius: 20px;
  --shadow: 0 8px 24px rgba(62, 85, 69, .07);
  --shadow-lg: 0 20px 44px rgba(62, 85, 69, .14);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161916;
    --card: #1f231f;
    --sand: #262a25;
    --ink: #ece8e1;
    --muted: #a5a99f;
    --line: #30352f;
    --sage: #9cbf9f;
    --sage-dark: #b7d4b9;
    --sage-soft: #24302a;
    --clay: #e09a7c;
    --clay-soft: #3a2a23;
    --forest: #1c261f;
    --shadow: 0 8px 24px rgba(0, 0, 0, .3);
    --shadow-lg: 0 20px 44px rgba(0, 0, 0, .45);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { letter-spacing: -.025em; }
.serif { font-family: "Fraunces", Georgia, serif; font-weight: 600; font-style: italic; letter-spacing: -.01em; }

/* Promo bar */
.promo-bar { background: var(--forest); color: #f1ece3; text-align: center; font-size: .85rem; font-weight: 500; padding: 9px 16px; }
.promo-bar a { color: #f6d3c2; text-decoration: underline; text-underline-offset: 3px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; }
.logo b { font-weight: 800; color: var(--sage); }
.logo-mark { width: 36px; height: 36px; border-radius: 12px; background: var(--sage); color: #fff; display: grid; place-items: center; font-weight: 800; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .94rem; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: #fff; background: var(--ink); padding: 9px 20px; border-radius: 999px; }
.nav .nav-cta:hover { color: #fff; background: var(--sage-dark); }
@media (prefers-color-scheme: dark) { .nav .nav-cta { background: var(--sage); color: #14201a; } .nav .nav-cta:hover { color: #14201a; } }
@media (max-width: 760px) { .nav a:not(.nav-cta) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--sand) 0%, var(--bg) 55%, var(--sage-soft) 100%); padding: 76px 0 88px; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; pointer-events: none; }
.b1 { width: 360px; height: 360px; background: #e9c2ac; top: -120px; right: 20%; animation: drift 16s ease-in-out infinite; }
.b2 { width: 340px; height: 340px; background: #b9d0b8; bottom: -150px; left: 5%; animation: drift 18s ease-in-out infinite reverse; }
@media (prefers-color-scheme: dark) { .blob { opacity: .12; } }
@keyframes drift { 50% { transform: translate(30px, 24px) scale(1.08); } }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); color: var(--sage-dark); padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 600; margin-bottom: 22px; box-shadow: var(--shadow); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.08; margin: 0 0 18px; font-weight: 800; }
.grad { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 600; color: var(--clay); }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 30px; max-width: 33em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: .92rem; }
.trust b { color: var(--ink); }
.hero-visual { position: relative; height: 400px; }
.hero-ring { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 260px; height: 260px; border-radius: 50%; background: conic-gradient(from 0deg, var(--sage), var(--clay), #e9d8c4, var(--sage)); display: grid; place-items: center; animation: spin 30s linear infinite; box-shadow: var(--shadow-lg); }
.hero-ring span { width: 224px; height: 224px; border-radius: 50%; background: var(--card); display: grid; place-items: center; font-size: 5.6rem; animation: spinr 30s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes spinr { to { transform: rotate(-360deg); } }
.float-card { position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px; background: var(--card); color: var(--ink); padding: 12px 16px 12px 12px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; }
.float-card small { display: block; color: var(--muted); font-size: .74rem; font-weight: 600; }
.float-card b { font-size: .9rem; }
.fc-emoji { width: 44px; height: 44px; border-radius: 12px; background: var(--sage-soft); display: grid; place-items: center; font-size: 1.4rem; }
.fc2 .fc-emoji { background: var(--clay-soft); }
.fc1 { top: 8%; left: 0; }
.fc2 { top: 42%; right: -4%; animation-delay: 1.5s; }
.fc3 { bottom: 4%; left: 10%; animation-delay: 3s; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 320px; }
  .fc2 { right: 0; }
}
@media (max-width: 520px) {
  .hero { padding: 48px 0 56px; }
  .hero-visual { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; text-decoration: none; padding: 11px 18px; border-radius: 12px; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; font-size: .94rem; font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 26px; font-size: 1rem; border-radius: 14px; }
.btn-hot { background: var(--sage); color: #fff; box-shadow: 0 10px 24px rgba(79, 111, 85, .28); }
.btn-hot:hover { background: var(--sage-dark); }
@media (prefers-color-scheme: dark) { .btn-hot, .btn-hot:hover { color: #14201a; } }
.btn-glass { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.btn-glass:hover { border-color: var(--sage); }

/* Marketplace strip */
.marquee { background: var(--card); border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: scroll 26s linear infinite; }
@keyframes scroll { to { transform: translateX(-50%); } }
.mp { font-weight: 700; font-size: 1.15rem; letter-spacing: -.01em; white-space: nowrap; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.mp::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.mp.shopee { color: #d9654a; }
.mp.tiktok { color: var(--ink); }
.mp.dot { color: var(--sage); font-weight: 600; }
.mp.dot::before { display: none; }

/* Sections */
.section { padding: 72px 16px 8px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head.center { justify-content: center; text-align: center; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; font-weight: 800; }
.kicker { margin: 0 0 6px; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; color: var(--clay); }
.kicker.light { color: #f2c4ae; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.cat { position: relative; overflow: hidden; text-align: left; border: 0; cursor: pointer; font-family: inherit; color: #fff; border-radius: var(--radius); padding: 20px 18px; min-height: 136px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cat .cat-emoji { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.25); display: grid; place-items: center; font-size: 1.5rem; }
.cat b { font-size: 1.05rem; }
.cat small { opacity: .85; font-size: .8rem; font-weight: 600; }
.cat::after { content: ""; position: absolute; width: 130px; height: 130px; border-radius: 50%; background: rgba(255,255,255,.12); right: -36px; bottom: -46px; }

/* Flash deal */
.flash { margin-top: 72px; padding: 60px 0; background: radial-gradient(700px 320px at 90% 0%, rgba(200, 121, 90, .25), transparent 70%), var(--forest); color: #f4efe7; }
.flash .section-head h2 { color: #f4efe7; }
.countdown { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.countdown span { margin-right: 6px; opacity: .8; font-size: .9rem; }
.countdown b { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); padding: 8px 10px; border-radius: 10px; font-size: 1.1rem; font-variant-numeric: tabular-nums; min-width: 2.6ch; text-align: center; }
.flash-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent; }
.flash-row .card { scroll-snap-align: start; }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.search { flex: 1 1 280px; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; }
.search:focus-within { border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft); }
#cari { flex: 1; border: 0; background: transparent; color: var(--ink); font: inherit; padding: 14px 0; outline: none; }
#urut { padding: 0 16px; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { border: 1px solid var(--line); background: var(--card); color: var(--ink); padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--sage); }
.chip[aria-selected="true"] { background: var(--sage); color: #fff; border-color: var(--sage); }
@media (prefers-color-scheme: dark) { .chip[aria-selected="true"] { color: #14201a; } }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; color: var(--ink); }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.thumb { position: relative; aspect-ratio: 4 / 3.4; display: grid; place-items: center; font-size: 4.2rem; overflow: hidden; }
.thumb .em { transition: transform .3s; filter: drop-shadow(0 10px 12px rgba(0,0,0,.12)); }
.card:hover .thumb .em { transform: scale(1.1) rotate(-3deg); }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .thumb img { transform: scale(1.05); }
.badge { position: absolute; top: 12px; left: 12px; background: rgba(255, 253, 249, .92); color: var(--forest); font-size: .72rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.diskon { position: absolute; top: 12px; right: 12px; background: var(--clay); color: #fff; font-size: .76rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; }
.body { padding: 16px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.toko { align-self: flex-start; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.toko::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.toko.shopee { background: #fbe7e1; color: #c4502f; }
.toko.tiktok { background: var(--sand); color: var(--ink); }
@media (prefers-color-scheme: dark) { .toko.shopee { background: #3a2520; color: #f19b80; } }
.card h3 { margin: 0; font-size: 1rem; line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.desc { margin: 0; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.meta { font-size: .8rem; color: var(--muted); }
.meta .star { color: #d9a441; }
.harga { font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; color: var(--clay); }
.harga s { font-size: .82rem; color: var(--muted); font-weight: 500; margin-left: 6px; }
.bar { height: 6px; background: var(--sand); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--sage), var(--clay)); border-radius: 99px; }
.bar-label { font-size: .74rem; color: var(--muted); font-weight: 600; }
.card .btn { margin-top: auto; background: var(--ink); color: var(--card); width: 100%; }
.card .btn:hover { background: var(--sage); color: #fff; }
.kosong { text-align: center; color: var(--muted); font-size: 1.05rem; padding: 40px 0; }

@media (max-width: 520px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid .thumb { font-size: 3rem; }
  .grid .body { padding: 12px; gap: 5px; }
  .grid .card h3 { font-size: .88rem; }
  .grid .desc { display: none; }
  .grid .harga { font-size: 1.05rem; }
  .grid .harga s { display: block; margin: 0; }
  .grid .card .btn { padding: 9px 8px; font-size: .8rem; }
  .flash-row { grid-auto-columns: 78%; }
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sage-soft); color: var(--sage-dark); font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--muted); }
.disclosure { margin: 32px 0 0; font-size: .88rem; color: var(--muted); background: var(--sand); padding: 14px 18px; border-radius: 14px; }

/* Footer */
.footer { margin-top: 80px; background: var(--forest); color: rgba(244, 239, 231, .7); padding: 30px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer .logo { color: #f4efe7; }
.footer .logo b { color: #b9d0b8; }
.footer p { margin: 0; font-size: .88rem; }

.to-top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: 50%; background: var(--sage); color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 800; font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 30; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* 404 */
.notfound { text-align: center; padding: 100px 16px; }
.notfound-code { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 6rem; font-weight: 600; line-height: 1; color: var(--clay); }

/* Produk tanpa harga tetap */
.harga-cek { font-size: 1rem; color: var(--sage-dark); }
