.dsf-product-showcase {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.dsf-product-showcase--columns-1 {
	grid-template-columns: 1fr;
}

.dsf-product-showcase--columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dsf-product-showcase--columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dsf-product-showcase--columns-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dsf-product-showcase--columns-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.dsf-product-card {
	overflow: hidden;
	border: 1px solid var(--ast-border-color, #e2e8f0);
	border-radius: 8px;
	background: var(--ast-global-color-5, #fff);
	color: var(--ast-global-color-3, inherit);
}

.dsf-product-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--ast-global-color-6, #f1f5f9);
}

.dsf-product-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.dsf-product-card__content {
	padding: 18px;
}

.dsf-product-card__title {
	margin: 0 0 12px;
	color: var(--ast-global-color-2, inherit);
}

.dsf-product-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.dsf-product-card__excerpt {
	margin-top: 12px;
}

.dsf-product-card__excerpt > :last-child {
	margin-bottom: 0;
}

.dsf-product-availability {
	display: inline-flex;
	align-items: center;
	padding: 4px 9px;
	border-radius: 999px;
	background: #e2e8f0;
	color: #334155;
	font-size: 0.82em;
	font-weight: 600;
	line-height: 1.2;
}

.dsf-product-availability--available {
	background: #dcfce7;
	color: #166534;
}

.dsf-product-availability--unavailable {
	background: #fee2e2;
	color: #991b1b;
}

@media (max-width: 782px) {
	.dsf-product-showcase {
		grid-template-columns: 1fr;
	}
}
/* Uploaded EU notice, including the PDF fallback when no preview is available. */
.dsf-guarantee-notice {
	margin: 0;
	padding: 0;
}
.dsf-guarantee-notice h2 { margin: 0 0 0.75rem; font-size: 1rem; }
.dsf-guarantee-notice__image { display: block; width: 100%; max-width: 320px; height: auto; }
.dsf-guarantee-notice__pdf { display: block; width: 360px; max-width: 100%; height: 460px; border: 0; }
.dsf-guarantee-notice p { margin: 1rem 0 0; }

.dsf-product-template .dsf-product-template__price,
.dsf-product-card__meta > strong {
	color: var(--ast-global-color-2, #245841);
	color: color-mix(in srgb, var(--ast-global-color-0, #245841) 50%, var(--ast-global-color-2, #17251f));
}

/* Mobile styles for the bundled Spectra product pattern. */
@media (max-width: 650px) {
	body.single-dsf_product .entry-content > .dsf-product-template {
		box-sizing: border-box;
		width: auto;
		max-width: 100%;
		margin-inline: 0 !important;
	}

	.dsf-product-template .dsf-product-template__overview {
		row-gap: 18px !important;
	}

	.dsf-product-template .dsf-product-template__gallery {
		gap: 8px !important;
	}

	.dsf-product-template .dsf-product-template__info {
		align-items: stretch;
		gap: 16px !important;
		min-width: 0;
		overflow-wrap: anywhere;
	}

	.dsf-product-template .dsf-product-template__summary {
		gap: 3px !important;
		padding-block: 0 !important;
	}

	.dsf-product-template .dsf-product-template__stock {
		font-size: 0.875rem;
		line-height: 1.4;
	}

	.dsf-product-template .dsf-product-template__notice {
		padding: 12px 14px !important;
	}

	.dsf-product-template .dsf-product-template__sections {
		padding-block: 20px 0 !important;
	}

	.dsf-product-template__sections > .wp-block-spectra-accordion {
		gap: 12px !important;
	}
}
