.ymal-11785-wrapper {
	background-color: #f9f9f9;
	padding: 40px;
}

.ymal-11785-header {
	text-align: center;
	margin-bottom: 30px;
}

.ymal-11785-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 600;
}

.ymal-11785-subtitle {
	margin: 0;
	font-size: 16px;
	color: #666;
}

.ymal-11785-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.ymal-11785-card {
	background-color: #ffffff;
	border-radius: 8px;
	overflow: hidden;
	position: relative;
	transition: box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.ymal-11785-card:hover {
	box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.ymal-11785-card-link-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
}

.ymal-11785-card-image-wrap {
	position: relative;
	width: 100%;
	padding-bottom: 100%; /* Default 1:1 ratio */
	overflow: hidden;
	background: #f0f0f0;
}

.ymal-11785-card-image-wrap img,
.ymal-11785-card-image-wrap .ymal-11785-placeholder-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ymal-11785-card-content {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	text-align: center;
	position: relative;
	z-index: 11; /* Above the overlay so buttons are clickable */
	pointer-events: none; /* Let clicks pass through to overlay */
}

/* Re-enable pointer events for specific clickable elements inside content */
.ymal-11785-product-title a,
.ymal-11785-add-to-cart a.button {
	pointer-events: auto;
	position: relative;
	z-index: 12;
}


.ymal-11785-product-title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 500;
}

.ymal-11785-product-title a {
	color: inherit;
	text-decoration: none;
}

.ymal-11785-price {
	font-size: 16px;
	font-weight: 600;
	color: #333;
	margin-bottom: 15px;
}

.ymal-11785-price del {
	opacity: 0.6;
	font-weight: 400;
	margin-right: 5px;
}

.ymal-11785-price ins {
	text-decoration: none;
}

.ymal-11785-add-to-cart {
	margin-top: auto; /* Push to bottom */
}

.ymal-11785-add-to-cart .button {
	display: inline-block;
	padding: 10px 20px;
	background-color: #333;
	color: #fff;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background-color 0.3s ease, color 0.3s ease;
}

.ymal-11785-add-to-cart .button:hover {
	background-color: #555;
}

.ymal-11785-add-to-cart .added_to_cart {
	display: none !important;
}

.ymal-11785-fallback {
	padding: 20px;
	text-align: center;
	background: #f9f9f9;
	color: #666;
	border: 1px dashed #ccc;
	border-radius: 4px;
}

@media (max-width: 1024px) {
	.ymal-11785-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.ymal-11785-grid {
		grid-template-columns: 1fr;
	}
}
