/* lokalo. — website contoh toko online */
:root {
  --ink: #161616;
  --bg: #fafaf7;
  --soft: #f1efe8;
  --acc: #ff5a36;
  --line: #e6e4dd;
  --mute: #66645e;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -0.02em; }
.w { max-width: 1220px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--mute); }
.back { position: fixed; left: 12px; bottom: 12px; z-index: 90; background: #000c; color: #fff; font: 500 0.82rem system-ui, sans-serif; padding: 9px 14px; border-radius: 99px; text-decoration: none; }
.announce { background: var(--ink); color: #fff; text-align: center; font-size: 0.85rem; padding: 9px 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 99px; background: var(--ink); color: #fff; font: 600 0.98rem var(--body); text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer; transition: transform 0.2s; }
.btn:hover { transform: translateY(-2px); }
.btn.line { background: none; color: var(--ink); }
.btn.full { width: 100%; background: var(--acc); border-color: var(--acc); }

/* header */
.top { position: sticky; top: 0; z-index: 40; background: rgba(250, 250, 247, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 70px; }
.logo { font: 700 1.6rem var(--head); color: var(--ink); text-decoration: none; }
.search { flex: 1; max-width: 460px; margin: 0 auto; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 99px; background: #fff; }
.search input { border: 0; outline: 0; flex: 1; font: 400 0.98rem var(--body); background: none; }
.cartbtn { min-height: 46px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--ink); background: #fff; font: 600 0.95rem var(--body); cursor: pointer; display: flex; align-items: center; gap: 8px; }
.cartbtn b { min-width: 24px; height: 24px; border-radius: 99px; background: var(--acc); color: #fff; display: grid; place-items: center; font-size: 0.8rem; }
.cartbtn.bump { animation: bump 0.4s; }
@keyframes bump { 50% { transform: scale(1.08); } }

/* hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.pill { display: inline-block; background: #ffe3dc; color: #c43d1f; font: 600 0.82rem var(--body); padding: 5px 12px; border-radius: 99px; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; margin: 18px 0; }
.hero p { color: var(--mute); max-width: 44ch; font-size: 1.05rem; margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-img { margin: 0; }
.hero-img img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 28px; }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.perks div { background: var(--soft); border-radius: 18px; padding: 18px 20px; }
.perks b { display: block; font-family: var(--head); }
.perks span { color: var(--mute); font-size: 0.88rem; }

/* toko */
section { padding-top: 72px; }
.shop-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.shop-head h2 { font-size: 2rem; margin-right: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font: 500 0.9rem var(--body); cursor: pointer; }
.chips button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sort { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: 0.9rem; }
.sort select { min-height: 40px; border-radius: 10px; border: 1px solid var(--line); padding: 0 10px; font: 500 0.9rem var(--body); background: #fff; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.card .img { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--soft); }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.card:hover img { transform: scale(1.04); }
.badge { position: absolute; left: 12px; top: 12px; background: #fff; font: 600 0.75rem var(--body); padding: 4px 10px; border-radius: 99px; }
.badge.hot { background: var(--acc); color: #fff; }
.card .t { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card .brand { color: var(--mute); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.card h3 { font-size: 1.05rem; }
.card .row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 10px; }
.price { font-weight: 700; }
.price s { color: var(--mute); font-weight: 400; font-size: 0.85rem; margin-left: 6px; }
.add { min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--ink); background: none; font: 600 0.85rem var(--body); cursor: pointer; }
.add:hover { background: var(--ink); color: #fff; }
.empty { color: var(--mute); }

/* cara pesan & faq */
.how h2, .faq h2 { font-size: 2rem; margin-bottom: 22px; }
.how ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: n; }
.how li { counter-increment: n; border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: #fff; }
.how li::before { content: counter(n); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--acc); color: #fff; font: 700 1rem var(--head); margin-bottom: 14px; }
.how b { display: block; font-family: var(--head); font-size: 1.15rem; }
.how span { color: var(--mute); font-size: 0.93rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 0; font: 600 1.05rem var(--head); list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 18px; color: var(--mute); }
.foot { margin-top: 80px; border-top: 1px solid var(--line); padding: 30px 0 80px; }
.f-in { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.foot p { margin: 0; }

/* keranjang */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 70; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 80; display: flex; flex-direction: column; transform: translateX(100%); transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1); }
.drawer.open { transform: none; }
.d-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.d-head button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; }
.d-list { flex: 1; overflow: auto; padding: 8px 22px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.item img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.item b { display: block; font-size: 0.95rem; }
.item small { color: var(--mute); }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; }
.d-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.d-foot .row { display: flex; justify-content: space-between; font-size: 1.05rem; }
.d-foot label { display: grid; gap: 4px; font-size: 0.85rem; color: var(--mute); }
.d-foot input { min-height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font: 400 0.95rem var(--body); }
.free { font-size: 0.85rem; color: var(--mute); }
.free i { display: block; height: 6px; border-radius: 9px; background: var(--soft); margin-top: 6px; overflow: hidden; }
.free i::after { content: ""; display: block; height: 100%; width: var(--p, 0%); background: var(--acc); }
.d-empty { color: var(--mute); padding: 30px 0; text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 99px; font-size: 0.9rem; z-index: 95; transition: transform 0.3s; }
.toast.show { transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .perks { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; }
  .how ol { grid-template-columns: 1fr; }
  .top-in { gap: 10px; }
  .search { order: 3; position: absolute; left: 22px; right: 22px; top: 70px; max-width: none; }
  .top { padding-bottom: 58px; }
  .grid { gap: 12px; }
  .card .row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
