.dms3-product-grid {
	display: grid !important;
	grid-template-columns: 1fr !important;
	gap: 1.25rem;
	width: 100%;
	box-sizing: border-box;
}

/* Tablet */
@media only screen and (min-width: 768px) {
	.dms3-product-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 1.5rem;
	}
}

/* Escriptori */
@media only screen and (min-width: 1024px) {
	.dms3-product-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
	}
}

/* Força 1 columna a mòbil (per sobre de caché / CSS de Divi) */
@media only screen and (max-width: 767px) {
	.dms3-product-grid {
		grid-template-columns: 1fr !important;
	}
}

.dms3-product-grid__item {
	margin: 0;
	min-width: 0;
}

.dms3-product-grid__card {
	display: flex;
	flex-direction: column;
	height: 100%;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dms3-product-grid__card:hover,
.dms3-product-grid__card:focus-visible {
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.dms3-product-grid__card:focus-visible {
	outline: 2px solid #c41e3a;
	outline-offset: 2px;
}

.dms3-product-grid__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	background: #f7f7f7;
	overflow: hidden;
	padding: 0.75rem;
	box-sizing: border-box;
}

.dms3-product-grid__image {
	display: block;
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
}

.dms3-product-grid__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem 1.125rem 1.125rem;
	gap: 0.75rem;
}

.dms3-product-grid__title {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.35;
	font-weight: 700;
	color: #1a1a1a;
}

.dms3-product-grid__excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.45;
	font-weight: 400;
	color: #6b6b6b;
}

.dms3-product-grid__footer {
	margin-top: auto;
	padding-top: 0.875rem;
	border-top: 1px solid #ececec;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.dms3-product-grid__price {
	font-size: 1rem;
	line-height: 1.4;
	color: #1a1a1a;
}

.dms3-product-grid__price .amount,
.dms3-product-grid__price bdi,
.dms3-product-grid__price strong {
	font-weight: 700;
}

.dms3-product-grid__price del {
	opacity: 0.55;
}

.dms3-product-grid__button {
	display: block;
	width: 100%;
	box-sizing: border-box;
	padding: 0.7rem 1rem;
	border-radius: 8px;
	background: #5cbeb5;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	transition: background-color 0.2s ease, filter 0.2s ease;
}

.dms3-product-grid__card:hover .dms3-product-grid__button,
.dms3-product-grid__card:focus-visible .dms3-product-grid__button {
	background: #4eaea5;
}

.dms3-product-grid__notice {
	padding: 0.75rem 1rem;
	background: #fff8e5;
	border: 1px solid #f0dfa0;
	border-radius: 6px;
}
