/* ===== CONTAINER ===== */
.sf-container {
	background: #2c2c2c;
	padding: 20px;
	border-radius: 12px;
	color: var(--color-white);
}

/* ===== TITLE ===== */
.sf-title {
	font-size: 18px;
	font-weight: 600;
	margin-bottom: 15px;
	color: var(--color-white);
}

.sf-title::after {
	content: "";
	display: block;
	height: 2px;
	background: var(--color-main);
	margin-top: 10px;
}

/* ===== GRID ===== */
.sf-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

/* ===== LABEL ===== */
.sf-item label {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
	color: var(--color-white);
}

/* ===== INPUT / SELECT ===== */
.sf-item select {
	width: 100%;
	border-radius: 8px;
	border: 1px solid #444;
	color: var(--color-black);
	outline: none;
	transition: 0.2s;
}

.sf-item input {
	padding: 9px 12px !important;
	border-radius: 8px !important;
	border: 1px solid #444 !important;
	background: #2f2f2f !important;
	color: var(--color-white) !important;
	outline: none !important;
	transition: 0.2s !important;
}

/* placeholder */
.sf-item input::placeholder {
	color: #aaa;
}

/* focus */
.sf-item input:focus,
.sf-item select:focus {
	border-color: var(--color-main);
	box-shadow: 0 0 0 1px rgba(255, 47, 109, 0.2);
}

/* ===== TAGS ===== */
.sf-tags .sf-checkbox {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sf-tags .sf-checkbox label {
	display: flex;
	gap: 6px;
	font-size: 13px;
	cursor: pointer;
}

/* checkbox */
.sf-tags input[type="checkbox"] {
	width: 14px;
	height: 14px;
	accent-color: var(--color-main);
	cursor: pointer;
}

/* hover */
.sf-tags .sf-checkbox label:hover {
	opacity: 0.85;
}

/* ===== BUTTONS ===== */
.sf-buttons {
	display: flex;
	gap: 10px;
	margin-top: 12px;
}

/* reset */
.sf-reset {
	background: var(--secondary-color);
	color: var(--color-white);
	border: none;
	padding: var(--spacing-sm) var(--spacing-lg);
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
}

.sf-reset:hover {
	background: #4b5b69;
}

/* apply */
.sf-apply {
	background: var(--gradient-primary);
	color: var(--color-white);
	border: none;
	padding: 9px 14px;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: 0.2s;
}

.sf-apply:hover {
	opacity: 0.9;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
	.sf-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

	.sf-buttons {
		flex-direction: column;
	}

	.sf-reset,
	.sf-apply {
		width: 100%;
	}
}

/* GRID riêng */
.sf-products-wrap {
	margin-top: 50px;
}

.sf-grid-products {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}

/* item */
.sf-item-product {
	width: 100%;
}

/* ẩn */
.sf-hidden {
	display: none !important;
}

/* fix Woo nằm gọn trong grid */
.sf-item-product .product-small {
	width: 100%;
}

.sf-item-product .product-small.box .product-title a {
	font-size: 16px;
	margin: 10px 0px;
	font-weight: 600;
	color: var(--color-white);
	line-height: 1.4;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	min-height: 2em;
}

/* button */
.sf-loadmore-wrap {
	text-align: center;
	margin-top: 20px;
}

#sf-loadmore-btn {
	background: var(--gradient-primary);
	border: none;
	padding: 10px 18px;
	border-radius: 8px;
	color: var(--color-white);
	cursor: pointer;
}

/* responsive */
@media (max-width: 1024px) {
	.sf-grid-products {
		grid-template-columns: repeat(2, 1fr);
	}
}

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