/* JD Union Recommend frontend styles */
.jdur-recommendations {
	margin: 2rem 0;
	padding: 1rem;
	background: #f8f9fa;
	border-radius: 8px;
}

.jdur-recommendations .jdur-title {
	margin: 0 0 1rem;
	font-size: 1.25rem;
	font-weight: 600;
	color: #1a1a1a;
}

.jdur-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1rem;
}

.jdur-product {
	background: #fff;
	border-radius: 6px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.jdur-product:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.jdur-product-link {
	display: block;
	color: inherit;
	text-decoration: none;
}

.jdur-product-link:hover {
	color: inherit;
}

.jdur-product-image {
	position: relative;
	width: 100%;
	padding-top: 100%;
	background: #f0f0f0;
}

.jdur-product-image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.jdur-product-body {
	padding: 0.75rem;
}

.jdur-product-title {
	margin: 0 0 0.4rem;
	font-size: 0.9rem;
	line-height: 1.35;
	color: #333;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.jdur-product-shop {
	margin: 0 0 0.4rem;
	font-size: 0.75rem;
	color: #888;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.jdur-product-price {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #e1251b;
}

.jdur-price-symbol {
	font-size: 0.75rem;
	margin-right: 0.1rem;
}

@media (min-width: 768px) {
	.jdur-products {
		grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	}
}
