/* ============================================================
   PDP – Above the fold in stile inffnitech.com
   Caricato solo su is_product() (vedi inc/pdp.php).
   Colori: --fs-color-primary (#000) e --fs-color-secondary (#3dcbd2) dal Customizer.
   ============================================================ */

.single-product .product .product_title {
	font-size: 33px;
	font-weight: 700;
	line-height: 1.25;
	margin-bottom: 10px;
}

.single-product .product .price-wrapper .price {
	color: #181d27;
	font-size: 28px;
	font-weight: 700;
	margin-bottom: 20px;
}

.single-product .product .price-wrapper .amount {
	font-weight: inherit;
}

/* Box "note": descrizione breve in grigio, comprimibile (pdp.js) */
.single-product .product .product-short-description {
	background: #f5f5f7;
	border-radius: 12px;
	color: #414651;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 20px;
	padding: 16px 20px;
	position: relative;
	max-height: 9.6em; /* ~4 righe + padding prima che il JS decida */
	overflow: hidden;
}

.single-product .product .product-short-description p:last-child {
	margin-bottom: 0;
}

.single-product .product .product-short-description.is-clamped {
	margin-bottom: 0;
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}

.single-product .product .product-short-description.is-clamped:not(.is-open)::after {
	content: "";
	position: absolute;
	inset: auto 0 0;
	height: 2.4em;
	background: linear-gradient(rgba(245, 245, 247, 0), #f5f5f7);
}

.single-product .product .product-short-description.is-open {
	max-height: none;
}

.single-product .nital-note-toggle {
	display: block;
	width: 100%;
	margin: 0 0 20px;
	padding: 0 20px 14px;
	border: 0 !important;
	border-radius: 0 0 12px 12px !important;
	background: #f5f5f7;
	color: #181d27;
	font-size: 13px;
	font-weight: 600;
	text-align: left;
	text-decoration: underline;
	text-transform: none;
	letter-spacing: 0;
	line-height: 1.4;
	min-height: 0;
	cursor: pointer;
}

/* Selettore opzioni (modal off-canvas): card bianca con bordo turchese */
.single-product .product .nvl-up-sells-selector {
	background: #fff;
	border: 2px solid var(--fs-color-secondary);
	border-radius: 12px;
	margin-bottom: 20px;
	padding: 14px 48px 14px 18px;
}

.single-product .product .nvl-up-sells-selector::after {
	content: "";
	position: absolute;
	right: 20px;
	top: 50%;
	width: 8px;
	height: 8px;
	border-right: 2px solid #181d27;
	border-bottom: 2px solid #181d27;
	transform: translateY(-50%) rotate(-45deg);
}

.single-product .product .nvl-up-sells-selector__text {
	color: #717680;
	font-size: 13px;
}

.single-product .product .nvl-up-sells-selector__text--selected {
	color: #181d27;
	font-size: 15px;
	font-weight: 600;
}

/* Disponibilità + carrello */
/* Quantità nascosta (ex CSS aggiuntivo "LM: add to cart button"): 1 pezzo per click, come il riferimento */
.single-product .ux-quantity.quantity.buttons_added {
	display: none !important;
}

.single-product .product p.stock {
	font-size: 13px;
	margin-bottom: 10px;
}

.single-product .product form.cart {
	gap: 10px;
	margin-bottom: 16px;
}

.single-product .product form.cart .quantity {
	margin: 0 !important;
}

.single-product .product form.cart .quantity input {
	height: 50px;
}

.single-product .product form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	height: 50px;
	min-height: 50px;
	margin: 0;
	background-color: #000;
	border-color: #000;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
}

.single-product .product form.cart .single_add_to_cart_button:hover {
	background-color: #2b2b2b;
	box-shadow: none;
}

/* ============================================================
   Sticky add to cart (markup in inc/pdp.php)
   ============================================================ */
.sticky-add-to-cart-wrapper .sticky-add-to-cart {
	background-color: #fff;
	box-shadow: 0 -1px 0 rgba(0, 0, 0, .06), 0 -8px 24px rgba(0, 0, 0, .06);
}

.sticky-add-to-cart .sticky-add-to-cart__product {
	gap: 10px 20px;
}

.sticky-add-to-cart .sticky-cart-inner {
	align-items: center;
	display: flex;
	justify-content: space-between;
	padding-inline: 60px;
	width: 100%;
}

.sticky-cart-left {
	align-items: center;
	display: flex;
	flex: 1;
	gap: 12px;
	min-width: 0;
}

.sticky-cart-title {
	display: flex;
	flex-direction: column;
	line-height: 1.3;
	min-width: 0;
}

.sticky-cart-title .product-title-small {
	color: #181d27;
	font-size: 16px;
	font-weight: 600;
}

.sticky-cart-subtitle {
	color: #717680;
	font-size: 13px;
}

.sticky-cart-nav {
	align-items: center;
	background-color: #f4f4f4;
	border-radius: 100px;
	display: flex;
	gap: 10px;
	padding: 5px 10px;
}

.sticky-nav-link {
	color: rgba(45, 45, 45, .6);
	display: inline-block;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	padding: 8px 20px;
	white-space: nowrap;
}

.sticky-nav-link:hover {
	color: #2d2d2d;
}

.sticky-cart-right {
	align-items: center;
	display: flex;
	flex: 1;
	gap: 16px;
	justify-content: flex-end;
}

.sticky-cart-price {
	color: #181d27;
	font-size: 18px;
	font-weight: 600;
	white-space: nowrap;
}

.sticky-cart-price del {
	font-size: 14px;
}

.sticky-cart-right .stock,
.sticky-cart-right .quantity {
	display: none !important;
}

.sticky-cart-right form.cart {
	margin: 0;
}

.sticky-cart-right .cart button[name="add-to-cart"],
.sticky-cart-right a.button {
	background-color: var(--fs-color-secondary);
	border-color: var(--fs-color-secondary);
	color: #fff;
	font-weight: 600;
	margin: 0;
	padding-inline: 28px;
	text-transform: none;
	letter-spacing: 0;
	white-space: nowrap;
	width: auto;
}

@media screen and (max-width: 1023px) {
	.sticky-add-to-cart {
		padding: 0;
	}

	.sticky-add-to-cart .sticky-cart-inner {
		flex-wrap: wrap;
		padding: 0 0 8px;
	}

	.sticky-cart-nav {
		border-radius: 0;
		border-top: 1px solid #e0e0e0;
		justify-content: center;
		order: -1;
		width: 100%;
	}

	.sticky-cart-left,
	.sticky-cart-right {
		margin-inline: 12px;
	}
}

/* Il pulsante preferenze cookie (iubenda, in basso a sinistra) sale sopra la sticky bar */
body.has-sticky-product-cart .iubenda-tp-btn.iubenda-cs-preferences-link {
	transform: translateY(-70px) !important;
	transition: transform .2s ease;
}

@media (max-width: 549px) {
	.single-product .product .product_title {
		font-size: 26px;
	}

	.single-product .product .price-wrapper .price {
		font-size: 22px;
	}

	.sticky-cart-subtitle,
	.sticky-cart-price {
		display: none;
	}

	.sticky-cart-title .product-title-small {
		font-size: 14px;
	}

	.sticky-cart-right .cart button[name="add-to-cart"] {
		padding-inline: 18px;
	}
}

/* ============================================================
   Ex CSS aggiuntivo "LM: PDP" (regole ancora in uso)
   ============================================================ */
body.single-product .variations_form .label {
	font-size: 1rem;
}

body.single-product .variations_form .woocommerce-variation-price {
	font-size: .85rem;
}

body.single-product .variations_form .woocommerce-variation-price ins .woocommerce-Price-amount {
	font-size: 1.4rem;
}

body.single-product .nvl-spec-icon-container .nvl-title {
	margin-bottom: 24px;
	margin-top: -16px;
	text-transform: lowercase !important;
}

body.single-product .nvl-spec-icon-container .nvl-title h6 {
	font-size: 21px;
	font-weight: 500;
	text-transform: capitalize;
}
