.cdeco-product-slider {
	--cdeco-ink: #201f1d;
	--cdeco-muted: #706b64;
	--cdeco-line: rgba(32, 31, 29, 0.1);
	--cdeco-surface: #ffffff;
	--cdeco-accent: #b88a38;
	--cdeco-accent-dark: #1f5f54;
	/* Overwritten inline (per-slider) by slider.js from the admin "speed" setting,
	   so the depth transition always matches the configured slide speed. */
	--cdeco-duration: 700ms;
	--cdeco-ease: cubic-bezier(0.16, 1, 0.3, 1);
	position: relative;
	margin: clamp(28px, 5vw, 72px) 0;
	padding: clamp(26px, 5vw, 64px) 0;
	overflow: hidden;
	color: var(--cdeco-ink);
	isolation: isolate;
}

.cdeco-product-slider::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -2;
	background:
		linear-gradient(135deg, #ffffff 0%, #faf4f1 42%, #edf7f2 100%);
}

.cdeco-product-slider::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 34%;
	z-index: -1;
	background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.72));
	pointer-events: none;
}

.cdeco-product-slider__inner {
	position: relative;
	width: min(1180px, calc(100% - 32px));
	margin-inline: auto;
}

.cdeco-product-slider__swiper {
	overflow: visible;
	padding: 8px 2px 46px;
	/* Swiper applies transition-duration inline via JS but reads this custom
	   property for the timing function, so we can swap in a premium
	   deceleration curve without fighting any inline style. */
	--swiper-wrapper-transition-timing-function: var(--cdeco-ease);
}

/* Swiper adds perspective on this class itself for any 3D effect (coverflow,
   cube, flip). Widening it softens the fish-eye convergence at the edges of
   the carousel for a subtler, more "premium" sense of depth. */
.cdeco-product-slider--coverflow .swiper-3d {
	perspective: 1900px;
}

.cdeco-product-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 100%;
	border: 1px solid var(--cdeco-line);
	border-radius: 8px;
	background: rgba(255, 255, 255, 0.88);
	box-shadow: 0 18px 48px rgba(32, 31, 29, 0.1);
	overflow: hidden;
	transition: transform 320ms ease, box-shadow 320ms ease, border-color 320ms ease;
}

.cdeco-product-card:hover {
	transform: translateY(-8px);
	border-color: rgba(184, 138, 56, 0.28);
	box-shadow: 0 26px 68px rgba(32, 31, 29, 0.16);
}

/*
 * Fake-3D depth system (coverflow variant only)
 * ----------------------------------------------
 * Swiper's own coverflow effect already moves/scales each .swiper-slide in
 * 3D space (see the `coverflowEffect.scale` option in slider.js) and writes
 * that as an inline transform via JS every frame. We never touch that
 * element's transform ourselves — instead we layer opacity, elevation and a
 * small lift on the *nested* .cdeco-product-card, which Swiper never
 * touches. Two independent transforms on two different elements compose
 * cleanly with zero risk of one clobbering the other.
 */
.cdeco-product-slider--coverflow .cdeco-product-card {
	transition: transform var(--cdeco-duration) var(--cdeco-ease),
		opacity var(--cdeco-duration) var(--cdeco-ease),
		box-shadow var(--cdeco-duration) var(--cdeco-ease),
		border-color var(--cdeco-duration) var(--cdeco-ease);
	will-change: transform, opacity;
}

/* Distant slides: present, legible, clearly receded. */
.cdeco-product-slider--coverflow .swiper-slide:not(.swiper-slide-active):not(.swiper-slide-prev):not(.swiper-slide-next) .cdeco-product-card {
	opacity: 0.46;
}

/* Immediate neighbours: one visible step back from the active card. */
.cdeco-product-slider--coverflow .swiper-slide-prev .cdeco-product-card,
.cdeco-product-slider--coverflow .swiper-slide-next .cdeco-product-card {
	opacity: 0.8;
}

/* The active slide: closest to the viewer, brightest, gently lifted. */
.cdeco-product-slider--coverflow .swiper-slide-active .cdeco-product-card {
	position: relative;
	z-index: 3;
	opacity: 1;
	transform: translateY(-6px);
	box-shadow: 0 30px 70px rgba(32, 31, 29, 0.22);
}

.cdeco-product-slider--coverflow .swiper-slide-active .cdeco-product-card:hover {
	transition-duration: 260ms;
	transform: translateY(-9px) scale(1.015);
	box-shadow: 0 34px 80px rgba(32, 31, 29, 0.26);
}

/* One-shot arrival cue: toggled by slider.js for the duration of the slide
 * transition only (see slideChangeTransitionStart/End). A tiny scale
 * overshoot that settles back to the resting -6px/1 state below — reads as
 * the product having a touch of physical weight rather than a flat snap.
 * transform-only, so it composites on the GPU like everything else here. */
@keyframes cdeco-hero-settle {
	0% { transform: translateY(-6px) scale(0.985); }
	55% { transform: translateY(-6px) scale(1.015); }
	100% { transform: translateY(-6px) scale(1); }
}

.cdeco-product-slider--coverflow .swiper-slide-active .cdeco-product-card.is-settling {
	animation: cdeco-hero-settle var(--cdeco-duration) var(--cdeco-ease) 1;
}

.cdeco-product-card__image-link {
	position: relative;
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1.05;
	padding: clamp(18px, 4vw, 34px);
	background:
		linear-gradient(180deg, rgba(255,255,255,.92), rgba(248,246,242,.92));
	text-decoration: none;
}

.cdeco-product-card__image {
	display: block;
	width: min(100%, 360px);
	height: 100%;
	object-fit: contain;
	object-position: center;
	transform: scale(1);
	transition: transform 420ms cubic-bezier(.2,.75,.2,1);
}

.cdeco-product-card:hover .cdeco-product-card__image {
	transform: scale(1.045);
}

.cdeco-product-card__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 2;
	padding: 6px 10px;
	border-radius: 999px;
	background: var(--cdeco-accent-dark);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-transform: uppercase;
	letter-spacing: 0;
}

.cdeco-product-card__content {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	gap: 10px;
	padding: 18px;
}

.cdeco-product-card__title {
	margin: 0;
	font-size: clamp(17px, 2vw, 21px);
	line-height: 1.2;
	font-weight: 700;
	letter-spacing: 0;
}

.cdeco-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.cdeco-product-card__title a:hover {
	color: var(--cdeco-accent-dark);
}

.cdeco-product-card__price {
	color: var(--cdeco-muted);
	font-size: 15px;
	font-weight: 700;
}

.cdeco-product-card__price del {
	opacity: .55;
	margin-right: 6px;
}

.cdeco-product-card__price ins {
	color: var(--cdeco-accent);
	text-decoration: none;
}

.cdeco-product-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	width: 100%;
	margin-top: auto;
	border: 0;
	border-radius: 6px;
	background: var(--cdeco-ink);
	color: #fff;
	font-size: 14px;
	font-weight: 800;
	text-decoration: none;
	transition: transform 220ms ease, background-color 220ms ease;
}

.cdeco-product-card__button:hover,
.cdeco-product-card__button:focus {
	background: var(--cdeco-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.cdeco-product-card__button:focus-visible,
.cdeco-product-card__title a:focus-visible {
	outline: 2px solid var(--cdeco-accent-dark);
	outline-offset: 2px;
}

.cdeco-product-slider__nav {
	position: absolute;
	top: 44%;
	z-index: 4;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(32, 31, 29, 0.13);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 14px 34px rgba(32, 31, 29, 0.14);
	cursor: pointer;
	transition: transform 220ms ease, background-color 220ms ease;
}

.cdeco-product-slider__nav:hover {
	transform: translateY(-2px) scale(1.05);
	background: #fff;
}

.cdeco-product-slider__nav:focus-visible {
	outline: 2px solid var(--cdeco-accent-dark);
	outline-offset: 2px;
}

.cdeco-product-slider__nav::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 9px;
	height: 9px;
	border-top: 2px solid var(--cdeco-ink);
	border-right: 2px solid var(--cdeco-ink);
}

.cdeco-product-slider__prev {
	left: -10px;
}

.cdeco-product-slider__next {
	right: -10px;
}

.cdeco-product-slider__prev::before {
	transform: translate(-35%, -50%) rotate(-135deg);
}

.cdeco-product-slider__next::before {
	transform: translate(-65%, -50%) rotate(45deg);
}

.cdeco-product-slider__pagination {
	position: static;
	display: flex;
	justify-content: center;
	gap: 8px;
	min-height: 14px;
}

.cdeco-product-slider__pagination .swiper-pagination-bullet {
	width: 7px;
	height: 7px;
	margin: 0;
	background: rgba(32, 31, 29, 0.28);
	opacity: 1;
	transition: width 220ms ease, background-color 220ms ease;
}

.cdeco-product-slider__pagination .swiper-pagination-bullet-active {
	width: 24px;
	border-radius: 999px;
	background: var(--cdeco-accent-dark);
}

.cdeco-product-slider--fade .cdeco-product-card {
	max-width: 560px;
	margin-inline: auto;
}

@media (max-width: 767px) {
	.cdeco-product-slider__inner {
		width: min(100% - 22px, 520px);
	}

	.cdeco-product-slider__swiper {
		padding-bottom: 40px;
	}

	.cdeco-product-slider__nav {
		display: none;
	}

	.cdeco-product-card__content {
		padding: 16px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cdeco-product-slider--coverflow .swiper-slide-active .cdeco-product-card.is-settling {
		animation: none;
	}

	.cdeco-product-card,
	.cdeco-product-card__image,
	.cdeco-product-slider__nav,
	.cdeco-product-card__button,
	.cdeco-product-slider__pagination .swiper-pagination-bullet {
		transition-duration: 1ms !important;
	}

	.cdeco-product-card:hover,
	.cdeco-product-slider--coverflow .swiper-slide-active .cdeco-product-card:hover {
		transform: none;
	}

	.cdeco-product-card:hover .cdeco-product-card__image {
		transform: none;
	}

	/* Keep the opacity/shadow depth cues (they communicate which slide is
	   active) but drop the lift, since large translateY motion is exactly
	   what this preference asks us to avoid. */
	.cdeco-product-slider--coverflow .swiper-slide-active .cdeco-product-card {
		transform: none;
	}
}