/* ========================================
   GS Filters Engine - Stili pubblici
   ======================================== */

:root {
	--gsfe-dark-blue: #071126;
	--gsfe-red: #dc2f2f;
	--gsfe-gold: #dca942;
	--gsfe-text: #111827;
	--gsfe-text-light: #666666;
	--gsfe-border: #e5e7eb;
	--gsfe-border-soft: #eeeeee;
	--gsfe-border-subtle: #f5f5f5;
	--gsfe-bg: #ffffff;
	--gsfe-bg-light: #f9fafb;
	--gsfe-muted: #999999;
	--gsfe-whatsapp: #25d366;
	--gsfe-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	--gsfe-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
	--gsfe-transition-fast: 0.2s ease;
	--gsfe-transition-drawer: 0.3s ease;
	--gsfe-overlay-bg: rgba(0, 0, 0, 0.4);
}

/* ========================================
   CATEGORIE
   ======================================== */

.gsfe-categories {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.gsfe-categories__section {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gsfe-categories__title {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--gsfe-dark-blue);
}

.gsfe-categories__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
	max-height: 260px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.gsfe-categories__item {
	margin: 0;
	padding: 0;
}

.gsfe-categories__item a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	color: var(--gsfe-text);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	transition: color var(--gsfe-transition-fast);
	border-bottom: 1px solid var(--gsfe-border-subtle);
}

.gsfe-categories__item a:hover {
	color: var(--gsfe-red);
}

.gsfe-categories__item a:active {
	color: var(--gsfe-red);
}

.gsfe-categories__count {
	font-size: 12px;
	color: var(--gsfe-muted);
	flex-shrink: 0;
}

.gsfe-tree {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.gsfe-tree .gsfe-tree {
	display: none;
	margin-left: 18px;
	border-left: 1px solid var(--gsfe-border);
}

.gsfe-tree__item:not(.is-collapsed) > .gsfe-tree {
	display: flex;
}

.gsfe-tree__item {
	margin: 0;
	padding: 0;
}

.gsfe-tree__row {
	display: grid;
	grid-template-columns: 24px minmax(0, 1fr);
	align-items: center;
	gap: 4px;
	border-bottom: 1px solid var(--gsfe-border-subtle);
}

.gsfe-tree__toggle,
.gsfe-tree__toggle-placeholder {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 32px;
	border: none;
	background: transparent;
	padding: 0;
	margin: 0;
}

.gsfe-tree__toggle {
	cursor: pointer;
}

.gsfe-tree__toggle::before {
	content: "";
	width: 0;
	height: 0;
	border-top: 5px solid transparent;
	border-bottom: 5px solid transparent;
	border-left: 6px solid var(--gsfe-text-light);
	transition: transform 0.15s ease;
}

.gsfe-tree__item:not(.is-collapsed) > .gsfe-tree__row .gsfe-tree__toggle::before {
	transform: rotate(90deg);
}

.gsfe-tree__link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	min-width: 0;
	padding: 7px 0;
	color: var(--gsfe-text);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	transition: color var(--gsfe-transition-fast);
}

.gsfe-tree__link:hover {
	color: var(--gsfe-red);
}

.gsfe-tree__count {
	font-size: 12px;
	color: var(--gsfe-muted);
	flex-shrink: 0;
}

.gsfe-tree--filters .gsfe-tree__item.is-active > .gsfe-tree__row .gsfe-tree__link {
	color: var(--gsfe-red);
	font-weight: 600;
}

.gsfe-tree__brand-split {
	display: none;
}

/* Visti di recente */
.gsfe-recently-viewed__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.gsfe-recently-viewed__item {
	margin: 0;
	padding: 0;
}

.gsfe-recently-viewed__item a {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr);
	gap: 10px;
	align-items: center;
	color: var(--gsfe-text);
	text-decoration: none;
	font-size: 13px;
	line-height: 1.3;
}

.gsfe-recently-viewed__item img {
	width: 52px;
	height: 52px;
	object-fit: cover;
	border-radius: 4px;
	background-color: var(--gsfe-bg-light);
}

.gsfe-recently-viewed__item span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* ========================================
   FILTRI
   ======================================== */

.gsfe-filters {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.gsfe-filters__section {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--gsfe-border);
}

.gsfe-filters__section:last-of-type {
	border-bottom: none;
	padding-bottom: 0;
}

.gsfe-filters__title {
	margin: 0;
	padding: 0;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: var(--gsfe-dark-blue);
}

.gsfe-filters__list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 0;
	max-height: 260px;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
}

.gsfe-filters__item {
	margin: 0;
	padding: 0;
}

.gsfe-filters__link {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	padding: 7px 0;
	color: var(--gsfe-text);
	text-decoration: none;
	font-size: 14px;
	line-height: 1.35;
	transition: color var(--gsfe-transition-fast);
	border-bottom: 1px solid var(--gsfe-border-subtle);
	cursor: pointer;
}

.gsfe-filters__link:hover {
	color: var(--gsfe-red);
}

.gsfe-filters__item--active .gsfe-filters__link {
	color: var(--gsfe-red);
	font-weight: 600;
}

.gsfe-filters__item--active .gsfe-filters__link:hover {
	color: #c8191f;
}

.gsfe-filters__count {
	font-size: 12px;
	flex-shrink: 0;
	color: var(--gsfe-muted);
}

.gsfe-filters__section--mobile-price {
	display: none;
}

/* Prezzo */
.gsfe-filters__price-form {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.gsfe-filters__price-group {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.gsfe-filters__price-input {
	padding: 10px 12px;
	border: 1px solid var(--gsfe-border);
	border-radius: 4px;
	font-size: 14px;
	color: var(--gsfe-text);
	transition: border-color var(--gsfe-transition-fast);
}

.gsfe-filters__price-input:focus {
	outline: none;
	border-color: var(--gsfe-red);
	box-shadow: 0 0 0 3px rgba(220, 47, 47, 0.1);
}

.gsfe-filters__price-btn {
	padding: 10px 16px;
	margin-top: 8px;
	background-color: var(--gsfe-red);
	color: var(--gsfe-bg);
	border: none;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--gsfe-transition-fast);
}

.gsfe-filters__price-btn:hover {
	background-color: #c8191f;
	box-shadow: var(--gsfe-shadow);
}

.gsfe-filters__price-btn:active {
	transform: scale(0.98);
}

/* Reset button */
.gsfe-filters__reset {
	display: flex;
	justify-content: center;
	padding-top: 16px;
	margin-top: 8px;
	border-top: 1px solid var(--gsfe-border);
}

.gsfe-filters__reset-btn {
	padding: 10px 20px;
	background-color: transparent;
	color: var(--gsfe-text);
	border: 1px solid var(--gsfe-border);
	border-radius: 4px;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	transition: all var(--gsfe-transition-fast);
}

.gsfe-filters__reset-btn:hover {
	border-color: var(--gsfe-red);
	color: var(--gsfe-red);
}

/* ========================================
   FILTRI ATTIVI
   ======================================== */

.gsfe-active-filters {
	background-color: var(--gsfe-bg-light);
	padding: 12px 16px;
	border-radius: 4px;
	margin-bottom: 20px;
}

.gsfe-active-filters__title {
	margin-bottom: 8px;
	color: var(--gsfe-text);
	font-size: 13px;
	font-weight: 700;
}

.gsfe-active-filters__container {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	justify-content: flex-start;
}

.gsfe-active-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 12px;
	background-color: var(--gsfe-dark-blue);
	color: var(--gsfe-bg);
	border-radius: 20px;
	font-size: 13px;
	white-space: nowrap;
}

.gsfe-active-filters__remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-left: 4px;
	color: var(--gsfe-bg);
	text-decoration: none;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	transition: all var(--gsfe-transition-fast);
	background-color: rgba(255, 255, 255, 0.2);
}

.gsfe-active-filters__remove:hover {
	background-color: rgba(255, 255, 255, 0.4);
}

.gsfe-active-filters__reset {
	display: inline-block;
	padding: 6px 12px;
	background-color: transparent;
	color: var(--gsfe-red);
	border: 1px solid var(--gsfe-red);
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all var(--gsfe-transition-fast);
	white-space: nowrap;
}

.gsfe-active-filters__reset:hover {
	background-color: var(--gsfe-red);
	color: var(--gsfe-bg);
}

/* ========================================
   LAYOUT DESKTOP
   ======================================== */

.gsfe-layout {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.gsfe-layout__content {
	display: grid;
	grid-template-columns: 250px 1fr;
	gap: 30px;
}

@media (max-width: 1200px) {
	.gsfe-layout__content {
		grid-template-columns: 200px 1fr;
		gap: 20px;
	}
}

@media (max-width: 767.98px) {
	.gsfe-layout__content {
		display: none;
	}
}

.gsfe-layout__sidebar,
.gsfe-layout__filters {
	padding: 20px;
	background-color: var(--gsfe-bg);
	border: 1px solid var(--gsfe-border);
	border-radius: 4px;
}

@media (min-width: 1025px) {
	.gsfe-categories,
	.gsfe-filters {
		display: block;
		max-height: none;
		overflow: visible;
		padding-right: 0;
	}

	.gsfe-layout__sidebar,
	.gsfe-layout__filters {
		padding: 0;
		background: transparent;
		border: none;
	}

	.gsfe-tree {
		display: block;
	}

	.gsfe-tree .gsfe-tree {
		display: block;
		margin-left: 0;
		border-left: none;
	}

	.gsfe-tree__item.is-collapsed > .gsfe-tree,
	.gsfe-tree__item:not(.is-collapsed) > .gsfe-tree {
		display: block;
	}

	.gsfe-tree > .gsfe-tree__item {
		margin-bottom: 28px;
	}

	.gsfe-tree > .gsfe-tree__item:last-child {
		margin-bottom: 0;
	}

	.gsfe-tree > .gsfe-tree__item.has-children > .gsfe-tree {
		max-height: 260px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.gsfe-tree > .gsfe-tree__item.has-children > .gsfe-tree__row {
		margin-bottom: 12px;
		border-bottom: 1px solid var(--gsfe-border-soft);
	}

	.gsfe-tree__row {
		display: block;
		border-bottom: 1px solid var(--gsfe-border-subtle);
	}

	.gsfe-tree__toggle,
	.gsfe-tree__toggle-placeholder {
		display: none;
	}

	.gsfe-tree__link {
		padding: 7px 0;
		color: var(--gsfe-text);
		font-size: 15px;
		line-height: 1.35;
	}

	.gsfe-tree__link:hover {
		color: var(--gsfe-red);
	}

	.gsfe-tree__count {
		color: var(--gsfe-muted);
		font-size: 13px;
		font-weight: 400;
	}

	.gsfe-tree__count::before {
		content: "(";
	}

	.gsfe-tree__count::after {
		content: ")";
	}

	.gsfe-tree > .gsfe-tree__item.has-children > .gsfe-tree__row > .gsfe-tree__link {
		justify-content: flex-start;
		padding: 0 0 6px;
		color: var(--gsfe-text);
		font-size: 17px;
		font-weight: 600;
		line-height: 1.25;
		text-transform: uppercase;
		border-bottom: none;
	}

	.gsfe-tree > .gsfe-tree__item.has-children > .gsfe-tree__row > .gsfe-tree__link .gsfe-tree__count {
		display: none;
	}

	.gsfe-tree > .gsfe-tree__item.has-children > .gsfe-tree .gsfe-tree {
		margin-left: 14px;
		padding-left: 10px;
		border-left: 1px solid var(--gsfe-border-soft);
	}

	.gsfe-tree--filters .gsfe-tree__item.is-active > .gsfe-tree__row .gsfe-tree__link {
		color: var(--gsfe-red);
		font-weight: 600;
	}

	.gsfe-tree > .gsfe-tree__item.has-brand-split > .gsfe-tree {
		display: none;
	}

	.gsfe-tree > .gsfe-tree__item.has-brand-split > .gsfe-tree__row {
		margin-bottom: 10px;
	}

	.gsfe-tree__brand-split {
		display: grid;
		grid-template-columns: 1fr;
		gap: 16px;
		align-items: start;
	}

	.gsfe-layout__filters .gsfe-tree__brand-split {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	}

	.gsfe-tree__brand-group {
		min-width: 0;
		padding: 12px;
		background: var(--gsfe-bg);
		border: 1px solid #edf0f4;
		border-radius: 6px;
		box-shadow: 0 1px 2px rgba(7, 17, 38, 0.04);
	}

	.gsfe-tree__brand-heading {
		display: flex;
		align-items: center;
		min-height: 30px;
		margin: 0 0 8px;
		padding: 6px 9px;
		background: var(--gsfe-bg-light);
		border-left: 3px solid var(--gsfe-gold);
		border-radius: 4px;
		color: var(--gsfe-dark-blue);
		font-size: 13px;
		font-weight: 700;
		line-height: 1.2;
		text-transform: uppercase;
	}

	.gsfe-tree__brand-group--watches .gsfe-tree__brand-heading {
		border-left-color: var(--gsfe-red);
	}

	.gsfe-tree__brand-group--other .gsfe-tree__brand-heading {
		border-left-color: var(--gsfe-border);
	}

	.gsfe-tree__brand-group > .gsfe-tree {
		display: block;
		max-height: 280px;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.gsfe-tree__brand-group .gsfe-tree > .gsfe-tree__item {
		margin-bottom: 0;
	}

	.gsfe-tree__brand-group .gsfe-tree__link {
		font-size: 14px;
	}

	.gsfe-tree__brand-group .gsfe-tree > .gsfe-tree__item.has-children > .gsfe-tree__row > .gsfe-tree__link {
		font-size: 14px;
		text-transform: none;
	}

	.gsfe-recently-viewed {
		margin-top: 28px;
	}

	.gsfe-recently-viewed__item a {
		grid-template-columns: 55px minmax(0, 1fr);
	}

	.gsfe-recently-viewed__item img {
		width: 55px;
		height: 55px;
	}
}

/* ========================================
   MOBILE BAR
   ======================================== */

.gsfe-mobile-bar {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	min-height: 60px;
	background-color: var(--gsfe-dark-blue);
	border-top: 1px solid var(--gsfe-border);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 9998;
	padding: 8px 10px max(8px, env(safe-area-inset-bottom));
	flex-direction: column;
	gap: 7px;
}

.gsfe-mobile-bar--has-utility {
	min-height: 102px;
}

@media (max-width: 767.98px) {
	.gsfe-mobile-bar {
		display: flex;
	}

	body.post-type-archive-product,
	body.woocommerce-shop,
	body.tax-product_cat,
	body.tax-product_tag {
		padding-bottom: calc(76px + env(safe-area-inset-bottom));
	}

	body.post-type-archive-product.gsfe-has-mobile-utility,
	body.woocommerce-shop.gsfe-has-mobile-utility,
	body.tax-product_cat.gsfe-has-mobile-utility,
	body.tax-product_tag.gsfe-has-mobile-utility {
		padding-bottom: calc(110px + env(safe-area-inset-bottom));
	}

	body.post-type-archive-product .woocommerce-ordering,
	body.woocommerce-shop .woocommerce-ordering,
	body.tax-product_cat .woocommerce-ordering,
	body.tax-product_tag .woocommerce-ordering {
		display: none;
	}

	body.post-type-archive-product .gsfe-mobile-bar .woocommerce-ordering,
	body.woocommerce-shop .gsfe-mobile-bar .woocommerce-ordering,
	body.tax-product_cat .gsfe-mobile-bar .woocommerce-ordering,
	body.tax-product_tag .gsfe-mobile-bar .woocommerce-ordering {
		display: flex;
	}

	body.post-type-archive-product .astra-shop-filter-button,
	body.post-type-archive-product .ast-shop-filter-button,
	body.post-type-archive-product .wc-block-product-filters__open-overlay,
	body.woocommerce-shop .astra-shop-filter-button,
	body.woocommerce-shop .ast-shop-filter-button,
	body.woocommerce-shop .wc-block-product-filters__open-overlay,
	body.tax-product_cat .astra-shop-filter-button,
	body.tax-product_cat .ast-shop-filter-button,
	body.tax-product_cat .wc-block-product-filters__open-overlay,
	body.tax-product_tag .astra-shop-filter-button,
	body.tax-product_tag .ast-shop-filter-button,
	body.tax-product_tag .wc-block-product-filters__open-overlay {
		display: none !important;
	}
}

.gsfe-mobile-bar__actions {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
	min-height: 46px;
}

.gsfe-mobile-bar__btn {
	display: flex;
	justify-content: center;
	align-items: center;
	min-width: 0;
	padding: 10px 8px;
	background: var(--gsfe-bg);
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 6px;
	color: var(--gsfe-dark-blue);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--gsfe-transition-fast);
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.gsfe-mobile-bar__btn--categories {
	border-color: rgba(220, 169, 66, 0.75);
}

.gsfe-mobile-bar__btn--filters {
	background: var(--gsfe-red);
	border-color: var(--gsfe-red);
	color: var(--gsfe-bg);
}

.gsfe-mobile-bar__btn:active {
	transform: translateY(1px);
}

.gsfe-mobile-bar__label {
	font-size: 13px;
	white-space: nowrap;
	line-height: 1.2;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.gsfe-mobile-bar__utility {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 8px;
	align-items: stretch;
	min-height: 35px;
}

.gsfe-mobile-bar__ordering {
	display: flex;
	align-items: center;
	min-width: 0;
	padding: 5px 8px;
	background: var(--gsfe-bg-light);
	border: 1px solid var(--gsfe-border);
	border-radius: 4px;
	color: var(--gsfe-text);
}

.gsfe-mobile-bar__ordering .woocommerce-ordering {
	width: 100%;
	margin: 0;
	align-items: center;
	gap: 8px;
}

.gsfe-mobile-bar__ordering .woocommerce-ordering label {
	flex: 0 0 auto;
	margin: 0;
	font-size: 12px;
	font-weight: 700;
	color: var(--gsfe-text);
	white-space: nowrap;
}

.gsfe-mobile-bar__ordering .woocommerce-ordering select {
	width: 100%;
	min-height: 28px;
	padding: 3px 26px 3px 8px;
	border: 1px solid transparent;
	background-color: transparent;
	color: var(--gsfe-text);
	font-size: 12px;
	line-height: 1.2;
}

.gsfe-mobile-bar__quick-actions {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	min-width: 0;
}

.gsfe-mobile-bar__quick-actions > :only-child {
	grid-column: 1 / -1;
}

.gsfe-mobile-bar__cart {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-width: 0;
	min-height: 35px;
	padding: 5px 10px;
	background: var(--gsfe-bg);
	border: 1px solid rgba(220, 169, 66, 0.85);
	border-radius: 4px;
	color: var(--gsfe-dark-blue);
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

.gsfe-mobile-bar__cart:hover,
.gsfe-mobile-bar__cart:focus {
	color: var(--gsfe-dark-blue);
	text-decoration: none;
}

.gsfe-mobile-bar__cart-icon {
	display: inline-flex;
	width: 16px;
	height: 16px;
}

.gsfe-mobile-bar__cart-icon svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: currentColor;
}

.gsfe-mobile-bar__whatsapp {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	width: 100%;
	min-width: 0;
	min-height: 38px;
	padding: 5px;
	background: var(--gsfe-whatsapp);
	border: 1px solid var(--gsfe-whatsapp);
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(37, 211, 102, 0.22);
	color: var(--gsfe-bg);
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	line-height: 1;
	text-decoration: none;
}

.gsfe-mobile-bar__whatsapp:hover,
.gsfe-mobile-bar__whatsapp:focus {
	background: var(--gsfe-whatsapp);
	border-color: var(--gsfe-whatsapp);
	box-shadow: 0 7px 16px rgba(37, 211, 102, 0.28);
	color: var(--gsfe-bg);
	text-decoration: none;
}

.gsfe-mobile-bar__whatsapp-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	transform: none;
}

.gsfe-mobile-bar__whatsapp-icon svg {
	display: block;
	width: 28px;
	height: 28px;
	fill: currentColor;
	overflow: visible;
}

/* ========================================
   DRAWER
   ======================================== */

.gsfe-drawer {
	display: flex;
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	max-width: 90vw;
	background-color: var(--gsfe-bg);
	box-shadow: var(--gsfe-shadow-lg);
	z-index: 10000;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform var(--gsfe-transition-drawer), visibility var(--gsfe-transition-drawer);
	will-change: transform;
	overflow: hidden;
	padding-bottom: env(safe-area-inset-bottom);
	visibility: hidden;
	pointer-events: none;
}

.gsfe-drawer.is-open {
	transform: translateX(0);
	visibility: visible;
	pointer-events: auto;
}

.gsfe-drawer__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px;
	border-bottom: 1px solid var(--gsfe-border);
	background-color: var(--gsfe-bg-light);
	flex-shrink: 0;
}

.gsfe-drawer--categories .gsfe-drawer__header {
	background: var(--gsfe-dark-blue);
}

.gsfe-drawer--filters .gsfe-drawer__header {
	background: var(--gsfe-red);
}

.gsfe-drawer__title {
	margin: 0;
	padding: 0;
	font-size: 16px;
	font-weight: 700;
	color: var(--gsfe-text);
}

.gsfe-drawer--categories .gsfe-drawer__title,
.gsfe-drawer--filters .gsfe-drawer__title,
.gsfe-drawer--categories .gsfe-drawer__close,
.gsfe-drawer--filters .gsfe-drawer__close {
	color: var(--gsfe-bg);
}

.gsfe-drawer__close {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	font-size: 24px;
	color: var(--gsfe-text);
	cursor: pointer;
	transition: all var(--gsfe-transition-fast);
	padding: 0;
	line-height: 1;
}

.gsfe-drawer__close:hover {
	opacity: 0.8;
}

.gsfe-drawer__body {
	flex: 1;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.gsfe-drawer__footer {
	flex-shrink: 0;
	padding: 10px 14px max(10px, env(safe-area-inset-bottom));
	border-top: 1px solid var(--gsfe-border);
	background: var(--gsfe-bg);
}

.gsfe-drawer__footer-close {
	width: 100%;
	min-height: 42px;
	border: none;
	border-radius: 4px;
	background: var(--gsfe-dark-blue);
	color: var(--gsfe-bg);
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.gsfe-drawer--filters .gsfe-drawer__footer-close {
	background: var(--gsfe-red);
}

/* Overlay */
.gsfe-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--gsfe-overlay-bg);
	z-index: 9999;
	opacity: 0;
	transition: opacity var(--gsfe-transition-drawer), visibility var(--gsfe-transition-drawer);
	visibility: hidden;
	pointer-events: none;
}

.gsfe-overlay.is-visible {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 767.98px) {
	.gsfe-categories__item a,
	.gsfe-filters__link,
	.gsfe-tree__link {
		padding: 10px 0;
		font-size: 15px;
	}

	.gsfe-tree__row {
		grid-template-columns: 42px minmax(0, 1fr);
		gap: 8px;
	}

	.gsfe-tree__toggle,
	.gsfe-tree__toggle-placeholder {
		width: 38px;
		height: 38px;
	}

	.gsfe-tree__toggle {
		background: rgba(220, 169, 66, 0.14);
		border: 1px solid rgba(220, 169, 66, 0.5);
		border-radius: 50%;
	}

	.gsfe-tree__toggle::before {
		border-top-width: 6px;
		border-bottom-width: 6px;
		border-left-width: 8px;
		border-left-color: var(--gsfe-dark-blue);
	}

	.gsfe-tree__item:not(.is-collapsed) > .gsfe-tree__row .gsfe-tree__toggle {
		background: var(--gsfe-gold);
		border-color: var(--gsfe-gold);
	}

	.gsfe-filters__title,
	.gsfe-categories__title {
		font-size: 15px;
	}

	.gsfe-drawer {
		max-width: 85vw;
	}

	.gsfe-drawer__body {
		padding: 12px;
		gap: 16px;
	}

	.gsfe-filters__price-input {
		font-size: 16px;
	}

	.gsfe-filters__section--mobile-price {
		display: flex;
	}

	.gsfe-filters__section--mobile-price form {
		margin: 0;
	}

	.gsfe-filters__section--mobile-price .price_slider_wrapper {
		display: flex;
		flex-direction: column;
		gap: 10px;
		padding-top: 4px;
	}

	.gsfe-filters__section--mobile-price .price_slider {
		margin: 6px 8px 4px;
		height: 4px;
		background: #e5e7eb;
		border-radius: 999px;
	}

	.gsfe-filters__section--mobile-price .ui-slider-range {
		background: var(--gsfe-gold);
	}

	.gsfe-filters__section--mobile-price .ui-slider-handle {
		top: -7px;
		width: 18px;
		height: 18px;
		border: 2px solid var(--gsfe-dark-blue);
		border-radius: 50%;
		background: var(--gsfe-bg);
	}

	.gsfe-filters__section--mobile-price .price_slider_amount {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
		align-items: center;
	}

	.gsfe-filters__section--mobile-price .price_slider_amount input {
		width: 100%;
		min-height: 38px;
		padding: 8px 10px;
		border: 1px solid var(--gsfe-border);
		border-radius: 4px;
		color: var(--gsfe-text);
		font-size: 14px;
	}

	.gsfe-filters__section--mobile-price .price_label {
		grid-column: 1 / -1;
		color: var(--gsfe-text-light);
		font-size: 13px;
		line-height: 1.35;
	}

	.gsfe-filters__section--mobile-price .clear {
		display: none;
	}

	.gsfe-filters__section--mobile-price .button {
		grid-column: 1 / -1;
		width: 100%;
		min-height: 40px;
		border: none;
		border-radius: 4px;
		background: var(--gsfe-red);
		color: var(--gsfe-bg);
		font-size: 14px;
		font-weight: 700;
	}

	.gsfe-active-filters__container {
		padding: 8px 0;
	}

	.gsfe-recently-viewed__item:nth-child(n+3) {
		display: none;
	}
}

@media (max-width: 480px) {
	.gsfe-drawer {
		max-width: 100vw;
	}

	.gsfe-mobile-bar {
		min-height: 58px;
	}

	.gsfe-mobile-bar--has-utility {
		min-height: 100px;
	}

	.gsfe-mobile-bar__label {
		font-size: 12px;
	}

	.gsfe-active-filters__chip {
		font-size: 12px;
		padding: 5px 10px;
	}
}

/* ========================================
   UTILITY
   ======================================== */

.gsfe-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Previeni overflow quando il drawer è aperto */
body.gsfe-drawer-open {
	overflow: hidden;
}
