/* =========================================================
   Tampilan baru website utama (hijau hutan + aksen emas)
   ========================================================= */
:root { --hijau-tua: #17402f; --hijau: #1e5a3e; --emas: #e3a72f; --emas-tua: #c98b16; --kertas: #f4f6f2; }
body { font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; background: var(--kertas); }

/* ---------- Kepala ---------- */
.tb2 { background: var(--hijau-tua); color: #fff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,.12); padding: 0; }
.tb2-atas { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 0; }
.tb2 .merek { color: #fff; text-decoration: none; display: flex; align-items: center; gap: 10px; min-width: 0; }
.tb2 .merek-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 50%; background: #fff; }
.tb2 .merek-nama { display: block; font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; color: #fff; }
.tb2 .merek-sub { display: block; font-size: .72rem; color: rgba(255,255,255,.75); }
.tb2-cari { flex: 1; min-width: 200px; max-width: 460px; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px;
  padding: 8px 16px; color: #667; margin-left: auto; }
.tb2-cari input { border: 0; outline: 0; width: 100%; font: inherit; font-size: .88rem; background: transparent; padding: 0; }
.tb2 .pilih-bahasa button { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.25); color: #fff; }
.tb2 .pilih-bahasa button.aktif { background: #fff; color: var(--hijau-tua); border-color: #fff; }
.tb2-akun { display: inline-flex; align-items: center; gap: 6px; color: #fff; text-decoration: none; font-weight: 600; font-size: .88rem; }
.tb2-keranjang { position: relative; display: inline-flex; align-items: center; gap: 6px; background: var(--emas); color: var(--hijau-tua);
  text-decoration: none; font-weight: 700; font-size: .88rem; padding: 9px 16px; border-radius: 10px; }
.tb2-keranjang .lencana, .nav-bawah .lencana { position: absolute; top: -7px; right: -7px; background: #e5484d; color: #fff; border-radius: 999px;
  min-width: 18px; height: 18px; font-size: .68rem; display: grid; place-items: center; padding: 0 4px; }
.tb2-menu { width: 100%; display: flex; gap: 4px; overflow-x: auto; background: #fff; margin: 10px calc(50% - 50vw) 0; padding: 0 calc(50vw - 50%);
  box-shadow: 0 1px 0 #e3e7e0; scrollbar-width: none; }
.tb2-menu::-webkit-scrollbar { display: none; }
.tb2-menu a { color: #2c3a30 !important; text-decoration: none; font-weight: 600; font-size: .86rem; padding: 12px 14px; white-space: nowrap;
  border-bottom: 3px solid transparent; }
.tb2-menu a.aktif, .tb2-menu a:hover { color: var(--emas-tua) !important; border-bottom-color: var(--emas); }
.tb2 .menu-tombol, .tb2 .menu-tombol-cek, .tb2-hanya-hp { display: none; }

/* ---------- Beranda ---------- */
.br-tata { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-top: 18px; align-items: start; }
.br-hero { position: relative; border-radius: 18px; overflow: hidden; min-height: 300px; background: var(--hijau) center/cover no-repeat;
  display: flex; align-items: center; color: #fff; }
.br-hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,20,.78) 0%, rgba(10,30,20,.35) 55%, rgba(10,30,20,.05) 100%); }
.br-hero-isi { position: relative; padding: 34px 32px; max-width: 520px; }
.br-hero-kecil { font-style: italic; font-size: 1rem; opacity: .95; }
.br-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 4px 0 10px; font-weight: 800; line-height: 1.05; }
.br-hero p { font-size: .92rem; line-height: 1.6; margin: 0 0 18px; color: rgba(255,255,255,.92); }
.br-hero-tulis { position: absolute; right: 26px; bottom: 22px; font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 1.6rem;
  color: #fff; transform: rotate(-8deg); opacity: .95; text-shadow: 0 2px 6px rgba(0,0,0,.4); }
.br-tombol-emas { display: inline-block; background: var(--emas); color: var(--hijau-tua) !important; font-weight: 700; text-decoration: none;
  padding: 11px 20px; border-radius: 10px; font-size: .9rem; }
.br-tombol-emas:hover { background: #f0b640; }
.br-lebar { display: block; text-align: center; margin-top: 12px; }
.br-bagian { margin-top: 26px; }
.br-judul h2 { margin: 0; font-size: 1.2rem; color: var(--hijau-tua); }
.br-judul p { margin: 2px 0 12px; font-size: .84rem; color: #66706a; }
.br-judul-baris { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.br-judul-baris a { font-size: .84rem; color: var(--emas-tua); font-weight: 600; text-decoration: none; }
.br-kategori { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.br-kat { background: #fff; border-radius: 14px; padding: 16px 10px; text-align: center; text-decoration: none; color: #2c3a30;
  box-shadow: 0 2px 10px rgba(20,40,30,.06); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .15s; }
.br-kat:hover { transform: translateY(-3px); }
.br-kat-ikon { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.br-kat-ikon svg { width: 26px; height: 26px; }
.br-kat strong { font-size: .84rem; line-height: 1.25; }
.br-kat small { font-size: .72rem; color: #7a847e; line-height: 1.3; }
.br-paket { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.br-kartu { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 2px 10px rgba(20,40,30,.07); display: flex; flex-direction: column; }
.br-kartu-gambar { position: relative; display: block; aspect-ratio: 16/10; background: #dfe7df; }
.br-kartu-gambar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.br-lencana { position: absolute; left: 10px; top: 10px; background: var(--hijau); color: #fff; font-size: .7rem; font-weight: 700;
  padding: 4px 9px; border-radius: 6px; }
.br-kartu-isi { padding: 11px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.br-kartu-isi h3 { margin: 0; font-size: .92rem; }
.br-kartu-isi h3 a { color: #1d2a22; text-decoration: none; }
.br-lokasi { color: #7a847e; font-size: .74rem; }
.br-kartu-bawah { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.br-harga { font-weight: 800; color: #1d2a22; font-size: .92rem; }
.br-harga small { font-weight: 500; color: #7a847e; font-size: .7rem; }
.br-pesan { background: var(--emas); color: var(--hijau-tua) !important; text-decoration: none; font-weight: 700; font-size: .78rem; padding: 6px 14px; border-radius: 8px; }
.br-promo { grid-column: span 2; position: relative; border-radius: 14px; overflow: hidden; background: var(--hijau) center/cover; color: #fff;
  text-decoration: none; padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 180px; }
.br-promo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,30,20,.85), rgba(10,30,20,.3)); }
.br-promo > * { position: relative; }
.br-promo-kecil { color: var(--emas); font-weight: 700; font-size: .8rem; }
.br-promo strong { font-size: 1.5rem; }
.br-promo span { font-size: .84rem; max-width: 360px; }
.br-promo em { font-style: normal; background: var(--emas); color: var(--hijau-tua); font-weight: 700; font-size: .8rem; padding: 7px 14px;
  border-radius: 8px; align-self: flex-start; margin-top: 4px; }
.br-samping { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 120px; }
.br-keranjang, .br-fitur { background: #fff; border-radius: 14px; padding: 16px; box-shadow: 0 2px 10px rgba(20,40,30,.06); }
.br-keranjang h3 { margin: 0 0 12px; font-size: .98rem; display: flex; align-items: center; gap: 8px; color: var(--hijau-tua); }
.br-keranjang h3 b { margin-left: auto; background: var(--emas); color: var(--hijau-tua); border-radius: 999px; font-size: .74rem; padding: 2px 9px; }
.br-kosong { font-size: .82rem; color: #7a847e; }
.br-ki { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 8px 0; border-bottom: 1px dashed #e3e7e0; font-size: .82rem; }
.br-ki small { grid-column: 1; color: #7a847e; font-size: .74rem; }
.br-ki span { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-weight: 700; color: var(--emas-tua); }
.br-total { display: flex; justify-content: space-between; padding: 10px 0 0; font-weight: 700; }
.br-total strong { color: var(--emas-tua); font-size: 1.1rem; }
.br-aman { margin-top: 14px; background: #f3f6f1; border-radius: 10px; padding: 10px 12px; font-size: .76rem; color: #56615a; display: flex; gap: 8px; }
.br-fitur { display: flex; flex-direction: column; gap: 12px; font-size: .8rem; color: #56615a; }
.br-fitur > div { display: flex; gap: 10px; align-items: flex-start; }
.br-fitur strong { color: #1d2a22; }

/* ---------- Akun pengunjung ---------- */
.akun-kotak { max-width: 520px; margin: 24px auto; background: #fff; border-radius: 16px; padding: 22px; box-shadow: 0 2px 12px rgba(20,40,30,.08); }
.akun-tab { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: #eef2ec; border-radius: 12px; padding: 4px; margin-bottom: 12px; }
.akun-tab a { text-align: center; padding: 9px; border-radius: 9px; text-decoration: none; font-weight: 700; color: #56615a; }
.akun-tab a.aktif { background: var(--hijau-tua); color: #fff; }

/* ---------- Kaki ---------- */
.kaki { background: var(--hijau-tua) !important; color: rgba(255,255,255,.88); border-radius: 26px 26px 0 0; margin-top: 36px; }
.kaki a, .kaki strong { color: #fff; }

/* ---------- Navigasi bawah (HP) ---------- */
.nav-bawah { display: none; }
@media (max-width: 1080px) { .br-kategori { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .br-tata { grid-template-columns: 1fr; }
  .br-samping { position: static; }
  .br-keranjang { display: none; }
  .tb2-cari { order: 5; max-width: none; flex-basis: 100%; margin: 4px 0 10px; }
  .tb2-akun span, .tb2-keranjang span, .tb2 .pilih-bahasa { display: none; }
  .tb2-akun { display: none; }
  .tb2 .menu-tombol { display: inline-grid; place-items: center; color: #fff; font-size: 1.4rem; cursor: pointer; margin-left: 4px; }
  .tb2-keranjang { margin-left: auto; padding: 8px 10px; }
  .tb2-menu { display: none; flex-direction: column; margin: 0 calc(50% - 50vw); }
  .tb2 .menu-tombol-cek:checked ~ .tb2-menu { display: flex; }
  .tb2-hanya-hp { display: block; }
  .br-hero { min-height: 240px; }
  .br-hero-isi { padding: 24px 20px; }
  .br-hero-tulis { display: none; }
  .br-promo { grid-column: auto; }
  .nav-bawah { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: #fff;
    box-shadow: 0 -2px 12px rgba(0,0,0,.1); padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px)); }
  .nav-bawah a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 600;
    color: #6b766f; text-decoration: none; }
  .nav-bawah a svg { width: 22px; height: 22px; }
  .nav-bawah a.aktif { color: var(--emas-tua); }
  .nav-bawah .lencana { top: -4px; right: 18%; }
  body { padding-bottom: 70px; }
}
@media (max-width: 560px) { .br-kategori { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .br-kat small { display: none; }
  .br-paket { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ---------- Perbaikan menu: bilah putih selebar layar, satu baris ---------- */
.tb2-atas { padding-bottom: 12px; }
.tb2 > .menu-tombol-cek { display: none; }
.tb2-bar { background: #fff; box-shadow: 0 1px 0 #e3e7e0; }
.tb2-bar .tb2-menu { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; margin: 0 auto; padding: 0 20px;
  background: transparent; box-shadow: none; width: auto; }
.tb2-bar .tb2-menu a { flex: none; display: block; }
@media (max-width: 900px) {
  .tb2-bar { display: none; }
  .tb2 > .menu-tombol-cek:checked ~ .tb2-bar { display: block; }
  .tb2-bar .tb2-menu { flex-direction: column; overflow: visible; }
  .tb2-bar .tb2-menu a { border-bottom: 1px solid #eef1ec; border-left: 3px solid transparent; }
  .tb2-bar .tb2-menu a.aktif { border-left-color: var(--emas); border-bottom-color: #eef1ec; }
}

/* ---------- Desktop: lebar tampilan dimaksimalkan ---------- */
@media (min-width: 1200px) {
  :root { --lebar: 1600px; }
  .wrap { max-width: var(--lebar); padding-left: 32px; padding-right: 32px; }
  .tb2-bar .tb2-menu { padding-left: 32px; padding-right: 32px; }
  .br-tata { grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; }
  .br-hero { min-height: 360px; }
  .br-paket { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .tb2-cari { max-width: 620px; }
}
@media (min-width: 1700px) {
  :root { --lebar: 1760px; }
  .br-hero { min-height: 400px; }
}

/* ---------- Tanpa menu ganda ---------- */
@media (max-width: 900px) {
  .tb2-keranjang { display: none !important; }            /* sudah ada di navigasi bawah */
  .tb2-bar .tb2-menu a.dobel-hp { display: none; }         /* Beranda, Semua Paket, Riwayat Pesanan ada di navigasi bawah */
}

/* ---------- Pencarian berbentuk ikon (semua perangkat) ---------- */
.tb2-cari { flex: none !important; min-width: 0 !important; max-width: none !important; background: transparent !important; padding: 0 !important;
  margin-left: auto !important; border-radius: 999px; display: flex; align-items: center; transition: background .2s; order: 0 !important; flex-basis: auto !important; }
.tb2-cari input { display: none; }
.tb2-cari-tombol { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.14); color: #fff; }
.tb2-cari-tombol:hover { background: rgba(255,255,255,.24); }
.tb2-cari.terbuka { background: #fff !important; padding: 3px 16px 3px 3px !important; flex: 1 1 auto !important; max-width: 560px !important; }
.tb2-cari.terbuka input { display: block; flex: 1; min-width: 0; }
.tb2-cari.terbuka .tb2-cari-tombol { background: var(--emas); color: var(--hijau-tua); }

/* ---------- Kepala ringkas di HP ---------- */
@media (max-width: 900px) {
  .tb2-atas { gap: 8px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .tb2 .merek { flex: 1; min-width: 0; }
  .tb2 .merek-logo { width: 38px; height: 38px; flex: none; }
  .tb2 .merek-nama { font-size: .86rem; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tb2 .merek-sub { display: none; }
  .tb2-cari { margin-left: 0 !important; }
  .tb2-cari.terbuka { order: 5 !important; flex: 1 1 100% !important; max-width: none !important; margin: 2px 0 4px !important; }
  .tb2 .menu-tombol { width: 40px; height: 40px; border: 0 !important; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 1.2rem;
    padding: 0; margin: 0; }
}
.br-ketentuan { display: block; font-size: .74rem; color: #6b766f; line-height: 1.4; margin: 2px 0 0; }

/* ---------- Spanduk Event Spesial: lebar penuh, tinggi ringkas ---------- */
.br-promo { grid-column: auto !important; width: 100%; box-sizing: border-box; min-height: 0; height: auto; padding: 26px 30px;
  background-position: center 40%; border-radius: 16px; }
.br-promo::before { background: linear-gradient(90deg, rgba(10,30,20,.9) 0%, rgba(10,30,20,.6) 45%, rgba(10,30,20,.15) 100%); }
.br-promo strong { font-size: 1.7rem; line-height: 1.15; }
.br-promo span:not(.br-promo-kecil) { max-width: 460px; font-size: .9rem; }
.br-promo em { padding: 9px 18px; font-size: .86rem; margin-top: 8px; }
@media (min-width: 1200px) { .br-promo { min-height: 190px; justify-content: center; } }
@media (max-width: 560px) { .br-promo { padding: 20px; } .br-promo strong { font-size: 1.35rem; } }

/* ---------- Paket populer: 3 kartu per baris, gambar seragam ---------- */
.br-paket { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 18px !important; }
.br-kartu-gambar { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.br-kartu-gambar img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; }
.br-kartu-isi h3 { font-size: 1rem; }
@media (max-width: 760px) { .br-paket { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; } }
@media (max-width: 420px) { .br-paket { grid-template-columns: 1fr 1fr !important; } }

/* ---------- Pilihan bahasa di HP (di dalam menu ☰) ---------- */
.bahasa-hp { display: none !important; }
@media (max-width: 900px) {
  .tb2-bar .bahasa-hp { display: flex !important; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid #eef1ec;
    flex-wrap: wrap; margin: 0; }
  .bahasa-hp small { width: 100%; font-size: .72rem; color: #7a847e; font-weight: 600; }
  .bahasa-hp button { flex: 1; padding: 9px 12px; border-radius: 10px; font-size: .86rem; background: #f3f6f1; color: #2c3a30;
    border: 1px solid #e3e7e0; justify-content: center; }
  .bahasa-hp button.aktif { background: var(--hijau-tua); color: #fff; border-color: var(--hijau-tua); }
}
