/**
 * CX Product Cards Carousel — full-bleed track, overflow visible for peek slides.
 */

.elementor-widget-cx-product-cards-carousel,
.elementor-widget-cx-product-cards-carousel .elementor-widget-container {
	overflow: visible;
}

/* 根容器不设背景，交给外层 Section/列；避免 Swiper 等默认色块 */
.cx-pc {
	--cx-pc-accent: #f05a24;
	--cx-pc-img-ar: 1.33;
	--cx-pc-muted: #6b6b6b;
	width: 100%;
	box-sizing: border-box;
	overflow: visible;
	background: none;
	background-color: transparent;
}

.cx-pc__track,
.cx-pc__swiper-outer,
.cx-pc .swiper,
.cx-pc .swiper-wrapper,
.cx-pc .swiper-slide {
	background: none;
	background-color: transparent;
}

.cx-pc *,
.cx-pc *::before,
.cx-pc *::after {
	box-sizing: border-box;
}

.cx-pc__inner {
	margin-left: auto;
	margin-right: auto;
	padding: 20px 20px 12px;
	width: 100%;
}

.cx-pc__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
}

.cx-pc__head-spacer {
	flex: 1 1 auto;
	min-width: 0;
}

.cx-pc__tools {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

.cx-pc__nav {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 18px;
	line-height: 1;
	color: #111;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	padding: 0;
}

.cx-pc__nav:hover,
.cx-pc__nav:focus-visible {
	border-color: var(--cx-pc-accent);
	color: var(--cx-pc-accent);
	outline: none;
}

.cx-pc__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0 20px;
	border-radius: 999px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	background: #fff;
	color: #111;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
	margin-left: 4px;
}

.cx-pc__view-all:hover,
.cx-pc__view-all:focus-visible {
	border-color: var(--cx-pc-accent);
	color: var(--cx-pc-accent);
	outline: none;
}

/* Track: full width, do not clip slides */
.cx-pc__track {
	width: 100%;
	overflow: visible;
	position: relative;
	padding: 8px 0 32px;
}

.cx-pc__swiper-outer {
	width: 100%;
	overflow: visible;
}

.cx-pc .swiper {
	overflow: visible !important;
	width: 100%;
}

.cx-pc .swiper-wrapper {
	overflow: visible;
}

.cx-pc .swiper-slide {
	height: auto;
	overflow: visible;
}

/* Card */
.cx-pc-card {
	--cx-pc-card-bg: #ffffff;
	height: 100%;
	background: var(--cx-pc-card-bg);
	border: 1px solid transparent;
	border-radius: 18px;
	transition: border-color 0.25s ease, box-shadow 0.25s ease;
	box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.cx-pc-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	border-radius: inherit;
	overflow: hidden;
}

.cx-pc-card__link--static {
	cursor: default;
}

.cx-pc-card__media {
	position: relative;
	overflow: hidden;
	background: #fff;
	aspect-ratio: 4 / 3;
}

.cx-pc-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transform: scale(1);
	transition: transform 0.35s ease;
}

.cx-pc-card__body {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 16px 18px;
	flex: 1 1 auto;
}

.cx-pc-card__text {
	min-width: 0;
	flex: 1 1 auto;
}

.cx-pc-card__title {
	margin: 0 0 6px;
	font-size: 16px;
	font-weight: 700;
	color: #111;
	line-height: 1.25;
	transition: color 0.25s ease;
}

.cx-pc-card__excerpt {
	margin: 0;
	font-size: 13px;
	line-height: 1.45;
	color: var(--cx-pc-muted);
}

/* Plus button */
.cx-pc-card__plus {
	position: relative;
	flex: 0 0 40px;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #ececec;
	transition: background 0.25s ease;
}

.cx-pc-card__plus::before,
.cx-pc-card__plus::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: #333;
	transform: translate(-50%, -50%);
	transition: background 0.25s ease;
}

.cx-pc-card__plus::before {
	width: 12px;
	height: 2px;
}

.cx-pc-card__plus::after {
	width: 2px;
	height: 12px;
}

/* Hover / focus-within */
.cx-pc-card:hover,
.cx-pc-card:focus-within {
	border-color: var(--cx-pc-accent);
	box-shadow: 0 8px 28px rgba(240, 90, 36, 0.15);
}

.cx-pc-card:hover .cx-pc-card__media img,
.cx-pc-card:focus-within .cx-pc-card__media img {
	transform: scale(1.06);
}

.elementor-widget-cx-product-cards-carousel .cx-pc-card:hover .cx-pc-card__title,
.elementor-widget-cx-product-cards-carousel .cx-pc-card:focus-within .cx-pc-card__title {
	color: var(--cx-pc-accent);
}

.cx-pc-card:hover .cx-pc-card__plus,
.cx-pc-card:focus-within .cx-pc-card__plus {
	background: var(--cx-pc-accent);
}

.cx-pc-card:hover .cx-pc-card__plus::before,
.cx-pc-card:hover .cx-pc-card__plus::after,
.cx-pc-card:focus-within .cx-pc-card__plus::before,
.cx-pc-card:focus-within .cx-pc-card__plus::after {
	background: #fff;
}

@media (max-width: 767px) {
	.cx-pc__inner {
		padding-bottom: 8px;
	}

	.cx-pc__view-all {
		width: 100%;
		margin-left: 0;
		margin-top: 4px;
	}

	.cx-pc__tools {
		width: 100%;
		justify-content: flex-end;
	}
}
