/* ============================================================
 * Pagina prodotto Heedo standard (prodotti senza configuratore)
 * Riusa i design token dello stile configuratore: font Cormorant
 * per il titolo, CTA nera, bordi tenui, layout a due colonne.
 * ============================================================ */

.heedo-std {
	--heedo-bg: #fff;
	--heedo-border: #e5e5e5;
	--heedo-text: #111;
	--heedo-muted: #777;

	display: block;
	max-width: 1200px;
	margin: 0 auto;
	padding: 24px 24px 96px; /* spazio sotto per la sticky bar */
	color: var(--heedo-text);
}

/* Breadcrumb sopra la riga a due colonne */
.heedo-std .woocommerce-breadcrumb {
	margin: 0 0 20px;
	font-size: 0.85rem;
	color: var(--heedo-muted);
}
.heedo-std .woocommerce-breadcrumb a { color: var(--heedo-muted); }
.heedo-std .woocommerce-breadcrumb a:hover { color: var(--heedo-text); }

/* ============ Riga a due colonne: immagine a SINISTRA, contenuto a DESTRA ============ */

.heedo-std__cols {
	display: flex;
	flex-direction: column; /* mobile: impilate */
	gap: 32px;
}

@media (min-width: 900px) {
	.heedo-std__cols {
		flex-direction: row;
		align-items: flex-start; /* tops allineati sulla stessa linea, non sfalsati */
		gap: 40px;
	}
	.heedo-std__gallery { flex: 1 1 0; min-width: 0; }  /* colonna sinistra (immagine) */
	.heedo-std__summary { flex: 1 1 0; min-width: 0; }  /* colonna destra (contenuto) */
}

.heedo-std__after { margin-top: 32px; }

/* ============ Galleria ============ */

.heedo-std__gallery {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0; /* evita il "blowout" del grid: l'immagine non deve allargare la colonna */
}

.heedo-std__stage {
	position: relative;
	width: 100%;
	/* Altezza esplicita: non dipende da aspect-ratio (che in alcuni contesti dava un riquadro enorme) */
	height: min( 72vh, 560px );
	background: var(--heedo-bg);
	border: 1px solid var(--heedo-border);
	border-radius: 4px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.heedo-std__main-image,
.heedo-std__stage img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.heedo-std__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.heedo-std__thumb {
	box-sizing: border-box;
	cursor: pointer;
	width: 72px;
	height: 72px;
	padding: 0;
	margin: 0;
	background: #fff;
	border: 1px solid var(--heedo-border);
	border-radius: 3px;
	overflow: hidden;
	outline: none;
	transition: border-color 0.15s ease;
}

.heedo-std__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.heedo-std__thumb:hover { border-color: var(--heedo-text); }
.heedo-std__thumb.is-active { border-color: var(--heedo-text); }

/* ============ Riepilogo ============ */

.heedo-std__summary {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0; /* anti-blowout del grid */
}

.heedo-std__title {
	font-family: 'Cormorant Garamond', serif !important;
	font-size: 2.75rem !important;
	font-weight: 700 !important;
	color: inherit !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	line-height: 1.1 !important;
	margin: 0 !important;
}

.heedo-std__price {
	font-size: 1.6rem;
	font-weight: 600;
	line-height: 1.1;
}
.heedo-std__price ins { text-decoration: none; }
.heedo-std__price del { opacity: 0.55; margin-right: 8px; font-weight: 400; }
.heedo-std__price .woocommerce-Price-amount { white-space: nowrap; }

.heedo-std__excerpt {
	font-size: 1rem;
	line-height: 1.6;
	color: var(--heedo-muted);
}
.heedo-std__excerpt p { margin: 0 0 10px; }

/* ============ Form carrello nativo WooCommerce ============ */

.heedo-std__cart { margin-top: 4px; }

/* Quantità: un solo contorno (l'esterno), riga a sé sopra il bottone */
.heedo-std .quantity {
	display: inline-flex;
	align-items: stretch;
	border: 1px solid var(--heedo-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	margin: 0 0 14px;
}
/* Rimuove i doppi bordi/ombre che Astra mette su input e pulsanti +/- interni */
.heedo-std .quantity input,
.heedo-std .quantity button,
.heedo-std .quantity a,
.heedo-std .quantity .minus,
.heedo-std .quantity .plus,
.heedo-std .quantity input[type="button"] {
	border: none !important;
	box-shadow: none !important;
	background: transparent !important;
	border-radius: 0 !important;
	outline: none !important;
}
.heedo-std .quantity input.qty {
	box-sizing: border-box;
	width: 56px;
	padding: 10px 6px;
	color: var(--heedo-text);
	font: inherit;
	font-size: 0.95rem;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}
.heedo-std .quantity input.qty::-webkit-outer-spin-button,
.heedo-std .quantity input.qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.heedo-std .quantity .minus,
.heedo-std .quantity .plus,
.heedo-std .quantity button {
	width: 40px;
	cursor: pointer;
	font-size: 1.1rem;
	color: var(--heedo-text);
}

/* Bottone "Aggiungi al carrello" nativo → look Heedo */
.heedo-std .single_add_to_cart_button,
.heedo-std .single_add_to_cart_button:hover,
.heedo-std .single_add_to_cart_button:focus,
.heedo-std .single_add_to_cart_button:active {
	box-sizing: border-box;
	cursor: pointer;
	display: block;
	width: 100%;
	max-width: 420px;
	min-width: 0;
	margin: 0;
	padding: 16px 26px;
	background: var(--heedo-text) !important;
	color: #fff !important;
	border: none;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	font-size: 1rem;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	outline: none;
	transition: background 0.15s ease, opacity 0.15s ease;
}
.heedo-std .single_add_to_cart_button:not(:disabled):hover { background: #000 !important; }
.heedo-std .single_add_to_cart_button:disabled,
.heedo-std .single_add_to_cart_button.disabled { opacity: 0.4; cursor: not-allowed; }

/* Pulsante PayPal alla stessa larghezza di "Aggiungi al carrello" (420px).
   La CSS vincola il contenitore PRIMA che l'SDK PayPal disegni il bottone. */
.heedo-std .paypal-buttons,
.heedo-std .ppc-button-wrapper,
.heedo-std .ppcp-button-container,
.heedo-std [id^="ppc-button"],
.heedo-std [class*="ppcp-button"],
.heedo-std .pp-button-container,
.heedo-std .paypal-button-container,
.heedo-std .woocommerce-PayPal-button {
	max-width: 420px !important;
	width: 100% !important;
	margin-left: 0 !important;
	margin-right: auto !important;
}

/* Tabella varianti (prodotti variabili senza configuratore):
   forziamo il layout a blocchi così l'etichetta sta SOPRA il menu,
   e togliamo i bordi di tabella (le "linee" del tema). */
.heedo-std table.variations,
.heedo-std table.variations tbody,
.heedo-std table.variations tr,
.heedo-std table.variations th,
.heedo-std table.variations td {
	display: block !important;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: none !important;
	background: transparent !important;
	vertical-align: baseline;
}
.heedo-std table.variations {
	margin: 0 0 12px;
	border-collapse: collapse;
}
/* Ogni riga attributo (es. Dimensione) impilata */
.heedo-std table.variations tr {
	margin-bottom: 16px;
}
/* Etichetta SOPRA il menu */
.heedo-std table.variations th.label,
.heedo-std table.variations td.label {
	margin: 0 0 6px;
	font-weight: 600;
	font-size: 0.95rem;
	text-align: left !important;
	line-height: 1.3;
}
.heedo-std table.variations select {
	box-sizing: border-box;
	width: 100%;
	max-width: 420px;
	min-height: 52px;
	padding: 10px 16px;
	background: #fff;
	color: var(--heedo-text);
	border: 1px solid var(--heedo-border) !important;
	border-radius: 4px;
	font: inherit;
	font-size: 0.95rem;
	outline: none;
	transition: border-color 0.15s ease;
}
.heedo-std table.variations select:hover,
.heedo-std table.variations select:focus { border-color: var(--heedo-text) !important; }

.heedo-std .reset_variations {
	display: block !important;   /* riga a sé, allineato a sinistra (non più a destra del menu) */
	width: fit-content;
	margin: 12px 0 4px;          /* un po' staccato dal menu, sopra il prezzo */
	font-size: 0.85rem;
	color: var(--heedo-muted);
	text-decoration: underline;
}
.heedo-std .reset_variations:hover { color: var(--heedo-text); }

.heedo-std .woocommerce-variation-price {
	font-size: 1.4rem;
	font-weight: 600;
	margin: 8px 0;
}
.heedo-std .woocommerce-variation-availability { color: var(--heedo-muted); font-size: 0.9rem; }

/* Prodotti raggruppati */
.heedo-std .woocommerce-grouped-product-list { width: 100%; border-collapse: collapse; }
.heedo-std .woocommerce-grouped-product-list td { padding: 8px 6px; border-bottom: 1px solid var(--heedo-border); }

/* ============ Messaggi sotto il carrello (rate + pagamenti sicuri) ============ */

.heedo-std__reassurance {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-width: 420px;
	margin: 14px 0 2px;
}
.heedo-std__reassurance-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
	color: var(--heedo-muted);
	line-height: 1.35;
}
.heedo-std__reassurance-item svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	color: var(--heedo-text);
}
.heedo-std__reassurance-item strong { color: var(--heedo-text); font-weight: 600; }

/* ============ Bottone "Scopri info" ============ */

.heedo-std__info-btn,
.heedo-std__info-btn:hover,
.heedo-std__info-btn:focus,
.heedo-std__info-btn:active {
	box-sizing: border-box;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	max-width: 420px;
	margin: 14px 0 0;
	padding: 14px 20px;
	background: #fff !important;
	color: var(--heedo-text) !important;
	border: 1px solid var(--heedo-border);
	border-radius: 4px;
	font: inherit;
	font-weight: 500;
	font-size: 0.95rem;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	outline: none;
	transition: border-color 0.15s ease;
}
.heedo-std__info-btn:hover { border-color: var(--heedo-text); }
.heedo-std__info-icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ============ Sezioni sotto ============ */

.heedo-std__after:empty { display: none; }

/* Blocca lo scroll del body quando lightbox/modal è aperto */
body.heedo-std-noscroll { overflow: hidden; }

/* ============ Lightbox galleria ============ */

.heedo-std__lightbox {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba( 0, 0, 0, 0.9 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px;
}
.heedo-std__lightbox[hidden] { display: none; }

.heedo-std__lightbox-img {
	max-width: 92vw;
	max-height: 88vh;
	object-fit: contain;
	display: block;
	user-select: none;
}

.heedo-std__lightbox-close,
.heedo-std__lightbox-close:hover,
.heedo-std__lightbox-close:focus {
	position: absolute;
	top: 20px;
	right: 24px;
	width: 44px;
	height: 44px;
	cursor: pointer;
	background: transparent !important;
	color: #fff !important;
	border: none;
	border-radius: 50%;
	font-size: 2rem;
	line-height: 1;
	padding: 0;
	margin: 0;
	box-shadow: none;
	outline: none;
}
.heedo-std__lightbox-close:hover { background: rgba( 255, 255, 255, 0.12 ) !important; }

.heedo-std__lightbox-nav,
.heedo-std__lightbox-nav:hover,
.heedo-std__lightbox-nav:focus {
	position: absolute;
	top: 50%;
	transform: translateY( -50% );
	width: 52px;
	height: 52px;
	cursor: pointer;
	background: rgba( 255, 255, 255, 0.1 ) !important;
	color: #fff !important;
	border: none;
	border-radius: 50%;
	font-size: 2rem;
	line-height: 1;
	padding: 0;
	margin: 0;
	box-shadow: none;
	outline: none;
	transition: background 0.15s ease;
}
.heedo-std__lightbox-nav:hover { background: rgba( 255, 255, 255, 0.25 ) !important; }
.heedo-std__lightbox-prev { left: 20px; }
.heedo-std__lightbox-next { right: 20px; }

@media (max-width: 600px) {
	.heedo-std__lightbox { padding: 16px; }
	.heedo-std__lightbox-nav { width: 42px; height: 42px; font-size: 1.6rem; }
	.heedo-std__lightbox-prev { left: 8px; }
	.heedo-std__lightbox-next { right: 8px; }
}

/* ============ Modal "Scopri info" ============ */

.heedo-std__modal {
	position: fixed;
	inset: 0;
	z-index: 100;
	background: rgba( 0, 0, 0, 0.55 );
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
}
.heedo-std__modal[hidden] { display: none; }

.heedo-std__modal-card {
	position: relative;
	background: #fff;
	color: var(--heedo-text);
	max-width: 720px;
	width: 100%;
	max-height: 85vh;
	overflow-y: auto;
	border-radius: 6px;
	padding: 36px 40px 32px;
	box-shadow: 0 20px 60px rgba( 0, 0, 0, 0.25 );
}

.heedo-std__modal-close,
.heedo-std__modal-close:hover,
.heedo-std__modal-close:focus {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 36px;
	height: 36px;
	cursor: pointer;
	background: transparent !important;
	color: var(--heedo-muted) !important;
	border: none;
	border-radius: 50%;
	font-size: 1.6rem;
	line-height: 1;
	padding: 0;
	margin: 0;
	box-shadow: none;
	outline: none;
}
.heedo-std__modal-close:hover { background: #f4f4f4 !important; color: var(--heedo-text) !important; }

.heedo-std__modal-title {
	font-family: 'Cormorant Garamond', serif !important;
	margin: 0 0 16px !important;
	font-size: 1.9rem !important;
	font-weight: 700 !important;
}

.heedo-std__modal-body {
	font-size: 1rem;
	line-height: 1.7;
}
.heedo-std__modal-body p { margin: 0 0 14px; }
.heedo-std__modal-body img { max-width: 100%; height: auto; }

/* ============ Sticky bar in basso ============ */

.heedo-std__bar {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 90;
	background: #fff;
	border-top: 1px solid var(--heedo-border);
	padding: 12px 24px;
	display: flex;
	align-items: center;
	gap: 20px;
	box-shadow: 0 -4px 18px rgba( 0, 0, 0, 0.04 );
}
.heedo-std__bar[hidden] { display: none; }

.heedo-std__bar-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex: 1;
}

.heedo-std__bar-title {
	font-family: 'Cormorant Garamond', serif;
	font-weight: 700;
	font-size: 1.25rem;
	line-height: 1.1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.heedo-std__bar-price {
	font-size: 0.95rem;
	color: var(--heedo-muted);
	white-space: nowrap;
}
.heedo-std__bar-price ins { text-decoration: none; }
.heedo-std__bar-price del { opacity: 0.55; margin-right: 6px; font-weight: 400; }

.heedo-std__bar-cta,
.heedo-std__bar-cta:hover,
.heedo-std__bar-cta:focus,
.heedo-std__bar-cta:active {
	box-sizing: border-box;
	cursor: pointer;
	margin: 0;
	padding: 12px 24px;
	background: var(--heedo-text) !important;
	color: #fff !important;
	border: none;
	border-radius: 4px;
	font: inherit;
	font-weight: 600;
	font-size: 0.9rem;
	text-align: center;
	text-transform: none;
	letter-spacing: normal;
	box-shadow: none;
	outline: none;
	min-width: 180px;
	transition: background 0.15s ease;
}
.heedo-std__bar-cta:hover { background: #000 !important; }

@media (max-width: 600px) {
	.heedo-std { padding: 16px 16px 88px; gap: 24px; }
	.heedo-std__title { font-size: 2.1rem !important; }
	.heedo-std .single_add_to_cart_button { min-width: 0; width: 100%; }
	.heedo-std__bar { padding: 10px 14px; gap: 12px; }
	.heedo-std__bar-cta { min-width: 0; padding: 10px 16px; }
	.heedo-std__bar-price { display: none; }
}
