/* =============================================
   Shop Toolbar — [etxeberoi_shop_toolbar]
   ============================================= */

.eb-toolbar {
	max-width: 1200px;
	margin: 0 auto 24px;
	padding: 24px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ── Filtres catégories ──────────────────────────────────────── */
.eb-toolbar__filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: center;
}

.eb-toolbar__btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 22px;
	border-radius: 50px;
	border: 1.5px solid #2D6A4F;
	color: #2D6A4F;
	background: transparent;
	font-size: 14px;
	font-weight: 500;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	line-height: 1;
	transition: all 0.15s ease;
	font-family: inherit;
}

.eb-toolbar__btn:hover {
	background: #2D6A4F;
	color: #fff;
}

.eb-toolbar__btn--active {
	background: #2D6A4F !important;
	color: #fff !important;
	border-color: #2D6A4F;
	font-weight: 600;
}

.eb-toolbar__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: rgba(255,255,255,0.25);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
}

.eb-toolbar__btn:not(.eb-toolbar__btn--active) .eb-toolbar__count {
	background: rgba(45,106,79,0.1);
	color: #2D6A4F;
}

.eb-toolbar__btn--active .eb-toolbar__count {
	background: rgba(255,255,255,0.25);
	color: #fff;
}

/* ── Recherche + tri ──────────────────────────────────────────── */
.eb-toolbar__actions {
	display: flex;
	gap: 12px;
	align-items: center;
}

.eb-toolbar__search {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 0 16px;
	background: #FAFAF8;
	border: 1.5px solid #E5E7EB;
	border-radius: 12px;
	transition: border-color 0.15s;
}

.eb-toolbar__search:focus-within {
	border-color: #2D6A4F;
}

.eb-toolbar__search svg {
	flex-shrink: 0;
	color: #999;
}

.eb-toolbar__search input {
	flex: 1;
	border: none;
	background: transparent;
	padding: 12px 0;
	font-size: 14px;
	color: #333;
	outline: none;
	font-family: inherit;
}

.eb-toolbar__search input::placeholder {
	color: #aaa;
}

.eb-toolbar__sort {
	padding: 12px 16px;
	border: 1.5px solid #E5E7EB;
	border-radius: 12px;
	background: #FAFAF8;
	font-size: 14px;
	color: #333;
	cursor: pointer;
	outline: none;
	font-family: inherit;
	min-width: 170px;
	transition: border-color 0.15s;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

.eb-toolbar__sort:focus {
	border-color: #2D6A4F;
}

/* ── Compteur résultats ───────────────────────────────────────── */
.eb-toolbar__result {
	font-size: 13px;
	color: #999;
	text-align: center;
	font-weight: 500;
}

.eb-toolbar__result span {
	font-weight: 700;
	color: #2D6A4F;
}

/* ── Mobile ───────────────────────────────────────────────────── */
@media (max-width: 768px) {
	.eb-toolbar {
		padding: 16px;
		margin: 0 8px 16px;
		gap: 12px;
	}

	.eb-toolbar__filters {
		gap: 6px;
	}

	.eb-toolbar__btn {
		font-size: 13px;
		padding: 8px 16px;
	}

	.eb-toolbar__actions {
		flex-direction: column;
	}

	.eb-toolbar__sort {
		width: 100%;
		min-width: unset;
	}
}
