/* Shop Evolution – stile negozio (sopra il tema Kadence; i colori vengono dalla palette globale) */

/* ---------- Header ---------- */
.nextit-usp {
	display: flex; flex-wrap: wrap; gap: .25rem 1.75rem; justify-content: center;
	margin: 0; padding: 0; list-style: none; font-size: .8rem; letter-spacing: .01em;
}
.nextit-usp li { display: flex; align-items: center; gap: .4rem; }
.nextit-usp li::before {
	content: ""; width: 14px; height: 14px; flex: none;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}
@media (max-width: 767px) { .nextit-usp li:nth-child(n+3) { display: none; } }

.site-header-item .header-html, .header-html-inner { width: 100%; }
.nextit-search {
	display: flex; align-items: stretch; width: 100%; max-width: 640px; margin: 0 auto;
	border: 2px solid var(--global-palette1); border-radius: 10px; overflow: hidden; background: #fff;
}
.nextit-search input[type="search"] {
	flex: 1; min-width: 0; border: 0; padding: .7rem 1rem; font-size: .95rem; background: transparent;
	box-shadow: none; outline: none; border-radius: 0;
}
.nextit-search button {
	border: 0; border-radius: 0; padding: 0 1.1rem; background: var(--global-palette1); color: #fff; cursor: pointer;
	display: flex; align-items: center;
}
.nextit-search button:hover { background: var(--global-palette2); }
.site-main-header-wrap .site-header-row-container-inner { border-bottom: 1px solid var(--global-palette7); }

/* ---------- Griglia prodotti ---------- */
.woocommerce ul.products li.product .woocommerce-loop-product__link img,
.woocommerce ul.products li.product a img {
	aspect-ratio: 1 / 1; width: 100%; object-fit: contain; background: #fff; padding: 12px;
}
.woocommerce ul.products li.product.content-bg,
.woocommerce ul.products.woo-archive-action-on-hover li.product {
	border: 1px solid var(--global-palette7); border-radius: 12px; overflow: visible;
	box-shadow: none; transition: box-shadow .2s, border-color .2s, transform .2s;
}
.woocommerce ul.products li.product:hover {
	border-color: transparent; box-shadow: 0 10px 28px rgba(16, 24, 40, .12); transform: translateY(-2px);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-size: .95rem; line-height: 1.35; font-weight: 600; color: var(--global-palette3);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
.woocommerce ul.products li.product .price {
	font-size: 1.25rem; font-weight: 800; color: var(--global-palette3);
}
.woocommerce ul.products li.product .price .woocommerce-price-suffix {
	font-size: .7rem; font-weight: 500; color: var(--global-palette6); margin-left: .15rem;
}
.nextit-keyspecs {
	margin: .2rem 0 .5rem; font-size: .8rem; line-height: 1.4; color: var(--global-palette5);
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nextit-cond {
	display: inline-block; margin: .1rem 0 .25rem; padding: .15rem .55rem; border-radius: 999px;
	font-size: .7rem; font-weight: 600; letter-spacing: .02em;
}
.nextit-cond.is-new { background: #e6f4ea; color: #1e6b34; }
.nextit-cond.is-refurb { background: #e8f0fe; color: #1a4fb8; }
.single-product .nextit-cond { font-size: .8rem; }

/* ---------- Sidebar filtri ---------- */
.primary-sidebar .widget { margin-bottom: 1.25rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--global-palette7); }
.primary-sidebar .widget:last-child { border-bottom: 0; }
.primary-sidebar .widget-title, .primary-sidebar .widgettitle {
	font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
	color: var(--global-palette3); margin-bottom: .6rem;
}
.primary-sidebar .woocommerce-widget-layered-nav-list,
.primary-sidebar .product-categories { max-height: 260px; overflow-y: auto; margin: 0; padding: 0 .25rem 0 0; }
.primary-sidebar .woocommerce-widget-layered-nav-list__item,
.primary-sidebar .product-categories li { font-size: .9rem; padding: .18rem 0; list-style: none; }
.primary-sidebar .woocommerce-widget-layered-nav-list__item a { color: var(--global-palette4); text-decoration: none; }
.primary-sidebar .woocommerce-widget-layered-nav-list__item a::before {
	content: ""; display: inline-block; width: 15px; height: 15px; margin-right: .5rem; vertical-align: -2px;
	border: 1.5px solid var(--global-palette6); border-radius: 4px; background: #fff;
}
.primary-sidebar .woocommerce-widget-layered-nav-list__item--chosen a::before {
	border-color: var(--global-palette1);
	background: var(--global-palette1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}
.primary-sidebar .woocommerce-widget-layered-nav-list__item--chosen a { color: var(--global-palette3); font-weight: 600; }
.primary-sidebar .count { color: var(--global-palette6); font-size: .8rem; }
.primary-sidebar .product-categories .children { margin: .2rem 0 .2rem .9rem; padding: 0; }
.primary-sidebar .product-categories .current-cat > a { font-weight: 700; color: var(--global-palette1); }
.woocommerce .widget_layered_nav_filters ul { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.woocommerce .widget_layered_nav_filters ul li { list-style: none; }
.woocommerce .widget_layered_nav_filters ul li a {
	display: inline-block; padding: .25rem .6rem; border-radius: 999px; font-size: .8rem;
	background: var(--global-palette7); color: var(--global-palette3); text-decoration: none;
}
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--global-palette1); }

/* ---------- Scheda prodotto ---------- */
.single-product div.product .woocommerce-product-gallery img { background: #fff; object-fit: contain; }
.single-product div.product .product_title { font-size: 1.6rem; line-height: 1.3; }
.single-product div.product p.price { font-size: 2rem; font-weight: 800; color: var(--global-palette3); }
.single-product .woocommerce-product-details__short-description { color: var(--global-palette5); font-size: .95rem; }
.fuoripc-specs { width: 100%; border-collapse: collapse; margin: 0 0 1.75rem; font-size: .92rem; }
.fuoripc-specs th, .fuoripc-specs td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--global-palette7); vertical-align: top; }
.fuoripc-specs th { width: 38%; font-weight: 600; color: var(--global-palette5); background: var(--global-palette8); }
.woocommerce-Tabs-panel--description h3 { font-size: 1.05rem; margin: 1.25rem 0 .5rem; }
.woocommerce table.shop_attributes th { width: 38%; }

/* ---------- Home ---------- */
.nextit-hero { border-radius: 16px; overflow: hidden; }
.nextit-hero h1 { font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.02em; }
.nextit-hero img { mix-blend-mode: multiply; }
.nextit-features .wp-block-column {
	background: #fff; border: 1px solid var(--global-palette7); border-radius: 12px; padding: 1.1rem 1.25rem;
}
.nextit-features h3 { font-size: 1rem; margin: 0 0 .25rem; }
.nextit-features p { font-size: .88rem; margin: 0; color: var(--global-palette5); }
.nextit-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.nextit-section-title h2 { margin: 0; font-size: 1.5rem; }
.nextit-section-title a { font-weight: 600; text-decoration: none; }
.woocommerce ul.products li.product-category { border-radius: 12px; overflow: hidden; background: #fff; border: 1px solid var(--global-palette7); }
.woocommerce ul.products li.product-category img { aspect-ratio: 4 / 3; object-fit: contain; padding: 16px; background: #fff; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title { font-size: 1rem; text-align: center; padding: .25rem .5rem 1rem; }
.woocommerce ul.products li.product-category mark.count { background: none; color: var(--global-palette6); font-weight: 400; }

/* ---------- Footer ---------- */
.site-footer .widget-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer ul li { padding: .15rem 0; }


/* card prodotto: spaziatura interna e pulsante proporzionato */
.woocommerce ul.products.content-wrap li.product .product-details.content-bg { padding: .25rem 1rem 1.1rem !important; }
.woocommerce ul.products.content-wrap li.product-category .product-details { padding: 0; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .product-action-wrap .button {
	font-size: .9rem; font-weight: 600; line-height: 1.2; padding: .7em 1em; width: 100%; text-align: center; border-radius: 8px;
}
.primary-sidebar .widget-title, .primary-sidebar .widgettitle { font-size: .8rem !important; }
.site-footer .wp-block-heading, .site-footer h4 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 1024px) {
	.site-bottom-header-wrap .site-header-row-container-inner { background: #fff; padding-bottom: .6rem; }
	.nextit-search { max-width: none; }
}
.woocommerce ul.products li.product .price { white-space: nowrap; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { display: -webkit-box !important; padding-bottom: 0; margin-bottom: .35rem; }
.nextit-cond { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; vertical-align: top; }

/* ---------- Spiegazione del grado (fumetto) ---------- */
.woocommerce ul.products li.product a img { border-radius: 12px 12px 0 0; }
.nextit-cond.is-demo { background: #fff4e5; color: #8a4b00; }
.nextit-cond.has-tip { position: relative; cursor: help; overflow: visible; max-width: none; }
.nextit-cond.has-tip::after { content: "?"; display: inline-grid; place-items: center; width: 13px; height: 13px; margin-left: .35rem;
	border-radius: 50%; font-size: .62rem; font-weight: 700; background: var(--nextit-cond-ink, #1a4fb8); color: #fff; vertical-align: 1px; }
.nextit-tip {
	position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: max-content; max-width: 260px;
	padding: .6rem .75rem; border-radius: 8px; background: var(--global-palette3); color: #fff;
	font-size: .78rem; font-weight: 400; line-height: 1.45; letter-spacing: 0; white-space: normal; text-align: left;
	box-shadow: 0 8px 24px rgba(16, 24, 40, .18); opacity: 0; visibility: hidden; transform: translateY(4px);
	transition: opacity .15s, transform .15s, visibility .15s; pointer-events: none;
}
.nextit-tip::after { content: ""; position: absolute; left: 14px; top: 100%; border: 6px solid transparent; border-top-color: var(--global-palette3); }
.nextit-cond.has-tip:hover .nextit-tip, .nextit-cond.has-tip:focus .nextit-tip, .nextit-cond.has-tip:focus-within .nextit-tip {
	opacity: 1; visibility: visible; transform: none;
}
.nextit-cond.has-tip:focus-visible { outline: 2px solid var(--global-palette1); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .nextit-tip { transition: none; } }
.nextit-cond-row { margin: -.25rem 0 1rem; font-size: .9rem; color: var(--global-palette5); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.nextit-cond-row .nextit-cond { margin: 0; }
.single-product .nextit-tip { max-width: 320px; }
.nextit-cond.is-new { --nextit-cond-ink: #1e6b34; }
.nextit-cond.is-refurb { --nextit-cond-ink: #1a4fb8; }
.nextit-cond.is-demo { --nextit-cond-ink: #8a4b00; }

/* =====================================================================
   Stile ispirato a remarkt.it: header antracite, barra categorie grigia,
   fascia vantaggi con stelline verdi, pulsanti d'acquisto verdi.
   ===================================================================== */
:root { --nextit-green: #23874A; --nextit-green-dark: #1B6C3A; --nextit-green-soft: #eef8f1; --nextit-star: #3fa864; }

/* ---------- Header ---------- */
.site-main-header-wrap .site-header-row-container-inner { border-bottom: 0; }
.nextit-search { border: 0; border-radius: 999px; max-width: 560px; box-shadow: inset 0 0 0 1px #d5d8dc; }
.nextit-search input[type="search"] { padding: .62rem 1.1rem; font-size: .9rem; color: #333; }
.nextit-search input[type="search"]::placeholder { color: #8d9399; }
.nextit-search button { background: transparent; color: #6b7178; padding: 0 1rem; }
.nextit-search button:hover { background: transparent; color: var(--nextit-green); }
.site-header .header-navigation[class*="header-navigation-style-underline"] .menu > li > a::after { display: none; }
.site-bottom-header-wrap .header-menu-container > ul > li > a { padding-top: .9em; padding-bottom: .9em; }
.site-header .secondary-navigation a { text-decoration: underline; text-underline-offset: 3px; }
.site-header .header-cart-wrap .header-cart-total { font-weight: 700; }

/* ---------- Fascia vantaggi ---------- */
.nextit-uspbar { background: #fff; border-bottom: 1px solid var(--global-palette7); }
.nextit-uspbar-inner { max-width: var(--global-content-width, 1290px); margin: 0 auto; padding: .6rem var(--global-content-edge-padding, 1.5rem); }
.nextit-uspbar .nextit-usp { justify-content: space-between; font-size: .85rem; color: #333; gap: .35rem 1.5rem; }
.nextit-usp li::before {
	width: 16px; height: 16px; background: var(--nextit-star);
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z'/%3E%3C/svg%3E");
}
@media (max-width: 767px) { .nextit-uspbar .nextit-usp { justify-content: center; } }

/* ---------- Card prodotto ---------- */
.woocommerce ul.products li.product.content-bg,
.woocommerce ul.products.woo-archive-action-on-hover li.product { border: 0; border-radius: 0; background: transparent; }
.woocommerce ul.products li.product:hover { box-shadow: none; transform: none; }
.woocommerce ul.products li.product:hover .woocommerce-loop-product__title { color: var(--global-palette1); }
.woocommerce ul.products li.product a img { border-radius: 0; padding: 8px; background: transparent; }
.woocommerce ul.products.content-wrap li.product .product-details.content-bg { padding: .25rem 0 1rem !important; background: transparent; }
.nextit-loop-cond {
	display: flex; align-items: center; gap: .4rem; margin: 0 0 .55rem; padding-bottom: .45rem;
	border-bottom: 1px solid #d5d8dc; font-size: .8rem; font-weight: 700; color: #333;
}
.nextit-loop-cond .nextit-cond { margin: 0; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1.1rem; font-weight: 700; color: #333; min-height: 0; }
.nextit-keyspecs { font-size: .82rem; color: #444; margin: 0 0 .6rem; }
.woocommerce ul.products li.product .price { font-size: 1.45rem; font-weight: 900; color: #333; margin-bottom: 0 !important; }
.nextit-price-net { margin: .1rem 0 .6rem; font-size: .78rem; color: var(--global-palette5); }
.nextit-price-net span { font-size: .72rem; }
.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .product-action-wrap .button {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	border-radius: 5px; font-weight: 700; padding: .75em 1em;
}
.woocommerce ul.products li.product .button.add_to_cart_button::before,
.single-product form.cart .single_add_to_cart_button::before,
.nextit-buybar .button::before {
	content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2.5 3h3l2.4 12.2a1.5 1.5 0 0 0 1.5 1.3h8.9a1.5 1.5 0 0 0 1.5-1.2L21.5 7H6.4'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2.5 3h3l2.4 12.2a1.5 1.5 0 0 0 1.5 1.3h8.9a1.5 1.5 0 0 0 1.5-1.2L21.5 7H6.4'/%3E%3C/svg%3E") center/contain no-repeat;
}
.woocommerce ul.products li.product .fw-configure-button::before { /* "Configura": icona regolazioni */
	content: ""; width: 18px; height: 18px; flex: none; background: currentColor;
	-webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
	-webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
	        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h10M18 6h2M4 12h4M12 12h8M4 18h12M20 18h0'/%3E%3Ccircle cx='16' cy='6' r='2'/%3E%3Ccircle cx='10' cy='12' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}

/* ---------- Sidebar filtri ---------- */
.primary-sidebar .widget-title, .primary-sidebar .widgettitle { text-transform: none; letter-spacing: 0; font-size: .95rem !important; }
.primary-sidebar .woocommerce-widget-layered-nav-list__item--chosen a::before { border-color: var(--nextit-green); background-color: var(--nextit-green); }
.woocommerce .widget_price_filter .ui-slider .ui-slider-range,
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle { background-color: var(--nextit-green); }

/* ---------- Scheda prodotto ---------- */
.single-product div.product .product_title { font-size: 2rem; font-weight: 800; margin-bottom: .35rem; }
.nextit-subtitle { margin: 0 0 1.1rem; font-size: 1.05rem; font-weight: 700; color: #333; }
.single-product div.product p.price { font-size: 2.2rem; font-weight: 900; margin: .5rem 0 0 !important; }
.single-product .summary .nextit-subtitle { margin-bottom: .5rem; }
.single-product div.product p.price .woocommerce-price-suffix { font-size: .9rem; font-weight: 500; color: var(--global-palette5); }
.single-product .summary .nextit-price-net { font-size: .9rem; margin-bottom: 1rem; }
.single-product form.cart .single_add_to_cart_button {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem; flex: 1;
	font-size: 1.05rem; font-weight: 700; padding: .85em 1.5em; border-radius: 5px;
}
.single-product form.cart .quantity .qty { border-radius: 5px; }

/* barra d'acquisto fissa */
.nextit-buybar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: #fff;
	box-shadow: 0 -4px 18px rgba(0, 0, 0, .12); transform: translateY(110%); transition: transform .2s;
}
.nextit-buybar.is-visible { transform: none; }
.nextit-buybar-inner {
	max-width: var(--global-content-width, 1290px); margin: 0 auto; padding: .6rem var(--global-content-edge-padding, 1.5rem);
	display: flex; align-items: center; gap: 1rem;
}
.nextit-buybar img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.nextit-buybar-name { flex: 1; margin: 0; font-weight: 700; color: #333; line-height: 1.3; min-width: 0; }
.nextit-buybar-price { margin: 0; font-size: 1.6rem; font-weight: 900; color: #333; white-space: nowrap; }
.nextit-buybar .button { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; padding: .8em 1.4em; border-radius: 5px; white-space: nowrap; }
@media (max-width: 767px) {
	.nextit-buybar img, .nextit-buybar-name { display: none; }
	.nextit-buybar-price { font-size: 1.3rem; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .nextit-buybar { transition: none; } }

/* ---------- Home ---------- */
.nextit-hero { border-radius: 6px; background: linear-gradient(180deg, #f6f6f7, #e4e5e7) !important; }
.nextit-hero h1 { font-weight: 800; color: #333; }
.nextit-hero .has-text-color { color: var(--nextit-green) !important; }
.nextit-features .wp-block-column { background: var(--global-palette8); border: 0; border-radius: 6px; }
.woocommerce ul.products li.product-category { border-radius: 4px; border-color: #d5d8dc; }
.woocommerce ul.products li.product-category img { background: #f3f4f5; }
.woocommerce ul.products li.product-category .woocommerce-loop-category__title { text-align: left; padding: .6rem .8rem .8rem; font-weight: 700; }
.nextit-section-title a { color: #333; }
.nextit-section-title a:hover { color: var(--nextit-green); }

/* ---------- Footer ---------- */
.site-footer .site-middle-footer-wrap { border-top: 0; }

/* prodotti configurabili: "Configura" (contorno verde) sopra "Aggiungi al carrello" */
.woocommerce ul.products li.product .product-action-wrap { display: grid; gap: .45rem; }
.woocommerce ul.products li.product .button.fw-configure-button {
	width: 100%; background: #fff !important; color: var(--nextit-green) !important; border: 2px solid var(--nextit-green) !important; padding: calc(.75em - 2px) 1em !important;
}
.woocommerce ul.products li.product .button.fw-configure-button:hover { background: var(--nextit-green-soft) !important; color: var(--nextit-green-dark) !important; }

/* ---------- Home: un prodotto di esempio per categoria ---------- */
.entry-content ul.nextit-catgrid, .nextit-catgrid {
	list-style: none; margin: 1.25rem 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem;
}
.nextit-catcard {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--global-palette7); border-radius: 12px; padding: 1rem 1.1rem 1.1rem;
}
.nextit-catcard-cat {
	font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--global-palette1); text-decoration: none;
}
.nextit-catcard-prod { display: flex; flex-direction: column; flex: 1; color: var(--global-palette3); text-decoration: none; }
.nextit-catcard-prod img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin: .75rem 0; }
.nextit-catcard-title {
	font-size: .9rem; line-height: 1.35; font-weight: 600;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nextit-catcard-prod:hover .nextit-catcard-title { color: var(--global-palette1); }
.nextit-catcard-price { margin: .4rem 0 .6rem; font-size: 1.15rem; font-weight: 800; color: var(--global-palette3); }
.nextit-catcard-price del { font-size: .8rem; font-weight: 400; color: var(--global-palette6); }
.nextit-catcard-all {
	margin-top: auto; padding-top: .7rem; border-top: 1px solid var(--global-palette7);
	font-size: .88rem; font-weight: 600; text-decoration: none;
}
@media (max-width: 1024px) { .entry-content ul.nextit-catgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
	.entry-content ul.nextit-catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: 0 16px; }
	.nextit-section-title { padding: 0 16px; }
	.nextit-catcard { padding: .75rem; }
	.nextit-catcard-price { font-size: 1rem; }
}

/* ---------- Home: gradi di qualità ---------- */
.nextit-grades-intro { margin: .4rem 0 0; color: var(--global-palette5); }
.nextit-grades-group {
	margin: 1.5rem 0 .6rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
	color: var(--global-palette5);
}
.entry-content ul.nextit-grades, .nextit-grades {
	list-style: none; margin: 0; padding: 0;
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem;
}
.nextit-grade {
	display: flex; flex-direction: column; background: #fff;
	border: 1px solid var(--global-palette7); border-left: 4px solid #23874A; border-radius: 10px; padding: .9rem 1rem;
}
.nextit-grade h4 { margin: 0 0 .35rem; font-size: .95rem; color: var(--global-palette3); }
.nextit-grade p { margin: 0 0 .6rem; font-size: .84rem; line-height: 1.45; color: var(--global-palette5); }
.nextit-grade a { margin-top: auto; font-size: .85rem; font-weight: 600; text-decoration: none; }
@media (max-width: 1024px) { .entry-content ul.nextit-grades { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
	.entry-content ul.nextit-grades { grid-template-columns: 1fr; padding: 0 16px; }
	.nextit-grades-group, .nextit-grades-intro { padding: 0 16px; }
}

/* Etichetta condizione: i nomi lunghi (es. "Ricondizionato dal produttore come nuovo") vanno a capo invece di uscire dalla card */
.nextit-loop-cond { align-items: flex-start; }
.nextit-loop-cond > span:first-child { flex-shrink: 0; padding-top: .15rem; }
.nextit-cond, .nextit-cond.has-tip { white-space: normal; max-width: 100%; min-width: 0; border-radius: 10px; line-height: 1.35; text-wrap: balance; }

/* ---------- Filtri su telefono e tablet: pulsante + pannello laterale ---------- */
.nextit-filters-toggle, .nextit-filters-head { display: none; }
@media (max-width: 1024px) {
	.nextit-filters-toggle {
		display: inline-flex; align-items: center; gap: .45rem; margin: 0 0 1rem; padding: .6rem 1rem;
		border: 1.5px solid var(--global-palette3); border-radius: 8px; background: #fff; color: var(--global-palette3);
		font-weight: 700; font-size: .95rem; cursor: pointer;
	}
	.nextit-filters-count {
		display: inline-grid; place-items: center; min-width: 1.3rem; height: 1.3rem; padding: 0 .3rem;
		border-radius: 999px; background: #23874A; color: #fff; font-size: .75rem;
	}
	#secondary.primary-sidebar {
		position: fixed; inset: 0 auto 0 0; z-index: 1000; width: min(360px, 88vw); margin: 0;
		padding: 0 1.25rem 2rem; overflow-y: auto; background: #fff; box-shadow: 0 0 40px rgba(16, 24, 40, .25);
		transform: translateX(-105%); visibility: hidden; transition: transform .2s ease, visibility .2s;
	}
	body.nextit-filters-open #secondary.primary-sidebar { transform: none; visibility: visible; }
	body.nextit-filters-open::after {
		content: ""; position: fixed; inset: 0; z-index: 999; background: rgba(16, 24, 40, .45);
	}
	body.nextit-filters-open { overflow: hidden; }
	.nextit-filters-head {
		display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 1;
		margin: 0 -1.25rem 1rem; padding: .9rem 1.25rem; background: #fff; border-bottom: 1px solid var(--global-palette7);
	}
	.nextit-filters-head strong { font-size: 1.1rem; }
	.nextit-filters-head button {
		border: 0; background: none; font-size: 1.8rem; line-height: 1; padding: 0 .25rem; color: var(--global-palette3); cursor: pointer;
	}
}
@media (prefers-reduced-motion: reduce) { #secondary.primary-sidebar { transition: none; } }
