/* Akko Plus — filtri prodotti del negozio. Accento del sito: rgb(239,125,25). */
.akko-filters-bar,
.akko-filters {
	--akf-accent: #ef7d19;
	--akf-accent-dark: #d4680b;
	--akf-text: #434343;
	--akf-title: #333;
	--akf-line: #e1e1e1;
}

/* Barra sopra la griglia: pulsante e filtri attivi */
.akko-filters-bar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 12px;
	margin: 0 0 18px;
	clear: both;
}
.akko-filters-bar .akko-filters-bar__open {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 11px 20px;
	border: 1px solid var(--akf-accent);
	border-radius: 2px;
	background: var(--akf-accent);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: none;
	letter-spacing: 0;
	box-shadow: none;
	cursor: pointer;
}
.akko-filters-bar .akko-filters-bar__open:hover,
.akko-filters-bar .akko-filters-bar__open:focus-visible {
	background: var(--akf-accent-dark);
	border-color: var(--akf-accent-dark);
	color: #fff;
}
.akko-filters-bar__icon { flex: none; }
.akko-filters-bar__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 10px;
	background: #fff;
	color: var(--akf-accent);
	font-size: 12px;
	font-weight: 700;
}
.akko-filters-bar__chips {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.akko-filters-bar__chips li { margin: 0; padding: 0; list-style: none; }
.akko-filters-bar .akko-filters-bar__chip {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid #d6d6d6;
	border-radius: 999px;
	background: #fff;
	color: var(--akf-text);
	font-size: 13px;
	line-height: 1.3;
	text-decoration: none;
}
.akko-filters-bar .akko-filters-bar__chip:hover,
.akko-filters-bar .akko-filters-bar__chip:focus-visible {
	border-color: var(--akf-accent);
	color: var(--akf-accent);
}
.akko-filters-bar__remove { font-size: 17px; line-height: 1; }
.akko-filters-bar .akko-filters-bar__reset {
	padding: 6px 4px;
	color: var(--akf-accent);
	font-size: 13px;
	text-decoration: underline;
}
.akko-shop-results { transition: opacity .15s ease; }
.akko-shop-results.is-loading { opacity: .45; pointer-events: none; }

/* Pannello */
.akko-filters[hidden] { display: none !important; }
.akko-filters {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	color: var(--akf-text);
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
}
html.akko-filters-is-open,
html.akko-filters-is-open body { overflow: hidden; }
.akko-filters__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, .4);
	opacity: 0;
	transition: opacity .2s ease;
}
.akko-filters__dialog {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	display: flex;
	flex-direction: column;
	width: min(430px, 100%);
	background: #fff;
	box-shadow: 0 0 32px rgba(0, 0, 0, .2);
	transform: translateX(-100%);
	transition: transform .22s ease;
	outline: none;
}
.akko-filters.is-open .akko-filters__backdrop { opacity: 1; }
.akko-filters.is-open .akko-filters__dialog { transform: none; }
.akko-filters button,
.akko-filters input {
	font-family: inherit;
	letter-spacing: normal;
	text-shadow: none;
	box-shadow: none;
}
.akko-filters button:focus-visible,
.akko-filters input:focus-visible,
.akko-filters-bar a:focus-visible,
.akko-filters-bar button:focus-visible {
	outline: 2px solid var(--akf-accent);
	outline-offset: 2px;
}
.akko-filters__header {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	min-height: 60px;
	padding: 0 56px;
	background: #ececec;
}
.akko-filters .akko-filters__title {
	margin: 0;
	padding: 0;
	color: var(--akf-title);
	font-size: 18px;
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: .02em;
	text-transform: uppercase;
}
.akko-filters .akko-filters__close {
	position: absolute;
	top: 50%;
	right: 10px;
	width: 44px;
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--akf-title);
	font-size: 28px;
	line-height: 1;
	transform: translateY(-50%);
	cursor: pointer;
}
.akko-filters__form {
	display: flex;
	flex: 1;
	flex-direction: column;
	min-height: 0;
	margin: 0;
}
.akko-filters__body {
	flex: 1;
	min-height: 0;
	padding: 18px 20px 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
}
.akko-filters__section {
	margin: 0 0 14px;
	border: 1px solid var(--akf-line);
	background: #fff;
}
.akko-filters__section.is-empty { display: none; }
.akko-filters .akko-filters__heading { margin: 0; padding: 0; font-size: inherit; line-height: inherit; }
.akko-filters .akko-filters__toggle {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	margin: 0;
	padding: 16px 15px;
	border: 0;
	background: none;
	color: var(--akf-title);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.3;
	text-align: left;
	text-transform: uppercase;
	cursor: pointer;
}
.akko-filters__toggle > span:first-child {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	border-bottom: 1px solid var(--akf-title);
}
.akko-filters__toggle > span:first-child::after {
	content: "";
	width: 7px;
	height: 7px;
	margin: -4px 0 0 2px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg);
}
.akko-filters__toggle[aria-expanded="true"] > span:first-child { border-bottom-color: var(--akf-accent); }
.akko-filters__toggle[aria-expanded="true"] > span:first-child::after { margin-top: 4px; transform: rotate(-135deg); }
.akko-filters__count {
	margin-left: auto;
	color: var(--akf-accent);
	font-size: 14px;
	font-weight: 700;
}
.akko-filters__content { padding: 0 15px 15px; }
.akko-filters__content[hidden] { display: none; }
.akko-filters .akko-filters__clear {
	display: block;
	margin: -4px 0 10px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--akf-accent);
	font-size: 15px;
	text-transform: none;
	cursor: pointer;
}
.akko-filters .akko-filters__clear[hidden] { display: none; }
.akko-filters .akko-filters__search {
	width: 100%;
	height: 42px;
	margin: 0 0 10px;
	padding: 0 12px;
	border: 1px solid #d6d6d6;
	border-radius: 0;
	background: #fff;
	font-size: 16px;
}
.akko-filters .akko-filters__options { margin: 0; padding: 0; list-style: none; }
.akko-filters .akko-filters__options--nested { padding-left: 26px; }
.akko-filters .akko-filters__option { margin: 0; padding: 0; list-style: none; }
.akko-filters__option.is-unavailable:not(.is-checked),
.akko-filters__option.is-search-miss { display: none; }
.akko-filters .akko-filters__option label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 38px;
	margin: 0;
	color: var(--akf-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	text-transform: none;
	cursor: pointer;
}
.akko-filters .akko-filters__option input {
	flex: none;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--akf-accent);
	cursor: pointer;
}
.akko-filters__option.is-checked > label { color: var(--akf-accent); }

/* Prezzo: due cursori sovrapposti sulla stessa barra */
.akko-filters__range {
	--akf-from: 0%;
	--akf-to: 100%;
	position: relative;
	height: 30px;
	margin: 4px 10px 14px;
}
.akko-filters__range::before,
.akko-filters__range::after {
	content: "";
	position: absolute;
	top: 13px;
	height: 4px;
	border-radius: 2px;
}
.akko-filters__range::before { left: 0; right: 0; background: var(--akf-line); }
.akko-filters__range::after { left: var(--akf-from); right: calc(100% - var(--akf-to)); background: var(--akf-accent); }
.akko-filters .akko-filters__range input[type="range"] {
	position: absolute;
	top: 0;
	left: -10px;
	z-index: 1;
	width: calc(100% + 20px);
	height: 30px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
}
.akko-filters__range input[type="range"]::-webkit-slider-runnable-track { height: 30px; background: transparent; }
.akko-filters__range input[type="range"]::-moz-range-track { background: transparent; }
.akko-filters__range input[type="range"]::-webkit-slider-thumb {
	width: 22px;
	height: 22px;
	margin-top: 4px;
	border: 2px solid var(--akf-accent);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	pointer-events: auto;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}
.akko-filters__range input[type="range"]::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border: 2px solid var(--akf-accent);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	pointer-events: auto;
	cursor: pointer;
}
.akko-filters__amounts { display: flex; gap: 14px; }
.akko-filters .akko-filters__amounts label {
	display: flex;
	flex: 1;
	align-items: center;
	gap: 6px;
	margin: 0;
	font-size: 14px;
	font-weight: 400;
}
.akko-filters .akko-filters__amounts input {
	width: 100%;
	min-width: 0;
	height: 42px;
	margin: 0;
	padding: 0 8px;
	border: 1px solid #d6d6d6;
	border-radius: 0;
	background: #fff;
	font-size: 16px;
}

/* Piede del pannello */
.akko-filters__footer {
	display: flex;
	flex: none;
	gap: 10px;
	padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
	border-top: 1px solid var(--akf-line);
	background: #fff;
}
.akko-filters .akko-filters__reset {
	flex: none;
	min-height: 50px;
	margin: 0;
	padding: 0 18px;
	border: 1px solid #d6d6d6;
	border-radius: 0;
	background: #fff;
	color: var(--akf-text);
	font-size: 15px;
	text-transform: none;
	cursor: pointer;
}
.akko-filters .akko-filters__apply {
	flex: 1;
	min-height: 50px;
	margin: 0;
	padding: 0 12px;
	border: 0;
	border-radius: 0;
	background: var(--akf-accent);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	transition: opacity .15s ease, background-color .15s ease;
}
.akko-filters .akko-filters__apply:hover { background: var(--akf-accent-dark); }
.akko-filters .akko-filters__apply.is-loading { opacity: .7; }
.akko-filters .akko-filters__apply.is-empty { background: #8c8c8c; }

@media (max-width: 767px) {
	.akko-filters__dialog { width: 100%; }
	.akko-filters .akko-filters__title { font-size: 17px; }
	.akko-filters__body { padding: 14px 14px 4px; }
	.akko-filters__footer { padding-left: 14px; padding-right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
	.akko-filters__backdrop,
	.akko-filters__dialog,
	.akko-shop-results { transition: none; }
}
