/* Kasamall Vehicle Fitment — front-end styles */

.kf-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-end;
	background: #f7f8fa;
	border: 1px solid #e3e6eb;
	border-radius: 10px;
	padding: 18px;
	margin: 0 0 26px;
}

.kf-selector .kf-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 160px;
	flex: 1 1 160px;
}

.kf-selector label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #4a5260;
}

.kf-selector select {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #c9cfd8;
	border-radius: 6px;
	background: #fff;
	font-size: 15px;
	color: #1c2430;
}

.kf-selector select:focus {
	outline: 2px solid #1f6feb;
	outline-offset: 1px;
}

.kf-selector .kf-actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.kf-selector .kf-submit {
	background: #1f6feb;
	border-color: #1f6feb;
	color: #fff;
	font-weight: 600;
	padding: 11px 22px;
	border-radius: 6px;
	cursor: pointer;
}

.kf-selector .kf-submit:hover {
	background: #1858c4;
	border-color: #1858c4;
	color: #fff;
}

.kf-selector .kf-reset {
	font-size: 14px;
	color: #5a6472;
	text-decoration: underline;
}

/* Results grid for AJAX filtering */

.kf-results {
	margin-top: 22px;
}

.kf-results-head {
	font-weight: 600;
	margin-bottom: 12px;
	color: #1c2430;
}

.kf-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 18px;
}

.kf-card {
	border: 1px solid #e3e6eb;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.kf-card img {
	width: 100%;
	height: 150px;
	object-fit: contain;
	background: #fff;
	padding: 10px;
}

.kf-card-body {
	padding: 12px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	flex: 1;
}

.kf-card-body a {
	font-weight: 600;
	color: #1c2430;
	text-decoration: none;
	line-height: 1.35;
}

.kf-card-body .kf-part {
	font-size: 12px;
	color: #6b7480;
}

.kf-card-body .kf-price {
	margin-top: auto;
	font-weight: 700;
	color: #b12704;
}

.kf-none {
	padding: 16px;
	background: #fff8e5;
	border: 1px solid #f0d9a0;
	border-radius: 8px;
}

/* Compatibility table on the product page */

.kf-fitment {
	margin: 22px 0;
	border: 1px solid #e3e6eb;
	border-radius: 10px;
	overflow: hidden;
}

.kf-fitment h3 {
	margin: 0;
	padding: 12px 16px;
	background: #f2f5f9;
	font-size: 16px;
	border-bottom: 1px solid #e3e6eb;
}

.kf-fitment-table {
	width: 100%;
	border-collapse: collapse;
	margin: 0;
}

.kf-fitment-table th,
.kf-fitment-table td {
	padding: 10px 16px;
	text-align: left;
	font-size: 14px;
	border-bottom: 1px solid #eef1f5;
	vertical-align: top;
}

.kf-fitment-table th {
	width: 190px;
	font-weight: 600;
	color: #4a5260;
	background: #fafbfc;
}

.kf-fitment-table tr:last-child th,
.kf-fitment-table tr:last-child td {
	border-bottom: 0;
}

/* Badges */

.kf-badge {
	display: inline-block;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 600;
}

.kf-badge-yes {
	background: #e6f6ea;
	color: #17663a;
	border: 1px solid #b6e0c4;
}

.kf-badge-no {
	background: #fdeaea;
	color: #8a1f1f;
	border: 1px solid #f2c2c2;
}

@media (max-width: 640px) {
	.kf-selector {
		padding: 14px;
	}
	.kf-selector .kf-field {
		flex: 1 1 100%;
	}
	.kf-fitment-table th {
		width: 120px;
	}
}
