:root{
    --text:#2C2C2B; --muted:#7D7A75; --canvas:#FFFFFF; --soft:#F9F8F7;
    --surface2:#F0EFED; --border:#E6E5E3; --blue:#2783DE; --blue-soft:#E5F2FC;
    --green:#46A171; --green-soft:#E8F1EC; --orange:#D5803B; --orange-soft:#FBEBDE;
    --wa:#25D366;
    --r:8px; --r-lg:12px;
    --shadow:0 1px 2px rgba(0,0,0,.05), 0 4px 12px rgba(0,0,0,.04);
  }
  *{box-sizing:border-box}
  html,body{margin:0;padding:0}
  body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    font-size:16px; line-height:1.5; color:var(--text); background:var(--soft);
    -webkit-font-smoothing:antialiased;
  }
  a{color:inherit;text-decoration:none}
  button{font:inherit;color:inherit;cursor:pointer}
  .wrap{max-width:1080px;margin:0 auto;padding:0 20px}
  @media(min-width:900px){ .wrap{padding:0 32px} }

  /* ---------- Top bar ---------- */
  .topbar{background:var(--canvas);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:40}
  .topbar-in{display:flex;align-items:center;gap:12px;padding:12px 0}
  .logo{width:48px;height:48px;border-radius:var(--r);flex:0 0 auto;background:#1F1F1E;display:grid;place-items:center}
  .logo svg{width:30px;height:30px;display:block}
  .store h1{font-size:18px;line-height:1.25;margin:0;font-weight:650;letter-spacing:-.01em}
  .store p{margin:2px 0 0;font-size:14px;color:var(--muted)}
  .top-actions{margin-left:auto;display:flex;align-items:center;gap:8px}
  .icon-btn{width:44px;height:44px;border:1px solid var(--border);background:var(--canvas);border-radius:999px;display:grid;place-items:center}
  .icon-btn:hover{background:var(--surface2)}
  .icon-btn svg{width:20px;height:20px}
  .btn-wa{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:999px;
    background:var(--wa);color:#0B2E18;border:none;font-weight:600;font-size:14px}
  .btn-wa:hover{filter:brightness(.96)}
  .btn-wa svg{width:18px;height:18px}
  .btn-wa .lbl{display:none}
  @media(min-width:560px){ .btn-wa .lbl{display:inline} }

  .status{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted);padding:8px 0 0}
  .dot{width:8px;height:8px;border-radius:999px;background:var(--green);box-shadow:0 0 0 3px var(--green-soft)}

  /* ---------- Search ---------- */
  .searchbar{padding:16px 0 4px}
  .search{position:relative}
  .search svg{position:absolute;left:14px;top:50%;transform:translateY(-50%);width:18px;height:18px;color:var(--muted)}
  .search input{width:100%;height:48px;padding:0 16px 0 42px;border-radius:999px;border:1px solid var(--border);
    background:var(--canvas);font-size:15px;color:var(--text);outline:none}
  .search input::placeholder{color:var(--muted)}
  .search input:focus{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft)}

  /* ---------- Sections ---------- */
  section{padding:24px 0 0}
  .sec-head{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:12px}
  .sec-head h2{font-size:17px;margin:0;font-weight:650;letter-spacing:-.01em}
  .sec-head .link{font-size:13px;color:var(--blue);font-weight:550;background:none;border:none;padding:0}
  .sec-sub{font-size:14px;color:var(--muted);margin:-6px 0 12px}

  /* ---------- Category cards ---------- */
  .cats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
  .cat{background:var(--canvas);border:1px solid var(--border);border-radius:var(--r-lg);padding:14px 8px;
    display:flex;flex-direction:column;align-items:center;gap:8px;min-height:88px;justify-content:center}
  .cat:hover{background:var(--blue-soft);border-color:#BFDDF6}
  .cat[aria-pressed="true"]{border-color:var(--blue);background:var(--blue-soft);box-shadow:0 0 0 1px var(--blue) inset}
  .cat .ico{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--surface2)}
  .cat[aria-pressed="true"] .ico{background:#fff}
  .cat .ico svg{width:20px;height:20px;color:var(--blue)}
  .cat span{font-size:13px;font-weight:550;text-align:center;line-height:1.25}

  /* ---------- Genre chips ---------- */
  .chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}
  .chips::-webkit-scrollbar{display:none}
  .chip{flex:0 0 auto;height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--border);
    background:var(--canvas);font-size:13px;font-weight:550;color:var(--muted);white-space:nowrap}
  .chip:hover{color:var(--text);background:var(--surface2)}
  .chip[aria-pressed="true"]{background:#1F1F1E;border-color:#1F1F1E;color:#fff}

  /* ---------- Product grid ---------- */
  .grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  @media(min-width:640px){ .grid{grid-template-columns:repeat(3,minmax(0,1fr))} }
  @media(min-width:900px){ .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px} }

  .card{background:var(--canvas);border:1px solid var(--border);border-radius:var(--r-lg);overflow:hidden;
    display:flex;flex-direction:column;text-align:left;padding:0;box-shadow:var(--shadow)}
  .card:hover{border-color:#D9D8D5;transform:translateY(-1px)}
  .card{transition:transform .15s ease,border-color .15s ease}
  @media(prefers-reduced-motion:reduce){ .card{transition:none} }
  .cover{position:relative;aspect-ratio:3/4;background:var(--surface2)}
  .cover svg{position:absolute;inset:0;width:100%;height:100%}
  .badge{position:absolute;left:8px;top:8px;font-size:11px;font-weight:600;padding:4px 8px;border-radius:999px;
    background:rgba(255,255,255,.92);color:var(--text);border:1px solid var(--border)}
  .card-body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:6px;flex:1}
  .price{font-size:15px;font-weight:700;letter-spacing:-.01em}
  .pname{font-size:13px;line-height:1.4;color:var(--text);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(3 * 1.4em)}
  .meta{font-size:12px;color:var(--muted);margin-top:auto}

  .empty{background:var(--canvas);border:1px dashed var(--border);border-radius:var(--r-lg);padding:32px 20px;text-align:center;color:var(--muted);font-size:14px}

  /* ---------- Modal ---------- */
  .overlay{position:fixed;inset:0;background:rgba(20,20,20,.45);display:none;z-index:60;align-items:flex-end;justify-content:center}
  .overlay.open{display:flex}
  .sheet{background:var(--canvas);width:100%;max-width:560px;border-radius:16px 16px 0 0;max-height:92vh;overflow:auto;
    padding:20px;box-shadow:0 -8px 32px rgba(0,0,0,.16)}
  @media(min-width:640px){
    .overlay{align-items:center}
    .sheet{border-radius:var(--r-lg)}
  }
  .sheet-top{display:flex;gap:16px;align-items:flex-start}
  .sheet-cover{width:104px;flex:0 0 104px;aspect-ratio:3/4;border-radius:var(--r);overflow:hidden;position:relative;border:1px solid var(--border)}
  .sheet-cover svg{position:absolute;inset:0;width:100%;height:100%}
  .sheet h3{margin:0 0 6px;font-size:17px;line-height:1.3;letter-spacing:-.01em}
  .tagline{font-size:13px;color:var(--muted);margin:0}
  .sheet .price-lg{font-size:22px;font-weight:700;margin:10px 0 0;letter-spacing:-.02em}
  .divider{height:1px;background:var(--border);margin:16px 0}
  .kv{display:grid;grid-template-columns:104px 1fr;gap:8px 12px;font-size:14px}
  .kv dt{color:var(--muted)}
  .kv dd{margin:0}
  .desc{font-size:14px;color:var(--text);margin:12px 0 0;max-width:68ch}
  .sheet-actions{display:flex;gap:8px;margin-top:20px}
  .sheet-actions .btn-wa{flex:1;justify-content:center;height:48px;font-size:15px}
  .btn-ghost{height:48px;padding:0 16px;border-radius:999px;border:1px solid var(--border);background:var(--canvas);font-size:14px;font-weight:550}
  .btn-ghost:hover{background:var(--surface2)}
  .note{font-size:12px;color:var(--muted);margin:10px 0 0;text-align:center}

  /* ---------- Floating WA ---------- */
  .fab{position:fixed;right:16px;bottom:16px;z-index:50;display:inline-flex;align-items:center;gap:10px;
    height:52px;padding:0 18px;border-radius:999px;background:var(--wa);color:#0B2E18;font-weight:650;font-size:14px;
    box-shadow:0 6px 20px rgba(37,211,102,.35)}
  .fab svg{width:22px;height:22px}
  @media(max-width:559px){ .fab{padding:0 16px;height:48px;font-size:0;gap:0} .fab svg{width:24px;height:24px} }

  /* ---------- Footer ---------- */
  footer{margin-top:40px;padding:28px 0 96px;border-top:1px solid var(--border);background:var(--canvas)}
  .foot{display:flex;flex-wrap:wrap;gap:16px;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted)}
  .foot strong{color:var(--text);font-weight:600}
/* Tambahan: logo, banner/hero, dan gambar produk WebP */
.logo-img{width:48px;height:48px;flex:0 0 auto;border-radius:8px;object-fit:cover;border:1px solid var(--border);background:var(--surface2)}

.hero{margin-top:24px;background:var(--canvas);border:1px solid var(--border);border-radius:12px;overflow:hidden}
.hero-banner{display:block;width:100%;height:auto;max-height:280px;object-fit:cover}
.hero-text{padding:24px}
.hero-text h2{margin:0;font-size:20px;line-height:1.3;letter-spacing:-.01em;max-width:34ch}
.hero-text p{margin:8px 0 0;font-size:15px;color:var(--muted);max-width:64ch}
@media(min-width:900px){
  .hero-text{padding:32px}
  .hero-text h2{font-size:24px}
}

.cover-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
