.mb-product-card {
	width: 100%;
	min-width: 0;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 0.8px solid var(--mb-card-border);
	border-radius: var(--mb-card-radius);
	box-shadow: var(--mb-card-shadow);
	padding: 10px;
	text-decoration: none;
	color: inherit;
	overflow: hidden;
	height: 100%;
	transition: box-shadow 0.15s ease;
}

.mb-product-card:hover {
	box-shadow: 0 0 1px rgba(60, 64, 67, 0.12), 0 4px 12px rgba(60, 64, 67, 0.18);
	color: inherit;
}

.mb-product-card__media {
	position: relative;
	width: 100%;
	aspect-ratio: 1;
	max-height: 204px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.mb-product-card__img,
.mb-product-card__media img {
	width: 100%;
	height: 100%;
	max-height: 204px;
	object-fit: contain;
	display: block;
}

.mb-product-card--oos .mb-product-card__media img {
	opacity: 0.55;
	filter: grayscale(25%);
}

.mb-product-card__oos-label {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	padding: 14px 8px;
	background: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(2px);
	color: #333;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-align: center;
	text-transform: uppercase;
	border-top: 1px solid rgba(0, 0, 0, 0.06);
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
	pointer-events: none;
}

.mb-product-card--oos .mb-product-card__badge {
	opacity: 0.65;
}

.mb-product-card__body {
	padding-top: 6px;
	display: flex;
	flex-direction: column;
	gap: 0;
	flex: 1 1 auto;
}

.mb-product-card__meta-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 21px;
	margin-bottom: 4px;
}

.mb-product-card__brand {
	font-size: 13px;
	line-height: 16px;
	color: var(--mb-brand);
	font-weight: 400;
	margin-bottom: 0;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.mb-product-card__meta-row .mb-product-card__badge {
	margin-left: auto;
	flex-shrink: 0;
}

.mb-product-card__title {
	font-size: 11px;
	font-weight: 600;
	line-height: 13.2px;
	color: var(--mb-text);
	min-height: 0;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	margin: 0;
}

.mb-product-card__chips {
	--mb-chip-height: 20px;
	--mb-chip-row-gap: 3px;
	display: flex;
	flex-wrap: wrap;
	align-content: flex-start;
	align-items: flex-start;
	gap: var(--mb-chip-row-gap) 4px;
	/* Three complete rows; row four starts below the clipping boundary. */
	max-height: calc(3 * var(--mb-chip-height) + 2 * var(--mb-chip-row-gap));
	overflow: hidden;
	margin: 6px 0 0;
	flex-shrink: 0;
}

.mb-product-card__chip {
	background: var(--mb-chip-bg);
	box-sizing: border-box;
	height: var(--mb-chip-height);
	max-width: 100%;
	flex: 0 0 auto;
	border: 1px solid var(--mb-chip-border);
	border-radius: 3px;
	padding: 2px 5px;
	font-size: 11px;
	line-height: 14px;
	color: var(--mb-chip-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mb-product-card__price-row {
	display: flex;
	min-height: 28px;
	align-items: flex-start;
	justify-content: space-between;
	padding-top: 6px;
	margin-top: 0;
	position: relative;
}

.mb-product-card__prices {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: baseline;
	column-gap: 6px;
	row-gap: 2px;
	min-width: 0;
	width: 100%;
	font-size: 13px;
	font-weight: 600;
	line-height: 16px;
	color: var(--mb-sale);
}

.mb-product-card__prices ins {
	order: -1;
	background: none;
	text-decoration: none;
	color: var(--mb-sale);
	font-weight: 600;
	white-space: nowrap;
}

.mb-product-card__prices del {
	font-size: 13px;
	line-height: 13px;
	color: var(--mb-muted);
	font-weight: 400;
	opacity: 1;
	text-decoration: line-through;
	white-space: nowrap;
}

.mb-product-card__prices .amount {
	color: inherit;
	font-weight: inherit;
}

.mb-product-card__prices bdi {
	text-decoration: inherit;
}

.mb-product-card__price-row--range {
	align-items: center;
}

.mb-theme .mb-product-card__prices.mb-product-card__prices--range,
.mb-product-card__prices--range {
	display: block;
	width: 100%;
	white-space: nowrap;
	font-size: 15px;
	line-height: 1.4;
	letter-spacing: -0.015em;
	font-variant-numeric: tabular-nums;
}

.mb-theme .mb-product-card__prices.mb-product-card__prices--range-long,
.mb-product-card__prices--range-long {
	font-size: 13.5px;
	letter-spacing: -0.02em;
}

@media (max-width: 549px) {
	.mb-theme .mb-product-card__prices.mb-product-card__prices--range,
	.mb-product-card__prices--range {
		font-size: 13px;
		letter-spacing: -0.02em;
	}

	.mb-theme .mb-product-card__prices.mb-product-card__prices--range-long,
	.mb-product-card__prices--range-long {
		font-size: 11.5px;
		letter-spacing: -0.025em;
	}
}

.mb-product-card__badge {
	background: var(--mb-badge);
	color: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 19.5px;
	padding: 0 10px;
	border-radius: 9px 0 0 9px;
	margin-right: -10px;
	box-shadow: 0 2px 1px #85130d;
	white-space: nowrap;
}

.products .product.mb-product-card-wrap {
	padding: 6px;
}

.products .product.mb-product-card-wrap .col-inner,
.products .product.mb-product-card-wrap .product-small {
	margin: 0;
	box-shadow: none;
	border: 0;
	background: transparent;
}

.mb-products-slider .mb-product-card-wrap,
.mb-products__track .mb-product-card-wrap {
	width: 228px;
	max-width: 228px;
	flex: 0 0 228px;
	box-sizing: border-box;
	padding: 6px;
}

.mb-products__track .mb-product-card-wrap,
.mb-products-slider .mb-product-card-wrap,
.products .mb-product-card-wrap {
	display: flex;
}

.mb-products__track .flickity-slider > .mb-product-card-wrap,
.mb-products-slider .flickity-slider > .mb-product-card-wrap,
.products .flickity-slider > .mb-product-card-wrap {
	min-height: 100%;
}

.mb-product-card-wrap > .mb-product-card {
	height: auto;
	flex: 1 1 auto;
}

.mb-products__grid > .mb-product-card-wrap {
	padding: 0;
	margin: 0;
}

/* Danh sách thông số 4 dòng - Tự động xuống dòng khi dài, dồn lên trên */
.mb-product-card__specs-list {
	display: flex;
	flex-direction: column;
	gap: 5px;
	margin-top: 8px;
	padding-top: 8px;
	border-top: 1px dashed #e8e8e8;
}

.mb-product-card__spec-item {
	display: flex;
	align-items: flex-start;
	gap: 6px;
	font-size: 12px;
	line-height: 18px;
	color: #333333;
}

.mb-spec-arrow {
	color: #8c9196;
	font-size: 11px;
	font-weight: 700;
	flex-shrink: 0;
	margin-top: 0;
	line-height: 18px;
}

.mb-spec-text {
	flex: 1 1 auto;
	min-width: 0;
	white-space: normal;
	word-break: break-word;
	overflow-wrap: break-word;
	line-height: 18px;
}

.mb-spec-text strong {
	font-weight: 600;
	color: #222222;
}