/* PCB Harga Kios & Los — frontend */
.pcbh {
	--pcbh-primary: #1e6b35;
	--pcbh-primary-dark: #17532a;
	--pcbh-price: #f05a0a;
	--pcbh-save: #1e6b35;
	--pcbh-badge-bg: #fde3b5;
	--pcbh-badge-txt: #e2560b;
	--pcbh-head-bg: #eef5ef;
	--pcbh-offset: 110px;
	--pcbh-text: #1b2a20;
	--pcbh-muted: #6a786f;
	--pcbh-line: #e2eae4;
	--pcbh-gap: 16px;
	font-family: inherit;
	color: var(--pcbh-text);
	line-height: 1.45;
	text-align: left;
	width: 100%;
}
.pcbh *, .pcbh *::before, .pcbh *::after { box-sizing: border-box; }
.pcbh h3, .pcbh h4, .pcbh p, .pcbh ul, .pcbh li { margin: 0; padding: 0; }
.pcbh ul { list-style: none; }
.pcbh a { text-decoration: none; box-shadow: none; }
.pcbh svg { display: block; flex-shrink: 0; }
.pcbh img { max-width: 100%; }
.pcbh-empty { padding: 16px; border: 1px dashed #c9d5cc; border-radius: 10px; color: var(--pcbh-muted); }

/* ---------- Navigasi anchor ---------- */
.pcbh .pcbh-nav {
	display: flex; align-items: center; justify-content: space-between;
	flex-wrap: wrap; gap: 10px 24px;
	padding: 4px 0 18px; margin-bottom: 18px;
	border-bottom: 1px solid var(--pcbh-line);
}
.pcbh .pcbh-nav__links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 0; font-size: 15px; }
.pcbh .pcbh-nav__label { font-weight: 600; margin-right: 18px; color: var(--pcbh-text); }
.pcbh .pcbh-nav__links a {
	color: var(--pcbh-primary); font-weight: 500;
	text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px;
	padding: 0 14px;
}
.pcbh .pcbh-nav__links a:first-of-type { padding-left: 0; }
.pcbh .pcbh-nav__links a + a { border-left: 1px solid #b8c6bc; }
.pcbh .pcbh-nav__links a:hover { color: var(--pcbh-primary-dark); }
.pcbh .pcbh-nav__ppn { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #3f4d44; }
.pcbh .pcbh-nav__ppn svg { color: var(--pcbh-primary); }

/* ---------- Grup ---------- */
.pcbh .pcbh-group { margin: 0 0 26px; scroll-margin-top: var(--pcbh-offset); }
.pcbh .pcbh-group__head {
	display: flex; align-items: center; gap: 14px;
	background: var(--pcbh-head-bg);
	border-radius: 12px; padding: 10px 22px 10px 16px; margin-bottom: 14px;
}
.pcbh .pcbh-group__icon { color: var(--pcbh-primary); width: 40px; height: 40px; display: grid; place-items: center; }
.pcbh .pcbh-group__title {
	flex: 1; min-width: 0;
	font-size: 20px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em;
	color: var(--pcbh-text); font-family: inherit; text-transform: none;
}
.pcbh .pcbh-group__dim { font-size: 14px; color: #3a473f; white-space: nowrap; }

/* ---------- Grid ---------- */
.pcbh .pcbh-grid { display: grid; gap: var(--pcbh-gap); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pcbh.pcbh-cols-3 .pcbh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcbh.pcbh-cols-2 .pcbh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcbh .pcbh-dots { display: none; }

/* ---------- Kartu ---------- */
.pcbh .pcbh-card {
	position: relative; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--pcbh-line); border-radius: 14px;
	padding: 14px 14px 14px;
	box-shadow: 0 1px 2px rgba(20, 60, 32, .04), 0 6px 18px rgba(20, 60, 32, .06);
	container-type: inline-size;
	min-width: 0;
}
.pcbh .pcbh-card__media {
	position: relative; margin: 0 0 14px; border-radius: 9px; overflow: hidden;
	aspect-ratio: 16 / 9; background: #eef2ef;
}
.pcbh .pcbh-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; border-radius: 0; }
.pcbh .pcbh-card__sold {
	position: absolute; inset: auto 8px 8px auto;
	background: rgba(27, 42, 32, .85); color: #fff; font-size: 11px; font-weight: 700;
	padding: 4px 8px; border-radius: 6px;
}
.pcbh .pcbh-card__top { display: flex; align-items: flex-start; gap: 10px; }
.pcbh .pcbh-dot { width: 15px; height: 15px; border-radius: 50%; margin-top: 4px; flex-shrink: 0; }
.pcbh .pcbh-card__id { flex: 1; min-width: 0; min-height: 57px; }
.pcbh .pcbh-card__name {
	font-size: 16.5px; font-weight: 700; line-height: 1.3; color: var(--pcbh-text);
	font-family: inherit; text-transform: none; letter-spacing: 0;
}
.pcbh .pcbh-card__sub { font-size: 12.5px; color: var(--pcbh-muted); line-height: 1.4; margin-top: 1px; }
.pcbh .pcbh-badge {
	flex-shrink: 0; align-self: flex-start;
	background: var(--pcbh-badge-bg); color: var(--pcbh-badge-txt);
	font-size: 13px; font-weight: 800; line-height: 1;
	padding: 6px 8px; border-radius: 7px; white-space: nowrap;
}
.pcbh .pcbh-status {
	display: inline-block; margin-top: 6px;
	font-size: 11.5px; font-weight: 600; line-height: 1.2;
	padding: 4px 9px; border-radius: 999px;
	background: #fff3e2; color: #b4500c;
}

/* Harga */
.pcbh .pcbh-price { display: flex; flex-direction: column; margin: 18px 0 14px; }
.pcbh .pcbh-price__lbl { font-size: 14px; color: var(--pcbh-muted); line-height: 1.35; }
.pcbh .pcbh-price__lbl--promo { color: var(--pcbh-price); margin-top: 6px; }
.pcbh .pcbh-price__old {
	font-size: 14px; color: #98a39c; text-decoration: line-through; line-height: 1.35;
	background: none;
}
.pcbh .pcbh-price__now {
	display: block;
	font-size: 22px; font-size: clamp(18px, 9.4cqi, 25px);
	font-weight: 800; line-height: 1.2; letter-spacing: -.015em;
	color: var(--pcbh-price); white-space: nowrap; margin-top: 1px;
	font-variant-numeric: tabular-nums;
}
.pcbh .pcbh-price__save { font-size: 14px; font-weight: 600; color: var(--pcbh-badge-txt); margin-top: 4px; }
.pcbh .pcbh-price__save b { color: var(--pcbh-save); font-weight: 700; }
.pcbh .pcbh-price__ppn { font-size: 11.5px; color: var(--pcbh-muted); margin-top: 4px; }

/* Tombol WA */
.pcbh .pcbh-btn {
	margin-top: auto;
	display: flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 42px; padding: 9px 12px; border-radius: 8px;
	background: var(--pcbh-primary); color: #fff;
	font-size: 13.5px; font-weight: 600; line-height: 1.2; text-align: center;
	transition: background-color .15s ease;
}
.pcbh .pcbh-btn:hover, .pcbh .pcbh-btn:focus { background: var(--pcbh-primary-dark); color: #fff; }
.pcbh .pcbh-btn:focus-visible, .pcbh .pcbh-cta__btn:focus-visible, .pcbh .pcbh-switch__btn:focus-visible, .pcbh .pcbh-nav__links a:focus-visible {
	outline: 3px solid color-mix(in srgb, var(--pcbh-primary) 45%, transparent); outline-offset: 2px;
}
.pcbh .pcbh-btn.is-off { background: #d5ddd8; color: #5f6b64; cursor: not-allowed; }
.pcbh .pcbh-card.is-habis .pcbh-price, .pcbh .pcbh-card.is-habis .pcbh-card__media img { opacity: .5; }

/* ---------- Info box ---------- */
.pcbh .pcbh-info { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pcbh-gap); margin: 4px 0 24px; }
.pcbh .pcbh-info__box {
	display: flex; gap: 16px; align-items: flex-start;
	background: #f4f8f5; border-radius: 12px; padding: 18px 22px;
}
.pcbh .pcbh-info__icon { color: var(--pcbh-primary); width: 46px; display: flex; justify-content: center; padding-top: 2px; }
.pcbh .pcbh-info__body { flex: 1; min-width: 0; }
.pcbh .pcbh-info__title { font-size: 16px; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: var(--pcbh-text); font-family: inherit; text-transform: none; }
.pcbh .pcbh-list li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: #2c3a31; margin: 5px 0 0; }
.pcbh .pcbh-list li::before, .pcbh .pcbh-list li::marker { content: none; }
.pcbh .pcbh-list svg { color: var(--pcbh-primary); margin-top: 2px; }
.pcbh .pcbh-list a { color: var(--pcbh-primary); text-decoration: underline; }

/* ---------- CTA banner ---------- */
.pcbh .pcbh-cta {
	display: flex; align-items: center; gap: 24px;
	background: var(--pcbh-primary-dark);
	background-image: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, .08), transparent 55%);
	color: #fff; border-radius: 16px; padding: 24px 30px;
}
.pcbh .pcbh-cta__icon {
	width: 70px; height: 70px; border-radius: 50%;
	background: rgba(255, 255, 255, .13); color: #fff;
	display: grid; place-items: center; flex-shrink: 0;
}
.pcbh .pcbh-cta__text { flex: 1; min-width: 0; }
.pcbh .pcbh-cta__eyebrow {
	display: flex; align-items: center; gap: 8px;
	font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .8;
}
.pcbh .pcbh-cta__eyebrow::before { content: ""; width: 14px; height: 1px; background: currentColor; }
.pcbh .pcbh-cta__title {
	font-size: 22px; font-weight: 700; line-height: 1.25; color: #fff; margin: 6px 0 4px;
	font-family: inherit; text-transform: none; letter-spacing: -.01em;
}
.pcbh .pcbh-cta__desc { font-size: 14px; line-height: 1.5; opacity: .9; max-width: 62ch; color: #fff; }
.pcbh .pcbh-cta__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; flex-shrink: 0; }
.pcbh .pcbh-cta__btn {
	display: flex; align-items: center; justify-content: center; gap: 10px;
	background: #fff; color: var(--pcbh-primary);
	font-size: 14px; font-weight: 700; padding: 12px 20px; border-radius: 8px; min-width: 240px;
}
.pcbh .pcbh-cta__btn:hover { background: #eef5ef; color: var(--pcbh-primary-dark); }
.pcbh .pcbh-cta__link { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 600; }
.pcbh .pcbh-cta__link:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Switch (tab & tombol) ---------- */
.pcbh-tabs { width: 100%; }
.pcbh-switch { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 22px; }
.pcbh-switch svg { display: block; flex-shrink: 0; }
.pcbh-switch .pcbh-switch__btn,
.pcbh .pcbh-switch__btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 50px; padding: 12px 24px; border-radius: 8px;
	border: 1.5px solid var(--pcbh-primary, #1e6b35); background: #fff; color: var(--pcbh-primary, #1e6b35);
	font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2; cursor: pointer;
	text-decoration: none; box-shadow: none; transition: background-color .15s ease, color .15s ease;
}
.pcbh-switch .pcbh-switch__btn.is-active,
.pcbh .pcbh-switch__btn.is-active { background: var(--pcbh-primary, #1e6b35); color: #fff; }
.pcbh-switch .pcbh-switch__btn:not(.is-active):hover { background: #eef5ef; }
.pcbh-tabpanel[hidden] { display: none !important; }

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
	.pcbh.pcbh-cols-4 .pcbh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pcbh.pcbh-cols-3 .pcbh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pcbh .pcbh-cta { flex-wrap: wrap; }
	.pcbh .pcbh-cta__actions { flex-direction: row; flex-wrap: wrap; width: 100%; padding-left: 94px; justify-content: flex-start; gap: 12px 24px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 640px) {
	.pcbh { --pcbh-gap: 12px; }
	.pcbh .pcbh-nav { padding-bottom: 14px; margin-bottom: 14px; }
	.pcbh .pcbh-nav__links { font-size: 14px; }
	.pcbh .pcbh-nav__label { width: 100%; margin: 0 0 2px; }
	.pcbh .pcbh-nav__links a { padding: 0 12px; }

	.pcbh .pcbh-group { margin-bottom: 22px; }
	.pcbh .pcbh-group__head { padding: 8px 14px 8px 10px; gap: 10px; margin-bottom: 12px; }
	.pcbh .pcbh-group__icon { width: 32px; height: 32px; }
	.pcbh .pcbh-group__icon svg { width: 28px; height: 28px; }
	.pcbh .pcbh-group__title { font-size: 17px; }
	.pcbh .pcbh-group__dim { font-size: 12px; }

	/* 1 kolom */
	.pcbh.pcbh-m-1 .pcbh-grid { grid-template-columns: minmax(0, 1fr); }

	/* 2 kolom */
	.pcbh.pcbh-m-2 .pcbh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.pcbh.pcbh-m-2 .pcbh-card { padding: 11px; border-radius: 12px; }
	.pcbh.pcbh-m-2 .pcbh-card__name { font-size: 14.5px; }
	.pcbh.pcbh-m-2 .pcbh-card__sub { font-size: 11.5px; }
	.pcbh.pcbh-m-2 .pcbh-card__top { flex-wrap: wrap; gap: 6px 8px; }
	.pcbh.pcbh-m-2 .pcbh-dot { width: 12px; height: 12px; }
	.pcbh.pcbh-m-2 .pcbh-badge { position: absolute; top: -9px; right: 8px; font-size: 11.5px; padding: 4px 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
	.pcbh.pcbh-m-2 .pcbh-card__id { min-height: 0; }
	.pcbh.pcbh-m-2 .pcbh-card__name { overflow-wrap: anywhere; }
	.pcbh.pcbh-m-2 .pcbh-price { margin: 12px 0 10px; }
	.pcbh.pcbh-m-2 .pcbh-price__lbl, .pcbh.pcbh-m-2 .pcbh-price__old, .pcbh.pcbh-m-2 .pcbh-price__save { font-size: 12px; }
	.pcbh.pcbh-m-2 .pcbh-price__now { font-size: clamp(14px, 10.6cqi, 20px); }
	.pcbh.pcbh-m-2 .pcbh-price__ppn { font-size: 10.5px; }
	.pcbh.pcbh-m-2 .pcbh-btn { font-size: 12px; padding: 8px; gap: 6px; min-height: 38px; }
	.pcbh.pcbh-m-2 .pcbh-btn svg { width: 15px; height: 15px; }

	/* Geser (slider) */
	.pcbh.pcbh-m-geser .pcbh-grid {
		grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 80%;
		overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
		padding: 2px 2px 8px; scrollbar-width: none;
	}
	.pcbh.pcbh-m-geser .pcbh-grid::-webkit-scrollbar { display: none; }
	.pcbh.pcbh-m-geser .pcbh-card { scroll-snap-align: start; box-shadow: 0 1px 2px rgba(20, 60, 32, .05), 0 3px 10px rgba(20, 60, 32, .06); }
	.pcbh.pcbh-m-geser .pcbh-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
	.pcbh .pcbh-dots[hidden] { display: none; }
	.pcbh .pcbh-dots button {
		width: 7px; height: 7px; padding: 0; border: 0; border-radius: 99px;
		background: #c7d3ca; cursor: pointer; transition: width .2s ease, background-color .2s ease;
	}
	.pcbh .pcbh-dots button.is-active { width: 20px; background: var(--pcbh-primary); }

	.pcbh .pcbh-info { grid-template-columns: minmax(0, 1fr); }
	.pcbh .pcbh-info__box { padding: 16px; gap: 12px; }
	.pcbh .pcbh-info__icon { width: 36px; }
	.pcbh .pcbh-info__icon svg { width: 34px; height: 34px; }

	.pcbh .pcbh-cta { flex-direction: column; align-items: flex-start; gap: 14px; padding: 22px 18px; }
	.pcbh .pcbh-cta__icon { width: 54px; height: 54px; }
	.pcbh .pcbh-cta__icon svg { width: 30px; height: 30px; }
	.pcbh .pcbh-cta__title { font-size: 19px; }
	.pcbh .pcbh-cta__actions { padding-left: 0; flex-direction: column; align-items: stretch; width: 100%; }
	.pcbh .pcbh-cta__btn { min-width: 0; width: 100%; }
	.pcbh .pcbh-cta__link { justify-content: center; }

	.pcbh-switch { gap: 8px; }
	.pcbh-switch .pcbh-switch__btn, .pcbh .pcbh-switch__btn { flex: 1 1 0; min-width: 0; padding: 10px 10px; font-size: 13.5px; gap: 7px; min-height: 46px; }
	.pcbh-switch .pcbh-switch__btn svg { width: 18px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.pcbh *, .pcbh-switch * { transition: none !important; scroll-behavior: auto !important; }
}
