/* Part detail page (/dil/{legacy_id}-{slug}) */

.pd-section {
	max-width: 1200px;
	margin: 0 auto;
	/* Top padding clears the fixed header (same idea as .section-block). */
	padding: 130px 1rem 3rem;
}

.pd-panel {
	background: rgba(18, 18, 18, 0.94);
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 14px;
	padding: 1.5rem;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.pd-breadcrumb {
	font-size: 0.85rem;
	color: #bbb;
	margin-bottom: 1rem;
}

.pd-breadcrumb a {
	color: #9cc3ff;
	text-decoration: none;
}

.pd-breadcrumb span {
	margin: 0 0.25rem;
}

.pd-notice {
	background: #14361f;
	border: 1px solid #2f7d4f;
	color: #b8f0cd;
	border-radius: 6px;
	padding: 0.6rem 1rem;
	margin-bottom: 1rem;
}

.pd-layout {
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.pd-gallery-col {
	flex: 1 1 420px;
	min-width: 280px;
}

.pd-info-col {
	flex: 1 1 380px;
	min-width: 280px;
}

.pd-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 0.5rem;
	align-items: start;
}

.pd-gallery .pswp-gallery-item {
	display: block;
	overflow: hidden;
	border-radius: 6px;
	line-height: 0;
}

.pd-gallery .pswp-gallery-item img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	border: 1px solid #333;
	background: #111;
}

.pd-gallery .pswp-gallery-item.is-primary {
	grid-column: 1 / -1;
}

.pd-gallery-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 260px;
	border: 1px dashed #444;
	border-radius: 6px;
	color: #888;
}

.pd-badges {
	display: flex;
	gap: 0.5rem;
	margin-bottom: 0.75rem;
}

.pd-badge {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 0.25rem 0.6rem;
	border-radius: 999px;
}

.pd-badge-new { background: #1c3f6e; color: #cfe4ff; }
.pd-badge-used { background: #3a3a3a; color: #e6e6e6; }
.pd-badge-in { background: #14361f; color: #b8f0cd; }
.pd-badge-out { background: #4a1d1d; color: #ffc9c9; }

.pd-title {
	font-size: 1.8rem;
	line-height: 1.25;
	margin: 0.25rem 0 0.75rem;
	color: #fff;
}

.pd-price {
	font-size: 1.9rem;
	font-weight: 800;
	color: #ffd166;
	margin-bottom: 1rem;
}

.pd-btn {
	display: inline-block;
	background: #2f7d4f;
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 0.75rem 1.4rem;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
}

.pd-btn:hover { background: #37935d; }

.pd-btn-cart { width: 100%; max-width: 320px; }

.pd-unavailable {
	background: #2a1f1f;
	border: 1px solid #5a3030;
	color: #ffc9c9;
	border-radius: 6px;
	padding: 0.75rem 1rem;
}

.pd-unavailable a { color: #ffd7a1; }

.pd-specs {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1.25rem;
	font-size: 0.95rem;
}

.pd-specs th,
.pd-specs td {
	text-align: left;
	padding: 0.45rem 0.6rem;
	border-bottom: 1px solid #2c2c2c;
	vertical-align: top;
}

.pd-specs th {
	color: #aaa;
	font-weight: 600;
	width: 45%;
}

.pd-specs td { color: #eee; }

.pd-oem {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-weight: 700;
	color: #ffd166;
}

.pd-note {
	margin-top: 1rem;
	padding: 0.75rem 1rem;
	background: #191919;
	border-radius: 6px;
	color: #ddd;
	font-size: 0.9rem;
}

.pd-description {
	margin-top: 2.5rem;
}

.pd-description h2 {
	font-size: 1.3rem;
	color: #fff;
	margin-bottom: 0.5rem;
}

.pd-description p {
	color: #ccc;
	line-height: 1.7;
}

.pd-notfound {
	max-width: 560px;
	margin: 3rem auto;
	text-align: center;
}

.pd-notfound h1 {
	color: #fff;
	font-size: 1.6rem;
	margin-bottom: 0.75rem;
}

.pd-notfound p { color: #ccc; }

.pd-related {
	margin-top: 2.5rem;
	border-top: 1px solid #2c2c2c;
	padding-top: 1.5rem;
}

.pd-related h2 {
	color: #fff;
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

/* Related parts rendered as cards (reuse .card / .part-card from css_dily.css). */
.pd-related-grid {
	margin-top: 1rem;
}

.pd-related-card { cursor: pointer; }

/* Whole card is clickable: the title anchor is stretched over the card. */
.pd-related-link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}

.pd-related-more { margin-top: 1rem; }

.pd-related-more a {
	color: #9cc3ff;
	text-decoration: none;
}

.pd-related-more a:hover { text-decoration: underline; }

@media (max-width: 768px) {
	.pd-section {
		padding: 80px 0.75rem 2rem;
	}

	.pd-panel {
		padding: 1rem;
	}

	.pd-title {
		font-size: 1.4rem;
	}
}
