/* ============================================================
   NAUTICA — Scheda Prodotto
   Attivo su body.nws-sp-active
   APPROCCIO: WooCommerce ha già i float 2-colonne nativi.
   Si stila solo il contenuto, si nascondono le sezioni indesiderate.
   ============================================================ */

/* ── 0. RIMUOVI PADDING GLOBALE TEMA (has-global-padding) ────
   TT5 applica padding-inline su tutti i blocchi con questa classe.
   Lo azzeriamo e lasciamo che sia .woocommerce a gestire i margini. */
body.nws-sp-active .has-global-padding {
	padding-right: 0 !important;
	padding-left: 0 !important;
	padding-inline: 0 !important;
}

/* Azzera padding degli wrapper WordPress — SENZA overflow hidden
   (overflow hidden tagliava il lato destro della gallery su mobile) */
body.nws-sp-active .wp-site-blocks,
body.nws-sp-active .wp-block-post-content,
body.nws-sp-active .entry-content {
	padding-left: 0 !important;
	padding-right: 0 !important;
	padding-inline: 0 !important;
}

/* Il container WooCommerce gestisce il padding laterale con box-sizing */
body.nws-sp-active .woocommerce {
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
	width: 100% !important;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
}

/* La gallery e il summary non devono avere margini propri */
body.nws-sp-active div.product div.images,
body.nws-sp-active div.product .woocommerce-product-gallery {
	margin-left: 0 !important;
	margin-right: 0 !important;
	box-sizing: border-box !important;
}

/* ── 1. LARGHEZZA CONTAINER ──────────────────────────────────
   WordPress genera "max-width: 645px" come valore STATICO,
   non come var(). Occorre sovrascrivere il selettore :where()
   direttamente. Specificità nostra (0,2,1)+!important vs tema (0,1,0).
*/
body.nws-sp-active .is-layout-constrained > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
	max-width: 1200px !important;
}
body.nws-sp-active .woocommerce {
	max-width: 1200px;
	padding-left: 0;
	padding-right: 0;
	box-sizing: border-box;
}

/* ── 2. NESSUN GRID — usa i float nativi WooCommerce ─────────
   WooCommerce applica già float:left sulla gallery e float:right
   sul summary. Non bisogna toccare il layout. */
body.nws-sp-active div.product {
	max-width: none !important;
}

/* ── 3. NASCONDI SEZIONI INDESIDERATE ────────────────────────  */
body.nws-sp-active div.product .woocommerce-tabs,
body.nws-sp-active div.product .upsells,
body.nws-sp-active div.product .related,
body.nws-sp-active div.product .onsale,
body.nws-sp-active div.product .product_meta,
body.nws-sp-active .wp-block-woocommerce-product-meta,
body.nws-sp-active div.product p.stock {
	display: none !important;
}
/* I prodotti correlati renderizzati via block WooCommerce stanno
   FUORI da div.product — li stiliamo separatamente */
body.nws-sp-active .woocommerce-product-details__short-description + .woocommerce-tabs {
	display: none !important;
}

/* ── 4. GALLERY ──────────────────────────────────────────────  */


body.nws-sp-active .woocommerce-product-gallery {
	background: #fff !important;
	border-radius: 16px !important;
	padding: 16px !important;
	box-shadow: 0 2px 24px rgba(13, 62, 163, 0.07) !important;
}
body.nws-sp-active .woocommerce-product-gallery__image img {
	object-fit: contain !important;
	object-position: center !important;
}
/* Thumbnails orizzontali */
body.nws-sp-active .flex-control-thumbs {
	display: flex !important;
	flex-direction: row !important;
	gap: 8px !important;
	overflow-x: auto !important;
	padding: 10px 2px 4px !important;
	margin: 0 !important;
	list-style: none !important;
}
body.nws-sp-active .flex-control-thumbs li {
	flex: 0 0 64px !important;
	width: 64px !important;
	height: 64px !important;
	margin: 0 !important;
	border-radius: 8px !important;
	overflow: hidden !important;
	border: 2px solid #eaecf5 !important;
	cursor: pointer !important;
}
body.nws-sp-active .flex-control-thumbs li:hover,
body.nws-sp-active .flex-control-thumbs li img.flex-active {
	border-color: #0d3ea3 !important;
}
body.nws-sp-active .flex-control-thumbs li img {
	width: 100% !important;
	height: 100% !important;
	object-fit: contain !important;
}

/* ── 5. TITOLO ───────────────────────────────────────────────
   TT5 genera: .wp-block-post-content h1 { font-size: 2.15rem }
   specificità (0,1,1). La nostra (0,2,1) vince senza !important,
   ma aggiungiamo !important per sicurezza. */
body.nws-sp-active .wp-block-post-content h1.product_title,
body.nws-sp-active .summary h1.product_title,
body.nws-sp-active h1.product_title {
	font-size: 22px !important;
	font-weight: 700 !important;
	line-height: 1.3 !important;
	color: #1a1a2e !important;
	margin: 0 0 8px !important;
	padding: 0 !important;
	letter-spacing: -0.01em !important;
	text-transform: none !important;
}

/* ── 6. CATEGORIA (custom via hook) ─────────────────────────  */
.nws-sp-category {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: #0d3ea3;
	margin-bottom: 8px;
}
.nws-sp-category a { color: inherit; text-decoration: none; }
.nws-sp-category a:hover { text-decoration: underline; }

/* ── 7. SKU ──────────────────────────────────────────────────  */
.nws-sp-sku {
	font-size: 12px;
	color: #aaa;
	margin: 0 0 14px;
}
.nws-sp-sku span { font-weight: 600; color: #777; }

/* ── 8. RATING ───────────────────────────────────────────────  */
body.nws-sp-active .woocommerce-product-rating {
	margin: 0 0 12px !important;
}

/* ── 9. PREZZO ───────────────────────────────────────────────  */
body.nws-sp-active p.price,
body.nws-sp-active span.price {
	display: flex !important;
	align-items: baseline !important;
	gap: 10px !important;
	flex-wrap: wrap !important;
	margin: 0 0 6px !important;
}
body.nws-sp-active p.price ins,
body.nws-sp-active span.price ins {
	text-decoration: none !important;
}
body.nws-sp-active p.price del,
body.nws-sp-active span.price del {
	font-size: 14px !important;
	color: #bbb !important;
	font-weight: 400 !important;
}
body.nws-sp-active p.price del .woocommerce-Price-amount,
body.nws-sp-active p.price del bdi,
body.nws-sp-active span.price del .woocommerce-Price-amount,
body.nws-sp-active span.price del bdi {
	font-size: 14px !important;
	color: #bbb !important;
	font-weight: 400 !important;
}
/* Prezzo single product */
.woocommerce .wc-block-components-product-price bdi,
.nws-sp-price bdi,
.nws-sp-price .woocommerce-Price-amount.amount {
	font-size: 1.5625rem !important;
	display: inline-block !important;
	font-weight: bold !important;
	color: #dc470c !important;
}
/* Prezzo barrato */
.woocommerce .wc-block-components-product-price del bdi,
.nws-sp-price del bdi,
.nws-sp-price del .woocommerce-Price-amount.amount {
	font-size: 25px !important;
	color: #bbb !important;
	font-weight: 400 !important;
	text-decoration: line-through !important;
}

/* Prezzo variabile — "da: X,XX €" */
.nws-var-price {
	font-size: 1.5625rem;
	display: inline-block;
	font-weight: bold;
	color: #dc470c;
}
.nws-var-price .woocommerce-Price-amount {
	font-size: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
}
.nws-var-price__da {
	font-size: 0.85rem;
	font-weight: 600;
	color: #888;
	margin-right: 5px;
	vertical-align: baseline;
}
/* Sovrascrive il colore/size generico del .price sul prodotto variabile */
body.nws-sp-active p.price:has(.nws-var-price) ins,
body.nws-sp-active p.price:has(.nws-var-price) > .woocommerce-Price-amount {
	font-size: inherit !important;
	color: inherit !important;
}

/* Badge risparmio */
.nws-sp-savings {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 6px 0 14px;
	background: linear-gradient(135deg, #fff4e6 0%, #ffe8cc 100%);
	border: 1.5px solid #fbc97a;
	border-radius: 12px;
	padding: 10px 16px;
}
.nws-sp-savings__pct {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: linear-gradient(135deg, #ff6b00, #dc470c);
	color: #fff;
	font-weight: 800;
	font-size: 18px;
	padding: 4px 14px;
	border-radius: 8px;
	letter-spacing: -0.01em;
	box-shadow: 0 2px 8px rgba(220,71,12,.30);
	white-space: nowrap;
}
.nws-sp-savings__pct::before {
	content: "🔥";
	font-size: 15px;
}
.nws-sp-savings__txt {
	font-size: 14px;
	color: #7c4a00;
	font-weight: 500;
	line-height: 1.3;
}
.nws-sp-savings__txt strong {
	color: #dc470c;
	font-weight: 800;
	font-size: 16px;
}
@media (max-width: 768px) {
	.nws-sp-savings {
		padding: 8px 12px;
		gap: 8px;
	}
	.nws-sp-savings__pct { font-size: 15px; }
	.nws-sp-savings__txt { font-size: 13px; }
	.nws-sp-savings__txt strong { font-size: 14px; }
}

/* Descrizione breve */
body.nws-sp-active .woocommerce-product-details__short-description {
	font-size: 16px !important;
	color: #555 !important;
	line-height: 1.7 !important;
	margin: 0 0 18px !important;
	border-left: 3px solid #e0e8f8;
	padding-left: 14px;
}

/* ── 10. FORM CARRELLO ───────────────────────────────────────  */
body.nws-sp-active div.product form.cart {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	flex-wrap: wrap !important;
	margin: 0 0 16px !important;
}

/* ── 10b. FORM VARIANTI ──────────────────────────────────────
   Per i prodotti variabili il form contiene:
   1. table.variations  (selettori attributo)
   2. div.single_variation_wrap  (prezzo variante + quantità + bottone)
   Rendiamo il form colonnare e curiamo ogni elemento.
   ─────────────────────────────────────────────────────────── */

/* Il form varianti scorre verticalmente, non in riga */
body.nws-sp-active div.product form.variations_form.cart {
	flex-direction: column !important;
	align-items: stretch !important;
	gap: 0 !important;
}

/* ── Tabella → blocchi verticali ─────────────────────────── */
body.nws-sp-active table.variations,
body.nws-sp-active table.variations tbody,
body.nws-sp-active table.variations tr,
body.nws-sp-active table.variations td {
	display: block !important;
	width: 100% !important;
	border: none !important;
	padding: 0 !important;
	background: none !important;
}

body.nws-sp-active table.variations {
	margin: 0 0 6px !important;
}

body.nws-sp-active table.variations tr {
	margin-bottom: 14px !important;
}

/* ── Label attributo ─────────────────────────────────────── */
body.nws-sp-active table.variations td.label {
	margin-bottom: 7px !important;
}
body.nws-sp-active table.variations td.label label {
	display: block !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.09em !important;
	color: #0d3ea3 !important;
	margin: 0 !important;
}

/* ── Select wrapper — flex row: select + tasto svuota inline */
body.nws-sp-active table.variations td.value {
	display: flex !important;
	align-items: center !important;
	gap: 10px !important;
}

/* ── Select stilizzata ───────────────────────────────────── */
body.nws-sp-active table.variations td.value select {
	flex: 1 !important;
	min-width: 0 !important;
	height: 40px !important;
	padding: 0 40px 0 14px !important;
	border: 2px solid #dde3f0 !important;
	border-radius: 10px !important;
	background-color: #fff !important;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d3ea3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
	background-repeat: no-repeat !important;
	background-position: calc(100% - 12px) center !important;
	font-size: 14px !important;
	font-weight: 500 !important;
	color: #1a1a2e !important;
	cursor: pointer !important;
	outline: none !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	box-sizing: border-box !important;
	transition: border-color .18s, box-shadow .18s !important;
	box-shadow: 0 1px 4px rgba(13,62,163,.06) !important;
}
body.nws-sp-active table.variations td.value select:hover {
	border-color: #a5b4d0 !important;
}
body.nws-sp-active table.variations td.value select:focus {
	border-color: #0d3ea3 !important;
	box-shadow: 0 0 0 3px rgba(13,62,163,.13) !important;
}
body.nws-sp-active table.variations td.value select option[value=""] {
	color: #aaa !important;
}

/* ── Tasto "Svuota" inline a destra della select ─────────── */
body.nws-sp-active .reset_variations {
	flex-shrink: 0 !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 4px !important;
	height: 32px !important;
	padding: 0 10px !important;
	border: 1px solid #dde3f0 !important;
	border-radius: 8px !important;
	background: #f7f9fe !important;
	font-size: 11px !important;
	font-weight: 700 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.06em !important;
	color: #999 !important;
	text-decoration: none !important;
	white-space: nowrap !important;
	transition: color .15s, border-color .15s, background .15s !important;
	margin-top: 0 !important;
}
body.nws-sp-active .reset_variations::before {
	content: "✕" !important;
	font-size: 10px !important;
}
body.nws-sp-active .reset_variations:hover {
	color: #dc2626 !important;
	border-color: #dc2626 !important;
	background: #fff5f5 !important;
}

/* ── Prezzo variante selezionata ─────────────────────────── */
body.nws-sp-active .woocommerce-variation-price {
	margin: 4px 0 0 !important;
	min-height: 0 !important;
}
body.nws-sp-active .woocommerce-variation-price .price {
	font-size: 26px !important;
	font-weight: 800 !important;
	color: #1a1a2e !important;
}

/* ── Descrizione variante ────────────────────────────────── */
body.nws-sp-active .woocommerce-variation-description p {
	font-size: 13px !important;
	color: #666 !important;
	margin: 4px 0 0 !important;
	line-height: 1.5 !important;
}

/* ── Wrapper quantità + bottone nel form varianti ────────── */
body.nws-sp-active .variations_button {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	flex-wrap: wrap !important;
	margin-top: 4px !important;
}

/* ── Responsive mobile ───────────────────────────────────── */
@media (max-width: 768px) {
	body.nws-sp-active table.variations td.value select {
		height: 40px !important;
		font-size: 14px !important;
	}
	body.nws-sp-active .variations_button {
		flex-wrap: nowrap !important;
	}
}
body.nws-sp-active div.product .quantity {
	display: flex !important;
	align-items: center !important;
	border: 2px solid #dde3f0 !important;
	border-radius: 10px !important;
	overflow: hidden !important;
	background: #fff !important;
	flex-shrink: 0 !important;
}
body.nws-sp-active div.product .quantity .qty {
	width: 52px !important;
	height: 48px !important;
	text-align: center !important;
	border: none !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	background: transparent !important;
	outline: none !important;
	-moz-appearance: textfield !important;
	padding: 0 !important;
	color: #1a1a2e !important;
}
body.nws-sp-active div.product .quantity .qty::-webkit-outer-spin-button,
body.nws-sp-active div.product .quantity .qty::-webkit-inner-spin-button {
	-webkit-appearance: none !important;
}
/* Pulsante CTA */
body.nws-sp-active .single_add_to_cart_button {
	flex: 1 !important;
	min-width: 160px !important;
	height: 50px !important;
	background: #0d3ea3 !important;
	color: #fff !important;
	border: none !important;
	border-radius: 10px !important;
	font-size: 13px !important;
	font-weight: 700 !important;
	letter-spacing: 0.06em !important;
	text-transform: uppercase !important;
	cursor: pointer !important;
	padding: 0 20px !important;
	box-shadow: 0 4px 16px rgba(13, 62, 163, 0.28) !important;
	transition: filter 0.18s, transform 0.12s !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	line-height: 1 !important;
}
body.nws-sp-active .single_add_to_cart_button:hover {
	filter: brightness(1.1) !important;
	transform: translateY(-1px) !important;
}

/* ── 11. DISPONIBILITÀ ───────────────────────────────────────  */
.nws-sp-avail {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	background: #f5f8ff;
	border-radius: 10px;
	padding: 11px 16px;
	margin: 6px 0 14px;
	font-size: 13px;
}
.nws-sp-avail__badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-weight: 700;
	font-size: 16px;
}
.nws-sp-avail__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	flex-shrink: 0;
}
.nws-sp-avail__badge--green .nws-sp-avail__dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.18); }
.nws-sp-avail__badge--green { color: #15803d; }
.nws-sp-avail__badge--red   .nws-sp-avail__dot { background: #ef4444; }
.nws-sp-avail__badge--red   { color: #dc2626; }
.nws-sp-avail__delivery {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #666;
	font-size: 16px;
}

/* ── GIFT CARD INFO BANNER ───────────────────────────────────  */
.nws-gc-info-banner {
	margin-top: 28px;
}
.nws-gc-info-banner__features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}
.nws-gc-info-feat {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	padding: 16px 18px;
	background: #f8f9fb;
	border: 1px solid #e8ecf2;
	border-radius: 14px;
}
.nws-gc-info-feat__icon {
	flex-shrink: 0;
	width: 44px;
	height: 44px;
	background: #eef2ff;
	border-radius: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0d3ea3;
}
.nws-gc-info-feat > div:last-child {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.nws-gc-info-feat strong {
	font-size: 13px;
	font-weight: 700;
	color: #111;
	line-height: 1.3;
}
.nws-gc-info-feat span {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.4;
}
@media (max-width: 600px) {
	.nws-gc-info-banner__features {
		grid-template-columns: 1fr;
	}
}

/* ── 12. ICONE INFORMATIVE ───────────────────────────────────  */
.nws-sp-icons {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	border-top: 1px solid #eaecf5;
	padding-top: 16px;
	margin-bottom: 18px;
}
.nws-sp-icon {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 10px;
	padding: 16px 12px;
	background: #f7f9fe;
	border-radius: 12px;
	border: 1px solid #e6eaf5;
}
/* contenitore icona — sia SVG inline che <img> caricata */
.nws-sp-icon__img {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0d3ea3;
	flex-shrink: 0;
}
.nws-sp-icon__img img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}
.nws-sp-icon__img svg { width: 32px; height: 32px; }
/* vecchia classe mantenuta per compatibilità */
.nws-sp-icon__svg { color: #0d3ea3; flex-shrink: 0; }
.nws-sp-icon__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.nws-sp-icon__label { font-size: 16px; font-weight: 700; color: #1a1a2e; line-height: 1.3; }
.nws-sp-icon__text  { font-size: 15px; color: #666; line-height: 1.4; }

/* ── icona inline nella riga disponibilità ───────────────── */
.nws-sp-avail__icon {
	width: 16px;
	height: 16px;
	object-fit: contain;
	vertical-align: middle;
}

/* ── 13. RIQUADRO "SERVE AIUTO?" ─────────────────────────── */
.nws-sp-help {
	display: flex;
	align-items: center;
	gap: 18px;
	background: #fff;
	border-radius: 14px;
	padding: 16px 20px;
	margin: 14px 0 0;
}
.nws-sp-help__avatar {
	flex-shrink: 0;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid #e6eaf5;
}
.nws-sp-help__avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.nws-sp-help__body {
	display: flex;
	flex-direction: column;
	gap: 3px;
}
.nws-sp-help__title {
	font-size: 16px;
	font-weight: 700;
	color: #1a1a2e;
	line-height: 1.3;
}
.nws-sp-help__subtitle {
	font-size: 14px;
	color: #555;
	line-height: 1.4;
}
.nws-sp-help__contacts {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 6px;
}
.nws-sp-help__whatsapp {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #25d366;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s;
}
.nws-sp-help__whatsapp:hover {
	color: #128c5e;
	text-decoration: underline;
}
.nws-sp-help__whatsapp .nws-sp-help__num {
	font-weight: 400;
	font-size: 13px;
	opacity: .8;
}
.nws-sp-help__phone,
.nws-sp-help__email {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: #d32f2f;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s;
}
.nws-sp-help__phone:hover,
.nws-sp-help__email:hover {
	color: #b71c1c;
	text-decoration: underline;
}
.nws-sp-help__sep {
	color: #ccc;
	font-size: 16px;
	line-height: 1;
}

/* ═══════════════════════════════════════════════════════════
   14. PRODOTTI CORRELATI (wp:woocommerce/product-collection)
       Classi reali: .wc-block-product (li), .wc-block-product-template (ul)
       .wp-block-woocommerce-product-collection (container)
   ═══════════════════════════════════════════════════════════ */

/* Titolo sezione — centrato col wrapper */
body.nws-sp-active .wp-block-woocommerce-product-collection h2 {
	font-size: 22px !important;
	font-weight: 800 !important;
	color: #0a2540 !important;
	margin: 0 0 20px !important;
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
	box-sizing: border-box !important;
}

/* Slider orizzontale — nessuna scrollbar */
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product-template.is-flex-container {
	display: flex !important;
	flex-wrap: nowrap !important;
	gap: 20px !important;
	overflow-x: auto !important;
	scroll-snap-type: x mandatory !important;
	-webkit-overflow-scrolling: touch !important;
	scrollbar-width: none !important;
	cursor: grab !important;
	user-select: none !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product-template.is-flex-container::-webkit-scrollbar {
	display: none !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product-template.is-flex-container.is-dragging {
	cursor: grabbing !important;
	scroll-snap-type: none !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product-template.is-flex-container > li {
	flex: 0 0 calc(25% - 15px) !important;
	min-width: 220px !important;
	scroll-snap-align: start !important;
}

/* Sfondo full-width sulla sezione — applicato al blocco WC già a larghezza piena */
body.nws-sp-active .wp-block-woocommerce-product-collection {
	background: #cfeaf2 !important;
	max-width: none !important;
	width: 100% !important;
	padding-top: 40px !important;
	padding-bottom: 40px !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	box-sizing: border-box !important;
}

/* Wrapper frecce — centrato come content */
.nws-related-wrap {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}
.nws-related-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e2e5ea;
	box-shadow: 0 2px 10px rgba(10,37,64,.12);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .18s, box-shadow .18s, transform .18s;
	color: #0a2540;
	padding: 0;
	outline: none !important;
}
.nws-related-btn:hover {
	background: #0a2540;
	color: #fff;
	box-shadow: 0 4px 18px rgba(10,37,64,.22);
	transform: translateY(-50%) scale(1.08);
}
.nws-related-btn--prev { left: -20px; }
.nws-related-btn--next { right: -20px; }
.nws-related-btn svg   { width: 18px; height: 18px; pointer-events: none; }

/* ── Card ─────────────────────────────────────────────────── */
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product {
	background: #fff !important;
	border-radius: 16px !important;
	overflow: hidden !important;
	border: 1px solid #eaecf0 !important;
	box-shadow: 0 2px 12px rgba(10, 37, 64, .06) !important;
	display: flex !important;
	flex-direction: column !important;
	transition: transform .25s ease, box-shadow .25s ease !important;
	padding: 0 !important;
	margin: 0 !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product:hover {
	transform: translateY(-6px) !important;
	box-shadow: 0 12px 32px rgba(10, 37, 64, .13) !important;
}

/* ── Immagine ─────────────────────────────────────────────── */
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-image,
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-grid__product-image {
	display: block !important;
	position: relative !important;
	overflow: hidden !important;
	background: #f4f6f9 !important;
	aspect-ratio: 1 / 1 !important;
	flex-shrink: 0 !important;
	width: 100% !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-image a,
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-grid__product-image a {
	display: block !important;
	width: 100% !important;
	height: 100% !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-image img,
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-grid__product-image img {
	width: 100% !important;
	height: 100% !important;
	object-fit: cover !important;
	display: block !important;
	transition: transform .5s cubic-bezier(.25, .46, .45, .94) !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product:hover .wc-block-components-product-image img,
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product:hover .wc-block-grid__product-image img {
	transform: scale(1.07) !important;
}

/* ── Titolo — identico a nws-product-card__name ──────────── */
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wp-block-post-title {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0a2540 !important;
	line-height: 1.3 !important;
	text-align: left !important;
	padding: 16px 18px 0 !important;
	margin: 0 !important;
	display: -webkit-box !important;
	-webkit-line-clamp: 2 !important;
	-webkit-box-orient: vertical !important;
	overflow: hidden !important;
	text-transform: none !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wp-block-post-title a {
	color: inherit !important;
	text-decoration: none !important;
	text-transform: none !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wp-block-post-title a:hover {
	color: #19b4e3 !important;
}

/* ── Prezzo — identico a nws-product-card ─────────────────── */
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price,
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-grid__product-price {
	padding: 8px 18px 18px !important;
	margin: auto 0 0 !important;
	text-align: right !important;
}
/* prezzo normale / scontato */
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price .price,
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-grid__product-price .price {
	display: flex !important;
	align-items: baseline !important;
	justify-content: flex-end !important;
	gap: 6px !important;
	flex-wrap: wrap !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price .woocommerce-Price-amount,
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price ins .woocommerce-Price-amount {
	font-size: 16px !important;
	font-weight: 400 !important;
	color: #0a2540 !important;
	text-decoration: none !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price ins {
	text-decoration: none !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price del {
	text-decoration: none !important;
}
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-price del .woocommerce-Price-amount {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: #9aa5b1 !important;
	text-decoration: line-through !important;
	text-decoration-color: #b0bac8 !important;
	text-decoration-thickness: 1.5px !important;
}

/* ── Pulsante — nascosto come nelle card categoria ───────── */
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wp-block-button,
body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product .wc-block-components-product-button {
	display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   15. RESPONSIVE MOBILE — single product
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

	/* Container padding ridotto */
	body.nws-sp-active .woocommerce {
		padding-left: 16px !important;
		padding-right: 16px !important;
	}

	/* Stacking float layout — target sia .images (WooCommerce) che
	   .woocommerce-product-gallery per coprire entrambi i selettori */
	body.nws-sp-active div.product div.images,
	body.nws-sp-active div.product .woocommerce-product-gallery,
	body.nws-sp-active div.product .summary {
		float: none !important;
		width: 100% !important;
		margin-left: 0 !important;
		margin-right: 0 !important;
		box-sizing: border-box !important;
		clear: both;
	}

	/* Gallery: overflow:hidden sul container principale */
	body.nws-sp-active .woocommerce-product-gallery {
		overflow: hidden !important;
		padding: 12px !important;
	}

	/* flex-viewport: flexslider setta height via JS inline →
	   usiamo height (non max-height) con !important per batterlo */
	body.nws-sp-active .woocommerce-product-gallery .flex-viewport {
		height: 240px !important;
		overflow: hidden !important;
	}

	body.nws-sp-active .woocommerce-product-gallery__wrapper {
		overflow: hidden !important;
	}

	body.nws-sp-active .woocommerce-product-gallery__image {
		height: 240px !important;
		overflow: hidden !important;
	}

	body.nws-sp-active .woocommerce-product-gallery__image a {
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		height: 100% !important;
	}

	body.nws-sp-active .woocommerce-product-gallery__image img {
		height: 100% !important;
		width: auto !important;
		max-width: 100% !important;
		object-fit: contain !important;
		display: block !important;
		margin: 0 auto !important;
	}

	/* Thumbnails */
	body.nws-sp-active .flex-control-thumbs li {
		flex: 0 0 52px !important;
		width: 52px !important;
		height: 52px !important;
	}

	/* Titolo — stesso specificità dei selettori desktop per battere il 22px */
	body.nws-sp-active .wp-block-post-content h1.product_title,
	body.nws-sp-active .summary h1.product_title,
	body.nws-sp-active h1.product_title {
		font-size: 18px !important;
		line-height: 1.3 !important;
		margin-top: 16px !important;
	}

	/* Prezzo */
	body.nws-sp-active p.price ins,
	body.nws-sp-active span.price ins {
		font-size: 1.25rem !important;
	}
	body.nws-sp-active p.price > .woocommerce-Price-amount,
	body.nws-sp-active span.price > .woocommerce-Price-amount {
		font-size: 1.25rem !important;
	}

	/* Form carrello */
	body.nws-sp-active div.product form.cart {
		flex-wrap: nowrap !important;
	}
	body.nws-sp-active .single_add_to_cart_button {
		min-width: 0 !important;
	}

	/* Icone informative — 3 colonne compatte */
	.nws-sp-icons {
		gap: 8px !important;
	}
	.nws-sp-icon {
		padding: 12px 8px !important;
	}
	.nws-sp-icon__label {
		font-size: 13px !important;
	}
	.nws-sp-icon__text {
		font-size: 12px !important;
	}

	/* Help box */
	.nws-sp-help {
		gap: 12px !important;
		padding: 14px 16px !important;
	}
	.nws-sp-help__avatar {
		width: 56px !important;
		height: 56px !important;
	}

	/* Prodotti correlati — frecce nascoste */
	.nws-related-btn {
		display: none !important;
	}
	body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product-template.is-flex-container > li {
		flex: 0 0 72% !important;
	}
}

@media (max-width: 420px) {
	body.nws-sp-active .woocommerce-product-gallery .flex-viewport,
	body.nws-sp-active .woocommerce-product-gallery__image {
		height: 200px !important;
	}

	/* Icone — 1 colonna su telefoni piccoli */
	.nws-sp-icons {
		grid-template-columns: 1fr !important;
	}
}

/* ═══════════════════════════════════════════════════════════
   16. SEZIONE SOTTO IL PRODOTTO (descrizione full-width + accordion)
   ═══════════════════════════════════════════════════════════ */

.nws-sp-below {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 32px 24px 0;
	box-sizing: border-box;
	clear: both;
}

/* Titolo sezione */
.nws-sp-below__heading {
	font-size: 20px !important;
	font-weight: 800 !important;
	color: #0a2540 !important;
	margin: 0 0 16px !important;
	padding: 0 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
}

/* Descrizione principale — full width */
.nws-sp-below__desc {
	font-size: 16px;
	line-height: 1.75;
	color: #444;
	margin-bottom: 32px;
	padding-bottom: 32px;
	border-bottom: 1px solid #eaecf0;
}
.nws-sp-below__desc p { margin: 0 0 1em; }
.nws-sp-below__desc ul,
.nws-sp-below__desc ol {
	padding-left: 22px;
	margin: 0 0 1em;
}
.nws-sp-below__desc li { margin-bottom: .4em; }

/* ── Accordion container ───────────────────────────────────── */
.nws-sp-accordions {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 40px;
}

/* ── Singolo accordion ─────────────────────────────────────── */
.nws-sp-accordion {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	border-bottom: 1px solid #eaecf0;
}

/* ── Trigger (header cliccabile) ───────────────────────────── */
.nws-sp-accordion__trigger {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0px;
	background: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	gap: 12px;
	transition: opacity .15s;
}
.nws-sp-accordion__trigger:hover {
	opacity: .8;
}

.nws-sp-accordion__trigger-inner {
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1;
	min-width: 0;
}

.nws-sp-accordion__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 8px;
	background: #f0f9ff;
	color: #16b4e2;
	flex-shrink: 0;
}
.nws-sp-accordion.is-open .nws-sp-accordion__icon {
	background: #16b4e2;
	color: #fff;
}

.nws-sp-accordion__title {
	font-size: 15px;
	font-weight: 700;
	color: #0a2540;
	line-height: 1.3;
}

.nws-sp-accordion__chevron {
	display: flex;
	align-items: center;
	color: #b0bac8;
	flex-shrink: 0;
	transition: transform .3s ease, color .15s;
}
.nws-sp-accordion.is-open .nws-sp-accordion__chevron {
	transform: rotate(180deg);
	color: #16b4e2;
}

/* ── Separatore sottile tra trigger e body ─────────────────── */
.nws-sp-accordion.is-open .nws-sp-accordion__trigger {
	padding-bottom: 14px;
}

/* ── Panel — animato con max-height ───────────────────────── */
.nws-sp-accordion__panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height .35s cubic-bezier(.4,0,.2,1);
}

.nws-sp-accordion__body {
	padding: 0 20px 20px 62px;
	font-size: 15px;
	line-height: 1.75;
	color: #555;
}
.nws-sp-accordion__body p  { margin: 0 0 .9em; }
.nws-sp-accordion__body ul,
.nws-sp-accordion__body ol { padding-left: 20px; margin: 0 0 .9em; }
.nws-sp-accordion__body li { margin-bottom: .5em; }
.nws-sp-accordion__body h2,
.nws-sp-accordion__body h3 {
	font-size: 14px;
	font-weight: 700;
	color: #0a2540;
	margin: 1em 0 .4em;
}
.nws-sp-accordion__body strong { color: #0a2540; font-weight: 600; }

/* Tabella specifiche tecniche */
.nws-sp-accordion__body table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.nws-sp-accordion__body table th,
.nws-sp-accordion__body table td {
	padding: 9px 14px;
	border-bottom: 1px solid #eaecf0;
	text-align: left;
}
.nws-sp-accordion__body table th {
	font-weight: 700;
	color: #0a2540;
	background: #f5f7fb;
	width: 38%;
}

/* ── FAQ interne all'accordion ─────────────────────────────── */
.nws-sp-faq-list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.nws-sp-faq-item {
	padding: 14px 18px;
	background: #f8fafd;
	border-radius: 10px;
}
.nws-sp-faq-item__q {
	font-size: 15px;
	font-weight: 700;
	color: #0a2540;
	margin: 0 0 6px;
	line-height: 1.4;
}
.nws-sp-faq-item__a {
	font-size: 14px;
	color: #555;
	margin: 0;
	line-height: 1.65;
}

/* ── Responsive mobile ─────────────────────────────────────── */
@media (max-width: 768px) {
	.nws-sp-below {
		padding: 20px 16px 0;
	}
	.nws-sp-below__desc {
		font-size: 15px;
		margin-bottom: 24px;
		padding-bottom: 24px;
	}
	.nws-sp-accordion__trigger {
		padding: 14px 16px;
	}
	.nws-sp-accordion__title {
		font-size: 14px;
	}
	.nws-sp-accordion__body {
		padding: 0 16px 18px 58px;
		font-size: 14px;
	}
	.nws-sp-faq-item {
		padding: 12px 14px;
	}
}

/* ── Responsive slider ────────────────────────────────────── */
@media (max-width: 1100px) {
	body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product-template.is-flex-container > li {
		flex: 0 0 calc(33.333% - 14px) !important;
	}
}
@media (max-width: 760px) {
	body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product-template.is-flex-container > li {
		flex: 0 0 calc(50% - 10px) !important;
	}
}
@media (max-width: 480px) {
	body.nws-sp-active .wp-block-woocommerce-product-collection .wc-block-product-template.is-flex-container > li {
		flex: 0 0 80% !important;
	}
}

/* Nasconde il form varianti nativo su prodotti sudpesca */
body.nws-sudpesca-product form.variations_form.cart,
body.nws-sudpesca-product .woocommerce-variation-add-to-cart,
body.nws-sudpesca-product table.variations {
	display: none !important;
}

/* ═══════════════════════════════════════════════════════════
   TABELLA VARIANTI SUDPESCA
   ═══════════════════════════════════════════════════════════ */
.nws-sudp {
	margin: 24px 0 0;
}
.nws-sudp__title {
	font-size: 17px;
	font-weight: 800;
	color: #0a2540;
	margin: 0 0 6px;
	padding: 0;
	text-transform: none;
}
.nws-sudp__divider {
	width: 40px;
	height: 3px;
	background: #0d3ea3;
	border-radius: 2px;
	margin-bottom: 18px;
}
.nws-sudp__scroll {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	border-radius: 12px;
	border: 1px solid #e6eaf5;
}
.nws-sudp__table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
	min-width: 560px;
}
.nws-sudp__table thead tr {
	background: #f5f7fb;
	border-bottom: 1px solid #e6eaf5;
}
.nws-sudp__table thead th {
	padding: 10px 14px;
	text-align: left;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.07em;
	color: #6b7280;
	white-space: nowrap;
}
.nws-sudp__row {
	border-bottom: 1px solid #f0f2f8;
	transition: background .15s;
}
.nws-sudp__row:last-child { border-bottom: none; }
.nws-sudp__row:hover { background: #f9fbff; }
.nws-sudp__row--out { opacity: .6; }

.nws-sudp__table td {
	padding: 10px 14px;
	vertical-align: middle;
}

/* Immagine */
.nws-sudp__td-img img {
	width: 64px;
	height: 64px;
	object-fit: contain;
	border-radius: 8px;
	border: 1px solid #eaecf5;
	background: #f8f9fc;
	display: block;
}

/* Attributi */
.nws-sudp__td-attr {
	font-weight: 500;
	color: #1a1a2e;
	white-space: nowrap;
}

/* Disponibilità badge */
.nws-sudp__badge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	font-weight: 700;
	padding: 3px 10px;
	border-radius: 20px;
	white-space: nowrap;
}
.nws-sudp__badge--green {
	background: #dcfce7;
	color: #15803d;
}
.nws-sudp__badge--red {
	background: #fee2e2;
	color: #dc2626;
}

/* Prezzo */
.nws-sudp__td-price { white-space: nowrap; }
.nws-sudp__price-old {
	display: block;
	font-size: 11px;
	color: #bbb;
	text-decoration: line-through;
}
.nws-sudp__price {
	font-size: 14px;
	font-weight: 700;
	color: #1a1a2e;
}
.nws-sudp__price--sale { color: #dc470c; }

/* Acquista */
.nws-sudp__atc-wrap {
	display: flex;
	align-items: center;
	gap: 8px;
}
.nws-sudp__qty {
	display: flex;
	align-items: center;
	border: 1.5px solid #dde3f0;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
}
.nws-sudp__qty-btn {
	width: 28px;
	height: 32px;
	border: none;
	background: none;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
	color: #555;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}
.nws-sudp__qty-btn:hover { background: #f0f4ff; color: #0d3ea3; }
.nws-sudp__qty-input {
	width: 36px;
	height: 32px;
	border: none;
	border-left: 1px solid #eaecf5;
	border-right: 1px solid #eaecf5;
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	color: #1a1a2e;
	background: transparent;
	outline: none;
	-moz-appearance: textfield;
	padding: 0;
}
.nws-sudp__qty-input::-webkit-outer-spin-button,
.nws-sudp__qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }

.nws-sudp__btn-atc {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	height: 32px;
	padding: 0 12px;
	background: #0d3ea3;
	color: #fff;
	border: none;
	border-radius: 8px;
	font-size: 12px;
	font-weight: 700;
	cursor: pointer;
	white-space: nowrap;
	transition: filter .15s, transform .12s;
}
.nws-sudp__btn-atc:hover {
	filter: brightness(1.1);
	transform: translateY(-1px);
}
.nws-sudp__btn-atc--loading {
	opacity: .7;
	cursor: wait;
}
.nws-sudp__btn-atc--done {
	background: #15803d;
}
.nws-sudp__unavail {
	font-size: 12px;
	color: #aaa;
}

@media (max-width: 768px) {
	.nws-sudp__btn-label { display: none; }
	.nws-sudp__btn-atc { padding: 0 10px; }
}

/* ── Banner coupon promozione ────────────────────────────── */
.nws-coupon-banner {
	display: flex;
	align-items: center;
	gap: 14px;
	border: 2px dashed #d1d5db;
	border-radius: 12px;
	padding: 14px 18px;
	margin: 10px 0 4px;
	background: #fff;
}
.nws-coupon-banner__icon {
	flex-shrink: 0;
	color: #6b7280;
	display: flex;
	align-items: center;
}
.nws-coupon-banner__text {
	font-size: 15px;
	line-height: 1.5;
	color: #374151;
}
.nws-coupon-banner__code {
	color: #dc2626;
	font-weight: 700;
}
.nws-coupon-banner__pct {
	color: #dc2626;
	font-weight: 700;
}
@media (max-width: 768px) {
	.nws-coupon-banner {
		padding: 12px 14px;
		gap: 10px;
	}
	.nws-coupon-banner__text {
		font-size: 14px;
	}
}

/* Stili brand spostati in brands.css */
