:root {
	--mdd-orange: #c9660c;
	--mdd-orange-bg: #faeeda;
	--mdd-brown: #3d2817;
	--mdd-text: #2c2c2a;
	--mdd-text-muted: #7a7770;
	--mdd-border: #e3ddd2;
	--mdd-surface: #ffffff;
	--mdd-surface-alt: #f6f2ea;
}

.mdd-grid {
	display: flex;
	flex-wrap: wrap;
	flex-direction: row;
	align-content: flex-start;
	gap: 16px;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	margin: 24px 0;
}

.mdd-card {
	flex: 1 1 200px;
	max-width: 220px;
	height: 360px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: var(--mdd-surface);
	border: 1px solid var(--mdd-border);
	border-radius: 12px;
}

@media (max-width: 600px) {
	.mdd-card {
		flex: 1 1 100%;
		max-width: 100%;
		height: auto;
	}

	.mdd-card-body {
		overflow: visible;
	}

	.mdd-title {
		-webkit-line-clamp: 3;
	}
}

.mdd-card-image {
	position: relative;
	height: 150px;
	flex-shrink: 0;
	overflow: hidden;
	background: var(--mdd-surface-alt);
	display: flex;
	align-items: center;
	justify-content: center;
}

.mdd-card-image img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 12px;
	box-sizing: border-box;
}

.mdd-image-placeholder {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--mdd-border);
}

.mdd-badge-brand {
	position: absolute;
	top: 8px;
	left: 8px;
	background: var(--mdd-surface);
	border: 1px solid var(--mdd-border);
	color: var(--mdd-text-muted);
	font-size: 11px;
	padding: 3px 8px;
	border-radius: 6px;
}

.mdd-badge-discount {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #d92d20;
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	padding: 4px 8px;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
}

.mdd-badge-expired {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--mdd-surface);
	border: 1px solid var(--mdd-text-muted);
	color: var(--mdd-text-muted);
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 6px;
}

.mdd-card-expired .mdd-card-image {
	opacity: 0.5;
}

.mdd-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	overflow: hidden;
	padding: 14px 16px;
}

.mdd-title {
	font-size: 14px;
	margin: 0 0 8px;
	line-height: 1.4;
	color: var(--mdd-text);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.mdd-price-row {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin: 0 0 8px;
}

.mdd-price-list {
	text-decoration: line-through;
	color: var(--mdd-text-muted);
	font-size: 13px;
}

.mdd-price-sale {
	font-size: 17px;
	font-weight: 600;
	color: var(--mdd-text);
}

.mdd-card-expired .mdd-price-sale {
	color: var(--mdd-text-muted);
}

.mdd-posted {
	font-size: 12px;
	color: var(--mdd-text-muted);
	margin: 0 0 12px;
}

.mdd-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 38px;
	border-radius: 6px;
	font-size: 13px;
	text-decoration: none;
	border: 1px solid var(--mdd-brown);
	color: var(--mdd-surface);
	background: var(--mdd-brown);
	margin-top: auto;
}

.mdd-cta:hover {
	opacity: 0.9;
}

.mdd-cta-disabled {
	border-color: var(--mdd-border);
	color: var(--mdd-text-muted);
	background: transparent;
	cursor: default;
}

.mdd-empty {
	text-align: center;
	color: var(--mdd-text-muted);
	padding: 40px 0;
}
