/* Machine Catalog Filter — front-end styles */

:root {
	--mcf-primary: #a30035;      /* brand red — active tab / hover / Get a Quote button */
	--mcf-primary-dark: #7d0028;
	--mcf-text: #222;
	--mcf-muted: #6b6b6b;
	--mcf-border: #e6e6e6;
	--mcf-bg-light: #f7f7f8;
}

.mcf-wrap * {
	box-sizing: border-box;
}

/* ---------- Top filter bar ---------- */
.mcf-filterbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: #fff;
	border: 1px solid var(--mcf-border);
	border-radius: 6px;
	margin-bottom: 18px;
}

.mcf-filterbar-label {
	font-weight: 600;
	color: var(--mcf-text);
	white-space: nowrap;
}

.mcf-icon {
	margin-right: 4px;
}

.mcf-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	flex: 1 1 auto;
}

.mcf-tab {
	background: #fff !important;
	border: 1px solid #000 !important;
	border-radius: 4px;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #000 !important;
	cursor: pointer;
	transition: background .15s, color .15s, border-color .15s;
}

.mcf-tab span {
	color: var(--mcf-muted);
	font-weight: 400;
	margin-left: 4px;
}

.mcf-tab.is-active span,
.mcf-tab:hover span {
	color: rgba(255,255,255,.85) !important;
}

.mcf-tab.is-active,
.mcf-tab:hover {
	background: var(--mcf-primary) !important;
	border-color: var(--mcf-primary) !important;
	color: #fff !important;
}

.mcf-search input {
	padding: 8px 12px;
	border: 1px solid var(--mcf-border);
	border-radius: 4px;
	font-size: 13px;
	min-width: 200px;
}

.mcf-sort select {
	padding: 8px 12px;
	border: 1px solid var(--mcf-border);
	border-radius: 4px;
	font-size: 13px;
	background: #fff;
}

/* ---------- Body layout ---------- */
.mcf-body {
	display: flex;
	gap: 24px;
	align-items: flex-start;
}

.mcf-sidebar {
	width: 240px;
	flex-shrink: 0;
	background: #fff;
	border: 1px solid var(--mcf-border);
	border-radius: 6px;
	padding: 16px;
}

.mcf-sidebar h4 {
	margin: 0 0 10px;
	font-size: 13px;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--mcf-muted);
}

.mcf-sidebar-list,
.mcf-sidebar-sub {
	list-style: none;
	margin: 0;
	padding: 0;
}

.mcf-sidebar-item {
	border-bottom: 1px solid var(--mcf-border);
}

.mcf-sidebar-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 10px 0;
}

.mcf-sidebar-link {
	color: var(--mcf-text);
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
}

.mcf-sidebar-link:hover,
.mcf-sidebar-link.is-active {
	color: var(--mcf-primary);
}

.mcf-toggle {
	cursor: pointer;
	color: var(--mcf-muted);
	font-weight: 700;
	padding: 0 4px;
}

.mcf-sidebar-sub {
	display: none;
	padding-left: 12px;
	padding-bottom: 8px;
}

.mcf-sidebar-item.is-open .mcf-sidebar-sub {
	display: block;
}

.mcf-sidebar-sub li {
	padding: 6px 0;
}

.mcf-sidebar-sub .mcf-sidebar-link {
	font-size: 13px;
	color: var(--mcf-muted);
}

/* ---------- Results / grid ---------- */
.mcf-results {
	flex: 1 1 auto;
}

.mcf-count {
	font-size: 14px;
	color: var(--mcf-muted);
	margin-bottom: 14px;
}

.mcf-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

@media (max-width: 900px) {
	.mcf-grid { grid-template-columns: repeat(2, 1fr); }
	.mcf-sidebar { display: none; }
}

@media (max-width: 600px) {
	.mcf-grid { grid-template-columns: 1fr; }
}

.mcf-card {
	background: #fff;
	border: 1px solid var(--mcf-border);
	border-radius: 6px;
	padding: 18px;
	transition: box-shadow .2s, transform .2s;
}

.mcf-card:hover {
	box-shadow: 0 8px 24px rgba(0,0,0,.08);
	transform: translateY(-2px);
}

.mcf-card-img {
	display: block;
	margin-bottom: 10px;
	text-align: center;
}

.mcf-card-img img {
	max-width: 100%;
	height: 150px;
	object-fit: contain;
}
.mcf-card-desc {
	font-size: 13px;
	color: var(--mcf-muted);
	line-height: 1.6;
	margin: 0 0 10px;
}

.mcf-card-title {
	font-size: 16px;
	margin: 0 0 8px;
}

.mcf-card-title a {
	color: var(--mcf-text);
	text-decoration: none;
}

.mcf-card-specs {
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
	font-size: 13px;
	color: var(--mcf-muted);
	line-height: 1.6;
}

.mcf-card-actions {
	display: flex;
	gap: 10px;
}

.mcf-btn {
	flex: 1;
	text-align: center;
	padding: 9px 10px;
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.mcf-btn-outline {
	border: 1px solid var(--mcf-border);
	color: var(--mcf-text);
}

.mcf-btn-outline:hover {
	border-color: var(--mcf-primary);
	color: var(--mcf-primary);
}

.mcf-btn-solid {
	background: var(--mcf-primary);
	color: #fff;
}

.mcf-btn-solid:hover {
	background: var(--mcf-primary-dark);
	color: #fff;
}

.mcf-no-results {
	padding: 40px;
	text-align: center;
	color: var(--mcf-muted);
}

.mcf-loading {
	opacity: .4;
	pointer-events: none;
}

/* ---------- Simple single product template ---------- */
.mcf-single {
	display: flex;
	gap: 40px;
	flex-wrap: wrap;
	margin: 30px 0 60px;
}

.mcf-single-gallery {
	flex: 1 1 420px;
	max-width: 480px;
}

.mcf-single-main-img img {
	width: 100%;
	border-radius: 6px;
	border: 1px solid var(--mcf-border);
}

.mcf-single-thumbs {
	display: flex;
	gap: 10px;
	margin-top: 12px;
	flex-wrap: wrap;
}

.mcf-single-thumbs .mcf-thumb {
	width: 70px;
	height: 70px;
	object-fit: cover;
	border-radius: 4px;
	border: 2px solid var(--mcf-border);
	cursor: pointer;
	transition: border-color .15s;
}

.mcf-single-thumbs .mcf-thumb:hover,
.mcf-single-thumbs .mcf-thumb.is-active {
	border-color: var(--mcf-primary);
}

.mcf-single-desc {
	color: var(--mcf-muted);
	line-height: 1.7;
	margin-bottom: 10px;
}

.mcf-single-info {
	flex: 1 1 420px;
}

.mcf-single-info h1 {
	margin-top: 0;
}

.mcf-single-specs {
	list-style: none;
	margin: 20px 0;
	padding: 0;
}

.mcf-single-specs li {
	padding: 10px 0;
	border-bottom: 1px solid var(--mcf-border);
	display: flex;
	justify-content: space-between;
	font-size: 14px;
}

.mcf-single-actions {
	margin-top: 24px;
	display: flex;
	gap: 12px;
}
