/* Candlecopia Faceted Browser */

.cf-facets { font-size: 0.95em; }
.cf-facets__header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	margin-bottom: 0.75em;
}
.cf-facets__title { margin: 0; font-size: 1.15em; }
.cf-clear-all { font-size: 0.85em; }

.cf-group {
	border: 0;
	border-top: 1px solid rgba( 0, 0, 0, 0.1 );
	margin: 0;
	padding: 0.85em 0;
}
.cf-group__legend {
	font-weight: 600;
	padding: 0;
	margin-bottom: 0.5em;
}
.cf-group__search,
.cf-typeahead,
.cf-frag-search,
.cf-frag-select {
	width: 100%;
	box-sizing: border-box;
	margin-bottom: 0.5em;
	padding: 0.35em 0.5em;
}

/* Fragrance autocomplete */
.cf-frag { position: relative; }
.cf-frag-suggest {
	list-style: none;
	margin: 0;
	padding: 0;
	position: absolute;
	z-index: 50;
	left: 0;
	right: 0;
	background: #fff;
	border: 1px solid #ccc;
	border-top: 0;
	max-height: 15em;
	overflow-y: auto;
	box-shadow: 0 4px 10px rgba( 0, 0, 0, 0.12 );
}
.cf-frag-suggest li {
	padding: 0.4em 0.6em;
	cursor: pointer;
}
.cf-frag-suggest li:hover,
.cf-frag-suggest li[aria-selected="true"] {
	background: #f0f0f0;
}

.cf-options { list-style: none; margin: 0; padding: 0; max-height: 16em; overflow-y: auto; }
.cf-option { margin: 0; }
.cf-option label {
	display: flex;
	align-items: center;
	gap: 0.35em;
	cursor: pointer;
	padding: 0.12em 0;
	line-height: 1.3;
}
.cf-option__label { flex: 0 1 auto; }
.cf-option__count {
	font-size: 0.78em;
	color: #767676;
}
.cf-option__count::before { content: "("; }
.cf-option__count::after { content: ")"; }
.cf-option.is-disabled label { opacity: 0.4; cursor: not-allowed; }

/* Swatches */
.cf-swatches {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
}
.cf-swatch label { cursor: pointer; display: inline-block; }
.cf-swatch__chip {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 2px solid rgba( 0, 0, 0, 0.25 );
	color: #fff;
	font-size: 14px;
	line-height: 1;
	box-shadow: 0 0 0 0 transparent;
	transition: box-shadow 0.12s ease;
}
.cf-swatch.is-selected .cf-swatch__chip { box-shadow: 0 0 0 3px #333; }
.cf-swatch.is-disabled { opacity: 0.3; }
.cf-swatch label:focus-within .cf-swatch__chip { box-shadow: 0 0 0 3px #0073aa; }

/* Active filter chips */
.cf-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5em;
	margin: 0 0 1em;
}
.cf-active-filters__label { font-weight: 600; font-size: 0.9em; }
.cf-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	background: #f1f1f1;
	border-radius: 14px;
	padding: 0.2em 0.7em;
	font-size: 0.85em;
	text-decoration: none;
	color: #333;
}
.cf-chip:hover { background: #e2e2e2; }
.cf-chip__x { font-weight: 700; }

.cf-result-count { font-size: 0.9em; color: #555; margin: 0 0 0.75em; }
.cf-loop[aria-busy="true"] { opacity: 0.5; transition: opacity 0.15s ease; }

/* No-JS apply button hidden when JS active */
.cf-js .cf-apply { display: none; }
.cf-apply { margin-top: 0.75em; }

/* Drawer toggle: shown on small screens only */
.cf-drawer-toggle {
	display: none;
	margin-bottom: 1em;
}

/* Dedicated browser layout (shortcode) */
.cf-browser {
	display: grid;
	grid-template-columns: 260px 1fr;
	gap: 2em;
	align-items: start;
}
.cf-browser .cf-results,
.cf-browser .cf-shop-main { min-width: 0; }

@media ( max-width: 768px ) {
	.cf-browser { grid-template-columns: 1fr; }
	.cf-drawer-toggle { display: inline-block; }
	.cf-panel {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: 85%;
		max-width: 340px;
		background: #fff;
		z-index: 9999;
		padding: 1.25em;
		overflow-y: auto;
		transform: translateX( -100% );
		transition: transform 0.2s ease;
		box-shadow: 2px 0 12px rgba( 0, 0, 0, 0.2 );
	}
	.cf-panel--open { transform: translateX( 0 ); }
}

/* Mobile drawer backdrop (created by JS) */
.cf-backdrop {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.45 );
	z-index: 9998;
}
.cf-backdrop--show { display: block; }

@media ( min-width: 769px ) {
	/* Drawer/backdrop are mobile-only; never show on desktop. */
	.cf-backdrop { display: none !important; }
}

/* Explore / browse-by landing links */
.cf-explore {
	clear: both;
	margin: 2.5em 0 1em;
	padding-top: 1.5em;
	border-top: 1px solid rgba( 0, 0, 0, 0.1 );
}
.cf-explore__title { font-size: 1.15em; margin: 0 0 0.75em; }
.cf-explore__group { margin-bottom: 1em; }
.cf-explore__heading { font-size: 0.95em; margin: 0 0 0.35em; color: #555; }
.cf-explore__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4em 0.9em;
}
.cf-explore__list a { text-decoration: none; font-size: 0.92em; }
.cf-explore__count { color: #999; font-size: 0.85em; }
.cf-explore__sale a { font-weight: 600; }

.screen-reader-text {
	border: 0;
	clip: rect( 1px, 1px, 1px, 1px );
	clip-path: inset( 50% );
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
}
