/**
 * Detail Produk - Serayu Digital
 * Scoped di bawah .pd- agar tidak bentrok dengan tema lain.
 */

.pd-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

/* ---------- Breadcrumb ---------- */
.pd-breadcrumb {
	font-size: 0.85em;
	color: #6c757d;
	padding: 24px 0 18px;
}
.pd-breadcrumb a {
	color: #6c757d;
	text-decoration: none;
}
.pd-breadcrumb a:hover {
	color: #0166FF;
}
.pd-breadcrumb .sep {
	margin: 0 8px;
	color: #adb5bd;
}
.pd-breadcrumb .current {
	color: #212529;
	font-weight: 600;
}

/* ---------- Header ---------- */
.pd-header {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 14px;
	padding: 28px 36px;
	margin-bottom: 30px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.pd-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 14px;
}
.pd-badge {
	display: inline-block;
	font-size: 0.78em;
	font-weight: 600;
	padding: 5px 13px;
	border-radius: 50px;
	background: rgba(1, 102, 255, 0.1);
	color: #0166FF;
	text-decoration: none;
}
.pd-badge:hover {
	background: rgba(1, 102, 255, 0.18);
}
.pd-badge--status {
	background: rgba(22, 163, 74, 0.12);
}
.pd-title {
	font-size: 2.35em;
	line-height: 1.1;
	margin: 0;
	color: #16191d;
	font-weight: 800;
}
/* ---------- Layout ---------- */
.pd-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 30px;
	align-items: start;
}
.pd-side {
	position: sticky;
	top: 20px;
}

/* ---------- Gallery ---------- */
.pd-gallery {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 14px;
	overflow: hidden;
	margin-bottom: 26px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.pd-gallery__stage {
	position: relative;
	background: #0f1216;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}
.pd-gallery__track {
	display: flex;
	height: 100%;
	transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}
.pd-gallery__slide {
	flex: 0 0 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
.pd-gallery__slide img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	display: block;
}
.pd-gallery__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 42px;
	height: 42px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.92);
	color: #16191d;
	font-size: 18px;
line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition: background 0.2s ease, opacity 0.2s ease;
	opacity: 0;
}
.pd-gallery:hover .pd-gallery__nav,
.pd-gallery__nav:focus-visible {
	opacity: 1;
}
.pd-gallery__nav--prev {
	left: 14px;
}
.pd-gallery__nav--next {
	right: 14px;
}
.pd-gallery__nav:hover {
	background: #fff;
}
.pd-gallery__zoom {
	position: absolute;
	right: 14px;
	top: 14px;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(15, 18, 22, 0.7);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 0;
	cursor: pointer;
	opacity: 0;
	transition: opacity 0.2s ease, background 0.2s ease;
}
.pd-gallery__zoom:hover {
	background: rgba(15, 18, 22, 0.9);
}
.pd-gallery__zoom svg {
	display: block;
}
.pd-gallery:hover .pd-gallery__zoom {
	opacity: 1;
}
.pd-gallery__counter {
	position: absolute;
	left: 14px;
	top: 14px;
	background: rgba(15, 18, 22, 0.7);
	color: #fff;
	border-radius: 50px;
	padding: 5px 12px;
	font-size: 0.78em;
	font-weight: 600;
}
.pd-gallery__thumbs {
	display: flex;
	gap: 10px;
	padding: 12px;
	overflow-x: auto;
	background: #fff;
	border-top: 1px solid #eceef1;
}
.pd-gallery__thumb {
	flex: 0 0 96px;
	height: 62px;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid transparent;
	cursor: pointer;
	padding: 0;
	background: #f1f3f5;
	transition: border-color 0.2s ease, opacity 0.2s ease;
	opacity: 0.65;
}
.pd-gallery__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.pd-gallery__thumb:hover {
	opacity: 1;
}
.pd-gallery__thumb.is-active {
	border-color: #0166FF;
	opacity: 1;
}

/* ---------- Tabs ---------- */
.pd-card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 14px;
	padding: 26px;
	margin-bottom: 22px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.pd-card__title {
	font-size: 1.35em;
	font-weight: 800;
	color: #16191d;
	margin: 0 0 18px;
	padding-bottom: 14px;
	border-bottom: 1px solid #eef0f2;
}

/* ---------- Custom ---------- */
.pd-custom {
	background: #f5f9ff;
	border-color: #dbe9ff;
}
.pd-custom__text {
	margin: 0 0 18px;
	line-height: 1.7;
	color: #3d434a;
}
.pd-tabs__nav {
	display: flex;
	gap: 4px;
	border-bottom: 1px solid #e9ecef;
	margin-bottom: 22px;
	overflow-x: auto;
}
.pd-tabs__btn {
	background: none;
	border: 0;
	border-bottom: 2px solid transparent;
	padding: 12px 18px;
	font-size: 0.98em;
	font-weight: 600;
	color: #6c757d;
	cursor: pointer;
	white-space: nowrap;
}
.pd-tabs__btn:hover {
	color: #16191d;
}
.pd-tabs__btn.is-active {
	color: #0166FF;
	border-bottom-color: #0166FF;
}
.pd-tabs__panel {
	display: none;
}
.pd-tabs__panel.is-active {
	display: block;
}
.pd-tabs__panel p {
	line-height: 1.8;
	color: #3d434a;
}
.pd-tabs__panel img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

/* ---------- Fitur ---------- */
.pd-features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 10px;
}
.pd-features li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 13px 16px;
	background: #f8f9fa;
	border: 1px solid #eef0f2;
	border-radius: 10px;
	color: #3d434a;
	font-size: 0.97em;
	line-height: 1.6;
}
.pd-features li::before {
	content: "";
	flex: 0 0 auto;
	width: 7px;
	height: 7px;
	margin-top: 0.62em;
	border-radius: 50%;
	background: #0166FF;
}

/* ---------- Sidebar ---------- */
.pd-side__card {
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 14px;
	padding: 22px;
	margin-bottom: 20px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.pd-side__title {
	font-size: 0.82em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #9ca3af;
	margin: 0 0 16px;
}
.pd-side__card .sd-btn {
	width: 100%;
	justify-content: center;
}
.pd-meta {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pd-meta li {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	padding: 11px 0;
	border-bottom: 1px dashed #eceef1;
	font-size: 0.93em;
}
.pd-meta li:last-child {
	border-bottom: 0;
}
.pd-meta dt,
.pd-meta__key {
	color: #6c757d;
}
.pd-meta__value {
	color: #16191d;
	font-weight: 600;
	text-align: right;
}
.pd-tech {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.pd-tech span {
	font-size: 0.82em;
	font-weight: 600;
	padding: 5px 11px;
	border-radius: 6px;
	background: #f1f3f5;
	color: #495057;
}
.pd-side__links {
	list-style: none;
	margin: 0;
	padding: 0;
}
.pd-side__links li {
	margin-bottom: 8px;
}
.pd-side__links a {
	color: #495057;
	text-decoration: none;
	font-size: 0.93em;
}
.pd-side__links a:hover {
	color: #0166FF;
}

/* ---------- Related ---------- */
.pd-related {
	margin-top: 40px;
}
.pd-related__title {
	font-size: 1.5em;
	font-weight: 800;
	color: #16191d;
	margin: 0 0 22px;
}
.pd-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
	gap: 24px;
}

/* ---------- Lightbox ---------- */
.pd-lightbox {
	position: fixed;
	inset: 0;
	background: rgba(10, 12, 15, 0.94);
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 40px 20px;
}
.pd-lightbox.is-open {
	display: flex;
}
.pd-lightbox__stage {
	position: relative;
	max-width: 1200px;
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pd-lightbox__img {
	max-width: 100%;
	max-height: calc(100vh - 140px);
	object-fit: contain;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.pd-lightbox__close {
	position: fixed;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pd-lightbox__close:hover {
	background: rgba(255, 255, 255, 0.24);
}
.pd-lightbox__nav {
	position: fixed;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 22px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}
.pd-lightbox__nav:hover {
	background: rgba(255, 255, 255, 0.24);
}
.pd-lightbox__nav--prev {
	left: 20px;
}
.pd-lightbox__nav--next {
	right: 20px;
}
.pd-lightbox__counter {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 22px;
	text-align: center;
	color: rgba(255, 255, 255, 0.55);
	font-size: 0.9em;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.pd-layout {
		grid-template-columns: minmax(0, 1fr);
	}
	.pd-side {
		position: static;
	}
}
@media (max-width: 768px) {
	/* Samakan gutter dengan archive produk: kartu menempel pada padding .site-content (20px). */
	.pd-wrap {
		padding: 0 0 40px;
	}
	.pd-header {
		padding: 24px 20px;
	}
	.pd-card {
		padding: 20px;
	}
	.pd-side__card {
		padding: 20px;
	}
	.pd-title {
		font-size: 1.7em;
	}
	.pd-gallery__stage {
		aspect-ratio: 16 / 11;
	}
	.pd-gallery__nav {
		opacity: 1;
		width: 36px;
		height: 36px;
	}
	.pd-gallery__zoom {
		opacity: 1;
	}
	.pd-lightbox__nav {
		width: 40px;
		height: 40px;
	}
	.pd-lightbox {
		padding: 20px 12px;
	}
}
