/*
Theme Name: Pusaka Dunia
Theme URI: https://www.pusakadunia.com/
Author: Pusaka Dunia
Description: Tema ringan untuk Pusaka Dunia — galeri batu mustika, keris pusaka bertuah, dan benda bertuah. Semua pemesanan langsung ke WhatsApp, tanpa keranjang belanja. SEO bawaan tanpa plugin. Warna merah pusaka seperti situs lama.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: pusakadunia
*/

:root {
	--bg: #380707;
	--panel: #781515;
	--panel-2: #8E2020;
	--dark: #5A0F0F;
	--darker: #2C0505;
	--bar1: #B92D2D;
	--bar2: #8E1E1E;
	--cream: #FFEEA8;
	--gold: #E7B65C;
	--line: rgba(255, 222, 140, .25);
	--line-2: rgba(255, 222, 140, .45);
	--text: #FFFFFF;
	--soft: #F3DADA;
	--muted: #E8B3B3;
	--price: #FFD98A;
	--wa: #1EA211;
	--wa-2: #178C0D;
	--head1: #731313;
	--head2: #570B0B;
	--head3: #360202;
	--lebar: 1250px;
}

* , *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	-webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cream); text-decoration: none; }
a:hover, a:focus { color: #FFFFFF; }
h1, h2, h3, h4 { margin: 0 0 12px; line-height: 1.3; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 20px; }

.pd-lebar { max-width: var(--lebar); margin: 0 auto; padding-left: 14px; padding-right: 14px; }
.pd-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pd-sr:focus { position: static !important; width: auto; height: auto; margin: 0; clip: auto; background: var(--cream); color: var(--darker); padding: 8px 14px; display: inline-block; }

/* ---------- Tombol WhatsApp kecil ---------- */
.pd-wa-kecil {
	display: inline-flex; align-items: center; gap: 6px;
	background: var(--wa); color: #fff; font-size: 13px; font-weight: bold;
	padding: 7px 13px; border-radius: 3px; min-height: 34px;
}
.pd-wa-kecil:hover { background: var(--wa-2); color: #fff; }

/* ---------- Kepala ---------- */
.pd-kepala { background: linear-gradient(var(--head1), var(--head2) 55%, var(--head3)); }
.pd-kepala .pd-lebar { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.pd-merek { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 0; color: #fff; }
.pd-merek:hover { color: #fff; }
.pd-merek img { max-height: 76px; width: auto; }
.pd-merek__nama { display: block; font-size: 28px; font-weight: bold; letter-spacing: 1px; }
.pd-merek__slogan { display: block; font-size: 13px; color: #F0CF8E; }
.pd-cari { flex: 1 1 300px; display: flex; min-width: 0; margin: 0; }
.pd-cari input {
	flex: 1 1 auto; min-width: 0; height: 44px; font-size: 14px; padding: 0 14px;
	background: #fff; color: var(--head3); border: 1px solid var(--line-2); border-right: 0;
	border-radius: 3px 0 0 3px;
}
.pd-cari button {
	width: 56px; height: 44px; border: 0; border-radius: 0 3px 3px 0;
	background: var(--bar1); color: var(--cream); cursor: pointer;
}
.pd-cari button:hover { background: var(--bar2); }

/* ---------- Menu ---------- */
.pd-menu { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid rgba(0,0,0,.35); }
.pd-menu .pd-lebar { display: flex; flex-wrap: wrap; align-items: center; padding: 0 14px; }
.pd-menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.pd-menu a {
	display: block; padding: 12px 16px; font-size: 13.5px; font-weight: bold;
	letter-spacing: .6px; color: #fff; text-transform: uppercase;
}
.pd-menu a:hover, .pd-menu .current-menu-item > a { background: rgba(0,0,0,.25); }
.pd-menu__tombol { display: none; }

/* ---------- Badan ---------- */
.pd-badan { padding: 14px 0; }
.pd-badan .pd-lebar { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.pd-samping { flex: 1 1 240px; min-width: 0; order: -1; display: flex; flex-direction: column; gap: 14px; }
.pd-isi { flex: 999 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.pd-kotak { background: var(--panel); border: 1px solid var(--line); }
.pd-kotak__judul {
	margin: 0; background: linear-gradient(var(--bar1), var(--bar2));
	color: var(--cream); font-size: 15px; padding: 10px 15px;
}
.pd-kotak__isi { padding: 14px 15px; }
.pd-kotak__isi > :last-child { margin-bottom: 0; }

.pd-kat { list-style: none; margin: 0; padding: 6px; }
.pd-kat li {
	margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
	padding-right: 10px; font-size: 12px; color: var(--muted); border-radius: 2px;
}
.pd-kat li:hover, .pd-kat .current-cat { background: rgba(255,255,255,.10); }
.pd-kat a { flex: 1 1 auto; display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 13.5px; min-height: 36px; align-items: center; }
.pd-kat__anak { list-style: none; margin: 4px 0 2px; padding: 0 0 0 14px; flex: 1 1 100%; border-left: 1px solid var(--line); }
.pd-kat__anak a { font-size: 13px; padding: 6px 10px; }
.pd-kat__tanda { color: var(--gold); font-size: 15px; line-height: 1; flex: 0 0 auto; }

.pd-legal { list-style: none; margin: 0; padding: 12px 15px; font-size: 12.5px; line-height: 1.9; color: var(--soft); }

.pd-peringatan {
	background: rgba(0,0,0,.28); border-left: 4px solid var(--gold);
	padding: 11px 14px; color: var(--cream); font-size: 14px;
}

.pd-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pd-chip {
	display: inline-flex; align-items: center; min-height: 40px;
	background: var(--panel-2); border: 1px solid var(--line);
	color: var(--cream); font-size: 13.5px; padding: 8px 15px; border-radius: 20px;
}
.pd-chip:hover { background: var(--bar1); border-color: var(--line-2); color: #fff; }

/* ---------- Kisi produk ---------- */
.pd-kisi { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.pd-kisi--lebar { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.pd-kartu { background: var(--panel-2); border: 1px solid rgba(255,222,140,.22); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; }
.pd-kartu:hover { border-color: var(--line-2); }
.pd-kartu__gbr { display: block; position: relative; background: linear-gradient(var(--dark), var(--darker)); aspect-ratio: 1 / 1; overflow: hidden; }
.pd-kartu__gbr img { width: 100%; height: 100%; object-fit: cover; }
.pd-kartu__kosong { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--gold); font-size: 12px; }
.pd-kartu__teks { padding: 9px 10px 11px; display: flex; flex-direction: column; gap: 7px; flex: 1 1 auto; }
.pd-kartu__nama {
	font-size: 13px; font-weight: bold; line-height: 1.4; color: #fff;
	display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2;
	-webkit-box-orient: vertical; overflow: hidden;
}
.pd-kartu__harga { font-size: 16px; font-weight: bold; color: var(--price); }

.pd-label {
	position: absolute; top: 7px; left: 7px; font-size: 10.5px; font-weight: bold;
	letter-spacing: .5px; padding: 3px 7px; border-radius: 2px;
	background: var(--darker); color: var(--cream); border: 1px solid var(--line-2);
}
.pd-label--habis { color: #FFBDBD; border-color: #E07070; }
.pd-label--khusus { left: auto; right: 7px; background: var(--bar1); color: #fff; border-color: rgba(255,255,255,.4); }

/* ---------- Tombol ---------- */
.pd-wa {
	display: flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--wa); color: #fff; font-weight: bold; font-size: 12.5px;
	padding: 10px 8px; border-radius: 3px; min-height: 44px; text-align: center;
}
.pd-wa:hover { background: var(--wa-2); color: #fff; }
.pd-wa--besar { font-size: 17px; padding: 15px 18px; }
.pd-tombol {
	display: inline-block; background: var(--bar1); border: 1px solid var(--line-2);
	color: var(--cream); font-size: 13px; font-weight: bold; padding: 10px 18px;
	border-radius: 3px; min-height: 44px;
}
.pd-tombol:hover { background: var(--bar2); color: #fff; }
.pd-habis {
	display: flex; align-items: center; justify-content: center;
	background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.18);
	color: var(--muted); font-size: 12.5px; font-weight: bold; padding: 10px 8px;
	border-radius: 3px; min-height: 44px;
}

/* ---------- Remah ---------- */
.pd-remah { font-size: 12.5px; color: var(--muted); margin: 0 0 12px; }
.pd-remah a { color: var(--cream); }

.pd-admin {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	background: rgba(0,0,0,.3); border: 1px dashed var(--line-2);
	padding: 10px 12px; margin-bottom: 14px; border-radius: 3px;
}
.pd-admin__label {
	font-size: 11px; font-weight: bold; letter-spacing: .8px; text-transform: uppercase;
	color: var(--gold); border: 1px solid var(--line-2); padding: 3px 8px; border-radius: 2px;
}
.pd-admin__tbl {
	background: var(--panel-2); border: 1px solid var(--line); color: var(--cream);
	font-size: 13px; font-family: inherit; padding: 8px 14px; border-radius: 3px;
	cursor: pointer; min-height: 40px; display: inline-flex; align-items: center;
}
.pd-admin__tbl:hover { background: var(--bar1); color: #fff; }
.pd-admin__tbl[disabled] { opacity: .6; cursor: default; }
.pd-admin__tbl.is-ada { border-color: #2F8A28; color: #CFF5CB; }
.pd-admin__tbl.is-habis { border-color: #E07070; color: #FFBDBD; }

/* ---------- Halaman produk ---------- */
.pd-produk { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.pd-produk__foto { flex: 1 1 400px; min-width: 0; }
.pd-produk__sisi { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.pd-utama { background: linear-gradient(var(--dark), var(--darker)); border: 1px solid var(--line); }
.pd-utama img { width: 100%; }
.pd-utama a { display: block; position: relative; }
.pd-utama__kaca {
	position: absolute; right: 10px; bottom: 10px; display: flex;
	align-items: center; justify-content: center; width: 40px; height: 40px;
	background: rgba(44,5,5,.72); border: 1px solid var(--line-2);
	border-radius: 3px; color: var(--cream);
}
.pd-utama a:hover .pd-utama__kaca { background: var(--bar1); }
.pd-galeri { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); gap: 8px; }
.pd-galeri a { display: block; border: 1px solid var(--line); background: var(--darker); }

.pd-tag { display: inline-block; background: var(--darker); color: var(--price); font-size: 11px; font-weight: bold; letter-spacing: .5px; padding: 4px 9px; border-radius: 2px; }
.pd-tag--ada { background: #0F5E0B; color: #CFF5CB; }
.pd-tag--habis { background: #5B0B0B; color: #FFBDBD; }

.pd-mahar { background: rgba(0,0,0,.28); border-left: 4px solid var(--gold); padding: 13px 16px; }
.pd-mahar__label { display: block; font-size: 12px; color: var(--muted); letter-spacing: .5px; }
.pd-mahar__nilai { display: block; font-size: 30px; font-weight: bold; color: var(--price); line-height: 1.2; }
.pd-mahar__coret { color: var(--muted); font-size: 15px; text-decoration: line-through; font-weight: normal; }
.pd-mahar__ket { display: block; margin-top: 3px; font-size: 12.5px; color: var(--soft); }

.pd-spek { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pd-spek th, .pd-spek td { padding: 8px 0; border-bottom: 1px solid rgba(255,222,140,.15); text-align: left; vertical-align: top; }
.pd-spek th { font-weight: normal; color: var(--muted); width: 40%; }

.pd-tulisan { font-size: 15px; line-height: 1.85; color: #F7E6E6; }
.pd-tulisan a { text-decoration: underline; }
.pd-tulisan img { margin: 12px 0; }
.pd-tulisan h2, .pd-tulisan h3 { color: var(--cream); margin-top: 22px; }
.pd-tulisan iframe { max-width: 100%; }

/* ---------- Pembesar foto ---------- */
body.pd-terkunci { overflow: hidden; }
.pd-lb {
	position: fixed; inset: 0; z-index: 900; display: none;
	align-items: center; justify-content: center;
	background: rgba(12, 2, 2, .93); padding: 54px 16px;
}
.pd-lb.is-buka { display: flex; }
.pd-lb__gbr { max-width: 100%; max-height: 100%; object-fit: contain; }
.pd-lb__tbl {
	position: absolute; background: rgba(0,0,0,.35); border: 1px solid var(--line);
	color: var(--cream); cursor: pointer; border-radius: 3px;
	width: 46px; height: 46px; font-size: 26px; line-height: 1; padding: 0;
	display: flex; align-items: center; justify-content: center;
}
.pd-lb__tbl:hover, .pd-lb__tbl:focus { background: var(--bar1); color: #fff; }
.pd-lb__tutup { top: 12px; right: 12px; }
.pd-lb__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.pd-lb__next { right: 12px; top: 50%; transform: translateY(-50%); }
.pd-lb--tunggal .pd-lb__prev, .pd-lb--tunggal .pd-lb__next { display: none; }
.pd-lb__hitung { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 13px; }

/* ---------- Kaki ---------- */
.pd-kaki { background: var(--darker); border-top: 1px solid var(--line); margin-top: 16px; text-align: center; }
.pd-kaki .pd-lebar { padding-top: 22px; padding-bottom: 22px; }
.pd-kaki__wa { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; justify-content: center; margin-bottom: 14px; }
.pd-kaki__wa-teks { flex: 1 1 100%; font-size: 13px; color: var(--soft); margin-bottom: 2px; }
.pd-kaki a { color: var(--cream); font-size: 15px; }
.pd-kaki a:hover { color: #fff; }

/* ---------- Halaman ---------- */
.pd-nomor { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 18px 0 0; }
.pd-nomor .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; min-height: 44px; padding: 0 12px;
	background: var(--panel-2); border: 1px solid var(--line); color: var(--cream); font-size: 14px;
}
.pd-nomor .page-numbers.current, .pd-nomor a.page-numbers:hover { background: var(--bar1); color: #fff; }

/* ---------- Tombol WA melayang (HP) ---------- */
.pd-wa-tetap { display: none; }

/* ---------- Ukuran layar ---------- */
@media (max-width: 860px) {
	.pd-menu .pd-lebar { display: block; padding: 0; }
	.pd-menu__tombol {
		display: flex; align-items: center; gap: 9px; width: 100%;
		background: transparent; border: 0; color: #fff; font-size: 14px; font-weight: bold;
		letter-spacing: .6px; text-transform: uppercase; padding: 13px 14px; cursor: pointer;
		min-height: 48px;
	}
	.pd-menu ul { display: none; flex-direction: column; border-top: 1px solid var(--line); }
	.pd-menu.is-buka ul { display: flex; }
	.pd-menu li { border-bottom: 1px solid rgba(0,0,0,.25); }
	.pd-merek__nama { font-size: 22px; }
	.pd-merek img { max-height: 56px; }
	.pd-samping { order: 2; }
	.pd-isi { order: 1; }
	.pd-kisi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pd-kisi--lebar { grid-template-columns: 1fr; }
	.pd-mahar__nilai { font-size: 26px; }
	body.single { padding-bottom: 76px; }
	.pd-wa-tetap {
		display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50;
		box-shadow: 0 -4px 16px rgba(44,5,5,.8);
	}
}

@media (max-width: 420px) {
	.pd-merek__nama { font-size: 19px; }
	.pd-merek__slogan { font-size: 11.5px; }
	h1 { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}
