/* ==========================================================================
   Product Color Slider — front-end styles (v2.0)
   ========================================================================== */

.pcs-wrapper {
	text-align: center;
}

.pcs-wrapper,
.pcs-wrapper * {
	box-sizing: border-box;
}

/* Single section background — same color behind every slide. */
.pcs-color-panel {
	position: relative;
	background-color: var( --pcs-section-bg, #12352a );
	padding: 56px 20px 50px;
	border-radius: 14px;
	overflow: hidden;
}

.pcs-heading {
	position: relative;
	z-index: 1;
	margin: 0 auto 34px;
	max-width: 640px;
}

.pcs-subtitle {
	text-transform: uppercase;
	letter-spacing: 3px;
	font-weight: 700;
	margin: 0 0 10px;
	color: var( --pcs-small-heading-color, #d4af37 );
	font-size: var( --pcs-small-heading-size, 14px );
}

.pcs-title {
	margin: 0 0 16px;
	line-height: 1.15;
	font-weight: 800;
	letter-spacing: 0.4px;
	color: var( --pcs-title-color, #ffffff );
	font-size: var( --pcs-title-size, 40px );
}

.pcs-intro {
	margin: 0;
	line-height: 1.6;
	color: var( --pcs-intro-color, #eef2ee );
	font-size: var( --pcs-intro-size, 16px );
}

/* ------------------------------------------------------------------------
   Carousel
   ------------------------------------------------------------------------ */

.pcs-carousel {
	position: relative;
	z-index: 1;
	padding: 4px 46px 6px;
}

.pcs-carousel.owl-carousel {
	display: block !important;
}

/* Before JS runs (or if it fails) show items in a clean wrapped row so
   the section is never empty. */
.pcs-carousel:not(.owl-loaded) {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.pcs-carousel.owl-loaded .owl-stage-outer {
	overflow: hidden;
	padding: 4px 0 6px;
}

.pcs-carousel .owl-stage {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch;
}

.pcs-carousel .owl-item {
	float: none !important;
	flex: 0 0 auto;
}

/* Gap between cards is applied by Owl Carousel itself (admin-controlled
   "Space between cards" setting drives the JS `margin` option), so items
   don't need their own padding. */
.pcs-item {
	padding: 0;
	height: 100%;
}

/* ------------------------------------------------------------------------
   Card — stretched to equal height by the flex owl-stage (align-items:
   stretch), so every card in a row matches the tallest one automatically.
   ------------------------------------------------------------------------ */

.pcs-card {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	background: var( --pcs-card-bg, #ffffff );
	border: 1px solid var( --pcs-card-border, #d4af37 );
	border-radius: var( --pcs-card-radius, 0px );
	padding: var( --pcs-card-padding, 24px );
	overflow: hidden;
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.pcs-card:hover {
	transform: scale( 1.04 );
	box-shadow: 0 18px 34px -14px rgba( 0, 0, 0, 0.35 );
	border-color: var( --pcs-card-border, #d4af37 );
	z-index: 2;
}

/* Fixed-height image slot so every card's image block lines up the same,
   regardless of each product photo's actual dimensions. */
.pcs-card-image {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 170px;
	margin: 0 0 18px;
}

.pcs-card-image img {
	max-width: 170px;
	max-height: 170px;
	width: auto;
	height: auto;
	object-fit: contain;
	margin: 0 auto;
	display: block;
	transition: transform 0.35s ease;
}

.pcs-card:hover .pcs-card-image img {
	transform: scale( 1.06 );
}

.pcs-card-title {
	margin: 0 0 10px;
	font-weight: 700;
	line-height: 1.3;
}

.pcs-card-title a {
	color: var( --pcs-item-title-color, #183324 );
	text-decoration: none;
	font-size: var( --pcs-item-title-size, 19px );
}

.pcs-card-title a:hover {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.pcs-card-desc {
	margin: 0 0 20px;
	line-height: 1.6;
	color: var( --pcs-item-desc-color, #5c6b62 );
	font-size: var( --pcs-item-desc-size, 14px );
}

.pcs-card-desc p {
	margin: 0 0 6px;
}

.pcs-card-btn {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 700;
	color: var( --pcs-button-color, #12352a );
	font-size: var( --pcs-button-size, 13px );
	padding-top: 8px;
	border-top: 2px solid var( --pcs-card-border, #d4af37 );
	transition: gap 0.25s ease, opacity 0.25s ease;
}

.pcs-card-btn-arrow {
	transition: transform 0.25s ease;
}

.pcs-card-btn:hover {
	gap: 12px;
}

.pcs-card-btn:hover .pcs-card-btn-arrow {
	transform: translateX( 3px );
}

/* Nav arrows -------------------------------------------------------- */
.pcs-carousel .owl-nav button.owl-prev,
.pcs-carousel .owl-nav button.owl-next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.92) !important;
	color: #222 !important;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	box-shadow: 0 8px 18px -6px rgba(0, 0, 0, 0.45);
	transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.pcs-carousel .owl-nav button.owl-prev:hover,
.pcs-carousel .owl-nav button.owl-next:hover {
	background: #fff !important;
	transform: translateY(-50%) scale(1.08);
	box-shadow: 0 10px 22px -6px rgba(0, 0, 0, 0.55);
}

.pcs-carousel .owl-nav button.owl-prev:active,
.pcs-carousel .owl-nav button.owl-next:active {
	transform: translateY(-50%) scale(0.96);
}

.pcs-carousel .owl-nav button.owl-prev {
	left: 0;
}

.pcs-carousel .owl-nav button.owl-next {
	right: 0;
}

.pcs-carousel .owl-nav button.disabled {
	opacity: 0.35;
	cursor: default;
}

/* Dots --------------------------------------------------------------- */
.pcs-carousel .owl-dots {
	text-align: center;
	margin-top: 26px;
	line-height: 1;
	position: relative;
	z-index: 1;
}

.pcs-carousel .owl-dots .owl-dot span {
	background: rgba(255, 255, 255, 0.45);
	width: 8px;
	height: 8px;
	margin: 5px;
	border-radius: 999px;
	transition: background 0.3s ease, width 0.3s ease;
}

.pcs-carousel .owl-dots .owl-dot:hover span {
	background: rgba(255, 255, 255, 0.75);
}

.pcs-carousel .owl-dots .owl-dot.active span {
	background: #fff;
	width: 22px;
}

/* Admin settings page: color swatches spacing ------------------------- */
.pcs-settings-wrap .pcs-color-field {
	margin-right: 8px;
	margin-bottom: 8px;
}

/* Admin settings page: category multi-select checkbox box ------------- */
.pcs-cat-box {
	max-height: 220px;
	overflow-y: auto;
	border: 1px solid #dcdcde;
	background: #fff;
	padding: 10px 14px;
	max-width: 420px;
}

.pcs-cat-item {
	display: block;
	margin-bottom: 6px;
}

/* ==========================================================================
   Responsive refinements
   ========================================================================== */

@media (max-width: 1200px) {
	.pcs-carousel {
		padding: 4px 40px 6px;
	}
}

@media (max-width: 999px) {
	.pcs-title {
		font-size: calc( var( --pcs-title-size, 40px ) * 0.82 );
	}

	.pcs-card-image {
		height: 150px;
	}

	.pcs-card-image img {
		max-width: 150px;
		max-height: 150px;
	}
}

@media (max-width: 782px) {
	.pcs-color-panel {
		padding: 40px 15px 36px;
		border-radius: 10px;
	}

	.pcs-title {
		font-size: calc( var( --pcs-title-size, 40px ) * 0.68 );
	}

	.pcs-carousel {
		padding: 4px 34px 6px;
	}

	.pcs-carousel .owl-nav button.owl-prev,
	.pcs-carousel .owl-nav button.owl-next {
		width: 38px;
		height: 38px;
		font-size: 13px;
	}

	.pcs-card {
		padding: 22px 16px 24px;
	}
}

@media (max-width: 599px) {
	.pcs-subtitle {
		font-size: calc( var( --pcs-small-heading-size, 14px ) * 0.85 );
		letter-spacing: 2px;
	}

	.pcs-title {
		font-size: calc( var( --pcs-title-size, 40px ) * 0.55 );
	}

	.pcs-intro {
		font-size: calc( var( --pcs-intro-size, 16px ) * 0.92 );
	}

	.pcs-carousel {
		padding: 4px 8px 6px;
	}

	.pcs-carousel .owl-nav button.owl-prev,
	.pcs-carousel .owl-nav button.owl-next {
		width: 32px;
		height: 32px;
		font-size: 11px;
	}

	.pcs-card-image {
		height: 130px;
	}

	.pcs-card-image img {
		max-width: 130px;
		max-height: 130px;
	}

	.pcs-card-title a {
		font-size: calc( var( --pcs-item-title-size, 19px ) * 0.9 );
	}
}
