/* -----------------------------------------------------------------------
   Custom Loop Grid Filter — SIDEBAR লেআউট
   প্রতিটা ফিল্টার একটার নিচে একটা (vertical stack), একটা প্যানেল হিসেবে
----------------------------------------------------------------------- */
.clf-filter-form {
	--clf-cream: #F6F1E7;
	--clf-terracotta: #B97452;
	--clf-terracotta-dark: #9C5D3F;
	--clf-heading: #2B2620;
	--clf-body: #6B655B;
	--clf-border: #E1D9C8;
	--clf-card: #FFFFFF;
	--clf-dark-btn: #221F1B;
	--clf-radius: 4px;
	--clf-font-serif: "Playfair Display", Georgia, serif;
	--clf-font-sans: "Poppins", -apple-system, BlinkMacSystemFont, sans-serif;

	background: var(--clf-cream);
	border: 1px solid var(--clf-border);
	border-radius: 6px;
	padding: 28px 26px;
	width: 100%;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	font-family: var(--clf-font-sans);
	box-sizing: border-box;
}

.clf-filter-form * {
	box-sizing: border-box;
}

/* ---------- প্রতিটা ফিল্টার একটার পর একটা, মাঝে divider ---------- */
.clf-field {
	display: flex;
	flex-direction: column;
	gap: 12px;
	width: 100%;
	padding: 20px 0;
	border-bottom: 1px solid var(--clf-border);
}

.clf-field:first-child {
	padding-top: 0;
}

.clf-field > label {
	font-family: var(--clf-font-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--clf-terracotta);
}

/* ---------- Text / number inputs ---------- */
.clf-field input[type="text"],
.clf-field input[type="number"] {
	width: 100%;
	padding: 11px 12px;
	background: var(--clf-card);
	border: 1px solid var(--clf-border);
	border-radius: var(--clf-radius);
	font-family: var(--clf-font-sans);
	font-size: 14px;
	color: var(--clf-heading);
	transition: border-color 0.15s ease;
}

.clf-field input[type="text"]::placeholder,
.clf-field input[type="number"]::placeholder {
	color: #A79F8F;
}

.clf-field input[type="text"]:focus,
.clf-field input[type="number"]:focus {
	outline: none;
	border-color: var(--clf-terracotta);
}

/* ---------- Checkbox groups (Category / Size) — প্রতিটা লাইনে একটা ---------- */
.clf-checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
	max-height: 220px;
	overflow-y: auto;
	padding-right: 4px;
}

.clf-checkbox-group::-webkit-scrollbar {
	width: 5px;
}
.clf-checkbox-group::-webkit-scrollbar-thumb {
	background: var(--clf-border);
	border-radius: 4px;
}

.clf-checkbox-group label {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13.5px;
	font-weight: 400;
	color: var(--clf-heading);
	padding: 7px 4px;
	cursor: pointer;
	border-radius: var(--clf-radius);
	transition: background 0.15s ease, color 0.15s ease;
}

.clf-checkbox-group label:hover {
	background: rgba(185, 116, 82, 0.08);
}

.clf-checkbox-group input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
	border: 1.5px solid var(--clf-border);
	border-radius: 3px;
	background: var(--clf-card);
	cursor: pointer;
	position: relative;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.clf-checkbox-group input[type="checkbox"]:checked {
	background: var(--clf-terracotta);
	border-color: var(--clf-terracotta);
}

.clf-checkbox-group input[type="checkbox"]:checked::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 5px;
	height: 9px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.clf-checkbox-group label:has(input[type="checkbox"]:checked) {
	color: var(--clf-terracotta-dark);
	font-weight: 500;
}

/* ---------- Color swatches ---------- */
.clf-swatches {
	flex-direction: row;
	flex-wrap: wrap;
	max-height: none;
	overflow: visible;
	gap: 10px;
}

.clf-swatch-label {
	padding: 0;
}

.clf-swatch-label input {
	position: absolute;
	opacity: 0;
}

.clf-swatch {
	display: inline-block;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 2px solid var(--clf-border);
	cursor: pointer;
	box-shadow: 0 0 0 2px transparent;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.clf-swatch-label input:checked + .clf-swatch {
	border-color: #fff;
	box-shadow: 0 0 0 2px var(--clf-terracotta);
}

/* ---------- Price range ---------- */
.clf-price-range {
	display: flex;
	align-items: center;
	gap: 8px;
}

.clf-price-range input {
	width: 100%;
	min-width: 0;
}

.clf-price-range span {
	color: var(--clf-body);
	flex-shrink: 0;
}

/* ---------- Buttons — সাইডবারে ফুল-উইথ, উপর-নিচে ---------- */
.clf-buttons {
	flex-direction: column;
	align-items: stretch;
	gap: 10px;
	border-bottom: none;
	padding-bottom: 0;
	padding-top: 22px;
}

.clf-btn {
	width: 100%;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: var(--clf-radius);
	cursor: pointer;
	font-family: var(--clf-font-sans);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	text-align: center;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

.clf-btn-apply {
	background: var(--clf-dark-btn);
	color: #fff;
}

.clf-btn-apply:hover {
	background: var(--clf-terracotta-dark);
}

.clf-btn-reset {
	background: transparent;
	color: var(--clf-heading);
	border-color: var(--clf-border);
}

.clf-btn-reset:hover {
	border-color: var(--clf-terracotta);
	color: var(--clf-terracotta);
}

/* ---------- Loading state ---------- */
.clf-loading {
	opacity: 0.45;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

/* ---------- Responsive ----------
   ডেস্কটপে সাইডবার হিসেবে (max-width 320px) পাশে বসবে — এটা কন্ট্রোল করে
   দেয় যে কলামে/কন্টেইনারে Elementor-এ বসাবেন। ট্যাবলেট/মোবাইলে ফুল-উইথ
   হয়ে গ্রিডের উপরে/নিচে বসবে (স্বাভাবিক Elementor container stacking)।
------------------------------------------------------------------------ */
@media (max-width: 1024px) {
	.clf-filter-form {
		max-width: 100%;
		padding: 24px 22px;
	}
}

@media (max-width: 600px) {
	.clf-filter-form {
		padding: 20px 18px;
		border-radius: 4px;
	}
	.clf-field {
		padding: 16px 0;
	}
	.clf-checkbox-group {
		max-height: 180px;
	}
	.clf-btn {
		padding: 13px 20px;
	}
}
