/* ==========================================================================
   PCB Products — front-end viewer (With-Wave style)
   ========================================================================== */

.pcbp-viewer {
	max-width: 760px;
	margin: 24px auto;
}
.pcbp-viewer [hidden] { display: none !important; }

/* ---- Stage ---------------------------------------------------------------- */
.pcbp-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	background: #fff;
	border: 1px solid #eceff1;
	border-radius: 6px;
	overflow: hidden;
}
.pcbp-pane {
	position: absolute;
	inset: 0;
}
.pcbp-pane iframe,
.pcbp-pane video {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ---- Image slider ---------------------------------------------------------- */
.pcbp-slider {
	position: relative;
	width: 100%;
	height: 100%;
}
.pcbp-slide {
	position: absolute;
	inset: 0;
	margin: 0;
	display: none;
	align-items: center;
	justify-content: center;
}
.pcbp-slide.is-active { display: flex; }
.pcbp-slide img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.pcbp-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 56px;
	border: 0;
	background: transparent;
	color: #b0bec5;
	font-size: 40px;
	line-height: 1;
	cursor: pointer;
	z-index: 2;
	padding: 0;
}
.pcbp-arrow:hover { color: #546e7a; }
.pcbp-prev { left: 4px; }
.pcbp-next { right: 4px; }
.pcbp-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 10px;
	display: flex;
	justify-content: center;
	gap: 8px;
	z-index: 2;
}
.pcbp-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 0;
	padding: 0;
	background: #cfd8dc;
	cursor: pointer;
}
.pcbp-dot.is-active { background: #1a2f5e; }

/* ---- Tabs under the stage -------------------------------------------------- */
.pcbp-tabs {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 10px;
	margin-top: 12px;
}
.pcbp-tab {
	padding: 12px 0;
	border: 1px solid #e0e4e8;
	border-radius: 4px;
	background: #f5f6f8;
	color: #8a94a0;
	font-weight: 600;
	cursor: pointer;
	text-align: center;
}
.pcbp-tab:hover { color: #1a2f5e; }
.pcbp-tab.is-active {
	background: #1a2f5e;
	border-color: #1a2f5e;
	color: #fff;
}

/* ---- Single product layout: image 60% | info 40%, spec below --------------- */
.pcbp-single {
	display: grid;
	grid-template-columns: 6fr 4fr;
	gap: 40px;
	align-items: start;
	margin: 8px 0 24px;
}
.pcbp-single-left .pcbp-viewer {
	max-width: none;
	margin: 0;
}
@media (max-width: 880px) {
	.pcbp-single { grid-template-columns: 1fr; gap: 24px; }
}
.pcbp-desc { line-height: 1.7; }
.pcbp-desc ul { padding-left: 1.2em; }
.pcbp-desc li { margin-bottom: 0.6em; }
.pcbp-desc li::marker { color: #c62828; }
.pcbp-side-title {
	margin: 28px 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px dashed #d7dbde;
	font-size: 1.05em;
	font-weight: 700;
}
.pcbp-btn-row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}
.pcbp-btn.pcbp-btn-red {
	background: #b71c1c;
	border-color: #b71c1c;
	color: #fff;
}
.pcbp-btn.pcbp-btn-red:hover { background: #8e1414; color: #fff; }
.pcbp-btn.pcbp-btn-dark {
	background: #9aa4ad;
	border-color: #9aa4ad;
	color: #fff;
}
.pcbp-btn.pcbp-btn-dark:hover { background: #7d8790; color: #fff; }
.pcbp-spec {
	margin-top: 36px;
	padding-top: 28px;
	border-top: 1px solid #eceff1;
	overflow-x: auto;
}
.pcbp-spec table { border-collapse: collapse; width: 100%; }
.pcbp-spec th, .pcbp-spec td { border: 1px solid #e0e4e8; padding: 8px 12px; }

/* ---- Product grid (archive / [pcbp_grid]) ---------------------------------- */
.pcbp-grid {
	display: grid;
	grid-template-columns: repeat(var(--pcbp-cols, 4), 1fr);
	gap: 32px 28px;
	margin: 24px 0;
}
@media (max-width: 960px) { .pcbp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .pcbp-grid { grid-template-columns: 1fr; } }
.pcbp-card {
	display: block;
	text-decoration: none;
	text-align: center;
	color: inherit;
}
.pcbp-card-img {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1;
	padding: 20px;
	background: #f6f7f8;
	border: 1px solid #f0f1f2;
	border-radius: 12px;
	box-sizing: border-box;
	transition: box-shadow 0.15s;
}
.pcbp-card:hover .pcbp-card-img { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08); }
.pcbp-card-img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.pcbp-card-title {
	display: block;
	margin-top: 14px;
	font-size: 1.05em;
	font-weight: 500;
}

/* ---- Drawing / Digikey buttons -------------------------------------------- */
.pcbp-links {
	display: flex;
	gap: 10px;
	margin-top: 14px;
	flex-wrap: wrap;
}
.pcbp-btn {
	display: inline-block;
	padding: 10px 22px;
	border-radius: 4px;
	font-weight: 600;
	text-decoration: none;
	border: 1px solid #e0e4e8;
	background: #f5f6f8;
	color: #37474f;
}
.pcbp-btn:hover { background: #eceff1; }
.pcbp-btn-drawing {
	background: #b71c1c;
	border-color: #b71c1c;
	color: #fff;
}
.pcbp-btn-drawing:hover { background: #8e1414; color: #fff; }
