.fbps-grid-wrapper {
	position: relative;
}

/* Toolbar: category tabs (left) + filter/sort selects (right) */
.fbps-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 28px;
}

.fbps-toolbar .fbps-tabs {
	margin: 0;
	flex: 1 1 auto;
}

.fbps-toolbar-right {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 13px;
	color: #181818;
	white-space: nowrap;
}

.fbps-select-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fbps-select-group label {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.02em;
}

.fbps-select-group select {
	border: none;
	background: transparent;
	font: inherit;
	font-weight: 600;
	color: inherit;
	cursor: pointer;
	padding: 4px 0;
}

.fbps-divider {
	width: 1px;
	height: 16px;
	background-color: #dddddd;
	flex: 0 0 auto;
}

/* Grid */
.fbps-grid-items {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	transition: opacity 0.2s ease;
}

.fbps-grid-item {
	box-sizing: border-box;
}

.fbps-grid-wrapper.is-loading .fbps-grid-items {
	opacity: 0.4;
	pointer-events: none;
}

.fbps-grid-loading {
	display: none;
	position: absolute;
	top: 50%;
	left: 50%;
	width: 34px;
	height: 34px;
	margin: -17px 0 0 -17px;
	border: 3px solid #e0e0e0;
	border-top-color: #1f5fd6;
	border-radius: 50%;
	animation: fbps-spin 0.7s linear infinite;
	z-index: 2;
}

.fbps-grid-wrapper.is-loading .fbps-grid-loading {
	display: block;
}

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

/* Pagination */
.fbps-pagination {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.fbps-page-numbers {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fbps-page-btn {
	min-width: 34px;
	height: 34px;
	padding: 0 6px;
	border: none;
	border-radius: 50%;
	background: transparent;
	color: #4a4a4a;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.fbps-page-btn:hover:not(:disabled) {
	background-color: #f0f0ee;
}

.fbps-page-btn.is-active {
	background-color: #1f5fd6;
	color: #ffffff;
}

.fbps-page-btn:disabled {
	opacity: 0.35;
	cursor: default;
}

.fbps-page-ellipsis {
	color: #999999;
	padding: 0 4px;
}

.fbps-load-more {
	border: 1px solid #dddddd;
	background: transparent;
	color: #4a4a4a;
	font-weight: 600;
	padding: 12px 32px;
	border-radius: 24px;
	cursor: pointer;
}

.fbps-load-more:hover {
	background-color: #f0f0ee;
}

@media (max-width: 1024px) {
	.fbps-grid-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.fbps-grid-items { grid-template-columns: 1fr; }
	.fbps-toolbar { flex-direction: column; align-items: flex-start; }
}
