/* =========================================================================
   Product Color Viewer + File Downloads List
   Place in: {child-theme}/inc/pcv-style.css
   ========================================================================= */

/* ── Wrapper ───────────────────────────────────────────────────────────────── */
.pcv-wrapper {
	display: flex;
	gap: 60px;
	align-items: flex-start;
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: inherit;
	box-sizing: border-box;
}

/* ── Image area — all slides stacked in one cell, fade between them ───────── */
.pcv-image-area {
	flex: 0 0 44%;
	display: grid;
	grid-template-areas: "img";
	align-self: center;
}

.pcv-image-slide {
	grid-area: img;
	opacity: 0;
	transition: opacity 0.35s ease;
	pointer-events: none;
}

.pcv-image-slide.active {
	opacity: 1;
	pointer-events: auto;
}

.pcv-image-slide img {
	width: 100%;
	height: auto;
	display: block;
}

/* ── Info panel ───────────────────────────────────────────────────────────── */
.pcv-info-area {
	flex: 1;
	min-width: 0;
	padding-top: 10px;
}

.pcv-title {
	font-size: clamp(1.6rem, 3.5vw, 2.4rem);
	font-weight: 400;
	line-height: 1.15;
	color: #1a1a1a;
	margin: 0 0 24px;
}

.pcv-description {
	font-size: 1rem;
	line-height: 1.75;
	color: #555;
	margin: 0 0 32px;
}

.pcv-description p:last-child {
	margin-bottom: 0;
}

/* ── "Available colors:" label ────────────────────────────────────────────── */
.pcv-colors-label {
	font-size: 1rem;
	font-weight: 500;
	color: #1a1a1a;
	margin: 0 0 14px;
}

/* ── Swatch row ───────────────────────────────────────────────────────────── */
.pcv-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 12px;
	list-style: none;
	padding: 0;
}

/* ── Individual swatch button ─────────────────────────────────────────────── */
.pcv-swatch {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 2px solid transparent;
	padding: 3px;
	cursor: pointer;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.2s ease, transform 0.15s ease;
	outline: none;
	flex-shrink: 0;
}

.pcv-swatch:focus-visible {
	outline: 2px solid #0073aa;
	outline-offset: 2px;
}

.pcv-swatch:hover {
	border-color: #aaa;
	transform: scale(1.08);
}

.pcv-swatch.active {
	border-color: #555;
}

/* Swatch background — SVG/PNG served as background-image, no inlining needed */
.pcv-swatch {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	/* background-clip: content-box means the image respects the 3px padding,
	   creating a natural gap between the image and the active-state ring. */
	background-clip: content-box;
}

/* ── Active color name label ──────────────────────────────────────────────── */
.pcv-active-color-name {
	font-size: 0.875rem;
	color: #666;
	margin: 0;
	min-height: 1.3em;
	transition: opacity 0.2s ease;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.pcv-wrapper {
		flex-direction: column;
		gap: 28px;
		padding: 24px 16px;
	}

	.pcv-image-area {
		width: 100%;
		flex: 0 0 auto;
	}

	.pcv-title {
		font-size: 1.5rem;
	}
}


/* =========================================================================
   File Downloads List
   ========================================================================= */

.fdl-wrapper {
	max-width: 860px;
	margin: 0 auto;
	padding: 40px 20px;
	font-family: inherit;
	box-sizing: border-box;
}

.fdl-title {
	font-size: clamp(1.4rem, 3vw, 2rem);
	font-weight: 400;
	margin: 0 0 32px;
	color: #1a1a1a;
}

/* ── List ─────────────────────────────────────────────────────────────────── */
.fdl-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid #e5e5e5;
}

.fdl-item {
	border-bottom: 1px solid #e5e5e5;
}

/* ── Each row link ────────────────────────────────────────────────────────── */
.fdl-link {
	display: flex;
	align-items: flex-start;
	gap: 18px;
	padding: 22px 0;
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.fdl-link:hover {
	color: #0073aa;
}

/* ── Download arrow icon ──────────────────────────────────────────────────── */
.fdl-icon {
	flex-shrink: 0;
	margin-top: 2px;
	line-height: 0;
	color: #1a1a1a;
	transition: transform 0.2s ease, color 0.2s ease;
}

.fdl-link:hover .fdl-icon {
	transform: translateY(3px);
	color: #0073aa;
}

/* ── Text block ───────────────────────────────────────────────────────────── */
.fdl-text {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.fdl-file-title {
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.4;
	color: #1a1a1a;
	transition: color 0.2s ease;
}

.fdl-link:hover .fdl-file-title {
	color: #0073aa;
}

.fdl-meta {
	font-size: 0.8rem;
	color: #888;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
	.fdl-wrapper {
		padding: 24px 16px;
	}

	.fdl-link {
		gap: 12px;
		padding: 16px 0;
	}
}
