/* KURN Produk — daftar (.kp-grid) & halaman detail (.kp). Warna mengikuti skin dark Themify. */
.kp, .kp-grid {
	--kp-card: #1f1f1f;
	--kp-line: rgba(255, 255, 255, .09);
	--kp-accent: #fbeb71;
	--kp-text: #d8dae4;
	--kp-muted: #9fa2b3;
	font-family: Lato, "Open Sans", system-ui, sans-serif;
}

/* ---------- Daftar produk (/produk/) ---------- */
.kp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin: 0 auto; }
.kp-card {
	display: flex; flex-direction: column; gap: 10px; padding: 20px; text-align: center;
	background: var(--kp-card); border-radius: 15px; color: #fff; text-decoration: none;
	transition: transform .2s, box-shadow .2s;
}
.kp-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); color: #fff; }
.kp-card-img { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #fff; }
.kp-card-img:empty { background: #2a2a24; } /* produk tanpa foto */
.kp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s; }
.kp-card:hover .kp-card-img img { transform: scale(1.04); }
.kp-card h4 { margin: 12px 0 0; font-weight: 700; color: #fff; }
.kp-card-cat { font-size: 13px; color: var(--kp-accent); letter-spacing: .04em; text-transform: uppercase; }

/* ---------- Halaman detail ---------- */
main#content.kp { float: none; width: 100%; max-width: 1200px; margin: 0 auto; padding: 24px 20px 72px; font-family: Lato, "Open Sans", system-ui, sans-serif; font-size: 17px; line-height: 1.75; color: var(--kp-text); box-sizing: border-box; }
.kp h1, .kp h2, .kp h3, .kp h4 { font-family: inherit; }
.kp *, .kp *::before, .kp *::after { box-sizing: border-box; }

.kp-crumb { font-size: 14px; color: var(--kp-muted); margin-bottom: 28px; }
.kp-crumb a { color: var(--kp-muted); text-decoration: none; }
.kp-crumb a:hover { color: var(--kp-accent); }
.kp-crumb span { margin: 0 6px; }
.kp-crumb span[aria-current] { margin: 0; color: #fff; }

/* Hero */
.kp-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.kp-gallery { position: sticky; top: 110px; }
.kp-hero--solo { grid-template-columns: minmax(0, 760px); }
.kp-stage { aspect-ratio: 4 / 3; border-radius: 15px; overflow: hidden; background: #fff; }
.kp-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kp-stage img.is-portrait { object-fit: contain; } /* foto portrait (monopole) tidak terpotong; diset di produk.js */
.kp-thumbs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.kp-thumbs a { display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; opacity: .7; transition: opacity .2s, border-color .2s; }
.kp-thumbs a:hover, .kp-thumbs a.is-active { opacity: 1; }
.kp-thumbs a.is-active { border-color: var(--kp-accent); }
.kp-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.kp-chip { display: inline-block; padding: 2px 14px; border: 1px solid var(--kp-accent); border-radius: 999px; color: var(--kp-accent); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; line-height: 1.9; }
.kp h1 { margin: 14px 0 12px; color: #fff; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; font-weight: 700; }
.kp-lead { margin: 0 0 20px; font-size: 18px; line-height: 1.7; color: var(--kp-text); }

.kp .kp-points { list-style: none; margin: 0 0 22px; padding: 0; }
.kp .kp-points li { position: relative; margin: 0 0 8px; padding-left: 28px; line-height: 1.55; }
.kp .kp-points li::before { content: ""; position: absolute; left: 0; top: .38em; width: 16px; height: 16px; border-radius: 50%; background: var(--kp-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.3 2.3 4.7-4.9' fill='none' stroke='%231f1f1f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

.kp .kp-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 26px; }
.kp .kp-facts div { padding: 10px 14px; background: var(--kp-card); border-radius: 10px; }
.kp .kp-facts dt { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--kp-muted); line-height: 1.5; }
.kp .kp-facts dd { margin: 0; color: #fff; font-weight: 600; line-height: 1.45; }

.kp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.kp .kp-btn { display: inline-block; padding: 12px 26px; border: 2px solid var(--kp-accent); border-radius: 999px; background: var(--kp-accent); color: #1a1a1a; font-weight: 700; font-size: 16px; line-height: 1.4; text-align: center; text-decoration: none; transition: transform .15s, background .15s, color .15s; }
.kp .kp-btn:hover { transform: translateY(-2px); color: #1a1a1a; background: #fff; border-color: #fff; }
.kp .kp-btn--ghost { background: transparent; color: var(--kp-accent); }
.kp .kp-btn--ghost:hover { background: var(--kp-accent); border-color: var(--kp-accent); }

/* Isi panjang + daftar isi */
.kp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; margin-top: 72px; padding-top: 56px; border-top: 1px solid var(--kp-line); }
.kp-side { position: sticky; top: 110px; align-self: start; order: 2; display: grid; gap: 16px; }
.kp-toc { display: grid; padding: 18px 8px 14px 20px; background: var(--kp-card); border-radius: 15px; }
.kp-toc strong { margin-bottom: 8px; color: #fff; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.kp-toc a { padding: 6px 0 6px 14px; border-left: 2px solid var(--kp-line); color: var(--kp-muted); font-size: 15px; line-height: 1.45; text-decoration: none; transition: color .15s, border-color .15s; }
.kp-toc a:hover { color: #fff; }
.kp-toc a.is-active { border-left-color: var(--kp-accent); color: var(--kp-accent); }

.kp-body { max-width: 820px; }
.kp-body > :first-child { margin-top: 0; }
.kp .kp-body h2 { margin: 56px 0 18px; padding-left: 16px; border-left: 4px solid var(--kp-accent); color: #fff; font-size: 27px; line-height: 1.3; font-weight: 700; scroll-margin-top: 110px; }
.kp .kp-body h2:first-child { margin-top: 0; }
.kp .kp-body h3 { margin: 32px 0 10px; color: #fff; font-size: 20px; line-height: 1.4; }
.kp .kp-body p { margin: 0 0 18px; }
.kp .kp-body a { color: var(--kp-accent); }
.kp .kp-body strong { color: #fff; }
.kp .kp-body ul, .kp .kp-body ol { margin: 0 0 20px; padding-left: 24px; }
.kp .kp-body li { margin-bottom: 6px; }
.kp .kp-body li::marker { color: var(--kp-accent); font-weight: 700; }
.kp .kp-body img { max-width: 100%; height: auto; border-radius: 12px; }

/* Tabel (blok Table): kartu rounded, header kuning, baris belang, kolom pertama = label */
.kp .kp-body .wp-block-table { margin: 0 0 24px; overflow-x: auto; background: var(--kp-card); border-radius: 12px; border: 1px solid var(--kp-line); }
.kp .kp-body .wp-block-table thead { border-bottom: 0; }
.kp .kp-body table { table-layout: auto; width: 100%; margin: 0; border: 0; border-collapse: collapse; background: transparent; font-size: 16px; line-height: 1.6; }
.kp .kp-body table:has(th:nth-child(4)) { min-width: 760px; } /* tabel 4+ kolom: geser horizontal, bukan terjepit */
.kp .kp-body table:has(th:nth-child(4)) :is(td, th):nth-child(-n+2) { white-space: nowrap; }
.kp .kp-body table:has(th:nth-child(4)) :is(td, th):nth-child(n+3) { min-width: 150px; }
.kp .kp-body table:has(th:nth-child(4)) tbody td:first-child { width: auto; }
.kp .kp-body th, .kp .kp-body td { padding: 12px 18px; border: 0; border-bottom: 1px solid var(--kp-line); text-align: left; vertical-align: top; color: var(--kp-text); background: transparent; }
.kp .kp-body thead th { background: rgba(251, 235, 113, .08); border-bottom: 1px solid rgba(251, 235, 113, .35); color: var(--kp-accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.kp .kp-body tbody tr:nth-child(even) td { background: rgba(255, 255, 255, .025); }
.kp .kp-body tbody tr:last-child td { border-bottom: 0; }
.kp .kp-body tbody td:first-child { width: 32%; color: #fff; font-weight: 600; }

/* FAQ (blok Details) */
.kp .kp-body .wp-block-details { margin: 0 0 10px; padding: 0; background: var(--kp-card); border: 1px solid var(--kp-line); border-radius: 12px; }
.kp .kp-body .wp-block-details summary { position: relative; padding: 16px 52px 16px 20px; color: #fff; font-weight: 600; line-height: 1.5; cursor: pointer; list-style: none; }
.kp .kp-body .wp-block-details summary::-webkit-details-marker { display: none; }
.kp .kp-body .wp-block-details summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--kp-accent); font-size: 24px; font-weight: 400; line-height: 1; }
.kp .kp-body .wp-block-details[open] summary::after { content: "\2212"; }
.kp .kp-body .wp-block-details[open] summary { color: var(--kp-accent); }
.kp .kp-body .wp-block-details > :not(summary) { margin: 0; padding: 0 20px 4px; }
.kp .kp-body .wp-block-details > p:last-child { padding-bottom: 18px; }

/* Catatan (Group dengan class "kp-note") */
.kp .kp-body .kp-note { margin: 0; padding: 20px 24px; background: #2a2a24; border: 1px solid rgba(251, 235, 113, .3); border-radius: 12px; }
.kp .kp-body .kp-note p:last-child { margin-bottom: 0; }
.kp .kp-body .kp-note p:first-child { margin-bottom: 6px; }
.kp .kp-body .kp-note p:first-child strong { color: var(--kp-accent); }

/* CTA penutup & produk lainnya */
.kp-cta { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 72px; padding: 36px 40px; background: var(--kp-card); border-radius: 15px; border: 1px solid var(--kp-line); }
.kp .kp-cta h2 { margin: 0 0 6px; color: #fff; font-size: 24px; line-height: 1.3; }
.kp-cta p { margin: 0; max-width: 620px; }
.kp-cta .kp-btn { flex: none; }
.kp-more { margin-top: 72px; }
.kp .kp-more h2 { margin: 0 0 24px; color: #fff; font-size: 26px; }

/* ---------- Responsif ---------- */
@media (max-width: 1000px) {
	.kp-hero { grid-template-columns: 1fr; gap: 28px; }
	.kp-gallery { position: static; }
	.kp-layout { grid-template-columns: 1fr; gap: 0; margin-top: 48px; padding-top: 32px; }
	.kp-side { position: static; order: -1; margin: 0 -20px 32px; padding: 0 20px; }
	.kp-toc { display: flex; gap: 8px; padding: 0; background: none; overflow-x: auto; scrollbar-width: none; }
	.kp-toc strong { display: none; }
	.kp-toc a { flex: none; padding: 6px 16px; border: 1px solid var(--kp-line); border-radius: 999px; background: var(--kp-card); font-size: 14px; white-space: nowrap; }
	.kp-toc a.is-active { border-color: var(--kp-accent); }
	.kp .kp-side-cta { display: none; }
	.kp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}
@media (max-width: 640px) {
	main#content.kp { font-size: 16px; padding-top: 12px; }
	.kp .kp-body h2 { font-size: 23px; margin-top: 44px; }
	.kp .kp-body th, .kp .kp-body td { padding: 10px 14px; }
	.kp .kp-body tbody td:first-child { width: 38%; }
	.kp-facts { grid-template-columns: 1fr; }
	.kp-actions .kp-btn { flex: 1 1 100%; }
	.kp-cta { flex-direction: column; align-items: stretch; padding: 28px 22px; text-align: left; gap: 20px; }
	.kp-grid { grid-template-columns: 1fr; }
}
