:root {
  --red: #E11B22;
  --red-dark: #B8141A;
  --ink: #17171A;
  --muted: #5F6066;
  --line: #E3E3E7;
  --band: #F4F4F5;
  --blush: #FCE9EA;
  --white: #fff;
  --wa: #128C4B;
  --radius: 18px;
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1240px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { top: 12px; }

/* Bar pengumuman */
.promo {
  background: var(--red);
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: .95rem;
  padding: 9px 16px;
}

/* Header */
.top { background: #fff; position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 22px; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 54px; width: auto; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; padding-left: 14px; border-left: 2px solid var(--line); line-height: 1.9; }

.search { flex: 1; position: relative; min-width: 0; }
.search svg { position: absolute; left: 18px; top: 50%; translate: 0 -50%; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.search input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--band);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px 12px 48px;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--ink); background: #fff; }

.top-links { display: flex; gap: 22px; flex: none; }
.top-links a { text-decoration: none; font-weight: 700; font-size: .95rem; }
.top-links a:hover { color: var(--red); }

.cart-btn { position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; }
.cart-btn:hover { border-color: var(--ink); }
.cart-btn svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.badge { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--red); color: #fff; font-size: .78rem; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; }

/* Chip kategori */
.chips-band { background: var(--band); }
.chips { display: flex; gap: 10px; padding-block: 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px 9px 14px;
  font-weight: 700; font-size: .95rem;
  white-space: nowrap;
}
.chip svg { width: 20px; height: 20px; flex: none; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 11px 18px;
  font-weight: 800;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { padding: 15px 28px; font-size: 1.08rem; border-radius: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-line { background: #fff; border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.btn-white { background: #fff; color: var(--red-dark); }
.btn-white:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; width: 100%; }
.btn-wa:hover { background: #0C6E3A; }
.btn-teks { background: none; border: 0; padding: 8px; color: var(--muted); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; align-self: center; }
.btn-teks:hover { color: var(--red-dark); }

/* Hero */
.hero {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: stretch;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
}
.hero-text { padding: clamp(28px, 3.6vw, 52px); align-self: center; }
.hero h1 {
  font-weight: 800;
  font-size: clamp(2.1rem, 4.1vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero p { margin-top: 16px; color: var(--muted); font-size: 1.06rem; max-width: 42ch; }
.hero .btn { margin-top: 26px; }
.hero-art {
  background: var(--blush);
  clip-path: polygon(13% 0, 100% 0, 100% 100%, 0 100%);
  display: grid; place-items: center;
  min-height: 300px;
  padding: 10px 14px 10px 11%;
}
.hero-art img { width: 100%; height: 100%; max-height: 420px; object-fit: contain; mix-blend-mode: multiply; }

/* Produk */
.produk { padding-block: 44px 20px; scroll-margin-top: 90px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; line-height: 1.15; }
.section-head p { color: var(--muted); font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.kartu {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.kartu-foto { position: relative; background: var(--band); aspect-ratio: 1 / 1; }
.kartu-foto { overflow: hidden; }
.kartu-foto img { width: 100%; height: 100%; object-fit: contain; transform: scale(1.04); mix-blend-mode: multiply; }
.berat { position: absolute; left: 12px; top: 12px; background: var(--red); color: #fff; font-weight: 800; font-size: .85rem; padding: 4px 10px; border-radius: 8px; }
.kartu-isi { padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.kartu h3 { font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.kartu .ket { color: var(--muted); font-size: .9rem; }
.harga { color: var(--red); font-weight: 800; font-size: 1.3rem; letter-spacing: -.01em; margin-top: 6px; }
.harga small { color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: 0; }
.kartu-aksi { margin-top: auto; padding-top: 12px; }
.kartu-aksi .btn { width: 100%; }

.stepper { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; border: 1.5px solid var(--red); border-radius: 12px; overflow: hidden; }
.stepper button { height: 43px; border: 0; background: #fff; color: var(--red); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.stepper button:hover { background: var(--blush); }
.stepper output { text-align: center; font-weight: 800; }

.kosong { text-align: center; padding: 48px 16px; border: 1.5px dashed var(--line); border-radius: var(--radius); }
.kosong p { color: var(--muted); margin-bottom: 16px; }

/* Cara pesan */
.langkah { padding-block: 52px; scroll-margin-top: 80px; }
.langkah ol { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.langkah li { background: var(--band); border-radius: var(--radius); padding: 24px; }
.langkah .no { display: block; font-weight: 800; font-size: 2.6rem; line-height: 1; color: var(--red); letter-spacing: -.03em; }
.langkah h3 { font-size: 1.15rem; font-weight: 800; margin-top: 14px; }
.langkah p { color: var(--muted); margin-top: 6px; font-size: .97rem; }

/* Grosir */
.grosir-band { background: var(--red); color: #fff; scroll-margin-top: 80px; }
.grosir { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-block: 44px; }
.grosir p { margin-top: 10px; max-width: 56ch; opacity: .95; }
.grosir .btn { flex: none; }

/* Footer */
.foot { background: #fff; border-top: 1px solid var(--line); }
.foot-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: 26px; }
.foot .brand img { height: 44px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.foot nav a:hover { color: var(--red); }
.copy { margin-left: auto; color: var(--muted); font-size: .9rem; }

/* Laci keranjang */
.tirai { position: fixed; inset: 0; background: rgba(23, 23, 26, .45); z-index: 40; }
.laci {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(430px, 100%);
  background: #fff;
  z-index: 41;
  display: flex; flex-direction: column;
  box-shadow: -18px 0 50px rgba(23, 23, 26, .18);
  animation: masuk .22s ease-out;
}
@keyframes masuk { from { transform: translateX(40px); opacity: 0; } }
.laci:focus { outline: none; }
.laci-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.laci-head h2 { font-size: 1.35rem; }
.ikon { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; }
.ikon:hover { border-color: var(--ink); }
.ikon svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; fill: none; }
.laci-isi { flex: 1; overflow-y: auto; padding: 8px 20px; }
.laci-kosong { text-align: center; padding: 56px 12px; color: var(--muted); }
.laci-kosong strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }
.baris { display: grid; grid-template-columns: 68px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.baris-foto { background: var(--band); border-radius: 12px; aspect-ratio: 1/1; }
.baris-foto img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.baris h3 { font-size: 1rem; font-weight: 800; line-height: 1.3; }
.baris .satuan { color: var(--muted); font-size: .88rem; }
.baris-bawah { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.baris-bawah .stepper { grid-template-columns: 36px 40px 36px; border-color: var(--line); }
.baris-bawah .stepper button { height: 34px; color: var(--ink); font-size: 1.1rem; }
.baris-bawah strong { font-weight: 800; }
.laci-kaki { border-top: 1px solid var(--line); padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; }
.total strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.01em; }
.catatan { color: var(--muted); font-size: .88rem; }

/* Bar keranjang di ponsel */
.bar-keranjang {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
  background: var(--ink); color: #fff;
  border: 0; border-radius: 14px;
  padding: 14px 18px;
  font-weight: 800;
  justify-content: space-between; align-items: center;
  box-shadow: 0 10px 30px rgba(23, 23, 26, .3);
}

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 20px;
  background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px;
  font-weight: 700; font-size: .95rem;
  opacity: 0; pointer-events: none;
  transition: opacity .2s, translate .2s;
  z-index: 60; max-width: calc(100% - 32px); text-align: center;
}
.toast.tampil { opacity: 1; translate: -50% 0; }

/* Layar sedang */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .top-links { display: none; }
}

/* Ponsel */
@media (max-width: 720px) {
  .wrap { width: min(1240px, 100% - 28px); }
  .promo { font-size: .85rem; }
  .top-row { flex-wrap: wrap; gap: 10px 12px; padding-block: 10px; }
  .brand img { height: 42px; }
  .brand-name { font-size: 1rem; padding-left: 10px; }
  .brand { gap: 10px; margin-right: auto; }
  .search { order: 3; flex: 1 0 100%; }
  .cart-btn { width: 44px; height: 44px; }

  .hero { grid-template-columns: 1fr; border-radius: 20px; margin-top: 14px; }
  .hero-art { clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%); min-height: 0; padding: 34px 18px 12px; order: 2; }
  .hero-art img { max-height: 230px; }
  .hero .btn { width: 100%; }

  .produk { padding-block: 32px 12px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kartu-isi { padding: 12px 10px 12px; }
  .kartu h3 { font-size: .98rem; }
  .harga { font-size: 1.12rem; }
  .btn { padding: 11px 12px; }
  .stepper { grid-template-columns: 38px 1fr 38px; }

  .langkah { padding-block: 36px; }
  .langkah ol { grid-template-columns: 1fr; gap: 10px; }
  .langkah li { padding: 18px; }

  .grosir { flex-direction: column; align-items: flex-start; gap: 20px; padding-block: 34px; }
  .grosir .btn { width: 100%; }

  .foot-row { flex-direction: column; align-items: flex-start; gap: 16px; padding-bottom: 96px; }
  .copy { margin-left: 0; }

  .bar-keranjang:not([hidden]) { display: flex; }
  .toast { bottom: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .laci { animation: none; }
  .toast, .btn { transition: none; }
}

/* ===== Tambahan versi Laravel: form pesanan, stok, halaman pesanan ===== */
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.stepper button[disabled] { opacity: .35; cursor: not-allowed; }
.kartu.habis .kartu-foto img { opacity: .45; }
.stok-info { font-size: .82rem; font-weight: 700; color: var(--red-dark); }

.form-pesan { display: grid; gap: 12px; padding: 18px 0 10px; }
.form-pesan h3 { font-size: 1.05rem; font-weight: 800; }
.form-pesan label { display: grid; gap: 5px; font-weight: 700; font-size: .92rem; }
.form-pesan input, .form-pesan textarea {
  font: inherit; font-weight: 500; color: var(--ink);
  width: 100%; background: #fff;
  border: 1.5px solid var(--line); border-radius: 10px;
  padding: 10px 12px;
}
.form-pesan textarea { resize: vertical; }
.form-pesan input:focus, .form-pesan textarea:focus { outline: none; border-color: var(--ink); }
.galat { color: var(--red-dark); background: var(--blush); font-weight: 700; font-size: .92rem; border-radius: 10px; padding: 10px 12px; }
.laci-kaki .btn { width: 100%; }

.berhasil { display: grid; gap: 12px; justify-items: center; text-align: center; padding: 44px 6px 20px; }
.berhasil:focus { outline: none; }
.berhasil .centang { width: 56px; height: 56px; border-radius: 50%; background: var(--wa); display: grid; place-items: center; }
.berhasil .centang svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.berhasil h3 { font-size: 1.35rem; font-weight: 800; }
.berhasil .kode { font-weight: 800; background: var(--band); padding: 6px 14px; border-radius: 8px; letter-spacing: .02em; }
.berhasil p { color: var(--muted); }
.berhasil .btn { width: 100%; }

.halaman-pesanan { max-width: 720px; padding-block: 40px 64px; }
.halaman-pesanan h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; }
.status-baris { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; color: var(--muted); }
.status { display: inline-block; font-weight: 800; font-size: .85rem; padding: 4px 12px; border-radius: 999px; background: var(--band); color: var(--ink); }
.status-baru { background: #FFF1CC; color: #6B4A00; }
.status-diproses { background: #DCEBFF; color: #0B3F8A; }
.status-dikirim { background: #E5DEFF; color: #3B2A91; }
.status-selesai { background: #D9F2E3; color: #0C5B32; }
.status-batal { background: var(--blush); color: var(--red-dark); }
.tabel-pesanan { width: 100%; border-collapse: collapse; margin-top: 26px; }
.tabel-pesanan th, .tabel-pesanan td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabel-pesanan th:nth-child(n+2), .tabel-pesanan td:nth-child(n+2) { text-align: right; white-space: nowrap; }
.tabel-pesanan thead th { font-size: .88rem; color: var(--muted); }
.tabel-pesanan small { color: var(--muted); }
.tabel-pesanan tfoot th, .tabel-pesanan tfoot td { font-weight: 800; font-size: 1.1rem; border-bottom: 0; }
.tabel-pesanan tfoot th { text-align: left; }
.halaman-pesanan .catatan { margin-top: 14px; }
.aksi-pesanan { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.aksi-pesanan .btn-wa { width: auto; }
@media (max-width: 720px) { .aksi-pesanan .btn { width: 100%; } }
