.ctcf-product-filters .ctcf-layout {
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

.ctcf-results-col {
	flex: 1 1 auto;
	min-width: 0;
	position: relative;
}

.ctcf-results-loader {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 5;
    pointer-events: none;
    background: #ffffffbd;
    z-index: 9999;
}

.ctcf-results-loader.is-visible {
	display: flex;
}

.ctcf-results-loader-text {
	font-size: 14px;
	    color: #0f0f0f;
    font-weight: 900;
}

.ctcf-spinner {
	width: 20px;
	height: 20px;
	border: 2px solid #b8f3e0eb;
	border-top-color: #00980d;
	border-radius: 50%;
	animation: ctcf-spin 0.7s linear infinite;
}

@keyframes ctcf-spin {
	to {
		transform: rotate( 360deg );
	}
}

.ctcf-mobile-trigger {
	display: none;
}
.ctcf-filters-panel {
	flex: 0 0 260px;
	position: sticky;
	top: 105px; 
	max-height: calc(100vh - 40px);
	display: flex;
	flex-direction: column;
	border: 1px solid #e5e5e5;
	border-radius: 8px;
	background: #fff;
	overflow: hidden;
}

.ctcf-panel-header {
	display: none;
}

.ctcf-panel-body {
	padding: 8px 20px;
	overflow-y: auto;
	flex: 1 1 auto;
}
.ctcf-filter-group {
	border-bottom: 1px solid #eee;
}
.ctcf-filter-group:last-child {
	border-bottom: none;
}

.ctcf-filter-group-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	padding: 14px 0;
	cursor: pointer;
	text-align: left;
}
.ctcf-filter-group-title {
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.02em;
}
.ctcf-filter-group-arrow {
	width: 8px;
	height: 8px;
	border-right: 2px solid #888;
	border-bottom: 2px solid #888;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	flex-shrink: 0;
}
.ctcf-filter-group.is-open .ctcf-filter-group-arrow {
	transform: rotate(-135deg);
}

.ctcf-filter-group-body {
	display: none;
	padding-bottom: 16px;
}
.ctcf-filter-group.is-open .ctcf-filter-group-body {
	display: block;
}

.ctcf-filter-option {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	margin-bottom: 8px;
	cursor: pointer;
}
.ctcf-price-inputs {
	display: flex;
	align-items: center;
	gap: 10px;
}
.ctcf-price-inputs label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 12px;
	color: #666;
	flex: 1 1 0;
}
.ctcf-price-inputs input[type="number"] {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 14px;
}
.ctcf-price-sep {
	margin-top: 16px;
	color: #999;
}

.ctcf-panel-footer {
	padding: 14px 20px;
	border-top: 1px solid #eee;
	background: #fafafa;
}

.ctcf-count-line {
	text-align: center;
	font-size: 13px;
	color: #555;
	margin-bottom: 10px;
}

.ctcf-footer-buttons {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.ctcf-apply-filters {
	background: #1d1d1d;
	color: #fff;
	border: none;
	border-radius: 4px;
	padding: 10px 14px;
	cursor: pointer;
	order: 1;
	        font-weight: 800;
        font-family: bricolage-grotesque;
        text-transform: uppercase;
        font-size: 1rem;
}
.ctcf-apply-filters:disabled {
	opacity: 0.6;
	cursor: default;
}

.ctcf-reset-filters {
	background: none;
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 8px 14px;
	cursor: pointer;
	font-size: 13px;
	order: 2;
}

.ctcf-filters-overlay {
	display: none;
}

.ctcf-results.ctcf-loading {
	opacity: 0.4;
	pointer-events: none;
	transition: opacity 0.15s ease;
}
.ctcf-no-results {
	padding: 20px 0;
	color: #666;
}

@media (max-width: 900px) {
	body.ctcf-has-sticky-trigger {
		padding-bottom: 64px;
	}

	.ctcf-mobile-trigger {
		display: flex;
		align-items: center;
		justify-content: center;
		gap: 6px;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9997;
		width: 100%;
		background: #1d1d1d; 
		color: #fff;
		border: none;
		padding: 14px 16px;
		padding-bottom: max(14px, env(safe-area-inset-bottom));
		font-weight: 600;
		font-size: 15px;
		cursor: pointer;
		box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
	}
	.ctcf-mobile-trigger .ctcf-count-badge {
		font-weight: 400;
		opacity: 0.85;
	}

	.ctcf-filters-overlay {
		display: none;
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.45);
		z-index: 9998;
	}
	.ctcf-filters-overlay.is-open {
		display: block;
	}

	.ctcf-filters-panel {
		position: fixed;
		top: 0;
		left: 0;
		right: 0;
		bottom: 0;
		max-height: none;
		border-radius: 0;
		z-index: 9999;
		transform: translateY(100%);
		transition: transform 0.25s ease;
	}
	.ctcf-filters-panel.is-open {
		transform: translateY(0);
	}

	.ctcf-panel-header {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 16px 20px;
		border-bottom: 1px solid #eee;
	}
	.ctcf-panel-title {
		font-weight: 600;
		font-size: 16px;
	}
	.ctcf-filters-close {
		background: none;
		border: none;
		font-size: 24px;
		line-height: 1;
		cursor: pointer;
		padding: 4px 8px;
	}

	.ctcf-panel-footer {
		padding-bottom: max(14px, env(safe-area-inset-bottom));
	}
	span.ctcf-mobile-trigger-label {
    color: #fff !important;
        font-weight: 800;
        font-family: bricolage-grotesque;
        text-transform: uppercase;
        font-size: 1rem;
}
span.ctcf-count-badge {
    color: #8d8d8d !important;
}
}

body.ctcf-modal-open {
	overflow: hidden;
}