:root {
  --merah: #C43A28;
  --emas: #F4BE48;
  --krim: #FFF4E1;
  --teks: #3B2A20;
  --putih: #FFFFFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--krim);
  color: var(--teks);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;
  line-height: 1.5;
  font-weight: 400;
}

.isi {
  max-width: 480px;
  margin: 0 auto;
  padding: 16px;
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

a { color: var(--teks); }

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

/* kepala */
.kepala { text-align: center; padding: 8px 0 16px; }
.profil { margin: 0 auto 8px; width: 80px; height: 80px; }
.profil picture { display: block; }
.profil img { display: block; width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--emas); background: var(--putih); }
.kepala h1 { margin: 0 0 4px; font-size: 28px; line-height: 1.2; font-weight: 700; }
.kepala p { margin: 0 0 8px; }
.sapaan { font-weight: 700; }
.ikuti { margin-top: 12px; font-weight: 700; }
.sosial-baris { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }

.sosial {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 14px;
  background: var(--putih);
  border: 1px solid var(--teks);
  border-radius: 12px;
  color: var(--teks);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}
.sosial svg { width: 26px; height: 26px; flex: none; }

@media (max-width: 399px) {
  .nama-sosial {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .sosial { width: 52px; height: 52px; padding: 0; }
}

/* cari dan kategori */
input[type=search] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  background: var(--putih);
  color: var(--teks);
  border: 2px solid var(--teks);
  border-radius: 12px;
  font: inherit;
  font-size: 18px;
}
input[type=search]::placeholder { color: var(--teks); opacity: .75; }

.petunjuk { margin: 4px 0 0; font-size: 16px; color: var(--teks); }

.chips {
  display: flex;
  gap: 8px;
  margin: 12px 0 16px;
  padding-bottom: 4px;
  overflow-x: auto;
}
.chip {
  flex: none;
  min-height: 52px;
  padding: 0 18px;
  background: var(--putih);
  color: var(--teks);
  border: 2px solid var(--teks);
  border-radius: 26px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
}
.chip.aktif { background: var(--emas); }

.kosong { margin: 0 0 16px; padding: 16px; background: var(--putih); border-radius: 16px; font-weight: 700; }

/* kartu */
.kartu {
  margin-bottom: 16px;
  background: var(--putih);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(59, 42, 32, .15);
  overflow: hidden;
}
.kartu { scroll-margin-top: 16px; }
.sorot { outline: 4px solid var(--emas); }
.nomor { margin: 0; padding: 8px 16px; background: var(--emas); color: var(--teks); font-size: 28px; line-height: 1.2; font-weight: 700; }
.gambar { position: relative; }
.gambar > picture { display: block; }
.gambar > picture img, .gambar > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.tanpa-foto { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 5; background: var(--emas); color: var(--teks); font-size: 64px; font-weight: 700; }
.foto-toko {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 33%;
  background: var(--putih);
  border: 3px solid var(--putih);
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(59, 42, 32, .15);
  overflow: hidden;
}
.foto-toko picture { display: block; }
.foto-toko img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.foto-toko span { display: block; background: var(--putih); color: var(--teks); font-size: 14px; line-height: 1.3; font-weight: 700; text-align: center; }
.nama { margin: 12px 16px 4px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.toko { margin: 0 16px 12px; font-size: 16px; }

.beli, .tombol {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  background: var(--merah);
  color: var(--putih);
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.beli { margin: 0 16px 16px; }

/* halaman */
.halaman { margin: 8px 0 16px; text-align: center; }
.halaman .tombol { width: 100%; margin-bottom: 12px; }
.info-halaman { margin: 0 0 12px; font-weight: 700; }

/* kaki */
.kaki { padding: 8px 0 24px; text-align: center; font-size: 16px; }
.kaki p { margin: 0 0 8px; }
.kaki a { display: inline-block; min-height: 52px; line-height: 52px; }

/* halaman teks (privasi, 404, alih) */
.teks h1 { margin: 0 0 16px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.teks p { margin: 0 0 16px; }
.kembali { display: inline-block; margin-bottom: 16px; min-height: 52px; line-height: 52px; font-weight: 700; }
