.category-characteristics-open {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	border: 0;
	font-weight: 700;
	cursor: pointer;
	line-height: 1.2;
}

.category-stat-pill.category-characteristics-open {
	box-sizing: border-box;
	background: #16a34a;
	color: #fff;
	font-size: 1.22rem;
	margin: 0.35rem;
	max-width: calc(100% - 0.7rem);
	padding: 0.72rem 1.15rem;
	box-shadow: 0 10px 24px rgba(22, 163, 74, 0.28);
	white-space: normal;
}

.category-stat-pill.category-characteristics-open:hover,
.category-stat-pill.category-characteristics-open:focus {
	background: #15803d;
	color: #fff;
}

.category-stat-pill.category-characteristics-reset-top {
	border: 0;
	background: #f8fafc;
	color: #475569;
	cursor: pointer;
	font-weight: 700;
}

.category-stat-pill.category-characteristics-reset-top:hover {
	background: #e5e7eb;
	color: #111827;
}

.category-characteristics-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	height: 1.35rem;
	border-radius: 999px;
	background: #111827;
	color: #fff;
	font-size: 0.78rem;
	padding: 0 0.4rem;
}

.category-characteristics-modal {
	position: fixed;
	inset: 0;
	z-index: 10050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.category-characteristics-modal[hidden] {
	display: none;
}

.category-characteristics-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(17, 24, 39, 0.58);
}

.category-characteristics-panel {
	position: relative;
	width: min(860px, 100%);
	max-height: 88vh;
	overflow: auto;
	background: #fff;
	border-radius: 18px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
	padding: 1.35rem;
}

.category-characteristics-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1.2rem;
}

.category-characteristics-head > div {
	flex: 1;
	text-align: center;
}

.category-characteristics-kicker {
	margin: 0 0 0.2rem;
	color: #cc7a00;
	font-size: 1.1rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.category-characteristics-head h2 {
	margin: 0;
	color: #222529;
	font-size: 2.35rem;
	font-weight: 300;
	text-transform: uppercase;
}

.category-characteristics-close {
	display: grid;
	place-items: center;
	width: 2rem;
	height: 2rem;
	border: 1px solid #e5e7eb;
	border-radius: 999px;
	background: #f8fafc;
	color: #475569;
	font-weight: 900;
	cursor: pointer;
}

.category-characteristics-name-search {
	margin: 0 0 1rem;
	padding: 1rem;
	border: 2px solid #d946ef;
	border-radius: 16px;
	background: #fdf4ff;
	box-shadow: 0 10px 24px rgba(217, 70, 239, 0.12);
}

.category-characteristics-name-search label {
	display: block;
	margin: 0 0 0.5rem;
	color: #86198f;
	font-size: 1.15rem;
	font-weight: 900;
	text-align: center;
}

.category-characteristics-name-search label i {
	margin-right: 0.35rem;
	color: #d946ef;
}

.category-characteristics-name-search input {
	width: 100%;
	border: 1px solid #f0abfc;
	border-radius: 14px;
	background: #fff;
	color: #111827;
	font-size: 1.18rem;
	font-weight: 800;
	padding: 0.9rem 1rem;
	text-align: center;
}

.category-characteristics-name-search input:focus {
	border-color: #d946ef;
	outline: 3px solid rgba(217, 70, 239, 0.18);
}

.category-characteristics-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.category-characteristics-section {
	border: 1px solid #f3e0c8;
	border-radius: 14px;
	background: #fffaf3;
	padding: 1.05rem;
	margin-bottom: 1rem;
}

.category-characteristics-section h3 {
	margin: 0 0 0.95rem;
	color: #7c2d12;
	font-size: 1.18rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	text-align: center;
}

.category-characteristics-check-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.75rem;
}

.category-characteristics-range-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 0.85rem;
}

.category-characteristics-range-field {
	border: 1px solid #fde7c7;
	border-radius: 14px;
	background: #fff;
	padding: 0.85rem;
}

.category-characteristics-range-field p {
	margin: 0 0 0.7rem;
	color: #111827;
	font-size: 1.12rem;
	font-weight: 900;
	text-align: center;
}

.category-characteristics-range-field p i,
.category-characteristics-field label i,
.category-characteristics-check span i {
	margin-right: 0.35rem;
	color: #f59e0b;
}

.category-characteristics-range-pair {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 0.65rem;
}

.category-characteristics-range-pair label {
	margin: 0;
}

.category-characteristics-range-pair span {
	display: block;
	margin: 0 0 0.35rem;
	color: #64748b;
	font-size: 0.95rem;
	font-weight: 800;
	text-transform: uppercase;
}

.category-characteristics-field label {
	display: block;
	margin: 0 0 0.45rem;
	color: #334155;
	font-size: 1.08rem;
	font-weight: 800;
}

.category-characteristics-field select,
.category-characteristics-range-pair select {
	width: 100%;
	border: 1px solid #d1d5db;
	border-radius: 12px;
	background: #fff;
	color: #111827;
	font-size: 1.08rem;
	font-weight: 700;
	padding: 0.88rem 0.95rem;
}

.category-characteristics-field select.is-active,
.category-characteristics-range-pair select.is-active {
	border-color: #ef4444;
	background: #fee2e2;
}

.category-characteristics-checkboxes {
	display: flex;
	flex-wrap: wrap;
	gap: 0.65rem;
}

.category-characteristics-field-check {
	min-width: 0;
}

.category-characteristics-check {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	margin: 0;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	background: #fff;
	color: #334155;
	font-size: 1.08rem;
	font-weight: 700;
	padding: 0.75rem 0.95rem;
	cursor: pointer;
	transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.category-characteristics-check-wide {
	width: 100%;
	min-height: 3.05rem;
	justify-content: flex-start;
}

.category-characteristics-check input {
	margin: 0;
	accent-color: #f59e0b;
}

.category-characteristics-check.is-active {
	border-color: #f59e0b;
	background: #fff7ed;
	color: #92400e;
}

.category-characteristics-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	align-items: center;
	gap: 0.75rem;
	margin-top: 1.1rem;
}

.category-characteristics-summary {
	grid-column: 1 / -1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	justify-self: stretch;
	border: 2px solid #16a34a;
	border-radius: 999px;
	background: #dcfce7;
	box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
	color: #15803d;
	font-size: 1.45rem;
	font-weight: 900;
	line-height: 1.2;
	margin: 0.45rem 0 0.65rem;
	padding: 0.55rem 1.15rem;
	text-align: center;
	animation: category-characteristics-flash 1.8s ease-in-out infinite;
}

@keyframes category-characteristics-flash {
	0%,
	100% {
		box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
	}

	50% {
		box-shadow: 0 0 0 7px rgba(22, 163, 74, 0.24);
	}
}

.category-characteristics-actions .btn {
	min-height: 2.9rem;
	font-size: 1.08rem;
	font-weight: 800;
}

.category-characteristics-actions #categoryCharacteristicsReset {
	border-color: #dc2626;
	background: #dc2626;
	color: #fff;
}

.category-characteristics-actions #categoryCharacteristicsReset:hover,
.category-characteristics-actions #categoryCharacteristicsReset:focus {
	border-color: #b91c1c;
	background: #b91c1c;
	color: #fff;
}

.shopItem.category-characteristics-hidden {
	display: none !important;
}

@media (max-width: 640px) {
	.category-characteristics-panel {
		padding: 0.85rem;
	}

	.category-stat-pill.category-characteristics-open {
		width: calc(100% - 1rem);
		max-width: 320px;
		margin: 0.45rem auto;
		font-size: 1.08rem;
		padding: 0.72rem 0.9rem;
	}

	.category-characteristics-grid {
		grid-template-columns: 1fr;
	}

	.category-characteristics-check-grid {
		grid-template-columns: 1fr;
	}

	.category-characteristics-range-grid {
		grid-template-columns: 1fr;
	}

}
