/**
 * DTS Products Block — Frontend + Editor styles
 */

.wp-block-dts-products .dts-products__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.wp-block-dts-products .dts-products__card {
	position: relative;
	display: grid;
	grid-template-columns: 33% 1fr;
	gap: 1.25rem;
	align-items: start;
	padding: 1.5rem;
	background: #FFFFFF;
	border-radius: 20px;
	transition: background-color 0.2s ease;
	margin: 0;
}

.wp-block-dts-products .dts-products__card:hover,
.wp-block-dts-products .dts-products__card:focus-within {
	background-color: #F3F6F8;
}

.wp-block-dts-products .dts-products__media {
	display: flex;
	align-items: start;
	justify-content: center;
	aspect-ratio: 1 / 1;
}

.wp-block-dts-products .dts-products__image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.wp-block-dts-products .dts-products__body {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	min-width: 0;
}

.wp-block-dts-products .dts-products__title {
	margin: 0;
	font-size: 1.5rem;
	line-height: 1.25;
}

/* Stretched link — makes the entire card clickable while the visible
   underline effect only applies to the title text. */
.wp-block-dts-products .dts-products__link {
	color: inherit;
	text-decoration: none;
}

.wp-block-dts-products .dts-products__link::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
}

.wp-block-dts-products .dts-products__card:hover .dts-products__link,
.wp-block-dts-products .dts-products__card:focus-within .dts-products__link {
	text-decoration: underline;
}

.wp-block-dts-products .dts-products__excerpt {
	margin: 0;
	color: inherit;
	font-size: 1rem;
}

.wp-block-dts-products .dts-products__excerpt p {
	margin: 0;
}

@media (min-width: 768px) {
	.wp-block-dts-products .dts-products__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
