/* Elementor — You May Also Like (Woo) */

.elementor-widget-hello-you-may-also-like .hec-ymal {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0 0 48px;
	box-sizing: border-box;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__title {
	margin: 0;
	/* 字号/字重/颜色/对齐/下边距由 Elementor「样式 → 区块标题」控制 */
}

.elementor-widget-hello-you-may-also-like .hec-ymal__grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	row-gap: 28px;
	column-gap: 22px;
	/* 间距可在「样式 → 布局间距」覆盖 */
}

.elementor-widget-hello-you-may-also-like .hec-ymal__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__media {
	position: relative;
	background: #f5f5f5;
	/* 宽:高 = 2:3（竖向画幅） */
	aspect-ratio: 2 / 3;
	overflow: hidden;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__imgstack {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__img {
	display: block;
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: opacity 0.38s ease;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__img--hover {
	opacity: 0;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__media--has-alt:hover .hec-ymal__img--primary {
	opacity: 0;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__media--has-alt:hover .hec-ymal__img--hover {
	opacity: 1;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__ribbon {
	position: absolute;
	left: 0;
	top: 0;
	z-index: 2;
	max-width: 58%;
	padding: 8px 10px 10px 8px;
	font-size: 9px;
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: 0.06em;
	color: #fff;
	text-transform: uppercase;
	background: linear-gradient(135deg, #c41e1e 0%, #8b0000 100%);
	clip-path: polygon(0 0, 100% 0, 85% 100%, 0 85%);
	box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.08);
	pointer-events: none;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__soldout {
	position: absolute;
	left: 10px;
	top: 10px;
	z-index: 2;
	padding: 6px 12px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	color: #fff;
	background: #0f1114;
	border-radius: 999px;
	pointer-events: none;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__media:has(.hec-ymal__ribbon) .hec-ymal__soldout {
	left: auto;
	right: 10px;
	top: 10px;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	/* padding-top 由「样式 → 布局间距」控制 */
}

.elementor-widget-hello-you-may-also-like .hec-ymal__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__name {
	flex: 1;
	min-width: 0;
	/* 排版/颜色/对齐由 Elementor「样式 → 商品标题」控制 */
}

.elementor-widget-hello-you-may-also-like .hec-ymal__rating {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	/* 数字/星星颜色由「样式 → 评分」控制 */
}

.elementor-widget-hello-you-may-also-like .hec-ymal__star {
	flex-shrink: 0;
}

.elementor-widget-hello-you-may-also-like .hec-ymal__price {
	/* 排版/颜色/对齐由 Elementor「样式 → 价格」控制 */
}

.elementor-widget-hello-you-may-also-like .hec-ymal__price del {
	opacity: 0.55;
	margin-right: 6px;
}

@media (max-width: 1024px) {
	.elementor-widget-hello-you-may-also-like .hec-ymal__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.elementor-widget-hello-you-may-also-like .hec-ymal {
		padding-bottom: 32px;
	}

	.elementor-widget-hello-you-may-also-like .hec-ymal__grid {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.elementor-widget-hello-you-may-also-like .hec-ymal__img {
		transition: none;
	}
}
