:root {
  --kertas: #F2F3F5;
  --tinta: #1C1F24;
  --aksen: #0072D6;
  --aksen-gelap: #005BB0;
  --aksen-muda: #0072D60F;
  --aksen-garis: #0072D655;
  --wa: #1F9D55;
  --merek: #0072D6;
  --redup: #8A919C;
  --redup2: #5B626D;
  --garis: #E6E8EB;
  --garis2: #EEF0F2;
  --kartu: #FFFFFF;
  --lembut: #F2F3F5;
  --bar: 64px;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--kertas);
  color: var(--tinta);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}
body[data-bar="1"] { padding-bottom: 76px; }

img { max-width: 100%; -webkit-user-drag: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--aksen); outline-offset: 2px; border-radius: 4px; }

/* ---------- bilah atas ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--aksen);
  color: #fff;
}

.bar-isi {
  max-width: 1200px;
  height: var(--bar);
  margin: 0 auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bar svg { width: 22px; height: 22px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.kembali-hp { display: none; width: 44px; height: 44px; flex-shrink: 0; align-items: center; justify-content: center; color: #fff; }

.merek { display: flex; align-items: center; justify-content: center; gap: 10px; flex-shrink: 0; min-width: 44px; min-height: 44px; color: #fff; }
.merek img { display: block; width: 36px; height: 36px; border-radius: 8px; background: #fff; }
.merek-nama { display: none; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }

.cari {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  background: #fff;
  border-radius: 4px;
  padding: 0 10px;
}
.cari:focus-within { box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.6); }
.bar .cari-ikon { width: 16px; height: 16px; stroke: var(--redup); }
.cari input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  color: var(--tinta);
  height: 44px;
  margin: -3px 0;
}
.cari input::-webkit-search-cancel-button { cursor: pointer; }
.cari-tombol { display: none; }

.wa-atas { display: none; }

.troli {
  position: relative;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff;
}
.lencana {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #fff;
  color: var(--aksen);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  border: 1px solid var(--aksen);
}

@media (max-width: 899px) {
  body[data-halaman="dalam"] .kembali-hp { display: flex; }
  body[data-halaman="dalam"] .merek { display: none; }
}

/* ---------- kerangka halaman ---------- */

main { max-width: 1240px; margin: 0 auto; padding: 0 16px 56px; }
main.toko { max-width: none; padding: 0 0 24px; }
.wadah { max-width: 1200px; margin: 0 auto; }

.judul-halaman { padding: 26px 0 0; }
.judul-halaman h1 { font-size: clamp(23px, 4vw, 32px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; margin: 0; text-wrap: balance; }
.judul-halaman p { font-size: 13.5px; font-weight: 500; color: var(--redup2); margin: 8px 0 0; line-height: 1.5; }

.kembali {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  margin-top: 18px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--redup2);
}
.kembali svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.kembali:hover { color: var(--tinta); }

.bagian { margin-top: 34px; }
.bagian-kepala { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.bagian-kepala h2 { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.bagian-kepala span { font-size: 12px; font-weight: 600; color: var(--redup); flex-shrink: 0; }

.label-kecil { font-size: 10.5px; font-weight: 800; letter-spacing: 0.12em; color: var(--redup); }

/* ---------- petak ---------- */

.petak { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); }
.petak-lebar { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }

.kartu {
  display: flex;
  flex-direction: column;
  background: var(--kartu);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.15s;
}
.kartu:hover { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }

.bingkai { position: relative; background: var(--lembut); aspect-ratio: 1; }
.bingkai img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kode {
  position: absolute;
  left: 8px;
  bottom: 8px;
  background: rgba(28, 31, 36, 0.84);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 7px;
  border-radius: 3px;
}

.pita {
  position: absolute;
  top: 6px;
  left: 0;
  z-index: 1;
  background: var(--aksen);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 0 3px 3px 0;
}

.kartu-teks { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.kartu-nama {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  min-height: 32px;
}
.kartu-sub { font-size: 12px; font-weight: 600; color: var(--redup); }
.kartu-sub.aksen { color: var(--aksen); font-weight: 800; }
.kartu-harga { font-size: clamp(11.5px, 3.3vw, 15px); font-weight: 700; line-height: 1.25; color: var(--aksen); white-space: nowrap; }
.tag-baris { display: flex; gap: 4px; flex-wrap: wrap; }
.tag-satuan, .tag-ukuran { font-size: 10px; line-height: 1.5; border-radius: 2px; padding: 0 4px; white-space: nowrap; }
.tag-satuan { color: var(--aksen); border: 1px solid var(--aksen); }
.tag-ukuran { color: #4B525C; background: var(--lembut); }

/* petak foto: tanpa kartu, rapat */
.foto-petak { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.foto {
  position: relative;
  display: block;
  width: 100%;
  background: var(--lembut);
  border: 1px solid var(--garis);
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 1;
}
.foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.foto:hover img { transform: scale(1.03); }

/* ---------- kepingan & kosong ---------- */

.keping {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--lembut);
  border: 1px solid var(--garis);
  font-size: 12px;
  font-weight: 700;
  color: var(--redup2);
}

.kosong {
  margin: 20px 0;
  padding: 32px 22px;
  border: 1px dashed #D3DEEB;
  border-radius: 14px;
  text-align: center;
}
.kosong strong { display: block; font-size: 14px; font-weight: 800; }
.kosong span { display: block; font-size: 12.5px; font-weight: 500; color: var(--redup2); margin-top: 6px; line-height: 1.5; }

.lagi {
  display: block;
  margin: 20px auto 0;
  height: 46px;
  padding: 0 22px;
  border-radius: 11px;
  background: var(--tinta);
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
}
.lagi:hover { background: #14294A; }

details.testi { margin-top: 34px; border-top: 1px solid var(--garis2); padding-top: 18px; }
details.testi > summary { font-size: 13.5px; font-weight: 800; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
details.testi > summary::-webkit-details-marker { display: none; }
details.testi > summary::before { content: '▸'; color: var(--redup); font-size: 12px; }
details.testi[open] > summary::before { content: '▾'; }
details.testi > .foto-petak { margin-top: 14px; }

/* ---------- carousel banner ---------- */

.sorot-banner { display: block; width: 100%; height: auto; }
.carousel-viewport { position: relative; width: 100%; aspect-ratio: 1600 / 606; min-height: 380px; overflow: hidden; border-radius: 8px; background: #FFF9F7; touch-action: pan-y; }
.banner-slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(20px, 3vw, 42px); }
.banner-slide[hidden] { display: none; }
.banner-brand { display: block; padding: 0; }
.banner-brand .sorot-banner { height: 100%; object-fit: contain; }
.banner-brand-ringkas { display: none; }
.banner-huruf { background: #FFF1F5; }
.banner-keluarga { background: #FFF7E9; }
.banner-custom { background: #EDF5FF; }
.banner-harga { color: #ED3B76; }
.banner-slide.banner-harga { background: #FFF1F5; }
.banner-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--tinta); }
.banner-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.banner-copy h2 { margin: 0; font-size: clamp(24px, 3vw, 38px); line-height: 1.12; letter-spacing: -0.035em; text-wrap: balance; }
.banner-copy p { margin: 0; font-size: 14px; line-height: 1.5; max-width: 45ch; }
.banner-copy .banner-harga { font-size: 23px; font-weight: 800; }
.banner-copy small { font-size: 12px; line-height: 1.4; color: var(--redup2); }
.banner-copy .tombol { margin-top: 4px; }
.banner-foto { display: flex; align-items: center; justify-content: center; gap: 14px; min-width: 0; min-height: 0; height: 100%; }
.banner-foto img { min-width: 0; min-height: 0; width: calc(50% - 7px); height: auto; max-height: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 16px; }
.banner-foto img:only-child { width: 85%; }
.carousel-kendali { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 10px; }
.carousel-kendali > button { width: 44px; height: 44px; border: 1px solid var(--garis); border-radius: 6px; background: #fff; color: var(--tinta); font-size: 24px; }
.carousel-kendali [data-banner-jeda] { font-size: 16px; }
.carousel-titik { display: flex; }
.carousel-titik button { width: 28px; height: 44px; display: grid; place-items: center; }
.carousel-titik span { width: 8px; height: 8px; border-radius: 50%; background: #A5B2C4; }
.carousel-titik [aria-pressed='true'] span { background: var(--aksen); width: 12px; height: 12px; }
.carousel button:focus-visible { outline: 3px solid var(--aksen); outline-offset: 2px; }
@media (max-width: 700px) {
  /* Banner ringkas: sama tinggi untuk semua slide, titik di atas gambar. */
  .carousel { position: relative; }
  .carousel-viewport { aspect-ratio: 1600 / 606; min-height: 160px; height: auto; }
  .banner-slide { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); gap: 8px; padding: 8px 12px 30px; align-items: center; }
  .banner-slide.banner-brand { display: block; grid-template-columns: none; padding: 0; background: var(--gambar) center / cover; }
  .banner-slide.banner-brand::before { content: ''; position: absolute; inset: 0; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .banner-brand .sorot-banner { position: relative; width: 100%; height: 100%; object-fit: contain; }
  .banner-copy { gap: 3px; min-width: 0; }
  .banner-label { font-size: 10px; letter-spacing: 0.06em; }
  .banner-copy h2 { font-size: clamp(16px, 4.4vw, 22px); line-height: 1.12; letter-spacing: -0.02em; }
  .banner-copy p, .banner-copy small { display: none; }
  .banner-copy .banner-harga { font-size: 14px; }
  .banner-copy .tombol { height: 28px; padding: 0 12px; margin-top: 2px; border-radius: 4px; font-size: 12px; }
  .banner-foto { height: auto; gap: 4px; }
  .banner-foto img { width: clamp(56px, 16vw, 90px); height: auto; max-height: none; flex: none; border-radius: 6px; }
  .banner-foto img:only-child { width: clamp(96px, 28vw, 130px); }
  .banner-blok .carousel-kendali { margin-top: 4px; }
  .carousel-titik { position: absolute; z-index: 3; left: 50%; bottom: 48px; transform: translateX(-50%); pointer-events: none; }
  .carousel-titik button { width: 28px; height: 30px; align-items: end; padding-bottom: 7px; pointer-events: auto; }
  .carousel-titik span, .carousel-titik [aria-pressed='true'] span { width: 5px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px rgba(28, 31, 36, 0.3); }
  .carousel-titik [aria-pressed='true'] span { width: 14px; background: #fff; }
}
.tombol.aksen { background: var(--aksen); }
.tombol.aksen:hover { background: var(--aksen-gelap); }

/* ---------- pratinjau ---------- */

dialog#lihat {
  width: min(100vw, 1180px);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: rgba(10, 26, 51, 0.97);
  color: #FFFFFF;
  overflow: hidden;
}
dialog#lihat::backdrop { background: rgba(10, 26, 51, 0.9); }

dialog#lihat figure {
  margin: 0;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 16px 16px;
  gap: 14px;
}
dialog#lihat img { max-width: 100%; max-height: calc(100dvh - 150px); object-fit: contain; border-radius: 10px; background: #0F2240; }

dialog#lihat figcaption {
  width: 100%;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.lihat-info { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.lihat-kode { font-size: 14px; font-weight: 800; letter-spacing: 0.06em; margin: 0; }
.lihat-ket { font-size: 12px; font-weight: 500; color: #9AA6B8; margin: 5px 0 0; }

dialog#lihat .wa {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  background: #1FA855;
  color: #FFFFFF;
  font-size: 13.5px;
  font-weight: 800;
}
dialog#lihat .wa:hover { background: #1A8F48; }
dialog#lihat .wa[hidden] { display: none; }

dialog#lihat .tutup,
dialog#lihat .nav {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}
dialog#lihat .tutup { top: 12px; right: 14px; width: 42px; height: 42px; }
dialog#lihat .nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
dialog#lihat .prev { left: 10px; }
dialog#lihat .next { right: 10px; }
dialog#lihat .tutup:hover, dialog#lihat .nav:hover { background: rgba(255, 255, 255, 0.2); }
dialog#lihat svg { width: 19px; height: 19px; fill: none; stroke: #FFFFFF; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- toko: bagian beranda, kategori, dan produk ---------- */

.dt-saja { display: none; }

.tanda-koleksi {
  position: absolute;
  left: 6px;
  bottom: 6px;
  z-index: 1;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.tanda-koleksi.laris { background: rgba(28, 31, 36, 0.86); color: #fff; }
.tanda-koleksi.dicari { background: #fff; color: var(--aksen-gelap); border: 1px solid var(--aksen); }

/* profil toko di HP: blok biru di bawah bilah atas */
.profil-hp { background: var(--aksen); color: #fff; padding: 6px 12px 16px; display: flex; flex-direction: column; gap: 16px; }
.profil-baris { display: flex; align-items: center; gap: 12px; }
.profil-logo { width: 60px; height: 60px; border-radius: 50%; border: 2px solid #fff; background: #fff; object-fit: cover; flex-shrink: 0; }
.profil-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.profil-nama-baris { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.profil-label { background: #fff; color: var(--aksen); font-size: 10px; font-weight: 800; padding: 2px 6px; border-radius: 3px; letter-spacing: 0.02em; white-space: nowrap; }
.profil-nama-baris h1 { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.25; }
.profil-sub { font-size: 12px; opacity: 0.92; }
.profil-chat {
  position: relative;
  flex-shrink: 0;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #fff;
  border-radius: 4px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.profil-chat::after { content: ''; position: absolute; inset: -6px -4px; }
.profil-chat svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.profil-stat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.profil-stat div { display: flex; flex-direction: column; gap: 2px; }
.profil-stat div:nth-child(2) { border-left: 1px solid rgba(255, 255, 255, 0.35); border-right: 1px solid rgba(255, 255, 255, 0.35); }
.profil-stat strong { font-size: 15px; }
.profil-stat span { font-size: 11px; opacity: 0.9; }
.profil-dt, .tab-grup { display: none; }

/* tab Toko, Produk, Kategori di HP */
.tab-toko {
  position: sticky;
  top: var(--bar);
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
  border-bottom: 1px solid var(--garis);
}
.tab-toko a { height: 46px; display: flex; align-items: center; justify-content: center; font-size: 14px; color: #4B525C; border-bottom: 2px solid transparent; }
.tab-toko a[aria-current='page'] { color: var(--aksen); font-weight: 700; border-bottom-color: var(--aksen); }

/* blok putih di beranda */
.blok { background: #fff; margin-top: 8px; padding: 12px 0; }
.blok-kepala { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 12px 10px; }
.blok-kepala h2, .rek-kepala h1, .rek-kepala h2 { margin: 0; font-size: 13px; font-weight: 700; color: #6B727D; letter-spacing: 0.04em; text-transform: uppercase; min-width: 0; }
.blok-lihat { position: relative; flex-shrink: 0; display: inline-flex; align-items: center; gap: 2px; min-height: 32px; font-size: 12px; color: var(--aksen); }
.blok-lihat::after { content: ''; position: absolute; inset: -6px -4px; }
.blok-lihat svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.kat-blok { padding: 14px 0 12px; }
.kat-gulir { overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
.kat-gulir::-webkit-scrollbar { display: none; }
.kat-petak { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: 80px; gap: 12px 4px; }
.kat-ikon { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2px; min-width: 0; }
.kat-gambar { display: block; width: 58px; height: 58px; border-radius: 14px; border: 1px solid var(--garis2); overflow: hidden; background: var(--lembut); }
.kat-gambar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kat-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; height: 29px; font-size: 11px; line-height: 1.3; text-align: center; color: #2C3138; overflow-wrap: anywhere; }
.kat-ikon:hover .kat-label { color: var(--aksen); }
.kat-titik { display: flex; justify-content: center; gap: 4px; padding-top: 10px; }
.kat-titik span { width: 18px; height: 3px; border-radius: 2px; background: #E1E4E8; }
.kat-titik span.aktif { background: var(--aksen); }

.banner-blok { padding: 8px 12px 0; }
.banner-blok .carousel-kendali { margin-top: 4px; }

/* kupon lusinan */
.hemat { padding: 12px; }
.hemat .blok-kepala { padding: 0 0 10px; }
.kupon-baris { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.kupon { display: flex; border: 1px solid var(--aksen-garis); background: var(--aksen-muda); border-radius: 6px; overflow: hidden; }
.kupon-isi { flex: 1 1 auto; min-width: 0; padding: 8px; display: flex; flex-direction: column; gap: 2px; border-right: 1px dashed var(--aksen-garis); }
.kupon-isi strong { font-size: 13px; color: var(--aksen); white-space: nowrap; }
.kupon-isi span { font-size: 11px; color: #4B525C; }
.kupon-aksi { flex: 0 0 46px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 10px; font-weight: 700; color: var(--aksen); }
@media (max-width: 359px) {
  .kupon { flex-direction: column; }
  .kupon-isi { border-right: 0; border-bottom: 1px dashed var(--aksen-garis); }
  .kupon-aksi { flex: none; padding: 4px 8px; }
}

/* paling laris: kartu geser */
.suka-baris { overflow-x: auto; padding: 0 12px; scrollbar-width: none; }
.suka-baris::-webkit-scrollbar { display: none; }
.suka-isi { display: flex; gap: 8px; width: max-content; }
.kartu-suka { width: 132px; flex: none; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--garis2); border-radius: 6px; overflow: hidden; }
.suka-gambar { position: relative; width: 132px; height: 132px; background: var(--lembut); }
.suka-gambar img { width: 132px; height: 132px; object-fit: cover; display: block; }
.suka-teks { padding: 6px 8px 8px; display: flex; flex-direction: column; gap: 4px; }
.kartu-suka .kartu-harga { font-size: 14px; white-space: normal; }

/* rekomendasi dan grid produk */
.rek { margin-top: 8px; }
.rek-kepala { background: #fff; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--aksen); }
.rek-kepala h1, .rek-kepala h2 { color: var(--aksen); }
.rek-kepala span { font-size: 12px; color: #6B727D; flex-shrink: 0; }
.rek-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 6px; }
@media (min-width: 600px) and (max-width: 899px) { .rek-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); } }
.sisi { display: none; }
.chip-baris { display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px; background: #fff; scrollbar-width: none; }
.chip-baris::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 4px; background: var(--lembut); font-size: 13px; color: #2C3138; white-space: nowrap; }
.chip[aria-current='page'] { background: var(--aksen); color: #fff; font-weight: 700; }
.urut-bar { background: #EDEEF0; padding: 8px 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.urut-bar.dt-saja { display: none; }
.urut-label { font-size: 14px; color: #4B525C; }
.urut-bar button { height: 44px; padding: 0 16px; border-radius: 2px; background: #fff; font-size: 14px; color: var(--tinta); }
.urut-bar button[aria-pressed='true'] { background: var(--aksen); color: #fff; }
.urut-judul { margin-left: auto; font-size: 14px; color: var(--aksen); }

/* halaman Kategori */
.kg-halaman { display: flex; align-items: stretch; background: #fff; min-height: calc(100dvh - var(--bar)); }
.kg-kiri { flex: 0 0 92px; width: 92px; background: var(--lembut); }
.kg-kiri-isi { position: sticky; top: var(--bar); max-height: calc(100dvh - var(--bar)); overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: none; }
.kg-kiri-isi::-webkit-scrollbar { display: none; }
.kg-btn { padding: 12px 6px; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #4B525C; font-size: 11px; font-weight: 500; line-height: 1.3; text-align: center; }
.kg-btn[aria-current='page'] { background: #fff; color: var(--aksen); font-weight: 700; }
.kg-ikon { display: block; width: 36px; height: 36px; border-radius: 10px; overflow: hidden; background: #fff; flex: none; }
.kg-ikon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kg-btn[aria-current='page'] .kg-ikon { outline: 2px solid var(--aksen); outline-offset: 1px; }
.kg-kanan { flex: 1 1 auto; min-width: 0; padding: 12px 12px 24px; display: flex; flex-direction: column; gap: 14px; }
.kg-banner { border-radius: 8px; overflow: hidden; flex: none; }
.kg-banner img { width: 100%; height: 110px; object-fit: cover; display: block; }
.kg-judul { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kg-judul h1 { margin: 0; font-size: 15px; font-weight: 700; }
.kg-judul span { font-size: 12px; color: #6B727D; }
.kg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 8px; }
.kg-sel { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.kg-gambar { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--garis2); overflow: hidden; background: var(--lembut); }
.kg-gambar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kg-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 1.3; text-align: center; color: #2C3138; overflow-wrap: anywhere; }
.kg-sel:hover .kg-label { color: var(--aksen); }
.tombol-garis { flex: none; min-height: 44px; border: 1px solid var(--aksen); color: var(--aksen); border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 0 10px; font-size: 13px; font-weight: 700; text-align: center; }
.tombol-garis svg { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.tanya { flex: none; background: #F7F8FA; border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tanya strong { font-size: 13px; }
.tanya span { font-size: 12px; line-height: 1.5; color: #4B525C; }
.tombol-wa { min-height: 44px; background: var(--wa); color: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; }

/* bar bawah HP: tombol Kategori dan Chat WhatsApp */
.bar-hp {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 25;
  min-height: 64px;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--garis);
  display: flex;
  align-items: center;
  gap: 8px;
}
.bar-hp svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bar-hp-kategori { flex: none; width: 64px; height: 48px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: #4B525C; }
.bar-hp-wa { flex: 1 1 auto; height: 44px; background: var(--wa); color: #fff; border-radius: 4px; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 700; }
.bar-hp-wa svg { width: 18px; height: 18px; }
body[data-bar="0"] .bar-hp, body:has(dialog[open]) .bar-hp { display: none; }
body[data-bar="1"] #toast { bottom: 84px; }

@media (min-width: 900px) {
  :root { --bar: 72px; }
  body[data-bar="1"] { padding-bottom: 0; }
  body[data-bar="1"] #toast { bottom: 24px; }
  .bar-hp { display: none; }
  .dt-saja { display: inline; }
  .urut-bar.dt-saja { display: flex; }

  .bar-isi { padding: 14px 20px; gap: 24px; }
  .merek-nama { display: inline; }
  .merek img { width: 40px; height: 40px; }
  .cari { flex: 1 1 360px; height: 44px; padding: 4px; gap: 0; border-radius: 4px; }
  .bar .cari-ikon { display: none; }
  .cari input { padding: 0 10px; font-size: 14px; height: 36px; margin: 0; }
  .cari-tombol { display: flex; flex: none; width: 60px; height: 36px; align-items: center; justify-content: center; border-radius: 3px; background: var(--aksen); color: #fff; }
  .cari-tombol svg { width: 18px; height: 18px; }
  .wa-atas { display: flex; flex: none; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--wa); color: #fff; border-radius: 4px; font-size: 14px; font-weight: 700; white-space: nowrap; }
  .wa-atas svg { width: 18px; height: 18px; stroke-width: 2; }

  main.toko { padding-bottom: 48px; }
  .wadah { padding: 0 20px; }
  .profil-hp, .tab-toko { display: none; }

  .profil-dt { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 16px; padding: 20px; background: #fff; border-radius: 4px; }
  .profil-kartu { flex: 1 1 340px; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 6px; background: var(--aksen); color: #fff; }
  .profil-kartu img { width: 72px; height: 72px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, 0.7); background: #fff; object-fit: cover; flex: none; }
  .profil-kartu-isi { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .profil-kartu-isi strong { font-size: 18px; }
  .profil-kartu-isi span { font-size: 13px; opacity: 0.92; }
  .profil-daftar { flex: 2 1 480px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; font-size: 14px; }
  .profil-daftar div { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
  .profil-daftar dt { color: #6B727D; }
  .profil-daftar dd { margin: 0; font-weight: 700; color: var(--aksen); }

  .tab-grup { display: flex; flex-wrap: wrap; margin-top: 1px; background: #fff; border-radius: 0 0 4px 4px; }
  .tab-grup button { flex: 1 1 auto; min-width: 0; height: 52px; padding: 0 10px; border-bottom: 3px solid transparent; font-size: 14px; color: #2C3138; white-space: nowrap; }
  .tab-grup button[aria-pressed='true'] { border-bottom-color: var(--aksen); color: var(--aksen); font-weight: 700; }

  .blok { margin-top: 16px; border-radius: 4px; padding: 0; }
  .blok-kepala { padding: 16px 20px; border-bottom: 1px solid var(--garis2); }
  .blok-kepala h2 { font-size: 15px; }
  .blok-lihat { font-size: 13px; }
  .kat-blok { padding: 0; }
  .kat-gulir { overflow: visible; padding: 0; }
  .kat-petak { grid-auto-flow: row; grid-template-rows: none; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 0; }
  .kat-ikon { gap: 10px; padding: 16px 8px; border-right: 1px solid var(--lembut); border-bottom: 1px solid var(--lembut); }
  .kat-gambar { width: 76px; height: 76px; border-radius: 50%; border: 0; }
  .kat-label { font-size: 13px; height: 34px; }
  .kat-titik { display: none; }

  .banner-blok { padding: 16px 0 0; }
  .hemat { padding: 0 0 20px; }
  .hemat .blok-kepala { padding: 16px 20px; margin-bottom: 16px; }
  .hemat .kupon-baris { padding: 0 20px; gap: 16px; }
  .kupon-isi { padding: 10px 14px; }
  .kupon-aksi { flex-basis: 80px; font-size: 12px; }
  .suka .blok-kepala { margin-bottom: 14px; }
  .suka-baris { padding: 0 20px 4px; }
  .suka .blok-kepala + .suka-baris { padding-top: 0; }
  .blok.suka { padding-bottom: 16px; }

  .rek { display: flex; align-items: flex-start; gap: 20px; margin-top: 20px; }
  .sisi { display: flex; flex: 0 0 200px; flex-direction: column; }
  .sisi h2 { margin: 0; padding: 0 0 12px; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid #DFE2E6; }
  .sisi h2 svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .sisi-item { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 0 10px 22px; text-align: left; font-size: 14px; color: #2C3138; }
  .sisi-item:hover { color: var(--aksen); }
  .sisi-tanda { display: none; width: 10px; height: 10px; flex: none; fill: currentColor; }
  .sisi-item[aria-pressed='true'], .sisi-item[aria-current='page'] { padding-left: 4px; font-weight: 700; color: var(--aksen); }
  .sisi-item[aria-pressed='true'] .sisi-tanda, .sisi-item[aria-current='page'] .sisi-tanda { display: block; }
  .rek-utama { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
  .rek-utama { position: relative; }
  .rek-kepala, .rek-rute .rek-kepala { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); border: 0; }
  .chip-baris { display: none; }
  .urut-bar { background: #EDEEF0; border-radius: 2px; padding: 12px 16px; gap: 10px; }
  .urut-bar button { height: 34px; }
  .rek-grid { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 10px; padding: 0; }
  .kartu-koleksi .kartu-nama { font-size: 13px; line-height: 1.4; min-height: 36px; }
  .kartu-koleksi .kartu-teks { padding: 10px; gap: 8px; }
  .kartu-koleksi .tag-satuan, .kartu-koleksi .tag-ukuran { font-size: 11px; }
  .kartu-koleksi .kartu-harga { font-size: 14px; }
  .pita { top: 8px; font-size: 10px; padding: 2px 8px; }

  .kg-halaman { margin-top: 16px; min-height: 0; border-radius: 4px; overflow: hidden; }
  .kg-kiri { flex-basis: 220px; width: 220px; }
  .kg-kiri-isi { top: var(--bar); }
  .kg-btn { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 10px 16px; min-height: 60px; font-size: 14px; text-align: left; }
  .kg-kanan { padding: 20px 24px 28px; gap: 18px; }
  .kg-banner img { height: 160px; }
  .kg-judul h1 { font-size: 18px; }
  .kg-judul span { font-size: 13px; }
  .kg-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 18px 12px; }
  .kg-label { font-size: 13px; }
  .tombol-garis { align-self: flex-start; padding: 0 20px; }
  .tanya { max-width: 520px; }
  .tombol-wa { align-self: flex-start; padding: 0 24px; }
}

/* ---------- kaki ---------- */

.kaki {
  border-top: 1px solid var(--garis2);
  padding: 26px 16px 40px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--redup);
  line-height: 1.6;
}
.kaki p { margin: 0; }

@media (max-width: 560px) {
  .petak, .petak-lebar, .foto-petak { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  dialog#lihat .nav { width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ================= toko ================= */

/* ---------- tombol dan kotak umum ---------- */

.tombol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--tinta);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}
.tombol:hover { background: #14294A; }
.tombol.besar { width: 100%; height: 52px; font-size: 15px; }
.tombol.kecil { height: 38px; padding: 0 14px; font-size: 12.5px; }
.tombol.sekunder { background: var(--kartu); color: var(--tinta); border: 1px solid #CBD7E6; }
.tombol.sekunder:hover { background: var(--lembut); }
.tombol.mati, .tombol.mati:hover { background: #D3DEEB; color: #5D6B80; cursor: not-allowed; }
.wa-tombol { background: #1FA855; }
.wa-tombol:hover { background: #1A8F48; }
.tautan { color: var(--aksen-gelap); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
button.tautan { font-size: inherit; }
.pusat { text-align: center; margin: 22px 0 0; font-size: 13px; color: var(--redup2); }

.kosong.besar { padding: 44px 22px; }
.kosong.besar .tombol { display: inline-flex; margin-top: 18px; }

/* ---------- harga: segmen eceran / lusinan / reseller ---------- */

.mode {
  display: inline-flex;
  padding: 3px;
  border-radius: 11px;
  background: var(--lembut);
  border: 1px solid var(--garis);
}
.mode button,
.mode a {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  height: 32px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--redup2);
}
.mode button[aria-pressed='true'] { background: var(--kartu); color: var(--tinta); box-shadow: 0 1px 2px rgba(10, 26, 51, 0.12); }

.harga-seri { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-top: 14px; }
.harga-baris { margin: 0; font-size: 13.5px; font-weight: 500; color: var(--redup2); line-height: 1.5; max-width: 60ch; }
.harga-baris strong { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--tinta); }
.panduan-harga { width: 100%; font-size: 13px; line-height: 1.6; }
.panduan-harga summary { cursor: pointer; font-weight: 700; }
.harga-daftar { max-width: 620px; font-size: 14px; line-height: 1.6; }
.harga-daftar dl { margin: 12px 0; }
.harga-daftar dl > div { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; border-bottom: 1px solid currentColor; }
.harga-daftar dd { margin: 0; font-weight: 700; white-space: nowrap; }
.harga-daftar .catatan-ukuran { font-size: 13px; }
.harga-seri > .catatan-ukuran { width: 100%; margin: 0; font-size: 13px; line-height: 1.6; }
.pesan > .ukuran-rinci, .pesan > .catatan-ukuran { margin: 0; font-size: 13px; line-height: 1.6; color: #C5CFDD; }
.pilihan-varian { display: flex; flex-wrap: wrap; gap: 12px; }
.pilihan-varian label { display: flex; flex: 1 1 160px; flex-direction: column; gap: 6px; font-size: 13px; }
.pilihan-varian select { width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #9AA6B8; border-radius: 8px; background: #fff; color: var(--tinta); font: inherit; }
.tabel-ukuran { overflow-x: auto; margin: 12px 0; }
.tabel-ukuran table { width: 100%; border-collapse: collapse; text-align: left; }
.tabel-ukuran caption { text-align: left; font-weight: 700; padding: 8px 0; }
.tabel-ukuran th, .tabel-ukuran td { padding: 6px 10px; border-bottom: 1px solid currentColor; white-space: nowrap; }

/* penanda "sudah di keranjang" pada foto desain */
.foto .ada {
  position: absolute;
  top: 7px;
  right: 7px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--aksen);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--kertas);
}
.foto .ada[hidden] { display: none; }

/* ---------- pratinjau: panel pesan ---------- */

dialog#lihat.jual img { max-height: calc(100dvh - 330px); min-height: 180px; }
dialog#lihat figure { overflow-y: auto; justify-content: flex-start; }
dialog#lihat.jual figure { justify-content: flex-start; }

.pesan {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.pesan[hidden] { display: none; }
.pesan-harga { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.harga-satuan { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.harga-catatan { font-size: 12px; font-weight: 500; color: #9AA6B8; }
dialog#lihat .mode { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
dialog#lihat .mode button,
dialog#lihat .mode a { color: #A9B6C9; }
dialog#lihat .mode button[aria-pressed='true'] { background: #FFFFFF; color: var(--tinta); }

.ukuran { display: flex; gap: 8px; flex-wrap: wrap; }
.ukuran button {
  min-width: 52px;
  height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.ukuran button:hover { border-color: rgba(255, 255, 255, 0.5); }
.ukuran button[aria-pressed='true'] { background: #fff; color: var(--tinta); border-color: #fff; }
.ukuran button:has(small) { height: auto; min-height: 58px; padding: 8px 10px; }
.ukuran button small { display: block; margin-top: 4px; font-size: 10px; font-weight: 500; white-space: nowrap; }
.pesan-galat { margin: -4px 0 0; font-size: 12.5px; font-weight: 700; color: #FFB4A8; }
.pesan-galat[hidden] { display: none; }

.pesan-aksi { display: flex; gap: 10px; }
.pesan-aksi { flex-wrap: wrap; }
.pesan-aksi .beli, .pesan-aksi .beli-sekarang {
  flex: 1 1 140px;
  height: 48px;
  border-radius: 11px;
  font-size: 14.5px;
  font-weight: 800;
}
.pesan-aksi .beli { border: 1.5px solid rgba(255, 255, 255, 0.35); color: #fff; }
.pesan-aksi .beli:hover { background: rgba(255, 255, 255, 0.1); }
.pesan-aksi .beli-sekarang { background: var(--aksen); color: #fff; }
.pesan-aksi .beli-sekarang:hover { background: var(--aksen-gelap); }
.lihat-tombol { display: flex; gap: 10px; flex-wrap: wrap; }
dialog#lihat .ke-koleksi {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 18px;
  border-radius: 11px;
  background: var(--aksen);
  color: #fff;
  font-size: 13.5px;
  font-weight: 800;
}
dialog#lihat .ke-koleksi[hidden] { display: none; }
dialog#lihat .ke-koleksi:hover { background: var(--aksen-gelap); }
.pesan-ada { margin: 0; min-height: 0; font-size: 12.5px; font-weight: 600; color: #BCC8D8; }
.pesan-ada:empty { display: none; }
.pesan-ada a { color: #fff; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.qty {
  display: inline-flex;
  align-items: center;
  border-radius: 11px;
  border: 1.5px solid var(--garis);
  background: var(--kartu);
  flex-shrink: 0;
}
.qty button { width: 40px; height: 100%; min-height: 38px; font-size: 18px; font-weight: 700; color: var(--tinta); }
.qty button:hover { background: var(--lembut); }
.qty button:first-child { border-radius: 9px 0 0 9px; }
.qty button:last-child { border-radius: 0 9px 9px 0; }
.qty output { min-width: 30px; text-align: center; font-size: 14px; font-weight: 800; }
dialog#lihat .qty { background: transparent; border-color: rgba(255, 255, 255, 0.22); }
dialog#lihat .qty button { color: #fff; height: 48px; }
dialog#lihat .qty button:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- toast ---------- */

#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--tinta);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: opacity 0.2s, transform 0.2s;
}
#toast.tampil { opacity: 1; transform: translate(-50%, 0); }

/* ---------- halaman toko: kerangka dua kolom ---------- */

.toko-kolom { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; margin-top: 22px; }
.toko-utama { min-width: 0; }

.ringkas {
  position: sticky;
  top: calc(var(--bar) + 16px);
  background: var(--kartu);
  border: 1px solid var(--garis);
  border-radius: 16px;
  padding: 20px;
}
.ringkas h2 { margin: 0 0 14px; font-size: 15px; font-weight: 800; }
.ringkas dl { margin: 0; display: grid; gap: 10px; }
.ringkas dl div { display: flex; justify-content: space-between; gap: 14px; font-size: 13px; }
.ringkas dt { color: var(--redup2); font-weight: 500; }
.ringkas dd { margin: 0; font-weight: 700; text-align: right; }
.ringkas dd.redup { color: var(--redup); font-weight: 600; font-size: 12px; }
.ringkas .hemat dt, .ringkas .hemat dd { color: #1F7A45; font-weight: 700; }
.total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0; padding-top: 16px; border-top: 1px dashed #CBD7E6; }
.total span { font-size: 13px; font-weight: 700; }
.total strong { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.ringkas .catatan { margin: 12px 0 0; font-size: 12px; font-weight: 500; color: var(--redup2); line-height: 1.5; }
.alasan { margin: 10px 0 0; font-size: 12.5px; font-weight: 600; color: var(--aksen-gelap); line-height: 1.5; }
.tumpuk { display: flex; margin-bottom: 14px; }
.tumpuk img { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; border: 2px solid var(--kartu); margin-left: -10px; background: var(--lembut); }
.tumpuk img:first-child { margin-left: 0; }
.tumpuk span { display: grid; place-items: center; width: 44px; height: 44px; margin-left: -10px; border-radius: 9px; background: var(--lembut); font-size: 12px; font-weight: 800; border: 2px solid var(--kartu); }

/* ---------- keranjang ---------- */

.mode-kotak { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mode-kotak p { margin: 0; font-size: 12.5px; font-weight: 500; color: var(--redup2); }

.tingkat {
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #EEF6FF;
  border: 1px solid #CFE6FF;
}
.tingkat p { margin: 0 0 12px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.bilah { height: 8px; border-radius: 999px; background: #D6E9FF; overflow: hidden; }
.bilah i { display: block; height: 100%; border-radius: 999px; background: var(--aksen); transition: width 0.3s; }
.tingkat ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tingkat li { padding: 8px 10px; border-radius: 9px; background: rgba(255, 255, 255, 0.7); border: 1px solid transparent; }
.tingkat li span { display: block; font-size: 11px; font-weight: 600; color: var(--redup2); }
.tingkat li strong { font-size: 13px; font-weight: 800; }
.tingkat li.aktif { background: #fff; border-color: var(--aksen); }

.baris-daftar { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.baris {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: var(--kartu);
  border: 1px solid var(--garis);
}
.baris-gambar { flex-shrink: 0; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; background: var(--lembut); }
.baris-gambar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.baris-isi { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.baris-nama { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; padding-right: 30px; }
.baris-nama:hover { text-decoration: underline; text-underline-offset: 3px; }
.baris-sub { margin-top: 3px; font-size: 12.5px; font-weight: 600; color: var(--redup2); }
.baris-bawah { margin-top: auto; padding-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.baris-harga { font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
.hapus { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
.hapus:hover { background: var(--lembut); }
.hapus svg { width: 16px; height: 16px; fill: none; stroke: var(--redup2); stroke-width: 2.2; stroke-linecap: round; }

.bar-bawah { display: none; }

/* ---------- formulir pesanan ---------- */

.form-co fieldset { border: 0; margin: 0 0 30px; padding: 0; min-width: 0; }
.form-co legend { padding: 0; margin-bottom: 14px; font-size: 16px; font-weight: 800; letter-spacing: -0.02em; }
.isian { margin-bottom: 14px; }
.isian label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 700; color: var(--redup2); }
.isian label span { font-weight: 500; color: var(--redup); }
.isian input, .isian textarea {
  width: 100%;
  border: 1.5px solid #DCE5F1;
  border-radius: 12px;
  background: var(--kartu);
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--tinta);
  resize: vertical;
}
.isian input:focus, .isian textarea:focus { outline: none; border-color: var(--tinta); box-shadow: 0 0 0 3px rgba(10, 26, 51, 0.08); }
.isian [aria-invalid='true'] { border-color: #C93A1B; }
.galat { margin: 6px 0 0; font-size: 12.5px; font-weight: 700; color: #C93A1B; }
.galat[hidden] { display: none; }

.pilih-daftar { display: grid; gap: 10px; }
.pilih {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px 14px 46px;
  border-radius: 13px;
  background: var(--kartu);
  border: 1.5px solid #DCE5F1;
  cursor: pointer;
  flex-wrap: wrap;
}
.pilih input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.pilih::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border-radius: 50%;
  border: 2px solid #C0CEE0;
  background: #fff;
}
.pilih.aktif { border-color: var(--tinta); background: #FBFDFF; box-shadow: 0 0 0 1px var(--tinta); }
.pilih.aktif::before { border-color: var(--tinta); background: radial-gradient(circle, var(--tinta) 0 4.5px, #fff 5px); }
.pilih:has(:focus-visible) { outline: 2px solid var(--aksen); outline-offset: 2px; }
.pilih-isi { flex-grow: 1; min-width: 0; }
.pilih-isi strong { display: block; font-size: 14px; font-weight: 800; }
.pilih-isi em { display: block; margin-top: 2px; font-size: 12.5px; font-style: normal; font-weight: 500; color: var(--redup2); line-height: 1.4; }
.pilih-harga { font-size: 14px; font-weight: 800; }
.pilih.mati { background: var(--lembut); cursor: not-allowed; }
.pilih.mati input { cursor: not-allowed; }
.pilih.mati .pilih-isi { opacity: 0.55; }
.pilih small { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--aksen-gelap); }

/* ---------- selesai: langkah dan struk ---------- */

.selesai { max-width: 620px; margin: 0 auto; padding-top: 32px; }
.selesai-kepala { text-align: center; }
.centang { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: #E4F4EA; }
.centang svg { width: 28px; height: 28px; fill: none; stroke: #1F7A45; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 30; stroke-dashoffset: 30; animation: gores 0.5s 0.15s ease-out forwards; }
@keyframes gores { to { stroke-dashoffset: 0; } }
.selesai-kepala h1 { margin: 16px 0 0; font-size: clamp(24px, 5vw, 30px); font-weight: 800; letter-spacing: -0.035em; }
.selesai-kepala p { margin: 8px auto 0; max-width: 40ch; font-size: 14px; font-weight: 500; color: var(--redup2); line-height: 1.55; }

.langkah { list-style: none; counter-reset: l; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.langkah > li {
  counter-increment: l;
  position: relative;
  padding: 18px 18px 18px 60px;
  border-radius: 14px;
  background: var(--kartu);
  border: 1px solid var(--garis);
}
.langkah > li::before {
  content: counter(l);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--tinta);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.langkah h2 { margin: 3px 0 6px; font-size: 15px; font-weight: 800; }
.langkah p { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--redup2); line-height: 1.55; }
.langkah p:last-child { margin-bottom: 0; }
.langkah p strong { color: var(--tinta); }
.aksi-baris { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.rekening { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 12px 0; padding: 12px 14px; border-radius: 11px; background: var(--lembut); }
.rekening strong { display: block; font-size: 18px; font-weight: 800; letter-spacing: 0.04em; }
.rekening span { font-size: 12.5px; font-weight: 600; color: var(--redup2); }
.qris { display: block; margin: 12px 0; border-radius: 12px; border: 1px solid var(--garis); background: #fff; }

/* struk: tepi bergerigi seperti kertas kasir */
.struk {
  position: relative;
  margin-top: 28px;
  padding: 26px 22px;
  background: var(--kartu);
  filter: drop-shadow(0 1px 0 var(--garis)) drop-shadow(0 8px 14px rgba(10, 26, 51, 0.06));
}
/* tepi bergerigi seperti kertas kasir */
.struk::before, .struk::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 7px;
  background: var(--kartu);
}
.struk::before {
  top: -6px;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100% repeat-x;
}
.struk::after {
  bottom: -6px;
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100% repeat-x;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 14px 100% repeat-x;
}
.struk header { text-align: center; padding-bottom: 16px; border-bottom: 1px dashed #CBD7E6; }
.struk header span { display: block; font-size: 12px; font-weight: 600; color: var(--redup2); }
.struk header strong { display: block; margin: 4px 0; font-size: 22px; font-weight: 800; letter-spacing: 0.06em; font-variant-numeric: tabular-nums; }
.struk header small { font-size: 12px; font-weight: 500; color: var(--redup); }
.struk ul { list-style: none; margin: 0; padding: 14px 0; display: grid; gap: 12px; border-bottom: 1px dashed #CBD7E6; }
.struk li { display: flex; align-items: center; gap: 12px; }
.struk li img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--lembut); }
.struk li div { flex-grow: 1; min-width: 0; }
.struk li strong { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; }
.struk li span { font-size: 12px; font-weight: 500; color: var(--redup2); }
.struk li b { font-size: 13px; font-weight: 800; white-space: nowrap; }
.struk dl { margin: 0; padding: 14px 0; display: grid; gap: 8px; border-bottom: 1px dashed #CBD7E6; }
.struk dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.struk dt { color: var(--redup2); font-weight: 500; }
.struk dd { margin: 0; font-weight: 700; }
.struk .jumlah dt, .struk .jumlah dd { font-size: 17px; font-weight: 800; color: var(--tinta); }
.struk footer { padding-top: 14px; display: grid; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.5; }
.struk footer span { display: block; font-size: 11.5px; font-weight: 700; color: var(--redup); }
.struk footer strong { font-weight: 800; margin-right: 6px; }

.daftar-pesanan { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 640px; }
.daftar-pesanan a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px; border-radius: 13px; background: var(--kartu); border: 1px solid var(--garis); }
.daftar-pesanan a:hover { border-color: #C8D4E4; }
.daftar-pesanan strong { display: block; font-size: 14px; font-weight: 800; letter-spacing: 0.04em; }
.daftar-pesanan span { font-size: 12.5px; font-weight: 500; color: var(--redup2); }
.daftar-pesanan b { font-size: 14px; font-weight: 800; }

.kaki a { color: var(--redup2); text-decoration: underline; text-underline-offset: 3px; }
.kaki a[hidden] { display: none; }

/* ---------- toko: layar sempit ---------- */

@media (max-width: 860px) {
  .toko-kolom { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ringkas { position: static; }
  /* di keranjang, ringkasan turun ke bar bawah yang menempel */
  .toko-kolom:has(.baris-daftar) .ringkas { display: none; }
  .bar-bawah {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(245, 249, 255, 0.96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--garis);
  }
  .bar-bawah span { display: block; font-size: 11.5px; font-weight: 600; color: var(--redup2); }
  .bar-bawah strong { font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }
  .bar-bawah .tombol { padding: 0 28px; }
  .bar-bawah .alasan-kecil { max-width: 15ch; text-align: right; color: var(--aksen-gelap); font-weight: 700; }
  main:has(.bar-bawah) { padding-bottom: 110px; }
}

@media (max-width: 560px) {
  .tingkat ul { gap: 6px; }
  .tingkat li { padding: 7px 8px; }
  dialog#lihat.jual img { max-height: calc(100dvh - 360px); }
}

#koleksi { scroll-margin-top: 84px; }
@media (min-width: 900px) { #koleksi { scroll-margin-top: 88px; } }

.saran { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: #EEF8F1; border: 1px solid #CDE8D6; display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.saran p { margin: 0; font-size: 13px; font-weight: 500; line-height: 1.5; flex: 1 1 260px; }

.info-redup { margin: 0; font-size: 13px; color: var(--redup); }
