/* Shared product card — scroller, helpers, blogs placeholders. */

.wl-pcard {
	display: block;
	text-decoration: none;
	color: inherit;
}

.wl-pcard__media {
	position: relative;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background: #f1eeeb;
	border-radius: 2px;
}

/* Beat .elementor img { height: auto; max-width: 100% } so the photo
   actually fills the fixed-ratio box instead of sitting at the top. */
.wl-pcard__media .wl-pcard__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	max-height: none;
	object-fit: cover;
	object-position: center;
	opacity: 0;
	transition: opacity 0.5s ease, transform 4s ease;
}

.wl-pcard__img.is-active {
	opacity: 1;
}

.wl-pcard:hover .wl-pcard__img.is-active {
	transform: scale(1.04);
}

.wl-pcard__ph {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, #efeae6, #e2dbd5);
}

.wl-pcard__brand {
	display: block;
	margin-top: 10px;
	font-size: 9px;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--wl-rose);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

/* All names occupy the same height — longer names are trimmed. */
.wl-pcard__title {
	margin: 4px 0 0;
	font-family: var(--wl-font-body);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.25;
	color: var(--wl-ink);
	min-height: calc(1.25em * var(--wl-title-lines, 1));
	display: -webkit-box;
	-webkit-line-clamp: var(--wl-title-lines, 1);
	line-clamp: var(--wl-title-lines, 1);
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.wl-pcard__price {
	margin-top: 4px;
	font-size: 12px;
	color: var(--wl-ink);
	display: flex;
	gap: 8px;
	align-items: baseline;
	flex-wrap: wrap;
}

.wl-pcard__price ins {
	text-decoration: none;
	color: var(--wl-rose);
}

.wl-pcard__price del {
	color: #a6a6a6;
	font-size: 11px;
}
