/*
 * Helpyotek Intégration — fiche produit (retouches du client, 26/11/2026) :
 * mention sous la photo, quantité « − 2 + », bloc « Caractéristiques »,
 * textes de livraison. Couleurs du kit du site, avec leur valeur de repli.
 */

.single-product {
	--hlpk-f-nuit: var(--e-global-color-accent, #141833);
	--hlpk-f-jaune: var(--e-global-color-primary, #FFFB3F);
	--hlpk-f-texte: var(--e-global-color-text, #1C1E2B);
	--hlpk-f-doux: #4A4D5C;
	--hlpk-f-fond: #F2F3F7;
	--hlpk-f-ligne: #DDDFE8;
}

/* --- La mention sous la photo ------------------------------------------------------- */

.hlpk-fiche-mention {
	margin: 8px 0 0;
	font-size: 13px;
	line-height: 1.4;
	font-style: italic;
	color: var(--hlpk-f-doux);
	text-align: center;
}

/* --- La quantité « − 2 + » ---------------------------------------------------------- */

/* Spécificité relevée au-dessus de fiche-produit.css (CSS additionnel, qui sort après). */
.single-product form.cart .quantity.hlpk-qte {
	display: inline-flex;
	align-items: stretch;
	min-height: 48px;
	border: 1px solid #d0d0d0;
	border-radius: 4px;
	background: #fff;
	overflow: hidden;
}

.single-product form.cart .quantity.hlpk-qte .qty {
	width: 48px;
	min-height: 0;
	height: auto;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	font-size: 17px;
	font-weight: 700;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.single-product form.cart .quantity.hlpk-qte .qty::-webkit-outer-spin-button,
.single-product form.cart .quantity.hlpk-qte .qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Hello Elementor peint en rose tout bouton survolé ou au focus : couleurs imposées. */
.single-product form.cart .quantity.hlpk-qte .hlpk-qte-bouton,
.single-product form.cart .quantity.hlpk-qte .hlpk-qte-bouton:hover,
.single-product form.cart .quantity.hlpk-qte .hlpk-qte-bouton:focus,
.single-product form.cart .quantity.hlpk-qte .hlpk-qte-bouton:active {
	width: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--hlpk-f-fond);
	color: var(--hlpk-f-texte);
	font-size: 22px;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	box-shadow: none;
}

.single-product form.cart .quantity.hlpk-qte .hlpk-qte-bouton:hover {
	background: var(--hlpk-f-jaune);
}

.single-product form.cart .quantity.hlpk-qte .hlpk-qte-bouton:focus-visible {
	outline: 2px solid var(--hlpk-f-nuit);
	outline-offset: -2px;
}

.single-product form.cart .quantity.hlpk-qte .hlpk-qte-bouton:disabled {
	color: #b0b3c2;
	background: var(--hlpk-f-fond);
	cursor: default;
}

/* --- « En stock » en vert ------------------------------------------------------------- */

.single-product p.stock.hlpk-en-stock {
	color: #4C914D !important;
}

/* --- Le bloc « Caractéristiques » (au modèle de la référence du client, 29/11) -------- */

.hlpk-caract {
	margin: 28px 0;
}

.hlpk-caract .hlpk-caract-titre {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
	text-transform: none;
	color: var(--hlpk-f-texte);
}

.hlpk-caract-grille {
	margin: 0;
	border-top: 1px solid var(--hlpk-f-ligne);
}

.hlpk-caract-grille > div {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	min-height: 48px;
	padding: 8px 0;
	border-bottom: 1px solid var(--hlpk-f-ligne);
}

.hlpk-caract-grille dt,
.hlpk-caract-grille dd {
	margin: 0;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.4;
	color: var(--hlpk-f-texte);
}

.hlpk-caract-grille dt {
	flex: none;
}

.hlpk-caract-grille dd {
	text-align: right;
}

.hlpk-caract .hlpk-caract-logo {
	display: block;
	width: auto;
	max-width: 140px;
	max-height: 32px;
	margin-left: auto;
	object-fit: contain;
}

.hlpk-caract .hlpk-caract-modifier {
	margin-left: 6px;
	font-size: 14px;
	color: var(--hlpk-f-nuit);
	text-decoration: underline;
}

.hlpk-caract-saison {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}

.hlpk-caract-saison svg {
	flex: none;
	width: 26px;
	height: 26px;
}

/* La notation européenne : pictogramme + pastille fléchée de la classe. */
.hlpk-caract-notes {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: 8px 14px;
}

.hlpk-note-groupe {
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.hlpk-note-icone {
	flex: none;
	color: var(--hlpk-f-texte);
}

.hlpk-note {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	height: 22px;
	padding: 0 6px 0 12px;
	clip-path: polygon(9px 0, 100% 0, 100% 100%, 9px 100%, 0 50%);
	font-size: 13px;
	font-weight: 700;
	line-height: 1;
	color: #fff;
}

/* Couleurs de l'étiquette UE : vert → rouge (conso, bruit), bleus (pluie). */
.hlpk-note-conso.hlpk-note-a, .hlpk-note-bruit.hlpk-note-a { background: #00A651; }
.hlpk-note-conso.hlpk-note-b, .hlpk-note-bruit.hlpk-note-b { background: #8CC63F; color: #1C1E2B; }
.hlpk-note-conso.hlpk-note-c, .hlpk-note-bruit.hlpk-note-c { background: #D7DF23; color: #1C1E2B; }
.hlpk-note-conso.hlpk-note-d { background: #FFF200; color: #1C1E2B; }
.hlpk-note-conso.hlpk-note-e { background: #F7941D; color: #1C1E2B; }
.hlpk-note-pluie.hlpk-note-a { background: #1B3D8F; }
.hlpk-note-pluie.hlpk-note-b { background: #2C5DAA; }
.hlpk-note-pluie.hlpk-note-c { background: #4A7CC0; }
.hlpk-note-pluie.hlpk-note-d { background: #6E9AD2; }
.hlpk-note-pluie.hlpk-note-e { background: #9DBCE3; color: #1C1E2B; }

.hlpk-note-db {
	margin-left: 2px;
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
}

/* Texte lu par les lecteurs d'écran seulement (ne dépend pas du thème). */
.hlpk-caract .hlpk-lecteur {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}

/* Les liens vers les pneus de même cote, sous le bloc. */
.hlpk-caract-liens {
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
}

.hlpk-caract-liens li {
	margin: 0 0 8px;
}

.hlpk-caract-liens a {
	font-size: 16px;
	color: var(--hlpk-f-texte);
	text-decoration: none;
}

.hlpk-caract-liens a::before {
	content: "›";
	display: inline-block;
	width: 18px;
	font-weight: 700;
}

.hlpk-caract-liens a:hover {
	text-decoration: underline;
}

/* --- La livraison en bas de la fiche ----------------------------------------------- */

.hlpk-fiche-livraison {
	margin: 32px 0;
	padding: 24px;
	border-radius: 10px;
	background: var(--hlpk-f-fond);
}

.hlpk-fiche-livraison ul {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.hlpk-fiche-livraison li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0;
	font-size: 14px;
	line-height: 1.45;
	color: var(--hlpk-f-doux);
}

.hlpk-fiche-livraison li svg {
	flex: none;
	padding: 8px;
	width: 44px;
	height: 44px;
	box-sizing: border-box;
	border-radius: 8px;
	background: var(--hlpk-f-jaune);
	color: #000;
}

.hlpk-fiche-livraison li strong {
	display: block;
	margin-bottom: 2px;
	font-size: 15px;
	color: var(--hlpk-f-texte);
}

.hlpk-fiche-livraison .hlpk-fiche-livraison-lien {
	display: inline-block;
	margin-top: 16px;
	font-size: 14px;
	font-weight: 700;
	color: var(--hlpk-f-nuit);
	text-decoration: underline;
}

/* --- La photo reste à l'écran pendant qu'on lit la colonne de droite (01/12/2026) ---- */

/*
 * La colonne qui porte la galerie ShopEngine (photo + mention) devient collante,
 * sous l'en-tête collant du site (89 px) et la barre d'administration (32 px).
 * `align-self: flex-start` : la ligne l'étirait sur toute sa hauteur, et un
 * élément aussi haut que son parent n'a nulle part où coller. Ordinateur seul :
 * sous 1025 px, les colonnes s'empilent.
 */
@media (min-width: 1025px) {
	.single-product .e-con:has(> .elementor-widget-shopengine-single-product-images) {
		position: sticky;
		top: 113px;
		align-self: flex-start;
	}

	.admin-bar.single-product .e-con:has(> .elementor-widget-shopengine-single-product-images) {
		top: 145px;
	}
}
