  /* assets/custom-product-showcase.css */

.cps-section {
	margin: 32px 0;
}

.cps-section-title {
	font-size: 20px;
	margin: 0;
}

.cps-section-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 16px;
}

.cps-view-all {
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	color: #2563eb;
	white-space: nowrap;
}

.cps-view-all:hover {
	text-decoration: underline;
}

/* Category archive page (e.g. /speakers/, /ocm/) */
.cps-taxonomy-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 20px;
}

.cps-taxonomy-title {
	font-size: 30px;
	margin: 0 0 8px;
}

.cps-taxonomy-description {
	color: #555;
	margin: 0 0 24px;
}

/* Card (shared by slider + grid) */
.cps-card {
	display: block;
	text-decoration: none;
	color: inherit;
}

.cps-card-image img,
.cps-card-noimage {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	display: block;
	border-radius: 6px;
	background: #f2f2f2;
}

.cps-card-title {
	font-size: 15px;
	font-weight: 600;
	margin: 10px 0 0;
	line-height: 1.3;
	color: #222;
	text-align: center;
}

/* Grid (no slider) */
.cps-grid {
	display: grid;
	grid-template-columns: repeat(var(--cps-grid-cols, 4), 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.cps-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 480px) {
	.cps-grid {
		grid-template-columns: 1fr;
	}
}

/* Slider */
.cps-wrapper {
	position: relative;
	max-width: 100%;
	padding: 0 44px;
	box-sizing: border-box;
}

.cps-viewport {
	overflow: hidden;
	width: 100%;
}

.cps-track {
	display: flex;
	transition: transform 0.35s ease;
	will-change: transform;
}

.cps-slide {
	flex: 0 0 auto;
	box-sizing: border-box;
	padding: 0 10px;
}

.cps-arrow {
	position: absolute;
	top: 40%;
	transform: translateY(-50%);
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	cursor: pointer;
	font-size: 14px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 2;
	box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.cps-arrow:hover {
	background: #f0f0f0;
}

.cps-prev { left: 0; }
.cps-next { right: 0; }

.cps-dots {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin-top: 14px;
}

.cps-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ccc;
	cursor: pointer;
	border: none;
	padding: 0;
}

.cps-dot.active {
	background: #333;
}

@media (max-width: 480px) {
	.cps-wrapper {
		padding: 0 36px;
	}
	.cps-arrow {
		width: 30px;
		height: 30px;
		font-size: 12px;
	}
}

/* Single product page */
.cps-single-wrap {
	max-width: 900px;
	margin: 0 auto;
	padding: 32px 20px;
}

.cps-single {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 32px;
	align-items: start;
}

@media (max-width: 700px) {
	.cps-single {
		grid-template-columns: 1fr;
	}
}

.cps-single-image img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	display: block;
}

.cps-single-title {
	font-size: 28px;
	margin: 0 0 12px;
}

.cps-single-categories {
	margin-bottom: 16px;
}

.cps-category-badge {
	display: inline-block;
	font-size: 12px;
	padding: 4px 12px;
	border-radius: 20px;
	background: #f0f0f0;
	color: #444;
	text-decoration: none;
	margin-right: 6px;
}

.cps-single-description {
	font-size: 16px;
	line-height: 1.7;
	color: #333;
}

.cps-back-link {
	margin-top: 24px;
}

.cps-back-link a {
	text-decoration: none;
	color: #555;
	font-size: 14px;
}
