/**
 * Masterflo Product Card — base styles.
 * Defaults match the Masterflo design spec; every value below can be
 * overridden from the widget's Style tab (controls win via specificity
 * of Elementor's generated selectors on the same classes).
 */

.mfw-card,
.mfw-card * {
	box-sizing: border-box;
}

.mfw-card {
	--mfw-align: flex-start;
	--mfw-text-align: left;
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #fff;
	border: 1px solid #e4e7ec;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.mfw-card:hover {
	box-shadow: 0 4px 16px rgba(7, 22, 48, 0.1);
	transform: translateY(-2px);
}

/* Stretched (whole-card) link */
.mfw-card__stretch {
	position: absolute;
	inset: 0;
	z-index: 1;
}

/* ---------- Media ---------- */

.mfw-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: linear-gradient(135deg, #eef1f5, #e2e7ee);
	border-bottom: 1px solid #e4e7ec;
	overflow: hidden;
}

.mfw-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.mfw-card__badge {
	position: absolute;
	top: 12px;
	left: var(--mfw-badge-x, 12px);
	background: #071630;
	color: #fff;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.4;
	padding: 5px 9px;
	border-radius: 5px;
	z-index: 2;
}

/* ---------- Body ---------- */

.mfw-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1 1 auto;
	padding: 18px;
	text-align: var(--mfw-text-align);
}

.mfw-card__model {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #26408f;
	line-height: 1;
	margin-bottom: 6px;
}

.mfw-card__title {
	font-size: 18px;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: #071630;
	line-height: 1.2;
	margin: 0;
}

/* ---------- Features ---------- */

.mfw-card__features {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.mfw-card__feature {
	display: flex;
	justify-content: var(--mfw-align);
	gap: 8px;
	font-size: 13px;
	line-height: 1.4;
	color: #0b1a36;
}

.mfw-card__bullet {
	color: #26408f;
	font-weight: 700;
	flex: none;
}

/* ---------- Tags ---------- */

.mfw-card__tags {
	display: flex;
	flex-wrap: wrap;
	justify-content: var(--mfw-align);
	gap: 6px;
	margin-top: 2px;
}

.mfw-card__tag {
	font-size: 11px;
	font-weight: 500;
	color: #5a6b84;
	background: #f6f7f9;
	border: 1px solid #e4e7ec;
	border-radius: 5px;
	padding: 3px 8px;
	line-height: 1.5;
}

/* ---------- Footer: price + button ---------- */

.mfw-card__footer {
	margin-top: auto;
	padding-top: 12px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mfw-card__price-row {
	display: flex;
	align-items: baseline;
	justify-content: var(--mfw-align);
	gap: 8px;
	flex-wrap: wrap;
}

.mfw-card__price {
	font-size: 18px;
	font-weight: 700;
	color: #071630;
}

.mfw-card__price-suffix {
	font-size: 12px;
	color: #8a97ad;
}

.mfw-card__btn {
	position: relative;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	border: 1px solid #071630;
	background-color: #071630;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
	padding: 12px;
	border-radius: 6px;
	cursor: pointer;
	text-decoration: none;
	text-align: center;
	transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.mfw-card__btn:hover,
.mfw-card__btn:focus {
	background-color: #10233f;
	color: #fff;
}
