
:root {
	--hcf-font-family: "Inter", "Segoe UI", Arial, sans-serif;
	--hcf-bg: #ffffff;
	--hcf-surface: #f5f5f5;
	--hcf-border: rgba(17, 17, 17, 0.12);
	--hcf-title-color: #111111;
	--hcf-text-color: #111111;
	--hcf-muted: #666666;
	--hcf-accent: #111111;
	--hcf-accent-soft: rgba(17, 17, 17, 0.06);
	--hcf-pill-bg: #ffffff;
	--hcf-pill-active-bg: #111111;
	--hcf-pill-active-color: #ffffff;
	--hcf-more-bg: #f5f5f5;
	--hcf-more-border: rgba(17, 17, 17, 0.14);
	--hcf-swatch-size: 15px;
	--hcf-swatch-border: rgba(17, 17, 17, 0.25);
	--hcf-shadow: 0 8px 18px rgba(17, 17, 17, 0.04);
}

.hcf-filters {
	font-family: var(--hcf-font-family) !important;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.85rem;
	align-items: start;
	margin: 1rem 0;
}

.hcf-mobile-trigger,
.hcf-mobile-overlay {
	display: none;
}

.hcf-box {
	background: var(--hcf-bg) !important;
	border: 1px solid var(--hcf-border) !important;
	border-radius: 14px !important;
	padding: 0.75rem 0.75rem 0.65rem !important;
	box-shadow: var(--hcf-shadow);
	margin-bottom: 0 !important;
	overflow: visible;
	position: relative;
}

.hcf-box .hcf-list,
.hcf-box .hcf-more,
.hcf-box .hcf-empty-state,
.hcf-box .hcf-search {
	opacity: 0;
	visibility: hidden;
	max-height: 0;
	overflow: hidden;
	pointer-events: none;
	transition: opacity 0.18s ease, visibility 0.18s ease, max-height 0.18s ease;
}

.hcf-box.hcf-ready .hcf-list,
.hcf-box.hcf-ready .hcf-more,
.hcf-box.hcf-ready .hcf-empty-state,
.hcf-box.hcf-ready .hcf-search {
	opacity: 1;
	visibility: visible;
	max-height: 1000px;
	pointer-events: auto;
	overflow: visible;
}

.hcf-box a,
.hcf-box a:link,
.hcf-box a:visited,
.hcf-box a:hover,
.hcf-box a:focus,
.hcf-box a:active {
	color: var(--hcf-text-color) !important;
	text-decoration: none !important;
}

.hcf-box-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	margin-bottom: 0.55rem;
}

.hcf-box-title {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--hcf-title-color) !important;
}

.hcf-box-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.7rem;
	padding: 0.18rem 0.45rem;
	border-radius: 999px;
	background: var(--hcf-surface);
	color: var(--hcf-muted);
	border: 1px solid var(--hcf-border);
	font-size: 0.7rem;
	font-weight: 600;
}

.hcf-search {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	width: 100%;
	padding: 0.54rem 0.7rem;
	margin-bottom: 0.65rem;
	border: 1px solid rgba(17, 17, 17, 0.16);
	border-radius: 999px;
	background: #f8f8f8;
	box-sizing: border-box;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.hcf-search:focus-within {
	border-color: rgba(17, 17, 17, 0.25);
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.04);
}

.hcf-search-icon {
	display: inline-block;
	width: 0.85rem;
	height: 0.85rem;
	color: #666666;
	flex-shrink: 0;
}

.hcf-search input {
	width: 100%;
	border: none !important;
	background: transparent !important;
	color: var(--hcf-text-color) !important;
	font: inherit;
	font-size: 0.84rem;
	font-weight: 400;
	outline: none !important;
	box-shadow: none !important;
	padding: 0;
	line-height: 1.2;
}

.hcf-search input::placeholder {
	color: #666666;
	font-weight: 400;
}

.hcf-skeletons {
	display: none;
	margin-top: 0.15rem;
}

.hcf-box.hcf-loading .hcf-skeletons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	opacity: 1;
	visibility: visible;
}

.hcf-box.hcf-ready .hcf-skeletons {
	display: none !important;
}

.hcf-skeleton {
	display: inline-block;
	height: 0.9rem;
	border-radius: 999px;
	background: linear-gradient(90deg, #f0f0f0 25%, #e7e7e7 50%, #f0f0f0 75%);
	background-size: 200% 100%;
	animation: hcf-shimmer 1.2s linear infinite;
	opacity: 0.9;
}

.hcf-skeleton.hcf-skeleton-short { width: 4.2rem; }
.hcf-skeleton.hcf-skeleton-medium { width: 5.8rem; }
.hcf-skeleton.hcf-skeleton-long { width: 7.8rem; }

@keyframes hcf-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.hcf-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: flex-start;
	max-height: 180px;
	overflow: hidden;
	transition: max-height 0.22s ease, opacity 0.2s ease;
}

.hcf-box.hcf-expanded .hcf-list {
	max-height: 1200px;
	overflow: visible;
}

.hcf-box.hcf-panel-open .hcf-more-panel {
	display: block;
}

.hcf-box.hcf-loading .hcf-list {
	display: none;
}

.hcf-list > li {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
}

.hcf-item {
	display: inline-flex;
	align-items: center;
	margin: 0 !important;
	transition: opacity 0.2s ease;
}

.hcf-pill {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	padding: 0.42rem 0.7rem;
	border-radius: 999px;
	border: 1px solid var(--hcf-border);
	background: var(--hcf-pill-bg);
	color: var(--hcf-text-color) !important;
	text-decoration: none !important;
	font-size: 0.8rem;
	font-weight: 600;
	line-height: 1.2;
	transition: all 0.18s ease;
}

.hcf-pill:hover,
.hcf-pill:focus-visible {
	background: var(--hcf-accent-soft);
	border-color: rgba(17, 17, 17, 0.2);
	color: var(--hcf-accent) !important;
	text-decoration: none !important;
	outline: none;
}

.hcf-pill .hcf-pill-label {
	white-space: nowrap;
}

.hcf-pill .hcf-count {
	color: inherit;
	opacity: 0.7;
	font-size: 0.72em;
	margin-left: 0.04rem;
}

.hcf-pill.hcf-active,
.hcf-active {
	background: var(--hcf-pill-active-bg) !important;
	border-color: var(--hcf-pill-active-bg) !important;
	color: var(--hcf-pill-active-color) !important;
}

.hcf-pill.hcf-active .hcf-pill-label,
.hcf-active .hcf-pill-label,
.hcf-pill.hcf-active .hcf-count,
.hcf-active .hcf-count {
	color: var(--hcf-pill-active-color) !important;
	opacity: 0.95;
}

.hcf-swatch {
	display: inline-block;
	width: var(--hcf-swatch-size) !important;
	height: var(--hcf-swatch-size) !important;
	border: 1px solid var(--hcf-swatch-border) !important;
	border-radius: 50% !important;
	background-color: #d1d5db;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
	position: relative;
}

.hcf-swatch:hover::after,
.hcf-swatch:focus-visible::after {
	content: attr(title);
	position: absolute;
	left: 50%;
	bottom: calc(100% + 8px);
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 0.38rem 0.5rem;
	border-radius: 999px;
	background: rgba(17, 17, 17, 0.92);
	color: #ffffff;
	font-size: 0.68rem;
	line-height: 1.1;
	font-weight: 600;
	letter-spacing: 0.01em;
	pointer-events: none;
	z-index: 10;
}

.hcf-more {
	display: block;
	clear: both;
	margin-top: 0.55rem;
	width: 100%;
	padding: 0.6rem 0.8rem;
	border-radius: 10px;
	border: 1px solid var(--hcf-more-border) !important;
	background: var(--hcf-more-bg) !important;
	color: var(--hcf-text-color) !important;
	font-weight: 600;
	font-size: 0.76rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.hcf-more-overlay {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 1.5rem;
	background: rgba(17, 17, 17, 0.52);
	backdrop-filter: blur(4px);
}

.hcf-more-overlay.hcf-open {
	display: flex;
}

body.hcf-modal-open {
	overflow: hidden;
}

.hcf-more-modal {
	width: min(94vw, 760px);
	max-height: 82vh;
	display: flex;
	flex-direction: column;
	padding: 1rem;
	border-radius: 22px;
	background: #ffffff;
	border: 1px solid rgba(17, 17, 17, 0.08);
	box-shadow: 0 24px 70px rgba(17, 17, 17, 0.18);
}

.hcf-more-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 0.9rem;
}

.hcf-more-header h3 {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #111111;
}

.hcf-more-close {
	border: 1px solid rgba(17, 17, 17, 0.12);
	background: #f5f5f5;
	color: #111111;
	border-radius: 999px;
	padding: 0.45rem 0.8rem;
	font-size: 0.72rem;
	font-weight: 700;
	cursor: pointer;
}

.hcf-modal-search {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.7rem 0.8rem;
	margin-bottom: 0.9rem;
	border: 1px solid rgba(17, 17, 17, 0.12);
	border-radius: 999px;
	background: #f7f7f7;
	box-sizing: border-box;
}

.hcf-modal-search input {
	flex: 1;
	border: none !important;
	background: transparent !important;
	outline: none !important;
	box-shadow: none !important;
	color: #111111 !important;
	font: inherit;
	font-size: 0.9rem;
}

.hcf-more-body {
	overflow: auto;
	padding-right: 0.15rem;
}

.hcf-more-list {
	list-style: none !important;
	padding: 0 !important;
	margin: 0 !important;
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	align-items: flex-start;
}

.hcf-more-item,
.hcf-more-list > li {
	display: inline-flex !important;
	margin: 0 !important;
}

.hcf-more-empty {
	width: 100%;
	padding: 0.9rem 0.25rem;
	color: #666666;
	font-size: 0.85rem;
}

.hcf-product-swatches-wrap {
	display: block;
	margin: 0.9rem 0 1rem;
}

.hcf-product-swatches-label {
	margin-bottom: 0.55rem;
	font-size: 0.76rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #111111;
}

.hcf-product-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem;
}

.hcf-product-swatch {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.1rem;
	height: 2.1rem;
	padding: 0;
	border-radius: 50%;
	border: 2px solid rgba(17, 17, 17, 0.18);
	background: #ffffff;
	cursor: pointer;
	transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.hcf-product-swatch-pill {
	min-width: 3rem;
	width: auto;
	height: 2.1rem;
	padding: 0 0.8rem;
	border-radius: 999px;
	border: 1px solid #d1d5db;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #111111;
	background: #ffffff;
}

.hcf-product-swatch:hover,
.hcf-product-swatch:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 8px 16px rgba(17, 17, 17, 0.10);
	outline: none;
}

.hcf-product-swatch.is-selected {
	border-color: #111111;
	box-shadow: 0 0 0 4px rgba(17, 17, 17, 0.08), 0 8px 16px rgba(17, 17, 17, 0.10);
}

.hcf-product-swatch-inner {
	display: block;
	width: 1rem;
	height: 1rem;
	border-radius: 50%;
	background: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

@media (max-width: 767px) {
	.hcf-product-swatch {
		width: 1.9rem;
		height: 1.9rem;
	}
}

.hcf-more:hover,
.hcf-more:focus-visible {
	background: #f0f0f0 !important;
	outline: none;
}

.hcf-empty {
	padding: 0.6rem 0.7rem;
	border-radius: 10px;
	background: #f5f5f5;
	color: var(--hcf-muted) !important;
}

.hcf-empty-state {
	display: none;
	padding: 0.7rem 0.8rem;
	border-radius: 10px;
	background: #f5f5f5;
	color: var(--hcf-muted);
	font-size: 0.8rem;
	margin-top: 0.55rem;
}

.hcf-hidden {
	display: none !important;
}

.hcf-box.hcf-no-results .hcf-list {
	display: none;
}

@media (max-width: 767px) {
	.hcf-box.hcf-panel-open .hcf-more-panel,
	.hcf-more-panel {
		display: none !important;
	}

	.hcf-more {
		display: none !important;
	}

	.hcf-list {
		max-height: none !important;
		overflow: visible !important;
	}

	.hcf-mobile-trigger {
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		gap: 0.45rem;
		width: auto;
		height: auto;
		margin: 0 0 0.75rem;
		padding: 0.55rem 0.9rem;
		border: 1px solid rgba(17, 17, 17, 0.14);
		border-radius: 999px;
		background: #ffffff;
		color: #111111;
		cursor: pointer;
		font-size: 0.75rem;
		font-weight: 700;
		letter-spacing: 0.04em;
		text-transform: uppercase;
		box-sizing: border-box;
		position: relative;
		left: auto;
		top: auto;
		right: auto;
		bottom: auto;
		z-index: auto;
	}

	.hcf-mobile-trigger-icon {
		display: inline-block;
		width: 0.85rem;
		height: 0.85rem;
		flex-shrink: 0;
	}

	.hcf-mobile-trigger:before {
		content: "";
	}

	.hcf-mobile-overlay {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(17, 17, 17, 0.36);
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.2s ease;
		z-index: 998;
	}

	.hcf-filters {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		width: min(84vw, 320px);
		display: flex !important;
		flex-direction: column;
		gap: 0.8rem;
		margin: 0 !important;
		padding: 1rem 0.8rem 1rem;
		background: #ffffff;
		border-left: 1px solid rgba(17, 17, 17, 0.08);
		box-shadow: -18px 0 26px rgba(17, 17, 17, 0.08);
		transform: translateX(110%);
		opacity: 0;
		transition: transform 0.22s ease, opacity 0.22s ease;
		z-index: 999;
		overflow-y: auto;
	}

	.hcf-filters.hcf-open {
		transform: translateX(0);
		opacity: 1;
	}

	.hcf-mobile-overlay.hcf-open {
		opacity: 1;
		pointer-events: auto;
	}

	.hcf-box {
		padding: 0.7rem 0.7rem 0.6rem !important;
		border-radius: 12px !important;
	}

	.hcf-box-header {
		align-items: flex-start;
		flex-direction: column;
	}

	.hcf-pill {
		width: 100%;
		justify-content: flex-start;
	}
}
