/* Negozio (plugin Fishouse): fiocchi card, card prodotto, scheda prodotto — include/product-badges.php */
.woocommerce ul.products li.product,
ul.products li.product {
	position: relative;
}
.fh-ribbon {
	position: absolute;
	top: 0;
	right: 0;
	z-index: 5;
	width: 116px;
	height: 116px;
	overflow: hidden;
	pointer-events: none;
}
.fh-ribbon__band {
	position: absolute;
	top: 26px;
	right: -38px;
	display: block;
	width: 170px;
	padding: 6px 0;
	background: #000;
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, .3);
	font-family: var(--e-global-typography-primary-font-family, "Roboto"), Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: .08em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	transform: rotate(45deg);
}
@media (max-width: 767px) {
	.fh-ribbon {
		width: 92px;
		height: 92px;
	}
	.fh-ribbon__band {
		top: 19px;
		right: -36px;
		width: 140px;
		padding: 4px 0;
		font-size: 10px;
		letter-spacing: .06em;
	}
}

/* Scheda prodotto: nasconde la lente (icona lightbox di Product Gallery Slider) su mobile/tablet.
   Il tocco sulla foto apre comunque l'immagine ingrandita. */
@media (max-width: 990px) {
	.wpgs-lightbox-icon::before {
		display: none !important;
	}
}

/* Card prodotto (template Elementor "loop prodotto"): stessa altezza e
   prezzo + pulsante "Aggiungi al carrello" sempre allineati in fondo. */
.e-loop-item > .loop-prodotto,
ul.products li.product > .elementor > .loop-prodotto {
	height: 100%;
}
.loop-prodotto > .e-con-inner {
	height: 100%;
}
.loop-prodotto .elementor-widget-woocommerce-product-price {
	margin-top: auto;
}
ul.products li.product > .elementor {
	height: 100%;
}

/* ---------------------------------------------------------------------------
 * Scheda prodotto — mobile
 * ------------------------------------------------------------------------- */
@media (max-width: 767px) {
	/* Widget Feedaty nell'header: stesso spazio sopra e sotto (20px). */
	body.single-product .elementor-location-header .elementor-element.elementor-element-f5f4217 {
		padding-top: 10px !important; /* + 10px del contenitore interno = 20px */
	}

	/* Linguette Descrizione / Informazioni aggiuntive / Recensioni. */
	body.single-product .woocommerce-tabs ul.tabs {
		display: flex !important;
		align-items: stretch;
		margin: 0 0 20px !important;
		padding: 0 !important;
		border-bottom: 1px solid #e4ded6;
		overflow: visible;
	}
	body.single-product .woocommerce-tabs ul.tabs::before,
	body.single-product .woocommerce-tabs ul.tabs::after,
	body.single-product .woocommerce-tabs ul.tabs li::before,
	body.single-product .woocommerce-tabs ul.tabs li::after {
		display: none !important;
	}
	body.single-product .woocommerce-tabs ul.tabs li {
		display: flex !important;
		flex: 1 1 0;
		min-width: 0;
		margin: 0 !important;
		padding: 0 !important;
		border: 0 !important;
		border-radius: 0 !important;
		background: transparent !important;
	}
	body.single-product .woocommerce-tabs ul.tabs li a {
		display: flex !important;
		align-items: center;
		justify-content: center;
		width: 100%;
		margin-bottom: -1px;
		padding: 10px 4px !important;
		border-bottom: 3px solid transparent;
		color: var(--e-global-color-3b04a2e, #806C5E) !important;
		font-size: 13px;
		font-weight: 600;
		line-height: 1.25;
		text-align: center;
	}
	body.single-product .woocommerce-tabs ul.tabs li.active a {
		border-bottom-color: var(--e-global-color-d3b6c95, #BE7E23);
		color: var(--e-global-color-af31d00, #4E3624) !important;
	}

	/* Contenuto delle linguette: allineato a titolo e galleria (20px dal bordo). */
	body.single-product .woocommerce-tabs .woocommerce-Tabs-panel {
		padding-left: 10px !important;
		padding-right: 10px !important;
	}
}

/* ---------------------------------------------------------------------------
 * Focus promozione nella scheda prodotto — include/promo-focus.php
 * ------------------------------------------------------------------------- */
.fh-promo {
	margin: 8px 0 16px;
	padding: 18px 20px;
	border-radius: 8px;
	background: #000;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
}
.fh-promo + .fh-promo {
	margin-top: 0;
}
.fh-promo p {
	margin: 0;
	color: inherit;
}
.fh-promo__eyebrow {
	margin-bottom: 4px !important;
	color: var(--e-global-color-d3b6c95, #BE7E23) !important;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
}
.fh-promo__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
}
.fh-promo__title {
	font-size: 20px;
	font-weight: 700;
	line-height: 1.25;
}
.fh-promo button.fh-promo__code,
.fh-promo button.fh-promo__code:hover,
.fh-promo button.fh-promo__code:focus {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	padding: 5px 6px 5px 12px;
	border: 1px dashed #fff;
	border-radius: 4px;
	background: transparent;
	color: #fff;
	font-family: inherit;
	line-height: 1.2;
	cursor: pointer;
}
.fh-promo__code-text {
	font-size: 17px;
	font-weight: 700;
	letter-spacing: .06em;
}
.fh-promo__copy {
	padding: 3px 8px;
	border-radius: 3px;
	background: #fff;
	color: #000;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	white-space: nowrap;
}
.fh-promo button.fh-promo__code.is-copied .fh-promo__copy {
	background: var(--e-global-color-d3b6c95, #BE7E23);
	color: #fff;
}
.fh-promo button.fh-promo__code:focus-visible {
	outline: 2px solid var(--e-global-color-d3b6c95, #BE7E23);
	outline-offset: 2px;
}
.fh-promo__valid {
	margin-top: 10px !important;
	color: rgba(255, 255, 255, .85) !important;
}
.fh-promo__how {
	margin-top: 14px !important;
	font-weight: 700;
}
.fh-promo ol.fh-promo__steps {
	margin: 8px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: fh-step;
}
.fh-promo ol.fh-promo__steps li {
	position: relative;
	margin: 0 0 6px;
	padding-left: 32px;
	counter-increment: fh-step;
}
.fh-promo ol.fh-promo__steps li::before {
	content: counter(fh-step);
	position: absolute;
	top: 0;
	left: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--e-global-color-d3b6c95, #BE7E23);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}
.fh-promo__code-inline {
	letter-spacing: .04em;
}
.fh-promo__note {
	margin-top: 10px !important;
	padding-top: 10px;
	border-top: 1px solid rgba(255, 255, 255, .2);
	color: rgba(255, 255, 255, .7) !important;
	font-size: 12px;
}
@media (max-width: 767px) {
	.fh-promo {
		padding: 16px;
	}
	.fh-promo__title {
		font-size: 18px;
	}
}

/* Fascia promo nella card: "+5% extra con il codice ..." — include/promo-focus.php
   - dispositivi touch / mobile: sotto la foto, prima del titolo, sempre visibile;
   - desktop con mouse: in sovraimpressione in basso sulla foto, solo al passaggio del mouse. */
.fh-promo-card {
	position: static;
	margin: 0;
	padding: 5px 6px;
	background: #000;
	color: #fff;
	font-size: 11px;
	line-height: 1.3;
	text-align: center;
	pointer-events: none;
}
.fh-promo-card strong {
	letter-spacing: .03em;
}
/* Il link dell'immagine card era inline e lasciava 5px sotto la foto. */
.loop-prodotto .img-prodotto > .elementor-widget-container > a {
	display: block;
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
	.fh-promo-card {
		position: absolute;
		right: 0;
		bottom: 0;
		left: 0;
		z-index: 5;
		padding: 6px 10px;
		background: rgba(0, 0, 0, .88);
		font-size: 13px;
		opacity: 0;
		transform: translateY(6px);
		transition: opacity .2s ease, transform .2s ease;
	}
	.e-loop-item:hover .fh-promo-card,
	.e-loop-item:focus-within .fh-promo-card,
	ul.products li.product:hover .fh-promo-card,
	ul.products li.product:focus-within .fh-promo-card {
		opacity: 1;
		transform: none;
	}
}

/* Banner promozione nelle categorie — [fh_promo_category] */
.fh-promo.fh-promo--category {
	margin: 20px 0 0;
	padding: 22px 26px;
}
@media (min-width: 768px) {
	.fh-promo--category .fh-promo__title {
		font-size: 24px;
	}
	.fh-promo--category ol.fh-promo__steps {
		display: grid;
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}
	.fh-promo--category ol.fh-promo__steps li {
		margin: 0;
	}
}
@media (max-width: 767px) {
	.fh-promo.fh-promo--category {
		padding: 16px;
	}
}

/* Banner compatto promozioni per i prodotti NON in promozione — fh_promo_other_html() */
.fh-promo-mini {
	margin: 8px 0 16px;
	padding: 12px 16px;
	border-radius: 8px;
	background: #000;
	color: #fff;
	font-size: 14px;
	line-height: 1.45;
}
.fh-promo-mini p {
	margin: 0 0 6px;
}
.fh-promo-mini__badge {
	display: inline-block;
	margin-right: 6px;
	padding: 2px 8px;
	border-radius: 3px;
	background: var(--e-global-color-d3b6c95, #BE7E23);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	vertical-align: 1px;
}
.fh-promo-mini__dates {
	color: rgba(255, 255, 255, .85);
	font-size: 13px;
}
.fh-promo-mini ul.fh-promo-mini__list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.fh-promo-mini ul.fh-promo-mini__list li {
	position: relative;
	margin: 2px 0 0;
	padding-left: 14px;
}
.fh-promo-mini ul.fh-promo-mini__list li::before {
	content: "";
	position: absolute;
	top: .6em;
	left: 0;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--e-global-color-d3b6c95, #BE7E23);
}
.fh-promo-mini a,
.fh-promo-mini a:visited {
	color: #fff;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.fh-promo-mini a:hover {
	color: var(--e-global-color-d3b6c95, #BE7E23);
}
.fh-promo-mini__code {
	letter-spacing: .03em;
}
@media (max-width: 767px) {
	.fh-promo-mini {
		padding: 10px 12px;
		font-size: 13px;
	}
}
