/* ==========================================================================
   Product Catalog Carousel Specific Styles
   ========================================================================== */

/* 1. 标题样式 */
.topfeel-product-catalog-carousel__caption {
	text-align: center;
	margin-bottom: 2.5rem;
	min-height: 1.5em;
}

.topfeel-product-catalog-carousel__title-active {
	font-family: "Manrope", var(--font-base);
	font-size: 32px;
	font-weight: 700;
	color: #111c28;
	margin: 0;
}

/* 2. 轮播图主体容器 */
.topfeel-product-catalog-carousel {
	position: relative;
	width: 100%;
	max-width: var(--container-width);
	margin: 4rem auto 0;
	padding: 0px 10px;
	box-sizing: border-box;
}

.topfeel-product-catalog-carousel__container {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 420px;
	perspective: 1500px;
}

.topfeel-product-catalog-carousel__caption {
	text-align: center;
	margin-top: 2.5rem;
	min-height: 1.5em;
}

.topfeel-product-catalog-carousel__track {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

/* 3. 单个图片项 */
.topfeel-product-catalog-carousel__item {
	position: absolute;
	overflow: hidden;
	border-radius: 0.75rem;
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
	transition: all 0.7s cubic-bezier(0.25, 1, 0.5, 1);
	will-change: transform, opacity, filter, z-index;
	width: 30%;
	aspect-ratio: 1 / 1;
	opacity: 0;
	pointer-events: none;
	background: #eee;
	/* 强制开启硬件加速，防止滤镜导致的圆角失效 */
	transform: translateZ(0);
	-webkit-mask-image: -webkit-radial-gradient(white, black);
}

.topfeel-product-catalog-carousel__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: inherit; /* 确保图片本身也同步圆角 */
}

/* 4. 堆叠层级样式 - 使用 !important 确保 JS 切换时优先级 */
.topfeel-product-catalog-carousel__item--active {
	opacity: 1 !important;
	z-index: 100 !important;
	transform: translateX(0) scale(1) !important;
	pointer-events: auto;
	filter: none !important;
	border-radius: 0.75rem !important; /* 确保活动项有圆角 */
}

.topfeel-product-catalog-carousel__item--left {
	opacity: 0.85 !important;
	z-index: 80 !important;
	transform: translateX(-78%) scale(0.75) !important;
	filter: brightness(0.8) blur(0.5px) !important;
	border-radius: 0.75rem !important;
}

.topfeel-product-catalog-carousel__item--right {
	opacity: 0.85 !important;
	z-index: 80 !important;
	transform: translateX(78%) scale(0.75) !important;
	filter: brightness(0.8) blur(0.5px) !important;
	border-radius: 0.75rem !important;
}

.topfeel-product-catalog-carousel__item--far-left {
	opacity: 0.6 !important;
	z-index: 60 !important;
	transform: translateX(-120%) scale(0.6) !important;
	filter: brightness(0.9) blur(0.2px) !important;
	border-radius: 0.75rem !important;
	-webkit-mask-image: -webkit-radial-gradient(white, black) !important;
}

.topfeel-product-catalog-carousel__item--far-right {
	opacity: 0.6 !important;
	z-index: 60 !important;
	transform: translateX(120%) scale(0.6) !important;
	filter: brightness(0.9) blur(0.2px) !important;
	border-radius: 0.75rem !important;
	-webkit-mask-image: -webkit-radial-gradient(white, black) !important;
}

/* 5. 切换按钮（箭头） */
.topfeel-product-catalog-carousel__prev,
.topfeel-product-catalog-carousel__next {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 110;
	background: none !important;
	border: none !important;
	padding: 0 !important;
	width: 72px; /* 再次增加 6px */
	height: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #000 !important;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: none !important;
}

.topfeel-product-catalog-carousel__prev:hover,
.topfeel-product-catalog-carousel__next:hover {
	color: #006338 !important;
	transform: translateY(-50%) scale(1.15);
}

.topfeel-product-catalog-carousel__prev { left: -20px; }
.topfeel-product-catalog-carousel__next { right: -20px; }

.topfeel-product-catalog-carousel__prev .material-symbols-outlined,
.topfeel-product-catalog-carousel__next .material-symbols-outlined {
	font-size: 60px !important; /* 再次增加 6px (54 -> 60) */
	font-weight: 300;
}

/* 6. 响应式 - 平板 */
@media (max-width: 768px) {
	.topfeel-product-catalog-carousel {
		margin-top: 2rem;
		padding: 0 5px;
	}

	.topfeel-product-catalog-carousel__container {
		height: 440px;
	}

	.topfeel-product-catalog-carousel__item {
		width: 65%;
	}

	.topfeel-product-catalog-carousel__item--left {
		transform: translateX(-62%) scale(0.75) !important;
	}

	.topfeel-product-catalog-carousel__item--right {
		transform: translateX(62%) scale(0.75) !important;
	}

	.topfeel-product-catalog-carousel__item--far-left,
	.topfeel-product-catalog-carousel__item--far-right {
		opacity: 0 !important;
		pointer-events: none;
	}

	.topfeel-product-catalog-carousel__prev,
	.topfeel-product-catalog-carousel__next {
		display: none !important;
	}

	.topfeel-product-catalog-carousel__caption {
		margin-top: 1.5rem;
	}

	.topfeel-product-catalog-carousel__title-active {
		font-size: 24px;
	}
}

/* 7. 响应式 - 手机 */
@media (max-width: 480px) {
	.topfeel-product-catalog-carousel__container {
		height: 340px;
	}

	.topfeel-product-catalog-carousel__item {
		width: 80%;
	}

	.topfeel-product-catalog-carousel__item--left {
		transform: translateX(-50%) scale(0.75) !important;
	}

	.topfeel-product-catalog-carousel__item--right {
		transform: translateX(50%) scale(0.75) !important;
	}

	.topfeel-product-catalog-carousel__title-active {
		font-size: 20px;
	}
}
