/* ==========================================================================
   YWP滚动产品 —— Elementor 组件样式
   class 统一前缀：ywp_scroll_products
   PC端显示4个，移动端（<=767px）显示2个
   ========================================================================== */

.ywp_scroll_products {
	position: relative;
	padding: 0 44px 40px; /* 给左右箭头 + 底部圆点导航留空间 */
}

.ywp_scroll_products_swiper {
	overflow: hidden;
}

.ywp_scroll_products_card {
	display: block;
	background: #fff;
	text-decoration: none;
	border-radius: 4px;
	overflow: hidden;
	transition: box-shadow .25s ease, transform .25s ease;
}

.ywp_scroll_products_card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
	transform: translateY(-2px);
}

.ywp_scroll_products_card_img {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background: #fff;
}

.ywp_scroll_products_card_img img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.ywp_scroll_products_card_title {
	padding: 16px 20px 0px;margin-bottom:16px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: #16213e;
	line-height: 1.4;
}

/* 左右箭头 */
.ywp_scroll_products_prev,
.ywp_scroll_products_next {
	position: absolute;
	top: calc( 50% - 20px ); /* 大致对齐图片区域中间，略偏上避开底部圆点 */
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #ececec;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 20px;
	color: #16213e;
	cursor: pointer;
	box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
	z-index: 2;
	user-select: none;
	transition: background .2s;
}

.ywp_scroll_products_prev:hover,
.ywp_scroll_products_next:hover {
	background: #22A770;
	color: #fff;
}

.ywp_scroll_products_prev {
	left: 0;
}

.ywp_scroll_products_next {
	right: 0;
}

.ywp_scroll_products_prev.swiper-button-disabled,
.ywp_scroll_products_next.swiper-button-disabled {
	opacity: .3;
	cursor: default;
	pointer-events: none;
}

/* 底部导航圆点 */
.ywp_scroll_products_pagination {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.ywp_scroll_products_pagination .swiper-pagination-bullet {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #d9d9d9;
	opacity: 1;
	margin: 0 !important;
	cursor: pointer;
}

.ywp_scroll_products_pagination .swiper-pagination-bullet-active {
	background: #22A770;
}

.ywp_scroll_products_empty {
	padding: 20px;
	text-align: center;
	color: #999;
	font-size: 14px;
}

/* 移动端：显示2个 */
@media (max-width: 767px) {
	.ywp_scroll_products {
		padding: 0 36px 36px;
	}

	.ywp_scroll_products_card_title {
		font-size: 12px;
		padding: 12px 14px 0px;margin-bottom:12px;
	}

	.ywp_scroll_products_card_img {
		padding: 16px;
	}

	.ywp_scroll_products_prev,
	.ywp_scroll_products_next {
		width: 30px;
		height: 30px;
		font-size: 16px;
	}
}
