/* Aomeda Performance Core — optional shop filter controls. */

/* # BEGIN Aomeda Shop Page Shop Toolbar */

.apc-shop-toolbar {
	--apc-shop-bg: #fff;
	--apc-shop-text: #17213f;
	--apc-shop-muted: #566079;
	--apc-shop-border: #d9deea;
	--apc-shop-border-strong: #17213f;
	--apc-shop-soft: #f4f6fb;
	--apc-shop-radius: 18px;
	--apc-shop-shadow: 0 18px 45px rgba(17, 24, 39, .16);
	width: 100%;
	margin: 16px 0 22px;
	color: var(--apc-shop-text);
	padding: 12px;
	border-bottom: 1px solid #cccccc;
}
.apc-shop-toolbar-mobile {
	display: grid;
	grid-template-columns: 1fr;
	gap: 10px;
}
.apc-shop-toolbar-placeholder {
	height: 0;
}
.apc-shop-toolbar-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 0 16px;
	border: 1px solid var(--apc-shop-border);
	border-radius: 999px;
	background: var(--apc-shop-bg);
	color: var(--apc-shop-text);
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
}
.apc-shop-toolbar-btn[data-apc-open-filter-drawer]::before {
	content: "☰ / ↕";
}
.apc-shop-toolbar-desktop {
	display: none;
}

/* ## Desktop toolbar version */

@media (min-width: 768px) {
	.apc-shop-toolbar-mobile,
	.apc-shop-drawer {
		display: none !important;
	}
	.apc-shop-toolbar-desktop {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		width: 100%;
		padding: 0;
		background: transparent;
		border: 0;
	}
	.apc-shop-toolbar-filters {
		display: flex;
		align-items: center;
		gap: 12px;
		flex: 1 1 auto;
		min-width: 0;
	}
	.apc-shop-toolbar-filters::before {
		content: "☰ / ↕";
		font-size: 14px;
		width: 32px;
		font-weight: 500;
		color: var(--apc-shop-text);
	}
	.apc-shop-toolbar-filters .apc-shop-filter-widget {
		position: relative;
		margin: 0;
		padding: 0;
		border: 0;
	}
	.apc-shop-toolbar-filters .apc-shop-filter-title,
	.apc-shop-toolbar-filters .widget-title {
		position: relative;
		display: inline-flex;
		align-items: center;
		gap: 5px;
		margin: 0;
		padding: 10px 16px;
		border: 1px solid transparent;
		background: transparent;
		color: var(--apc-shop-text);
		font-size: 16px;
		font-weight: 500;
		line-height: 1;
		cursor: pointer;
		border-radius: 999px;
	}
	.apc-shop-toolbar-filters .apc-shop-filter-title::after,
	.apc-shop-toolbar-filters .widget-title::after {
		content: "";
		width: 9px;
		height: 9px;
		border-right: 2px solid currentColor;
		border-bottom: 2px solid currentColor;
		transform: rotate(45deg) translateY(-2px);
		margin-left: 4px;
	}
	.apc-shop-toolbar-filters .apc-shop-filter-widget:hover .apc-shop-filter-title,
	.apc-shop-toolbar-filters .apc-shop-filter-widget:hover .widget-title,
	.apc-shop-toolbar-filters .apc-shop-filter-widget:focus-within .apc-shop-filter-title,
	.apc-shop-toolbar-filters .apc-shop-filter-widget:focus-within .widget-title {
		color: #ffffff;
		background-color: #222222;
	}
	.apc-shop-toolbar-filters .apc-shop-filter-widget > ul,
	.apc-shop-toolbar-filters .apc-shop-filter-widget > form,
	.apc-shop-toolbar-filters .apc-shop-filter-widget > div:not(.apc-shop-filter-title) {
		position: absolute;
		top: calc(100%);
		left: 0;
		z-index: 50;
		display: none;
		min-width: 320px;
		max-width: 420px;
		border: 1px solid rgba(163, 163, 163, 0.25);
		background-color: rgba(238, 238, 238, .5);
		backdrop-filter: blur(12px);
		box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
		border-radius: 12px;
	}
	.apc-shop-toolbar-filters .apc-shop-filter-widget:hover > ul,
	.apc-shop-toolbar-filters .apc-shop-filter-widget:hover > form,
	.apc-shop-toolbar-filters .apc-shop-filter-widget:hover > div:not(.apc-shop-filter-title),
	.apc-shop-toolbar-filters .apc-shop-filter-widget:focus-within > ul,
	.apc-shop-toolbar-filters .apc-shop-filter-widget:focus-within > form,
	.apc-shop-toolbar-filters .apc-shop-filter-widget:focus-within > div:not(.apc-shop-filter-title) {
		display: block;
	}
	.apc-shop-toolbar-filters ul {
		margin: 0!important;
		padding: 6px!important;
		list-style: none!important;
		border-radius: 0;
	}
	.apc-shop-toolbar-filters li {
		margin: 0!important;
		padding: 0!important;
		font-size: 14px!important;
		line-height: 1.3!important;
	}
	.apc-shop-toolbar-filters li a {
		color: #111111;
		text-decoration: none;
		display: block;
		padding: 12px!important;
		border-radius: 12px;
		margin-bottom: 1px!important;
	}
	.apc-shop-toolbar-filters li a:hover {
		text-decoration: none;
		background-color: #0066CC;
		color: #ffffff!important;
	}
	.apc-shop-toolbar-filters li a.active, .apc-shop-toolbar-filters li.chosen a {
		background-color: #0066CC!important;
		color: #ffffff!important;
	}
	.apc-shop-toolbar-filters li .count {
		display: none!important;
	}
	.apc-shop-toolbar-filters input[type="checkbox"],
	.apc-shop-toolbar-filters input[type="radio"] {
		width: 18px;
		height: 18px;
		margin-right: 10px;
		vertical-align: middle;
	}
	.apc-shop-toolbar-filters select,
	.apc-shop-toolbar-filters input[type="text"],
	.apc-shop-toolbar-filters input[type="number"],
	.apc-shop-toolbar-filters input[type="search"] {
		width: 100%;
		min-height: 42px;
		border: 1px solid var(--apc-shop-border);
		border-radius: 10px;
		padding: 0 12px;
		background: #fff;
		color: var(--apc-shop-text);
		font-size: 14px;
	}
}
@media (max-width: 767px) {
	.apc-shop-toolbar.is-sticky-mobile .apc-shop-toolbar-mobile {
		position: fixed;
		left: 18px;
		bottom: 18px;
		z-index: 99990;
		width: auto;
		display: block;
	}
	.apc-shop-toolbar.is-sticky-mobile .apc-shop-toolbar-btn {
		width: auto;
		min-width: 118px;
		box-shadow: 0 10px 28px rgba(0, 0, 0, .18);
	}
}

/* # END Aomeda Shop Page Shop Toolbar */


/* # BEGIN Aomeda Shop Page Shop Drawer */

.apc-shop-drawer {
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
	padding: 18px;
	background: rgba(17, 24, 39, .56);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .22s ease, visibility .22s ease;
	display: none;
}
.apc-shop-drawer.is-open {
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
	position: fixed!important;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.apc-shop-drawer-overlay {
	position: absolute;
	inset: 0;
	background: transparent;
}
.apc-shop-drawer-panel {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 430px;
	max-height: min(82vh, 680px);
	display: flex;
	flex-direction: column;
	background: #fff;
	color: #111;
	border-radius: 22px;
	box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
	overflow: hidden;
	transform: translateY(18px) scale(.96);
	opacity: 0;
	transition:
		transform .26s cubic-bezier(.22, 1, .36, 1),
		opacity .22s ease;
}
.apc-shop-drawer.is-open .apc-shop-drawer-panel {
	transform: translateY(0) scale(1);
	border: 1px solid rgba(163, 163, 163, 0.25);
	background-color: rgba(238, 238, 238, .5);
	border-radius: 12px;
	opacity: .85;
}
.apc-shop-drawer-header {
	position: relative;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-height: 58px;
	padding: 16px 18px;
	background: #fff;
	border-bottom: 1px solid #eee;
}
.apc-shop-drawer-title {
	margin: 0;
	font-size: 17px;
	line-height: 1.2;
	font-weight: 800;
	color: #111;
}
.apc-shop-drawer-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 999px;
	background: #f7f7f7;
	color: #111;
	font-size: 13px;
	line-height: 1;
	font-weight: 700;
	cursor: pointer;
}
.apc-shop-drawer-close:hover,
.apc-shop-drawer-close:focus {
	background: #fff;
	border-color: #bbb;
}
.apc-shop-drawer-panel :focus-visible {
	outline: 3px solid #0066cc;
	outline-offset: 2px;
}
.apc-shop-drawer-section {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 18px;
	background: #fff;
}
.apc-shop-drawer-section[hidden] {
	display: none !important;
}
.apc-shop-drawer-section h3 {
	margin: 0 0 16px;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 800;
	color: #111;
}
.apc-shop-drawer .apc-shop-filter-widget,
.apc-shop-drawer .widget {
	margin: 0;
	padding: 16px 0;
	border-bottom: 1px solid #eee;
	background: transparent;
}
.apc-shop-drawer .apc-shop-filter-widget:first-child,
.apc-shop-drawer .widget:first-child {
	padding-top: 0;
}
.apc-shop-drawer .apc-shop-filter-widget:last-child,
.apc-shop-drawer .widget:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}
.apc-shop-drawer .apc-shop-filter-title,
.apc-shop-drawer .widget-title {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 800;
	color: #111;
}
.apc-shop-drawer-section ul {
	margin: 0!important;
	padding: 0!important;
	list-style: none!important;
}
.apc-shop-drawer-section li {
	margin: 0!important;
	padding: 0!important;
	font-size: 14px!important;
	line-height: 1.3!important
}
.apc-shop-drawer-section a {
	color: #111111;
	text-decoration: none;
	display: block;
	padding: 12px!important;
	border-radius: 12px;
	margin-bottom: 1px!important;
}
.apc-shop-drawer-section a:hover {
	text-decoration: none;
	color: #111111!important;
}
.apc-shop-drawer-section li a.active, .apc-shop-drawer-section li.chosen a {
	background-color: #0066CC!important;
	color: #ffffff!important;
}
.apc-shop-drawer-section li .count {
	display: none!important;
}
.apc-shop-drawer label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 34px;
	font-size: 14px;
	line-height: 1.35;
	color: #111;
}
.apc-shop-drawer input[type="checkbox"],
.apc-shop-drawer input[type="radio"] {
	width: 18px;
	height: 18px;
	margin: 0;
	flex: 0 0 auto;
}
.apc-shop-drawer select,
.apc-shop-drawer input[type="text"],
.apc-shop-drawer input[type="number"],
.apc-shop-drawer input[type="search"],
.apc-shop-drawer .woocommerce-ordering select {
	width: 100%;
	min-height: 46px;
	padding: 0 12px;
	border: 1px solid #ddd;
	border-radius: 12px;
	background: #fff;
	color: #111;
	font-size: 14px;
	line-height: 1.2;
	box-shadow: none;
}
.apc-shop-drawer .woocommerce-ordering {
	float: none;
	width: 100%;
	margin: 0;
}
.apc-shop-drawer .orderby {
	width: 100%;
}
.apc-shop-drawer-empty {
	margin: 0;
	padding: 14px;
	border: 1px dashed #ddd;
	border-radius: 14px;
	background: #f7f7f7;
	color: #666;
	font-size: 13px;
	line-height: 1.45;
}
.apc-shop-drawer-open {
	overflow: hidden;
}

@media (max-width: 420px) {
	.apc-shop-drawer {
		padding: 12px;
	}

	.apc-shop-drawer-panel {
		max-height: 86vh;
		border-radius: 18px;
	}

	.apc-shop-drawer-header {
		padding: 14px 15px;
	}

	.apc-shop-drawer-section {
		padding: 15px;
	}
}

/* # END Aomeda Shop Page Shop Drawer */


/* # BEGIN Aomeda Shop Page Active Filter Chips */

.apc-active-filter-chips {
	width: 100%;
	margin: 0 0 12px;
}
.apc-active-filter-chips-list {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
}
.apc-active-filter-chip,
.apc-active-filter-clear {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 34px;
	padding: 0 11px;
	border-radius: 999px;
	font-size: 13px;
	line-height: 1;
	font-weight: 600;
	text-decoration: none;
}
.apc-active-filter-chip {
	border: 1px solid #d9deea;
	background: #fff;
	color: #17213f;
}
.apc-active-filter-chip:hover {
	border-color: #17213f;
	text-decoration: none;
}
.apc-active-filter-chip-remove {
	font-size: 16px;
	line-height: 1;
	font-weight: 700;
	opacity: .7;
}
.apc-active-filter-clear {
	border: 1px solid transparent;
	background: #f4f6fb;
	color: #566079;
}
.apc-active-filter-clear:hover {
	background: #e9edf7;
	color: #17213f;
	text-decoration: none;
}

/* # END Aomeda Shop Page Active Filter Chips */


@media (max-width: 767px) {
	.apc-active-filter-chips {
		margin-bottom: 10px;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
	}

	.apc-active-filter-chips::-webkit-scrollbar {
		display: none;
	}

	.apc-active-filter-chips-list {
		flex-wrap: nowrap;
		width: max-content;
		max-width: none;
	}

	.apc-active-filter-chip,
	.apc-active-filter-clear {
		min-height: 36px;
		white-space: nowrap;
	}
}

/* END Active Filter Chips */
