/* public/css/situs.css — gaya website Ragam Souvenir
   Mengikuti mockup terkunci (Kategori3/KategoriHP3). Batas HP/laptop: 900px. */

/* Elemen yang disembunyikan (atribut hidden) selalu benar-benar hilang */
[hidden] { display: none !important; }


:root {
  --navy: #0D2B6B;
  --navy-tua: #0A1F4D;
  --emas: #D4AF37;
  --emas-lembut: #E9D59A;
  --emas-teks: #8E6B12;
  --gading: #FAF8F3;
  --krem: #F3EFE6;
  --garis: #ECE6D8;
  --garis-tegas: #DCD4C2;
  --teks: #1A1F2B;
  --teks-isi: #3B4456;
  --abu: #5B6272;
  --putih: #FFFFFF;
  --hijau-wa: #1A7F46;

  --huruf-judul: 'Playfair Display', Georgia, serif;
  --huruf-isi: 'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 16px;
  --tinggi-kepala: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--gading);
  color: var(--teks);
  font-family: var(--huruf-isi);
  font-size: 16px;
  line-height: 1.6;
}
h1, h2, h3 { font-family: var(--huruf-judul); line-height: 1.2; margin: 0 0 .5em; font-weight: 600; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
a:hover { color: var(--navy-tua); }
input, select, textarea, button { font: inherit; font-size: 16px; } /* 16px: iPhone tidak zoom */
button { cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.w { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.hp-saja { display: none !important; }

/* ---------- Tombol umum ---------- */
.tombol-emas {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 12px;
  background: var(--emas); color: var(--navy-tua); font-weight: 800; font-size: 15px; text-decoration: none;
}
.tombol-emas:hover { filter: brightness(1.06); color: var(--navy-tua); }
.tombol-navy {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 12px;
  background: var(--navy); color: var(--putih); font-weight: 700; font-size: 15px; text-decoration: none; flex-shrink: 0;
}
.tombol-navy svg { color: var(--emas); }
.tombol-navy:hover { color: var(--putih); filter: brightness(1.1); }
.tombol-garis {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1px solid var(--navy); color: var(--navy); text-decoration: none; font-weight: 600;
}
.ikon-tombol {
  position: relative; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--garis);
  background: var(--putih); color: var(--navy); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ikon-tombol.polos { border: none; }
.lencana {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--emas); color: var(--navy-tua); font-size: 11px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Header ---------- */
.kepala { position: sticky; top: 0; z-index: 20; background: var(--putih); border-bottom: 1px solid var(--garis); }
.kepala-baris { display: flex; align-items: center; gap: 28px; height: var(--tinggi-kepala); }
.logo { text-decoration: none; flex-shrink: 0; }
.logo-teks { font-family: var(--huruf-judul); font-weight: 700; font-size: 24px; color: var(--navy); white-space: nowrap; }
.logo-teks span { color: var(--emas); }
.logo-teks.besar { color: var(--putih); }
.menu { display: flex; align-items: center; gap: 22px; font-size: 15px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
.menu a { text-decoration: none; color: var(--teks); padding-bottom: 4px; border-bottom: 2px solid transparent; }
.menu a:hover { color: var(--navy); }
.menu a.aktif { color: var(--navy); border-bottom-color: var(--emas); }
.isi-ruang { flex: 1; }

.cari-wrap { background: var(--putih); border-bottom: 1px solid var(--garis); padding: 0 0 14px; }
.cari-baris {
  display: flex; align-items: center; gap: 10px; color: var(--abu);
  background: #F6F3EC; border: 1.5px solid #DCD3BF; border-radius: 12px; padding: 0 6px 0 16px; height: 50px; margin: 0 auto;
}
.cari-wrap .cari-baris { max-width: 1136px; }
.cari-baris input { flex: 1; border: none; background: transparent; outline: none; color: var(--teks); min-width: 0; }
.cari-baris button { height: 40px; padding: 0 22px; border: none; border-radius: 9px; background: var(--navy); color: var(--putih); font-weight: 700; font-size: 15px; }
.cari-halaman { margin: 8px 0 20px; }

/* ---------- Judul kategori ---------- */
.judul-kat { background: var(--putih); border-bottom: 1px solid var(--garis); }
.judul-kat-isi { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 36px; padding-bottom: 40px; }
.judul-kat-teks { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.remah { font-size: 13px; color: var(--abu); display: flex; gap: 8px; flex-wrap: wrap; }
.remah a { color: var(--abu); text-decoration: none; }
.remah a:hover { color: var(--navy); }
.remah .kini { color: var(--emas-teks); font-weight: 600; }
.judul-kat h1 { margin: 0; font-size: 46px; line-height: 1.1; color: var(--navy); }
.judul-kat-desk { margin: 0; font-size: 16px; line-height: 1.7; color: var(--abu); max-width: 600px; }
.pil-baris { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.pil { display: inline-flex; align-items: center; gap: 6px; background: var(--gading); border: 1px solid var(--garis); padding: 9px 14px; border-radius: 999px; font-size: 14px; white-space: nowrap; }
.pil b { color: var(--navy); }

.kolase { flex: 0 1 380px; min-width: 0; display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: 110px 110px; gap: 10px; }
.kolase-foto { background: var(--krem); border-radius: var(--radius); overflow: hidden; display: flex; }
.kolase-foto.k0 { grid-row: span 2; }
.kolase-foto img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }
.kolase-foto .foto-kosong { font-size: 12px; }

/* ---------- Deretan kategori (chip) ---------- */
.chip-wrap { position: sticky; top: var(--tinggi-kepala); z-index: 15; background: var(--putih); border-bottom: 1px solid var(--garis); }
.chip-baris { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.chip-baris::-webkit-scrollbar { display: none; }
.chip {
  display: flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border-radius: 999px; border: 1px solid var(--garis);
  text-decoration: none; color: var(--teks); font-size: 14px; font-weight: 600; white-space: nowrap; flex-shrink: 0; background: var(--putih);
}
.chip img, .chip-huruf { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.chip-huruf { display: flex; align-items: center; justify-content: center; background: var(--krem); color: var(--emas-teks); font-weight: 800; }
.chip.aktif { border-color: var(--navy); background: var(--navy); color: var(--putih); font-weight: 700; }
.chip.aktif img { border: 2px solid var(--emas); }

/* ---------- Daftar produk ---------- */
.daftar { display: flex; flex-direction: column; gap: 22px; padding-top: 32px; padding-bottom: 72px; }
.bilah-urut { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.jumlah { font-size: 15px; color: var(--abu); margin: 0; }
.jumlah b { color: var(--teks); }
.urut { display: flex; gap: 8px; flex-wrap: wrap; }
.pil-urut {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--garis-tegas); background: var(--putih); color: var(--teks); text-decoration: none; white-space: nowrap;
}
.pil-urut.aktif { border-color: var(--navy); background: var(--navy); color: var(--putih); font-weight: 700; }

.grid-produk { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.kartu-produk {
  background: var(--putih); border: 1px solid var(--garis); border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: var(--teks); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.kartu-produk:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(13, 43, 107, .10); border-color: #D9CDAE; color: var(--teks); }
.js .kartu-produk.tersembunyi { display: none; }
.kp-foto { display: flex; aspect-ratio: 4 / 5; background: var(--krem); overflow: hidden; }
.kp-foto img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .4s ease; }
.kartu-produk:hover .kp-foto img { transform: scale(1.04); }
.foto-kosong {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center;
  color: var(--emas-teks); font-size: 14px; font-weight: 600; background: linear-gradient(135deg, #F3EEDF, #FAF8F3);
}
.kp-isi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 18px; flex: 1; }
.kp-kode { font-size: 12px; color: var(--abu); }
.kp-nama { font-weight: 700; font-size: 17px; line-height: 1.3; }
.kp-harga { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.kp-mulai { font-size: 13px; color: var(--abu); }
.kp-mulai b { font-family: var(--huruf-isi); color: var(--merah-harga, #B42318); font-size: 19px; font-weight: 800; }
.kp-tier { font-size: 12px; color: var(--emas-teks); font-weight: 600; white-space: nowrap; }
.kp-aksi {
  margin-top: 12px; height: 44px; border-radius: 10px; border: 1px solid var(--navy); color: var(--navy);
  font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tombol-lagi {
  align-self: center; height: 50px; padding: 0 26px; border-radius: 12px; border: 1.5px solid var(--navy);
  background: var(--putih); color: var(--navy); font-weight: 700; font-size: 15px; margin-top: 4px;
}
.pesan-kosong { font-size: 16px; color: var(--abu); padding: 24px 0; }

/* ---------- Kotak bantuan ---------- */
.bantuan {
  margin-top: 20px; background: var(--navy); border-radius: 20px; padding: 28px 32px; color: var(--putih);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px;
}
.bantuan div { display: flex; flex-direction: column; gap: 6px; }
.bantuan b { font-family: var(--huruf-judul); font-size: 24px; font-weight: 600; }
.bantuan span { font-size: 15px; color: #C8D2E8; }

/* ---------- Tentang & FAQ ---------- */
.tentang { background: var(--putih); border-top: 1px solid var(--garis); }
.tentang-isi { display: flex; flex-wrap: wrap; gap: 56px; padding-top: 72px; padding-bottom: 80px; }
.tentang-teks, .faq { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.eyebrow-gelap { color: var(--emas-teks); font-size: 13px; font-weight: 700; letter-spacing: 3px; }
.tentang h2 { margin: 0; font-size: 32px; color: var(--navy); }
.tentang p { margin: 0; font-size: 15px; line-height: 1.8; color: var(--teks-isi); }
.faq-daftar { border-top: 1px solid var(--garis); }
.faq details { border-bottom: 1px solid var(--garis); padding: 16px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 16px; font-weight: 700; color: var(--navy); }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 10px 0 0; }
.pm { font-size: 22px; color: var(--emas-teks); line-height: 1; transition: transform .2s ease; }
.faq details[open] .pm { transform: rotate(45deg); }

/* ---------- Footer ---------- */
.kaki { background: var(--navy-tua); color: #C8D2E8; }
.kaki-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-top: 56px; padding-bottom: 40px; }
.kaki-kol { display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; }
.kaki-kol b { color: var(--emas-lembut); margin-bottom: 4px; }
.kaki-kol a { color: #C8D2E8; text-decoration: none; }
.kaki-kol a:hover { color: var(--putih); }
.kaki-bawah { border-top: 1px solid rgba(233, 213, 154, .15); padding-top: 18px; padding-bottom: 24px; font-size: 13px; color: #8E9BB8; }

/* ---------- Bilah bawah HP ---------- */
.nav-bawah {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--putih); border-top: 1px solid var(--garis);
  grid-template-columns: repeat(4, minmax(0, 1fr)); height: 68px; box-shadow: 0 -6px 20px rgba(13, 43, 107, .08);
  padding-bottom: env(safe-area-inset-bottom);
}
.nav-bawah a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--abu); font-size: 11px; font-weight: 600; }
.nav-bawah a.aktif { color: var(--navy); font-weight: 700; }
.nav-bawah a.hijau { color: var(--hijau-wa); font-weight: 700; }

/* ---------- HP (lebar 900px ke bawah) ---------- */
@media (max-width: 900px) {
  :root { --tinggi-kepala: 60px; --radius: 14px; }
  .w { padding-left: 16px; padding-right: 16px; }
  .laptop-saja { display: none !important; }
  .hp-saja { display: flex !important; }
  .nav-bawah.hp-saja { display: grid !important; }
  body { padding-bottom: 68px; }

  .kepala-baris { gap: 8px; padding-left: 8px; padding-right: 12px; }
  .logo-teks { font-size: 20px; }

  .judul-kat-isi { padding-top: 16px; padding-bottom: 20px; gap: 12px; }
  .judul-kat-teks { gap: 12px; }
  .remah { font-size: 12px; gap: 6px; }
  .judul-kat h1 { font-size: 30px; line-height: 1.15; }
  .judul-kat-desk { font-size: 14px; line-height: 1.6; }
  .pil-baris { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; gap: 8px; scrollbar-width: none; }
  .pil-baris::-webkit-scrollbar { display: none; }
  .pil { padding: 8px 12px; font-size: 13px; flex-shrink: 0; }

  .chip-wrap { background: var(--gading); }
  .chip { font-size: 13px; padding: 4px 12px 4px 4px; gap: 6px; }
  .chip img, .chip-huruf { width: 30px; height: 30px; }

  .daftar { padding-top: 14px; padding-bottom: 24px; gap: 12px; }
  .bilah-urut { flex-direction: column-reverse; align-items: stretch; gap: 10px; }
  .urut { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .urut::-webkit-scrollbar { display: none; }
  .pil-urut { font-size: 13px; padding: 0 14px; flex-shrink: 0; }
  .jumlah { font-size: 13px; }

  .grid-produk { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kartu-produk:hover { transform: none; box-shadow: none; }
  .kp-isi { padding: 10px 12px 12px; gap: 3px; }
  .kp-kode, .kp-aksi { display: none; }
  .kp-nama { font-size: 14px; }
  .kp-harga { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 4px; }
  .kp-mulai { font-size: 12px; }
  .kp-mulai b { font-size: 15px; font-weight: 800; }
  .kp-tier { font-size: 11px; white-space: normal; }
  .tombol-lagi { align-self: stretch; }

  .bantuan { padding: 20px; border-radius: 18px; flex-direction: column; align-items: stretch; gap: 12px; }
  .bantuan b { font-size: 20px; }
  .bantuan span { font-size: 14px; line-height: 1.5; }
  .bantuan .tombol-emas { min-height: 48px; }

  .tentang-isi { padding-top: 28px; padding-bottom: 16px; gap: 28px; }
  .tentang h2 { font-size: 22px; line-height: 1.25; }
  .tentang p { font-size: 14px; line-height: 1.7; }
  .faq summary { font-size: 15px; }
  .faq details { padding: 14px 0; }

  .kaki-grid { grid-template-columns: 1fr 1fr; gap: 24px; padding-top: 28px; padding-bottom: 20px; }
  .kaki-kol:first-child { grid-column: 1 / -1; }
  .kaki-bawah { padding-bottom: 20px; }
}

/* ---------- Halaman sementara & 404 ---------- */
.sementara { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--navy-tua); color: var(--putih); }
.sementara-kotak { max-width: 560px; text-align: center; }
.sementara h1 { font-size: clamp(32px, 7vw, 52px); }
.sementara-teks { color: #D9DEEA; margin: 0 0 8px; }
.sementara-kecil { color: #AEB6CA; font-size: 14px; margin: 0 0 24px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--emas); }

/* ---------- Logo asli ---------- */
.logo-gambar { height: 26px; width: auto; display: block; }
.kaki-logo { width: 132px; height: auto; border-radius: 12px; display: block; }
@media (max-width: 900px) {
  .logo-gambar { height: 20px; }
  .kaki-logo { width: 108px; border-radius: 10px; }
}

/* ---------- Tombol WhatsApp melayang (laptop) ---------- */
.wa-melayang {
  position: fixed; right: 22px; bottom: 22px; z-index: 30; height: 56px; padding: 0 20px 0 16px; border-radius: 999px;
  background: #1F9D55; color: var(--putih); display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px;
  text-decoration: none; box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}
.wa-melayang:hover { color: var(--putih); filter: brightness(1.06); }
.wa-melayang svg { width: 24px; height: 24px; }

/* ---------- Deretan yang bisa digeser (expo, ulasan, untuk acara) ---------- */
.geser-jalur { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding-bottom: 6px; scrollbar-width: none; }
.geser-jalur::-webkit-scrollbar { display: none; }
.geser-jalur > * { scroll-snap-align: start; }
.geser-tombol { display: flex; gap: 10px; }
.geser-tombol button { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.geser-tombol button + button { background: var(--navy); color: var(--putih); }
.geser-tombol.gelap button { border-color: rgba(233, 213, 154, .6); color: var(--emas-lembut); }
.geser-tombol.gelap button + button { background: var(--emas); border-color: var(--emas); color: var(--navy-tua); }
.geser-titik { display: flex; justify-content: center; gap: 8px; }
.geser-titik span { width: 8px; height: 8px; border-radius: 999px; background: #D9CDAE; transition: width .2s ease, background .2s ease; }
.geser-titik span.aktif { width: 22px; background: var(--emas); }
.geser-titik.gelap span { background: rgba(233, 213, 154, .35); }
.geser-titik.gelap span.aktif { background: var(--emas); }
@media (max-width: 900px) {
  .geser-jalur { gap: 12px; margin: 0 -16px; padding: 0 16px 4px; scroll-padding: 0 16px; }
}
@media (min-width: 901px) {
  .b-acara-baris.geser-jalur { overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  .geser-jalur { scroll-behavior: auto; }
}

/* ---------- Program Diskon pada kartu produk ---------- */
.kp-foto { position: relative; }
.kp-badge { position: absolute; top: 10px; left: 10px; background: #B42318; color: #FFFFFF; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; line-height: 1.3; }
.kp-mulai s { color: var(--abu); font-size: 12px; margin-right: 2px; }
.kp-program { font-size: 11px; font-weight: 700; color: #B42318; line-height: 1.4; }

/* ---------- Popup foto (lightbox): latar buram, hanya foto ---------- */
html.lb-buka { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(8, 14, 32, .55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); display: flex; align-items: center; justify-content: center; }
.lb-jalur { position: absolute; inset: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-jalur::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; display: flex; align-items: center; justify-content: center; padding: 64px 72px; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; background: #FFFFFF; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.lb-tutup, .lb-panah { position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .92); color: #0D2B6B; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); }
.lb-tutup svg, .lb-panah svg { width: 22px; height: 22px; }
.lb-tutup { top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
.lb-panah.kiri { left: 20px; }
.lb-panah.kanan { right: 20px; }
.lb-panah:disabled { opacity: .35; cursor: default; }
.lb.satu .lb-panah { display: none; }
.lb-titik { position: absolute; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; display: flex; justify-content: center; gap: 8px; pointer-events: none; }
.lb-titik span { width: 8px; height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .5); transition: width .2s, background .2s; }
.lb-titik span.aktif { width: 22px; background: #FFFFFF; }
@media (max-width: 900px) {
  .lb-slide { padding: 72px 14px 56px; }
  .lb-panah { display: none; } /* di HP cukup digeser */
}
@media (prefers-reduced-motion: reduce) { .lb-titik span { transition: none; } }
.kaki-bawah a { color: #C8D2E8; }
