/**
 * PC Precision — Catalogo shop / categorie
 * Filtri sidebar testuali, palette #1a1a1a + var(--pcp-primary, #2563eb)
 */

:root {
	--pcp-cat-green: var(--pcp-primary, #2563eb);
	--pcp-cat-green-dark: var(--pcp-primary-dark, #1e3a8a);
	--pcp-cat-black: #1a1a1a;
	--pcp-cat-bg: #f4f6f8;
	--pcp-cat-card: #fff;
	--pcp-cat-border: #dde3ea;
	--pcp-cat-text: #1a1a1a;
	--pcp-cat-muted: #5c6578;
	--pcp-cat-radius: 12px;
	--pcp-cat-shadow: 0 8px 28px rgba(16, 24, 40, 0.08);
}

body.pcp-catalog-active {
	background: #fff;
}

body.pcp-catalog-active .site-content,
body.pcp-catalog-active .content-area,
body.pcp-catalog-active .woocommerce {
	background: transparent;
}

/* ── Intestazione categoria (stile Drako) ── */
body.pcp-catalog-active .elementor-widget-wd_wc_breadcrumb,
body.pcp-catalog-active .wd-el-breadcrumbs:not(.pcp-catalog-header__breadcrumbs) {
	display: none !important;
}

.pcp-catalog-header {
	margin: 0 0 1.25rem;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0;
	background: transparent;
	color: var(--pcp-cat-text);
	clear: both;
}

body.pcp-catalog-active .main-page-shop > .bzotech-container > .pcp-catalog-header,
body.pcp-catalog-active .main-page-shop .bzotech-container > .pcp-catalog-header--relocated {
	margin: 0 0 1.25rem;
	width: 100%;
	max-width: 100%;
}

.pcp-catalog-header__inner {
	max-width: 1200px;
	margin: 0 auto;
}

.pcp-catalog-header__breadcrumbs {
	margin: 0 0 0.65rem;
	padding: 0 !important;
	background: transparent !important;
	border-radius: 0 !important;
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--pcp-cat-muted) !important;
}

.pcp-catalog-header__breadcrumbs a {
	color: var(--pcp-cat-muted) !important;
	text-decoration: none;
}

.pcp-catalog-header__breadcrumbs a:hover {
	color: var(--pcp-cat-green) !important;
}

.pcp-catalog-header__breadcrumbs .breadcrumb-last,
.pcp-catalog-header__breadcrumbs li:last-child,
.pcp-catalog-header__breadcrumbs li:last-child a {
	color: var(--pcp-cat-text) !important;
}

.pcp-catalog-header__title {
	margin: 0 0 0.5rem;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 700;
	line-height: 1.2;
	color: var(--pcp-cat-text) !important;
	-webkit-text-fill-color: var(--pcp-cat-text) !important;
	text-shadow: none;
}

.pcp-catalog-header__lead {
	margin: 0 0 0.75rem;
	max-width: 720px;
	font-size: 0.9375rem;
	line-height: 1.55;
	color: var(--pcp-cat-muted) !important;
	-webkit-text-fill-color: var(--pcp-cat-muted) !important;
}

/* ── Sottocategorie testuali ── */
.pcp-catalog-subcats--text {
	margin: 0 0 1.5rem;
}

.pcp-catalog-subcats__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 0.5rem;
}

.pcp-catalog-subcats__link {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.75rem 1rem;
	background: var(--pcp-cat-card);
	border: 1px solid var(--pcp-cat-border);
	border-radius: 10px;
	text-decoration: none !important;
	color: var(--pcp-cat-text) !important;
	font-weight: 600;
	font-size: 0.9rem;
	transition: border-color 0.2s ease, background 0.2s ease;
}

.pcp-catalog-subcats__icon {
	width: 40px;
	height: 40px;
	border-radius: 10px;
	background: rgba(37, 99, 235, 0.08);
}

.pcp-catalog-subcats__icon img {
	object-fit: cover;
}

.pcp-catalog-subcats__name {
	flex: 1;
	min-width: 0;
}

.pcp-catalog-subcats__link:hover {
	border-color: rgba(37, 99, 235, 0.4);
	background: rgba(37, 99, 235, 0.04);
	color: var(--pcp-cat-green-dark) !important;
}

.pcp-catalog-subcats__count {
	margin-left: auto;
	font-size: 0.78rem;
	font-weight: 500;
	color: var(--pcp-cat-muted);
	white-space: nowrap;
}

/* ── Sidebar filtri unificata ── */
body.pcp-catalog-active .sidebar-left,
body.pcp-catalog-active .sidebar.sidebar-left,
body.pcp-catalog-active .wd-sidebar,
body.pcp-catalog-active .sidebar-container,
body.pcp-catalog-active .wd-shop-sidebar,
body.pcp-catalog-active aside.sidebar,
body.pcp-catalog-active [class*="wd-col-offcanvas"],
body.pcp-catalog-active .elementor-widget-wd_sidebar {
	background: transparent;
	border: 0;
	padding: 0;
	box-shadow: none;
}

body.pcp-catalog-active .sidebar-left .pcp-catalog-filters-mount,
body.pcp-catalog-active .wd-sidebar .pcp-catalog-filters-mount,
body.pcp-catalog-active .sidebar-container .pcp-catalog-filters-mount,
body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filters-mount,
body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filters-mount {
	display: block !important;
	visibility: visible !important;
	opacity: 1 !important;
}

/* Contrasto testo filtri — override tema scuro globale */
body.pcp-catalog-active .pcp-catalog-filters,
body.pcp-catalog-active .pcp-catalog-filters-mount {
	color: var(--pcp-cat-text) !important;
	-webkit-text-fill-color: var(--pcp-cat-text) !important;
}

body.pcp-catalog-active .pcp-catalog-filters :is(
	.pcp-catalog-filter-section__head,
	.pcp-catalog-nav__root,
	.pcp-catalog-nav__child-link,
	.pcp-catalog-nav__label,
	.pcp-catalog-brands__option,
	.pcp-catalog-brands__name,
	.pcp-catalog-price__field span,
	.pcp-catalog-price__hint,
	.pcp-catalog-nav__count,
	.pcp-catalog-brands__count,
	.pcp-catalog-active-filters__label
) {
	color: var(--pcp-cat-text) !important;
	-webkit-text-fill-color: var(--pcp-cat-text) !important;
}

body.pcp-catalog-active .pcp-catalog-nav__child-link,
body.pcp-catalog-active .pcp-catalog-nav__count,
body.pcp-catalog-active .pcp-catalog-brands__count,
body.pcp-catalog-active .pcp-catalog-price__hint,
body.pcp-catalog-active .pcp-catalog-active-filters__label {
	color: var(--pcp-cat-muted) !important;
	-webkit-text-fill-color: var(--pcp-cat-muted) !important;
}

body.pcp-catalog-active .pcp-catalog-nav__root.is-active,
body.pcp-catalog-active .pcp-catalog-nav__child-link.is-active,
body.pcp-catalog-active .pcp-catalog-brands__option.is-active,
body.pcp-catalog-active .pcp-catalog-filter-section.is-open > .pcp-catalog-filter-section__head {
	color: var(--pcp-cat-green-dark) !important;
	-webkit-text-fill-color: var(--pcp-cat-green-dark) !important;
}

body.pcp-catalog-active .pcp-catalog-filters__title {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

/* Nascondi filtri duplicati WoodMart / WooCommerce */
body.pcp-catalog-active .wd-product-category-filter,
body.pcp-catalog-active .widget_product_categories,
body.pcp-catalog-active .wd-widget-layered-nav,
body.pcp-catalog-active .wd-widget-price-filter {
	display: none !important;
}

.pcp-catalog-filters-mount {
	width: 100%;
}

.pcp-catalog-filters {
	background: var(--pcp-cat-card);
	border: 1px solid var(--pcp-cat-border);
	border-radius: 0;
	box-shadow: var(--pcp-cat-shadow);
	overflow: hidden;
}

.pcp-catalog-filters__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	padding: 1rem 1.1rem;
	background: var(--pcp-cat-black);
	color: #fff;
}

body.pcp-catalog-active .pcp-catalog-filters__header,
body.pcp-catalog-active .main-page-wrapper .wd-content-area .pcp-catalog-filters__header {
	background: var(--pcp-cat-black) !important;
	color: #fff !important;
}

body.pcp-catalog-active .pcp-catalog-filters__header :is(
	h2.pcp-catalog-filters__title,
	.pcp-catalog-filters__title,
	.pcp-catalog-filters__close,
	.pcp-catalog-filters__close svg
) {
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.pcp-catalog-filters__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: #fff !important;
	-webkit-text-fill-color: #fff !important;
}

.pcp-catalog-filters__close {
	display: none;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: rgba(255, 255, 255, 0.1);
	color: #fff;
	cursor: pointer;
}

.pcp-catalog-filters__close:hover {
	background: rgba(37, 99, 235, 0.35);
}

/* Sezioni accordion */
.pcp-catalog-filter-section {
	border-top: 1px solid var(--pcp-cat-border);
}

.pcp-catalog-filter-section:first-of-type {
	border-top: 0;
}

.pcp-catalog-filter-section__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 0.9rem 1.1rem;
	border: 0;
	background: #fafbfc;
	color: var(--pcp-cat-text);
	font-size: 0.92rem;
	font-weight: 800;
	cursor: pointer;
	text-align: left;
	transition: background 0.2s ease;
}

.pcp-catalog-filter-section__head:hover,
.pcp-catalog-filter-section.is-open > .pcp-catalog-filter-section__head {
	background: rgba(37, 99, 235, 0.06);
	color: var(--pcp-cat-green-dark);
}

.pcp-catalog-filter-section__head svg {
	flex-shrink: 0;
	transition: transform 0.2s ease;
}

.pcp-catalog-filter-section.is-open > .pcp-catalog-filter-section__head svg,
.pcp-catalog-nav__group.is-open > .pcp-catalog-nav__head .pcp-catalog-nav__toggle svg {
	transform: rotate(180deg);
}

.pcp-catalog-filter-section__body {
	padding: 0.65rem 1.1rem 1rem;
}

.pcp-catalog-filter-section__body[hidden] {
	display: none;
}

.pcp-catalog-filter-section.is-open > .pcp-catalog-filter-section__body {
	display: block;
}

.pcp-catalog-brands__list:not(:empty) {
	min-height: 1.5rem;
}

/* Nav categorie nella sidebar */
.pcp-catalog-nav {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.pcp-catalog-nav__group {
	border-radius: 0;
}

.pcp-catalog-nav__head {
	display: flex;
	align-items: center;
	gap: 0.25rem;
}

.pcp-catalog-nav__root {
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0;
	padding: 0.45rem 0.55rem;
	border-radius: 0;
	font-weight: 700;
	font-size: 0.9rem;
	color: var(--pcp-cat-text) !important;
	text-decoration: none !important;
	min-width: 0;
}

.pcp-catalog-nav__label {
	flex: 1;
	min-width: 0;
}

.pcp-catalog-nav__icon,
.pcp-catalog-term-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	border-radius: 0;
	background: rgba(37, 99, 235, 0.08);
	overflow: hidden;
}

.pcp-catalog-nav__icon--sm,
.pcp-catalog-term-icon.pcp-catalog-nav__icon--sm {
	width: 26px;
	height: 26px;
	border-radius: 0;
}

.pcp-catalog-nav__icon img,
.pcp-catalog-term-icon img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pcp-catalog-nav__icon svg,
.pcp-catalog-term-icon svg {
	width: 18px;
	height: 18px;
	color: var(--pcp-cat-green-dark);
}

.pcp-catalog-nav__icon--sm svg,
.pcp-catalog-term-icon.pcp-catalog-nav__icon--sm svg {
	width: 14px;
	height: 14px;
}

.pcp-catalog-nav__child-link {
	display: flex;
	align-items: center;
	gap: 0;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--pcp-cat-muted) !important;
	text-decoration: none !important;
	padding: 0.35rem 0.2rem;
	border-radius: 0;
}

.pcp-catalog-nav__child-link:hover,
.pcp-catalog-nav__child-link.is-active {
	color: var(--pcp-cat-green-dark) !important;
	background: rgba(37, 99, 235, 0.05);
}

.pcp-catalog-nav__root:hover,
.pcp-catalog-nav__root.is-active {
	background: rgba(37, 99, 235, 0.08);
	color: var(--pcp-cat-green-dark) !important;
}

.pcp-catalog-nav__toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--pcp-cat-muted);
	cursor: pointer;
	flex-shrink: 0;
}

.pcp-catalog-nav__toggle:hover {
	background: rgba(37, 99, 235, 0.1);
	color: var(--pcp-cat-green-dark);
}

.pcp-catalog-nav__children {
	list-style: none;
	margin: 0.15rem 0 0.35rem 0.5rem;
	padding: 0 0 0 0.65rem;
	border-left: 2px solid rgba(37, 99, 235, 0.2);
}

.pcp-catalog-nav__children[hidden] {
	display: none;
}

.pcp-catalog-nav__children li {
	margin: 0 0 0.2rem;
}

.pcp-catalog-nav__children a {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--pcp-cat-muted) !important;
	text-decoration: none !important;
}

.pcp-catalog-nav__children a:hover,
.pcp-catalog-nav__children a.is-active,
.pcp-catalog-nav__children .pcp-catalog-nav__child-link:hover,
.pcp-catalog-nav__children .pcp-catalog-nav__child-link.is-active {
	color: var(--pcp-cat-green-dark) !important;
}

.pcp-catalog-nav__count,
.pcp-catalog-brands__count {
	color: var(--pcp-cat-muted);
	font-size: 0.78rem;
	font-weight: 500;
}

/* Marche — checkbox con conteggio */
.pcp-catalog-brands__list {
	list-style: none;
	margin: 0;
	padding: 0;
	max-height: 280px;
	overflow-y: auto;
}

.pcp-catalog-brands__item {
	margin: 0;
}

.pcp-catalog-brands__option {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.45rem 0;
	color: var(--pcp-cat-text) !important;
	text-decoration: none !important;
	font-weight: 600;
	font-size: 0.88rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pcp-catalog-brands__logo {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 24px;
	padding: 2px 4px;
	border-radius: 0;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.pcp-catalog-brands__logo img {
	display: block !important;
	width: auto !important;
	max-width: 100% !important;
	height: 18px !important;
	max-height: 18px !important;
	object-fit: contain !important;
	opacity: 1 !important;
	visibility: visible !important;
	filter: none !important;
}

.pcp-catalog-brands__checkbox {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	border: 2px solid var(--pcp-cat-border);
	border-radius: 0;
	background: #fff;
	position: relative;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.pcp-catalog-brands__option.is-active .pcp-catalog-brands__checkbox {
	border-color: var(--pcp-cat-green);
	background: var(--pcp-cat-green);
}

.pcp-catalog-brands__option.is-active .pcp-catalog-brands__checkbox::after {
	content: "";
	position: absolute;
	left: 4px;
	top: 1px;
	width: 4px;
	height: 8px;
	border: solid #fff;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.pcp-catalog-brands__name {
	flex: 1;
	min-width: 0;
	color: var(--pcp-cat-text) !important;
	-webkit-text-fill-color: var(--pcp-cat-text) !important;
}

.pcp-catalog-brands__option:hover,
.pcp-catalog-brands__option.is-active {
	color: var(--pcp-cat-green-dark) !important;
}

.pcp-catalog-brands__option:hover .pcp-catalog-brands__name,
.pcp-catalog-brands__option.is-active .pcp-catalog-brands__name {
	color: var(--pcp-cat-green-dark) !important;
	-webkit-text-fill-color: var(--pcp-cat-green-dark) !important;
}

.pcp-catalog-brands__reset {
	display: inline-block;
	margin-top: 0.65rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--pcp-cat-green-dark) !important;
	text-decoration: none !important;
}

.pcp-catalog-brands__empty {
	margin: 0;
	font-size: 0.85rem;
	color: var(--pcp-cat-muted);
}

/* Prezzo */
.pcp-catalog-price__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.65rem;
}

.pcp-catalog-price__field {
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
}

.pcp-catalog-price__field span {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--pcp-cat-muted);
	text-transform: uppercase;
}

.pcp-catalog-price__field input {
	width: 100%;
	padding: 0.55rem 0.65rem;
	border: 1px solid var(--pcp-cat-border) !important;
	border-radius: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--pcp-cat-text) !important;
	-webkit-text-fill-color: var(--pcp-cat-text) !important;
	background: #fff !important;
	background-color: #fff !important;
	color-scheme: light;
	box-shadow: none;
}

.pcp-catalog-price__field input::placeholder {
	color: var(--pcp-cat-muted) !important;
	-webkit-text-fill-color: var(--pcp-cat-muted) !important;
	opacity: 1;
}

.pcp-catalog-price__field input:focus {
	outline: none;
	border-color: var(--pcp-cat-green) !important;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.pcp-catalog-price__hint {
	margin: 0.5rem 0 0.75rem;
	font-size: 0.78rem;
	color: var(--pcp-cat-muted);
}

.pcp-catalog-price__submit {
	display: block;
	width: 100%;
	padding: 0.65rem 1rem;
	border: 0;
	border-radius: 0;
	background: var(--pcp-cat-green);
	color: #fff;
	font-size: 0.88rem;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.2s ease;
}

.pcp-catalog-price__submit:hover {
	background: var(--pcp-cat-green-dark);
}

.pcp-catalog-price__reset {
	display: inline-block;
	margin-top: 0.65rem;
	font-size: 0.82rem;
	font-weight: 700;
	color: var(--pcp-cat-green-dark) !important;
	text-decoration: none !important;
}

/* Filtri attivi */
.pcp-catalog-active-filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.1rem;
	background: rgba(37, 99, 235, 0.05);
	border-bottom: 1px solid var(--pcp-cat-border);
}

.pcp-catalog-active-filters__label {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--pcp-cat-muted);
}

.pcp-catalog-active-filters__chip {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.35rem 0.65rem;
	border-radius: 0;
	background: var(--pcp-cat-black);
	color: #fff !important;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none !important;
}

.pcp-catalog-active-filters__chip span {
	opacity: 0.8;
	font-size: 1rem;
	line-height: 1;
}

.pcp-catalog-active-filters__clear {
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--pcp-cat-green-dark) !important;
	text-decoration: none !important;
}

/* Footer drawer mobile */
.pcp-catalog-filters__footer {
	display: none;
}

.pcp-catalog-filters__reset,
.pcp-catalog-filters__apply {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 0.75rem 1.25rem;
	border-radius: 0;
	font-size: 0.92rem;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pcp-catalog-filters__reset {
	flex: 0 0 auto;
	padding-left: 1rem;
	padding-right: 1rem;
	border: 1px solid var(--pcp-cat-border);
	background: #fff;
	color: var(--pcp-cat-text) !important;
}

.pcp-catalog-filters__reset:hover {
	border-color: var(--pcp-cat-green);
	color: var(--pcp-cat-green-dark) !important;
}

.pcp-catalog-filters__apply {
	flex: 1;
	border: 0;
	background: var(--pcp-cat-green);
	color: #fff !important;
}

.pcp-catalog-filters__apply:hover {
	background: var(--pcp-cat-green-dark);
}

.pcp-catalog-filters__handle {
	display: none;
}

/* Toolbar mobile */
.pcp-catalog-toolbar {
	display: none;
	margin: 0 0 1rem;
}

.pcp-catalog-toolbar__filters {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.65rem 1.1rem;
	border: 2px solid var(--pcp-cat-green);
	border-radius: 0;
	background: var(--pcp-cat-black);
	color: #fff;
	font-size: 0.9rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.pcp-catalog-toolbar__filters:hover {
	background: #252525;
	border-color: #00c255;
}

.pcp-catalog-toolbar__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 20px;
	height: 20px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--pcp-cat-green);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	line-height: 1;
}

.pcp-catalog-filters-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(26, 26, 26, 0.6);
	z-index: 9998;
	backdrop-filter: blur(3px);
	opacity: 0;
	transition: opacity 0.28s ease;
	pointer-events: none;
}

body.pcp-catalog-filters-open .pcp-catalog-filters-backdrop {
	opacity: 1;
	pointer-events: auto;
}

.pcp-catalog-filters-backdrop[hidden] {
	display: none;
}

/* Toolbar shop */
body.pcp-catalog-active .shop-toolbar,
body.pcp-catalog-active .woocommerce-shop-toolbar,
body.pcp-catalog-active .bzotech-shop-toolbar,
body.pcp-catalog-active .elbzotech-shop-toolbar {
	color: var(--pcp-cat-text) !important;
}

body.pcp-catalog-active .shop-toolbar h2,
body.pcp-catalog-active .woocommerce-shop-toolbar h2,
body.pcp-catalog-active .bzotech-shop-toolbar h2 {
	color: var(--pcp-cat-text) !important;
}

body.pcp-catalog-active.tax-product_cat .woocommerce-products-header {
	display: none;
}

body.pcp-catalog-active .woocommerce-ordering select,
body.pcp-catalog-active .woocommerce-result-count {
	color: var(--pcp-cat-text) !important;
}

/* Griglia prodotti */
body.pcp-catalog-active ul.products li.product {
	background: var(--pcp-cat-card);
	border: 1px solid var(--pcp-cat-border);
	border-radius: var(--pcp-cat-radius);
	padding: 0.75rem !important;
	box-shadow: var(--pcp-cat-shadow);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.pcp-catalog-active ul.products li.product:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(16, 24, 40, 0.1);
}

body.pcp-catalog-active ul.products li.product .woocommerce-loop-product__title,
body.pcp-catalog-active ul.products li.product h2,
body.pcp-catalog-active ul.products li.product .product-title {
	color: var(--pcp-cat-text) !important;
}

body.pcp-catalog-active .woocommerce-pagination {
	margin-top: 2rem;
}

/* Nascondi widget prezzo tema duplicato */
body.pcp-catalog-active .widget_price_filter {
	display: none !important;
}

@media (max-width: 991px) {
	body.pcp-catalog-active .sidebar-left {
		margin-bottom: 0;
	}

	.pcp-catalog-toolbar {
		display: block;
	}

	/* WoodMart / Elementor off-canvas: filtri restano nella colonna sidebar */
	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-filters-mount,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-filters-mount,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-filters-mount,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filters-mount,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filters-mount {
		display: block !important;
		position: static !important;
		inset: auto !important;
		width: 100% !important;
		pointer-events: auto !important;
		z-index: auto !important;
		transform: none !important;
	}

	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-filters,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-filters,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-filters,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filters,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filters {
		transform: none !important;
		max-height: none !important;
		border-radius: 0 !important;
		box-shadow: none !important;
		border: 0 !important;
		background: #fff !important;
		color: var(--pcp-cat-text) !important;
	}

	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-filters__handle,
	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-filters__header,
	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-filters__footer,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-filters__handle,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-filters__header,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-filters__handle,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-filters__header,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filters__handle,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filters__header,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filters__handle,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filters__header,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-filters__footer,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-filters__footer,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filters__footer,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filters__footer {
		display: none !important;
	}

	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-filters__scroll,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-filters__scroll,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-filters__scroll,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filters__scroll,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filters__scroll {
		overflow: visible !important;
		max-height: none !important;
	}

	/* Fallback drawer custom (senza sidebar WoodMart) */
	body.pcp-catalog-active:not(.pcp-has-wd-sidebar) .pcp-catalog-filters-mount {
		position: fixed;
		inset: 0;
		z-index: 9999;
		display: flex;
		align-items: flex-end;
		justify-content: center;
		pointer-events: none;
	}

	body.pcp-catalog-filters-open:not(.pcp-has-wd-sidebar) .pcp-catalog-filters-mount {
		pointer-events: auto;
	}

	body.pcp-catalog-filters-open:not(.pcp-has-wd-sidebar) {
		overflow: hidden;
	}

	body.pcp-catalog-active:not(.pcp-has-wd-sidebar) .pcp-catalog-filters {
		width: 100%;
		max-height: min(92vh, 720px);
		border-radius: 0;
		border-bottom: 0;
		display: flex;
		flex-direction: column;
		overflow: hidden;
		transform: translateY(105%);
		transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
		box-shadow: 0 -12px 40px rgba(16, 24, 40, 0.18);
	}

	body.pcp-catalog-filters-open:not(.pcp-has-wd-sidebar) .pcp-catalog-filters {
		transform: translateY(0);
	}

	body.pcp-catalog-filters-open:not(.pcp-has-wd-sidebar) .pcp-catalog-filters__handle {
		display: block;
		width: 40px;
		height: 4px;
		margin: 0.55rem auto 0;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.35);
		flex-shrink: 0;
	}

	body.pcp-catalog-filters-open:not(.pcp-has-wd-sidebar) .pcp-catalog-filters__header {
		padding-top: 0.35rem;
		flex-shrink: 0;
	}

	body.pcp-catalog-filters-open:not(.pcp-has-wd-sidebar) .pcp-catalog-filters__close {
		display: inline-flex;
	}

	body.pcp-catalog-filters-open:not(.pcp-has-wd-sidebar) .pcp-catalog-filters__scroll {
		flex: 1;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
		overscroll-behavior: contain;
	}

	body.pcp-catalog-filters-open:not(.pcp-has-wd-sidebar) .pcp-catalog-filters__footer {
		display: flex;
		gap: 0.65rem;
		padding: 0.85rem 1.1rem;
		padding-bottom: calc(0.85rem + env(safe-area-inset-bottom, 0px));
		border-top: 1px solid var(--pcp-cat-border);
		background: #fff;
		flex-shrink: 0;
		box-shadow: 0 -4px 16px rgba(16, 24, 40, 0.06);
	}

	.pcp-catalog-filter-section__head {
		padding: 1rem 1.1rem;
		font-size: 0.95rem;
		background: #fff;
		border-bottom: 1px solid rgba(0, 0, 0, 0.04);
	}

	.pcp-catalog-filter-section.is-open > .pcp-catalog-filter-section__head {
		background: rgba(37, 99, 235, 0.06);
		border-left: 3px solid var(--pcp-cat-green);
		padding-left: calc(1.1rem - 3px);
	}

	.pcp-catalog-filter-section__body {
		padding: 0.75rem 1.1rem 1.1rem;
	}

	.pcp-catalog-brands__list {
		max-height: none;
	}

	/* Solo layout Bzotech legacy */
	body.pcp-catalog-active .sidebar-left {
		display: none !important;
	}

	/* Testo scuro dentro sidebar WoodMart / Elementor (tema globale scuro) */
	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-filters,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-filters,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-filters,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filters,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filters {
		background: #fff !important;
		color: var(--pcp-cat-text) !important;
	}

	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-filter-section__head,
	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-nav__root,
	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-nav__child-link,
	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-nav__label,
	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-brands__option,
	body.pcp-catalog-active.pcp-has-wd-sidebar .pcp-catalog-brands__name,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-filter-section__head,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-nav__root,
	body.pcp-catalog-active .wd-sidebar .pcp-catalog-nav__child-link,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-filter-section__head,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-nav__root,
	body.pcp-catalog-active .sidebar-container .pcp-catalog-nav__child-link,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filter-section__head,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-nav__root,
	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-nav__child-link,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filter-section__head,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-nav__root,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-nav__child-link {
		color: var(--pcp-cat-text) !important;
		-webkit-text-fill-color: var(--pcp-cat-text) !important;
	}
}

@media (min-width: 992px) {
	body.pcp-catalog-active .pcp-catalog-filters-mount {
		display: block !important;
	}

	body.pcp-catalog-active [class*="wd-col-offcanvas"] .pcp-catalog-filters,
	body.pcp-catalog-active .elementor-widget-wd_sidebar .pcp-catalog-filters {
		background: var(--pcp-cat-card) !important;
		border: 1px solid var(--pcp-cat-border) !important;
		border-radius: 0 !important;
		box-shadow: var(--pcp-cat-shadow) !important;
	}
}

/* Override tema scuro globale — input prezzo e marche nel pannello filtri */
body.pcp-catalog-active .pcp-catalog-filters .pcp-catalog-price__field :is(input[type="number"], input[type="text"]) {
	background: #fff !important;
	background-color: #fff !important;
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
	border: 1px solid var(--pcp-cat-border) !important;
	color-scheme: light;
	caret-color: #1a1a1a;
}

body.pcp-catalog-active .pcp-catalog-filters .pcp-catalog-price__field input::placeholder {
	color: #5c6578 !important;
	-webkit-text-fill-color: #5c6578 !important;
	opacity: 1;
}

body.pcp-catalog-active .pcp-catalog-filters .pcp-catalog-brands__option,
body.pcp-catalog-active .pcp-catalog-filters .pcp-catalog-brands__name,
body.pcp-catalog-active .pcp-catalog-filters .pcp-catalog-brands__count {
	color: #1a1a1a !important;
	-webkit-text-fill-color: #1a1a1a !important;
}

body.pcp-catalog-active .pcp-catalog-filters .pcp-catalog-brands__count {
	color: #5c6578 !important;
	-webkit-text-fill-color: #5c6578 !important;
}

body.pcp-catalog-active .pcp-catalog-filters .pcp-catalog-brands__option.is-active,
body.pcp-catalog-active .pcp-catalog-filters .pcp-catalog-brands__option.is-active .pcp-catalog-brands__name {
	color: var(--pcp-cat-green-dark) !important;
	-webkit-text-fill-color: var(--pcp-cat-green-dark) !important;
}

@media (max-width: 767px) {
	.pcp-catalog-subcats__list {
		grid-template-columns: 1fr;
	}
}

/* ── Nomi categorie shop in maiuscolo (non breadcrumb) ── */
.pcp-catalog-header__title,
body.pcp-catalog-active .pcp-catalog-header :is(h1, .pcp-catalog-header__title),
.pcp-catalog-subcats__name,
.pcp-catalog-nav__label,
.pcp-catalog-nav__root,
.pcp-catalog-nav__child-link,
.pcp-catalog-nav__children a,
body.pcp-catalog-active :is(
	.product-category .woocommerce-loop-category__title,
	.products .product-category h2,
	.wd-cat .wd-entities-title,
	.category-grid-item .wd-entities-title,
	.elementor-widget-wd_product_categories .wd-entities-title,
	.product-categories a,
	.widget_product_categories a
) {
	text-transform: uppercase;
}
