/*!
 * Zardis Toolkit — shop product-type chips.
 * Scope: .zardis-shopf. The theme's price slider widget is untouched.
 */

.zardis-shopf {
	--zs-gap: 10px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin: 0 0 20px;
	padding: 12px 16px;
	border: 1px solid var(--ztk-line);
	border-radius: 14px;
	background: var(--ztk-surface);
	box-shadow: 0 4px 14px rgba(0, 25, 68, .05);
	font-family: var(--ztk-font);
}

.zardis-shopf *,
.zardis-shopf *::before,
.zardis-shopf *::after {
	box-sizing: border-box;
}

.zardis-shopf__head {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 0 0 auto;
}

.zardis-shopf__label {
	font-size: 13px;
	font-weight: 700;
	color: var(--ztk-ink-soft);
	white-space: nowrap;
}

.zardis-shopf__clear {
	font-size: 12px;
	font-weight: 600;
	color: var(--ztk-danger);
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}

.zardis-shopf__clear:hover,
.zardis-shopf__clear:focus {
	color: #a52f2f;
	text-decoration: none;
}

.zardis-shopf__nav {
	flex: 1 1 auto;
	min-width: 0;
}

.zardis-shopf__list {
	display: flex;
	flex-wrap: wrap;
	gap: var(--zs-gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.zardis-shopf__item {
	margin: 0;
}

.zardis-shopf__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 16px;
	border: 1px solid var(--ztk-line);
	border-radius: 999px;
	background: var(--ztk-surface-alt);
	color: var(--ztk-ink);
	font-size: 13.5px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.zardis-shopf__chip:hover,
.zardis-shopf__chip:focus-visible {
	border-color: var(--ztk-gold);
	background: var(--ztk-gold-soft);
	color: var(--ztk-gold-deep);
	text-decoration: none;
}

.zardis-shopf__chip:focus-visible {
	outline: 2px solid rgba(201, 162, 71, .5);
	outline-offset: 2px;
}

.zardis-shopf__chip.is-active,
.zardis-shopf__chip[aria-current="page"] {
	border-color: var(--ztk-navy);
	background: var(--ztk-navy);
	color: #fff;
}

.zardis-shopf__chip.is-active .zardis-shopf__count,
.zardis-shopf__chip[aria-current="page"] .zardis-shopf__count {
	background: rgba(255, 255, 255, .16);
	color: #fff;
}

.zardis-shopf__chip-label {
	display: inline-block;
}

.zardis-shopf__count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 22px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: rgba(0, 25, 68, .07);
	color: var(--ztk-ink-soft);
	font-size: 11px;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

/* Mobile: horizontal scroll strip keeps the bar on one line. */
@media (max-width: 767px) {
	.zardis-shopf {
		flex-direction: column;
		align-items: stretch;
		gap: 10px;
		padding: 12px;
	}

	.zardis-shopf__nav {
		margin-inline: -12px;
		padding-inline: 12px;
		overflow-x: auto;
		overflow-y: hidden;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.zardis-shopf__nav::-webkit-scrollbar {
		display: none;
	}

	.zardis-shopf__list {
		flex-wrap: nowrap;
		padding-bottom: 2px;
	}

	.zardis-shopf__chip {
		min-height: 42px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.zardis-shopf__chip {
		transition: none;
	}
}
