/* ============================================================
   Eleganza — product card & grid fixes  v2
   ============================================================ */

/* Card images: fill the whole frame instead of a narrow centred strip.
   Elementor sets height:400px but leaves width unset so portrait
   photos shrink to thin columns with grey dead space either side. */
.e-loop-item .elementor-widget-theme-post-featured-image img,
.e-loop-item .elementor-widget-image img {
	width: 100% !important;
	height: 400px !important;
	object-fit: cover !important;
	object-position: center !important;
	opacity: 1 !important;
	display: block;
}
/* Hide the grey widget background once the image covers it */
.e-loop-item .elementor-widget-theme-post-featured-image {
	overflow: hidden;
}
.e-loop-item .elementor-widget-theme-post-featured-image a,
.e-loop-item .elementor-widget-image a {
	display: block;
	width: 100%;
}

/* Card polish: consistent height, subtle lift on hover */
.e-loop-item > .e-parent {
	border-radius: 8px;
	overflow: hidden;
	transition: transform .2s ease, box-shadow .25s ease;
}
.e-loop-item:hover > .e-parent {
	transform: translateY(-3px);
	box-shadow: 0 12px 28px rgba(15, 20, 40, .12);
}

/* Shop Now button: full-width, aligned to card bottom for even rows */
.e-loop-item .e-loop-add-to-cart-form-container form.cart {
	width: 100%;
}
.e-loop-item .e-loop-add-to-cart-form-container a.button,
.e-loop-item .e-loop-add-to-cart-form-container button {
	width: 100%;
	justify-content: center;
	text-align: center;
}

/* Keep cards equal height in the loop grid */
.e-loop-item {
	display: flex;
}
.e-loop-item > .e-parent {
	flex: 1;
	display: flex;
	flex-direction: column;
}
