/*
 * Product page v2 : fiche produit WooCommerce (body.single-product uniquement).
 * Chargé après style.css / responsive.css. Retirer l'enqueue 'product-v2' dans functions.php pour revenir en arrière.
 */

body.single-product {
	--pv2-red: #e4002b;
	--pv2-red-dark: #b80022;
	--pv2-ink: #1a1a1a;
	--pv2-muted: #6f6f6f;
	--pv2-line: #e6e6e6;
	--pv2-soft: #f6f6f6;
	--pv2-radius: 8px;
}

/* ---------------------------------------------------------------- */
/* Fil d'Ariane + bandeau titre                                       */
/* ---------------------------------------------------------------- */
body.single-product .page-title.header {
	background: none;
	border: 0;
	padding: 14px 0 0;
	margin: 0;
	min-height: 0;
}

body.single-product .page-title-inner {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
	text-align: left;
}

body.single-product .page-title .entry-title-main {
	display: none;
}

body.single-product .woocommerce-breadcrumb {
	margin: 0;
	padding: 0;
	font-size: 12px;
	line-height: 1.5;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pv2-muted);
}

body.single-product .woocommerce-breadcrumb a {
	color: var(--pv2-ink);
}

body.single-product .woocommerce-breadcrumb a:hover {
	color: var(--pv2-red);
}

/* ---------------------------------------------------------------- */
/* Grille 2 colonnes : galerie | achat                                */
/* ---------------------------------------------------------------- */
body.single-product div.product[id^="product-"] {
	max-width: 1280px;
	margin: 0 auto;
	padding: 20px 24px 0;
	box-sizing: border-box;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
	column-gap: 48px;
	align-items: start;
}

body.single-product div.product[id^="product-"] > .theme-container,
body.single-product div.product[id^="product-"] > .summary {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body.single-product div.product[id^="product-"] > .woocommerce-tabs,
body.single-product div.product[id^="product-"] > .related,
body.single-product div.product[id^="product-"] > section.related {
	grid-column: 1 / -1;
}

body.single-product div.product[id^="product-"] > .summary {
	position: relative;
	top: auto;
}

/* ---------------------------------------------------------------- */
/* Galerie                                                            */
/* ---------------------------------------------------------------- */
body.single-product .woocommerce-product-gallery {
	width: 100% !important;
	float: none !important;
	margin: 0;
	position: relative;
}

body.single-product .woocommerce-product-gallery .flex-viewport {
	border-radius: 10px;
	background: #f4f4f4;
	overflow: hidden;
}

body.single-product .woocommerce-product-gallery__image img {
	width: 100%;
	height: auto;
	display: block;
}

body.single-product .woocommerce-product-gallery__trigger {
	top: 14px;
	right: 14px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	color: var(--pv2-ink);
	box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 5;
}

body.single-product .flex-control-thumbs {
	margin: 12px 0 0;
	padding: 0;
}

body.single-product .flex-control-thumbs .owl-item {
	padding: 0 5px;
	box-sizing: border-box;
}

body.single-product .flex-control-thumbs img {
	width: 100%;
	height: auto;
	border: 2px solid transparent;
	border-radius: 6px;
	background: #f4f4f4;
	opacity: .85;
	transition: border-color .15s, opacity .15s;
}

body.single-product .flex-control-thumbs img.flex-active,
body.single-product .flex-control-thumbs img:hover {
	border-color: var(--pv2-red);
	opacity: 1;
}

/* Pastille -50% : rond rouge sur l'image */
body.single-product .woocommerce-product-gallery .jj-sale-sticker {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 6;
	width: 54px;
	height: 54px;
	margin: 0;
	background: none;
}

body.single-product .woocommerce-product-gallery .jj-sale-sticker-back,
body.single-product .woocommerce-product-gallery .jj-sale-sticker-peel {
	display: none;
}

body.single-product .woocommerce-product-gallery .jj-sale-sticker-price {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: var(--pv2-red);
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	transform: rotate(-8deg);
	box-shadow: 0 2px 8px rgba(228, 0, 43, .35);
}

/* ---------------------------------------------------------------- */
/* Colonne achat : titre, prix, description courte                    */
/* ---------------------------------------------------------------- */
body.single-product .summary .product_title {
	margin: 0 0 10px;
	font-size: 26px;
	text-wrap: balance;
	line-height: 1.25;
	font-weight: 700;
	letter-spacing: 0;
	color: var(--pv2-ink);
	text-transform: none;
}

body.single-product .tmpmela_product_nav_buttons {
	display: none;
}

body.single-product .summary p.price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 0 0 14px;
	font-size: 16px;
}

body.single-product .summary p.price del {
	order: 1;
	color: #9a9a9a;
	font-size: 22px;
	font-weight: 500;
	opacity: 1;
	text-decoration: line-through;
}

body.single-product .summary p.price ins {
	order: 2;
	background: none;
	color: var(--pv2-red);
	font-size: 34px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
}

body.single-product .summary p.price .amount {
	font-size: inherit !important;
	color: inherit;
}

body.single-product .hv2-price-pill {
	order: 3;
	align-self: center;
	padding: 4px 10px;
	border-radius: 999px;
	background: var(--pv2-red);
	color: #fff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
}

body.single-product .woocommerce-product-details__short-description {
	margin: 0 0 16px;
}

body.single-product .woocommerce-product-details__short-description h4 {
	margin: 0;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.5;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--pv2-ink);
}

body.single-product .logo-size-container {
	display: flex;
	align-items: center;
	gap: 24px;
	margin: 0 0 22px;
	padding: 0;
}

body.single-product .logo-size-container > div {
	margin: 0;
	padding: 0;
	float: none;
	width: auto;
}

body.single-product .logo-size-container img {
	display: block;
	height: 54px;
	width: auto;
	max-width: 140px;
	object-fit: contain;
}

body.single-product .logo-size-container .size-chart-btn-container {
	padding-left: 24px;
	border-left: 1px solid var(--pv2-line);
}

/* ---------------------------------------------------------------- */
/* Formulaire : champs FPF                                            */
/* ---------------------------------------------------------------- */
body.single-product form.cart {
	display: block;
	margin: 0;
}

body.single-product .fpf-fields.before-add-to-cart {
	display: block;
	margin: 0 0 14px;
}

body.single-product .fpf-field {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	width: 100%;
	float: none;
}

body.single-product .fpf-field.fpf-heading h2 {
	margin: 0 0 12px;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pv2-ink);
}

body.single-product .fpf-field p,
body.single-product .fpf-field label {
	font-size: 13px;
	letter-spacing: 0;
}

/* Tailles : boutons */
body.single-product .fpf-field.fpf-radio {
	margin: 0 0 22px;
}

body.single-product .fpf-field.fpf-radio fieldset {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

body.single-product .fpf-field.fpf-radio legend {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

body.single-product .fpf-field.fpf-radio label {
	position: relative;
	display: flex !important;
	align-items: center;
	justify-content: center;
	float: none !important;
	line-height: 1 !important;
	width: auto !important;
	flex: 0 0 auto;
	min-width: 56px;
	height: 44px !important;
	margin: 0 !important;
	padding: 0 14px;
	box-sizing: border-box;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	background: #fff;
	color: var(--pv2-ink);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color .15s, background .15s, color .15s;
}

body.single-product .fpf-field.fpf-radio label:hover {
	border-color: var(--pv2-ink);
}

body.single-product .fpf-field.fpf-radio label input {
	position: absolute;
	opacity: 0;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

body.single-product .fpf-field.fpf-radio label.selected,
body.single-product .fpf-field.fpf-radio label:has(input:checked) {
	background: var(--pv2-ink);
	border-color: var(--pv2-ink);
	color: #fff;
}

body.single-product .fpf-field.fpf-radio label:has(input:focus-visible) {
	outline: 2px solid var(--pv2-red);
	outline-offset: 2px;
}

/* Lien guide des tailles (ajouté par product-v2.js à côté du titre) */
body.single-product .hv2-size-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin: 0 0 12px;
}

body.single-product .hv2-size-head h2 {
	margin: 0 !important;
}

body.single-product .hv2-size-head--solo {
	justify-content: flex-end;
}

body.single-product .hv2-size-link {
	color: var(--pv2-red);
	font-size: 13px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	white-space: nowrap;
	cursor: pointer;
}

/* Cartes personnalisation / badges (créées par product-v2.js) */
body.single-product .hv2-card {
	margin: 0 0 14px;
	padding: 16px 18px;
	border: 1px solid var(--pv2-line);
	border-radius: var(--pv2-radius);
	background: var(--pv2-soft);
}

body.single-product .hv2-card > .fpf-heading h2 {
	margin-bottom: 4px;
}

body.single-product .hv2-card > .fpf-paragraph p {
	margin: 0 0 12px;
	color: var(--pv2-muted);
	font-size: 12.5px;
	line-height: 1.5;
}

body.single-product .hv2-cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}

body.single-product .hv2-col {
	display: flex;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

body.single-product .hv2-col .fpf-field p {
	margin: 0;
}

body.single-product .hv2-col .fpf-paragraph p {
	color: var(--pv2-muted);
	font-size: 12px;
	line-height: 1.4;
}

body.single-product .fpf-checkbox label.checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 14px;
	font-weight: 600;
	color: var(--pv2-ink);
	cursor: pointer;
}

body.single-product .fpf-checkbox input[type="checkbox"] {
	flex: 0 0 18px;
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: var(--pv2-red);
}

body.single-product .fpf-checkbox .optional,
body.single-product .fpf-text .optional,
body.single-product .fpf-number .optional {
	display: none;
}

body.single-product .fpf-checkbox label span[id$="_price"] {
	color: var(--pv2-red);
	font-weight: 600;
}

body.single-product .fpf-text p.form-row,
body.single-product .fpf-number p.form-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

body.single-product .fpf-text label,
body.single-product .fpf-number label {
	font-size: 12px;
	color: var(--pv2-muted);
}

body.single-product .fpf-text input.input-text,
body.single-product .fpf-number input.input-text {
	width: 100%;
	height: 42px;
	padding: 0 12px;
	box-sizing: border-box;
	border: 1px solid #d3d3d3;
	border-radius: 6px;
	background: #fff;
	font-size: 14px;
	color: var(--pv2-ink);
}

body.single-product .fpf-text input.input-text:focus,
body.single-product .fpf-number input.input-text:focus {
	border-color: var(--pv2-ink);
	outline: 0;
	box-shadow: 0 0 0 3px rgba(26, 26, 26, .12);
}

/* Badges : cartes */
body.single-product .fpf-field.fpf-radio-images {
	margin: 0 0 12px;
}

body.single-product .fpf-radio-images p.form-row.badge {
	margin: 0;
	padding: 14px;
	border: 1px solid var(--pv2-line);
	border-radius: var(--pv2-radius);
	background: #fff;
}

body.single-product .fpf-radio-images p.form-row.badge > label {
	display: block;
	margin: 0 0 8px;
	font-size: 13px;
	font-weight: 600;
	color: var(--pv2-ink);
}

body.single-product .fpf-radio-images .woocommerce-input-wrapper label {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: var(--pv2-red);
}

body.single-product .fpf-radio-images .woocommerce-input-wrapper img {
	max-width: 110px;
	height: auto;
}

/* ---------------------------------------------------------------- */
/* Quantité + total + bouton                                          */
/* ---------------------------------------------------------------- */
body.single-product .hv2-buyrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin: 18px 0 14px;
}

body.single-product .hv2-buyrow .quantity {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
	float: none;
}

body.single-product .hv2-buyrow .tmpmela-quantity {
	font-size: 0;
}

body.single-product .hv2-buyrow .tmpmela-quantity::before {
	content: "Quantité";
	font-size: 13px;
	color: var(--pv2-muted);
}

body.single-product .hv2-buyrow .quantity-button {
	display: contents;
}

body.single-product .hv2-buyrow .quantity {
	background: var(--pv2-soft);
	border-radius: 8px;
	padding: 4px;
}

body.single-product .hv2-buyrow .quantity .tmpmela-quantity {
	margin: 0 6px 0 8px;
}

body.single-product .hv2-buyrow .quantity button {
	position: static;
	width: 40px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #ececec;
	color: var(--pv2-ink);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	transition: background .15s;
}

body.single-product .hv2-buyrow .quantity button:hover {
	background: #dcdcdc;
}

body.single-product .hv2-buyrow .quantity button::before,
body.single-product .hv2-buyrow .quantity button::after {
	content: none !important;
	display: none !important;
}

body.single-product .hv2-buyrow .quantity .minus {
	order: 3;
}

body.single-product .hv2-buyrow .quantity input.qty {
	order: 4;
	width: 48px;
	height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 15px;
	font-weight: 600;
	-moz-appearance: textfield;
	appearance: textfield;
}

body.single-product .hv2-buyrow .quantity input.qty::-webkit-outer-spin-button,
body.single-product .hv2-buyrow .quantity input.qty::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

body.single-product .hv2-buyrow .quantity .plus {
	order: 5;
}

/* Total : l'original FPF reste dans le DOM (mises à jour du plugin) mais est masqué ; .hv2-total l'affiche */
body.single-product .hv2-buyrow .fpf-totals {
	display: none;
}

body.single-product .hv2-buyrow .hv2-total {
	margin: 0;
	text-align: right;
}

body.single-product .hv2-total-label {
	display: block;
	font-size: 13px;
	color: var(--pv2-muted);
}

body.single-product .hv2-total-value {
	display: block;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--pv2-red);
}

body.single-product .single_add_to_cart_button.button.alt {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	height: 54px;
	margin: 0;
	padding: 0 24px;
	border: 0;
	border-radius: 8px;
	background: var(--pv2-red);
	color: #fff;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: .01em;
	text-transform: none !important;
	cursor: pointer;
	box-shadow: 0 6px 16px -6px rgba(228, 0, 43, .55);
	transition: background .15s, transform .1s;
}

body.single-product .single_add_to_cart_button.button.alt::before {
	content: "\f174";
	font-family: dashicons;
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}

body.single-product .single_add_to_cart_button.button.alt:hover {
	background: var(--pv2-red-dark);
	color: #fff;
}

body.single-product .single_add_to_cart_button.button.alt:active {
	transform: translateY(1px);
}

body.single-product .single_add_to_cart_button.button.alt:focus-visible {
	outline: 3px solid var(--pv2-ink);
	outline-offset: 2px;
}

body.single-product .product_meta {
	margin: 12px 0 0;
	padding: 0;
	border: 0;
	font-size: 12px;
	color: var(--pv2-muted);
}

/* ---------------------------------------------------------------- */
/* Description + détails                                              */
/* ---------------------------------------------------------------- */
body.single-product .woocommerce-tabs {
	margin: 40px 0 0;
	padding: 32px 0 0;
	border-top: 1px solid var(--pv2-line);
	float: none;
	width: 100%;
}

body.single-product .woocommerce-tabs ul.tabs {
	display: none;
}

body.single-product .woocommerce-tabs .panel {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
}

body.single-product .woocommerce-tabs .panel > h2 {
	display: none;
}

body.single-product .jj-desc-cols {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}

body.single-product .jj-desc-col {
	float: none;
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

body.single-product .hv2-section-title {
	position: relative;
	margin: 0 0 22px;
	padding: 0 0 12px;
	font-size: 22px !important;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0;
	text-transform: none !important;
	color: var(--pv2-ink);
}

body.single-product .hv2-section-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 40px;
	height: 3px;
	border-radius: 2px;
	background: var(--pv2-red);
}

body.single-product .jj-desc-col.text p {
	margin: 0 0 12px;
	font-size: 14px;
	line-height: 1.7;
	color: #333;
}

body.single-product .jj-desc-col.text a,
body.single-product .jj-desc-col.text a:visited {
	color: inherit !important;
	font-weight: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-color: #9a9a9a;
}

body.single-product .jj-desc-col.text a:hover {
	color: var(--pv2-ink) !important;
	text-decoration-color: var(--pv2-ink);
}

body.single-product .jj-product-specifications {
	display: grid;
	grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
	border: 1px solid var(--pv2-line);
	border-radius: var(--pv2-radius);
	overflow: hidden;
	background: #fff;
}

body.single-product .jj-product-specification-label,
body.single-product .jj-product-specification-info {
	margin: 0;
	padding: 10px 14px;
	border: 0;
	border-bottom: 1px solid var(--pv2-line);
	font-size: 12.5px;
	line-height: 1.4;
	text-transform: uppercase;
	background: #fff;
	color: var(--pv2-ink);
}

body.single-product .jj-product-specification-label {
	background: var(--pv2-soft);
	font-weight: 700;
	text-transform: capitalize;
	letter-spacing: 0;
	border-right: 1px solid var(--pv2-line);
}

body.single-product .jj-product-specification-label:nth-last-child(2),
body.single-product .jj-product-specification-info:last-child {
	border-bottom: 0;
}

/* ---------------------------------------------------------------- */
/* Produits similaires                                                */
/* ---------------------------------------------------------------- */
body.single-product section.related {
	margin: 48px 0 0;
	padding: 36px 0 0;
	border-top: 1px solid var(--pv2-line);
	float: none;
	width: 100%;
}

body.single-product section.related .wt-crp-heading {
	position: relative;
	margin: 0 0 32px;
	padding: 0 0 14px;
	text-align: center;
	font-size: 26px;
	font-weight: 700;
	letter-spacing: 0;
	text-transform: none;
	color: var(--pv2-ink);
}

body.single-product section.related .wt-crp-heading::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 48px;
	height: 3px;
	margin-left: -24px;
	border-radius: 2px;
	background: var(--pv2-red);
}

body.single-product section.related li.product {
	margin: 0;
	padding: 0 10px;
	box-sizing: border-box;
	background: none;
	border: 0;
	box-shadow: none;
}

body.single-product section.related .container-inner {
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
}

body.single-product section.related .image-block {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
	background: #f4f4f4;
}

body.single-product section.related .image-block img {
	display: block;
	width: 100%;
	height: auto;
}

body.single-product section.related .jj-sale-sticker {
	position: absolute;
	top: 10px;
	left: 10px;
	width: 44px;
	height: 44px;
	z-index: 3;
	background: none;
}

body.single-product section.related .jj-sale-sticker-back,
body.single-product section.related .jj-sale-sticker-peel {
	display: none;
}

body.single-product section.related .jj-sale-sticker-price {
	position: static;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--pv2-red);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	transform: rotate(-8deg);
}

body.single-product section.related .product-detail-wrapper {
	margin: 12px 0 0;
	padding: 0;
	text-align: left;
}

body.single-product section.related .product-name {
	margin: 0 0 8px;
	font-size: 12.5px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #333;
}

body.single-product section.related .price {
	display: flex;
	align-items: baseline;
	gap: 10px;
	font-size: 14px;
}

body.single-product section.related .price del {
	order: 1;
	color: #9a9a9a;
	font-size: 15px !important;
}

body.single-product section.related .price ins {
	order: 2;
	background: none;
	color: var(--pv2-red);
	font-size: 20px;
	font-weight: 700;
	text-decoration: none;
}

body.single-product section.related .price .amount {
	font-size: inherit !important;
	color: inherit;
}

/* ---------------------------------------------------------------- */
/* Mobile / tablette                                                  */
/* ---------------------------------------------------------------- */
@media (max-width: 991px) {
	body.single-product div.product[id^="product-"] {
		grid-template-columns: minmax(0, 1fr);
		padding: 12px 16px 0;
		row-gap: 20px;
	}

	body.single-product div.product[id^="product-"] > .summary {
		position: static;
	}

	body.single-product .page-title-inner {
		padding: 0 16px;
	}

	body.single-product .summary .product_title {
		font-size: 22px;
	}

	body.single-product .summary p.price ins {
		font-size: 30px;
	}

	body.single-product .jj-desc-cols {
		grid-template-columns: minmax(0, 1fr);
		gap: 32px;
	}
}

@media (max-width: 575px) {
	body.single-product .hv2-cols {
		grid-template-columns: minmax(0, 1fr);
	}

	body.single-product .hv2-buyrow {
		flex-wrap: wrap;
	}

	body.single-product .hv2-buyrow .hv2-total {
		text-align: left;
	}

	body.single-product .fpf-field.fpf-radio label {
		min-width: 52px;
		height: 46px;
	}

	body.single-product .logo-size-container {
		gap: 16px;
	}

	body.single-product .logo-size-container .size-chart-btn-container {
		padding-left: 16px;
	}

	/* Bouton d'achat collé en bas d'écran pendant le défilement de la fiche */
	body.single-product .single_add_to_cart_button.button.alt {
		position: sticky;
		bottom: 12px;
		z-index: 20;
	}
}

/* Badges : l'input radio est masqué par le plugin ; la case est dessinée sur le label (cochée / décochée via product-v2.js) */
body.single-product .fpf-radio-images .woocommerce-input-wrapper label {
	position: relative;
	display: flex !important;
	flex-direction: row !important;
	align-items: center;
	justify-content: flex-start !important;
	gap: 14px !important;
	width: 100% !important;
	min-height: 64px;
	padding: 8px 12px 8px 10px;
	box-sizing: border-box;
	border: 2px solid var(--pv2-line);
	border-radius: 8px;
	background: #fff;
	cursor: pointer;
	transition: border-color .15s, background .15s;
}

body.single-product .fpf-radio-images .woocommerce-input-wrapper label::before {
	content: "";
	flex: 0 0 22px;
	width: 22px;
	height: 22px;
	box-sizing: border-box;
	border: 2px solid #b5b5b5;
	border-radius: 5px;
	background: #fff center / 14px no-repeat;
	transition: background-color .15s, border-color .15s;
}

body.single-product .fpf-radio-images .woocommerce-input-wrapper label:hover {
	border-color: #bdbdbd;
}

body.single-product .fpf-radio-images .woocommerce-input-wrapper input:checked + label {
	border-color: var(--pv2-red);
	background: #fff6f7;
}

body.single-product .fpf-radio-images .woocommerce-input-wrapper input:checked + label::before {
	border-color: var(--pv2-red);
	background-color: var(--pv2-red);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

body.single-product .fpf-radio-images .woocommerce-input-wrapper input:focus-visible + label {
	outline: 3px solid var(--pv2-ink);
	outline-offset: 2px;
}

body.single-product .fpf-radio-images .woocommerce-input-wrapper label span {
	margin-left: auto;
}

body.single-product .fpf-field.fpf-heading {
	margin-top: 0 !important;
}

body.single-product form.cart {
	padding-top: 6px;
}

/* ---------------------------------------------------------------- */
/* Colonne achat compacte (desktop) : « Ajouter au panier » visible    */
/* sans défilement sur un écran portable                              */
/* ---------------------------------------------------------------- */
@media (min-width: 992px) {
	body.single-product .page-title.header {
		padding-top: 8px;
	}

	body.single-product div.product[id^="product-"] {
		padding-top: 10px;
		column-gap: 40px;
	}

	body.single-product div.product[id^="product-"] > .summary {
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 20px;
		align-items: center;
	}

	body.single-product div.product[id^="product-"] > .summary > * {
		grid-column: 1 / -1;
	}

	body.single-product div.product[id^="product-"] > .summary > .woocommerce-product-details__short-description {
		grid-column: 1;
		margin: 0 0 4px;
	}

	body.single-product div.product[id^="product-"] > .summary > .logo-size-container {
		grid-column: 2;
		margin: 0 0 4px !important;
		padding: 0 !important;
		gap: 14px;
	}

	body.single-product .summary .product_title {
		margin: 0 0 4px;
		font-size: 21px;
		line-height: 1.2;
	}

	body.single-product .summary p.price {
		margin: 0 0 8px;
		gap: 4px 10px;
	}

	body.single-product .summary p.price del {
		font-size: 17px;
	}

	body.single-product .summary p.price ins {
		font-size: 28px;
	}

	body.single-product .hv2-price-pill {
		padding: 3px 9px;
		font-size: 12px;
	}

	body.single-product .woocommerce-product-details__short-description h4 {
		font-size: 11.5px;
		line-height: 1.4;
	}

	body.single-product .logo-size-container img {
		height: 40px;
		max-width: 100px;
	}

	body.single-product .logo-size-container .size-chart-btn-container {
		padding-left: 14px;
	}

	body.single-product .fpf-fields.before-add-to-cart {
		margin: 0 0 8px;
	}

	body.single-product .fpf-field.fpf-heading h2 {
		margin: 0 0 8px;
		font-size: 15px;
	}

	body.single-product .hv2-size-head {
		margin: 0 0 8px;
	}

	body.single-product .fpf-field.fpf-radio {
		margin: 0 0 10px;
	}

	body.single-product .fpf-field.fpf-radio label {
		height: 38px !important;
		min-width: 50px;
		padding: 0 12px;
		font-size: 13px;
	}

	body.single-product .hv2-card {
		margin: 0 0 8px;
		padding: 10px 14px;
	}

	body.single-product .hv2-card > .fpf-heading h2 {
		margin-bottom: 2px;
		font-size: 14px;
	}

	body.single-product .hv2-card > .fpf-paragraph p {
		margin: 0 0 6px;
		font-size: 12px;
		line-height: 1.35;
	}

	body.single-product .hv2-cols {
		gap: 8px 16px;
	}

	body.single-product .hv2-col {
		gap: 6px;
	}

	body.single-product .hv2-col .fpf-paragraph p {
		font-size: 11.5px;
		line-height: 1.3;
	}

	body.single-product .fpf-text input.input-text,
	body.single-product .fpf-number input.input-text {
		height: 36px;
	}

	/* Badges : cartes côte à côte (rangée créée par product-v2.js) */
	body.single-product .hv2-cards-row {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
		margin: 0 0 8px;
	}

	body.single-product .hv2-cards-row > .hv2-card {
		margin: 0;
	}

	body.single-product .fpf-field.fpf-radio-images {
		margin: 0;
	}

	body.single-product .fpf-radio-images p.form-row.badge {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 2px 12px;
		padding: 8px 10px;
	}

	body.single-product .fpf-radio-images p.form-row.badge > label {
		grid-column: 1 / -1;
		margin: 0;
		font-size: 12px;
		line-height: 1.3;
	}

	body.single-product .fpf-radio-images p.form-row.badge .woocommerce-input-wrapper {
		grid-column: 1 / -1;
	}

	body.single-product .fpf-radio-images .woocommerce-input-wrapper label {
		flex-direction: row;
		justify-content: space-between;
		gap: 10px;
		font-size: 12.5px;
	}

	body.single-product .fpf-radio-images .woocommerce-input-wrapper img {
		max-width: 56px;
		max-height: 56px;
		width: auto;
	}

	body.single-product .hv2-buyrow {
		margin: 10px 0 10px;
	}

	body.single-product .hv2-buyrow .quantity button,
	body.single-product .hv2-buyrow .quantity input.qty {
		height: 36px;
	}

	body.single-product .hv2-buyrow .quantity button {
		width: 36px;
	}

	body.single-product .hv2-total-value {
		font-size: 24px;
	}

	body.single-product .single_add_to_cart_button.button.alt {
		height: 48px;
	}

	body.single-product .product_meta {
		margin: 8px 0 0;
	}
}

body.single-product .hv2-btn-total {
	display: none;
}

/* ---------------------------------------------------------------- */
/* MOBILE / TABLETTE (<= 991px) : fiche produit compacte              */
/* ---------------------------------------------------------------- */
@media (max-width: 991px) {
	body.single-product {
		overflow-x: clip;
	}

	body.single-product .page-title.header {
		display: block;
		width: 100%;
		max-width: 100vw;
		overflow: hidden;
	}

	body.single-product .page-title-inner {
		width: 100%;
		box-sizing: border-box;
	}

	/* Aucun débordement horizontal : galerie, carrousel et fil d'Ariane sont coupés à la largeur de l'écran */
	body.single-product div.product[id^="product-"] {
		overflow-x: clip;
	}

	body.single-product .page-title-inner {
		overflow: hidden;
	}

	body.single-product .woocommerce-breadcrumb {
		max-width: 100%;
	}

	body.single-product .woocommerce-product-gallery,
	body.single-product section.related {
		overflow: hidden;
	}

	body.single-product .summary > .logo-size-container {
		width: auto !important;
		max-width: 170px;
		justify-self: end;
	}

	body.single-product .flex-control-thumbs .owl-prev,
	body.single-product .flex-control-thumbs .owl-next,
	body.single-product .flex-control-thumbs .owl-buttons {
		display: none !important;
	}

	/* Fil d'Ariane : une ligne, défilement horizontal au doigt */
	body.single-product .page-title.header {
		padding: 6px 0 0;
	}

	body.single-product .woocommerce-breadcrumb {
		white-space: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
		padding: 4px 0 6px;
		font-size: 11.5px;
	}

	body.single-product .woocommerce-breadcrumb::-webkit-scrollbar {
		display: none;
	}

	/* Gabarit : la galerie va bord à bord, le reste a 16 px de marge */
	body.single-product div.product[id^="product-"] {
		padding: 0;
		row-gap: 0;
	}

	body.single-product div.product[id^="product-"] > .summary {
		padding: 14px 16px 0 !important;
		display: grid;
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 12px;
		align-items: center;
	}

	body.single-product div.product[id^="product-"] > .summary > * {
		grid-column: 1 / -1;
	}

	body.single-product div.product[id^="product-"] > .summary > .woocommerce-product-details__short-description {
		grid-column: 1;
		margin: 0 0 6px;
	}

	body.single-product div.product[id^="product-"] > .summary > .logo-size-container {
		grid-column: 2;
		margin: 0 0 6px !important;
		padding: 0 !important;
		gap: 10px;
	}

	body.single-product div.product[id^="product-"] > .woocommerce-tabs,
	body.single-product div.product[id^="product-"] > section.related {
		padding-left: 16px;
		padding-right: 16px;
		box-sizing: border-box;
	}

	/* Galerie : image pleine largeur (le wrapper flotté s'effondrait à 2 px de haut) */
	body.single-product div.product[id^="product-"] > .theme-container {
		margin: 0 !important;
	}

	body.single-product .woocommerce-product-gallery {
		margin: 0 !important;
	}

	body.single-product .woocommerce-product-gallery .flex-viewport {
		height: auto !important;
		border: 0;
		border-radius: 0;
	}

	body.single-product .woocommerce-product-gallery__wrapper {
		display: flow-root;
	}

	body.single-product .woocommerce-product-gallery .jj-sale-sticker {
		top: 10px;
		left: 12px;
		width: 46px;
		height: 46px;
	}

	body.single-product .woocommerce-product-gallery .jj-sale-sticker-price {
		width: 46px;
		height: 46px;
		font-size: 12px;
	}

	/* Miniatures : bande défilante au doigt (owl désactivé visuellement) */
	body.single-product .flex-control-thumbs {
		margin: 8px 0 0;
		padding: 0 16px !important;
	}

	body.single-product .flex-control-thumbs .owl-wrapper-outer {
		width: auto !important;
		height: auto !important;
		overflow-x: auto !important;
		overflow-y: hidden;
		scrollbar-width: none;
		-webkit-overflow-scrolling: touch;
	}

	body.single-product .flex-control-thumbs .owl-wrapper-outer::-webkit-scrollbar {
		display: none;
	}

	body.single-product .flex-control-thumbs .owl-wrapper {
		display: flex !important;
		width: auto !important;
		left: 0 !important;
		transform: none !important;
		gap: 8px;
	}

	body.single-product .flex-control-thumbs .owl-item {
		flex: 0 0 68px;
		width: 68px !important;
		height: auto !important;
		padding: 0 !important;
	}

	body.single-product .flex-control-thumbs .owl-controls {
		display: none;
	}

	/* Titre, prix, description courte */
	body.single-product .summary .product_title {
		margin: 0 0 4px;
		font-size: 19px;
		line-height: 1.25;
	}

	body.single-product .summary p.price {
		margin: 0 0 8px;
		gap: 4px 10px;
	}

	body.single-product .summary p.price del {
		font-size: 16px;
	}

	body.single-product .summary p.price ins {
		font-size: 26px;
	}

	body.single-product .hv2-price-pill {
		padding: 3px 8px;
		font-size: 11.5px;
	}

	body.single-product .woocommerce-product-details__short-description h4 {
		font-size: 11px;
		line-height: 1.4;
	}

	body.single-product .logo-size-container img {
		height: 36px;
		max-width: 84px;
	}

	body.single-product .logo-size-container .size-chart-btn-container {
		padding-left: 10px;
	}

	/* Formulaire */
	body.single-product form.cart {
		padding-top: 4px;
	}

	body.single-product .fpf-field.fpf-heading h2 {
		margin: 0 0 8px;
		font-size: 15px;
	}

	body.single-product .hv2-size-head {
		margin: 0 0 8px;
	}

	body.single-product .fpf-field.fpf-radio {
		margin: 0 0 12px;
	}

	body.single-product .fpf-field.fpf-radio fieldset {
		gap: 8px;
	}

	body.single-product .fpf-field.fpf-radio label {
		height: 44px !important;
		min-width: 52px;
		padding: 0 12px;
	}

	body.single-product .hv2-card {
		margin: 0 0 10px;
		padding: 12px;
	}

	body.single-product .hv2-card > .fpf-heading h2 {
		margin-bottom: 2px;
		font-size: 14px;
	}

	body.single-product .hv2-card > .fpf-paragraph p {
		margin: 0 0 8px;
		font-size: 12px;
		line-height: 1.4;
	}

	body.single-product .hv2-cols {
		gap: 10px;
	}

	body.single-product .hv2-col .fpf-paragraph p {
		font-size: 11.5px;
		line-height: 1.35;
	}

	body.single-product .fpf-checkbox label.checkbox {
		min-height: 36px;
		font-size: 14px;
	}

	body.single-product .fpf-text input.input-text,
	body.single-product .fpf-number input.input-text {
		height: 44px;
		font-size: 16px; /* évite le zoom automatique d'iOS */
	}

	/* Badges : une seule boîte, ligne compacte case | image | prix */
	body.single-product .hv2-cards-row {
		display: block;
	}

	body.single-product .fpf-field.fpf-radio-images {
		margin: 0;
	}

	body.single-product .fpf-radio-images p.form-row.badge {
		margin: 0;
		padding: 0;
		border: 0;
		background: transparent;
		display: block;
	}

	body.single-product .fpf-radio-images p.form-row.badge > label {
		display: block;
		margin: 0 0 6px;
		font-size: 12px;
		font-weight: 500;
		line-height: 1.35;
		color: var(--pv2-muted);
	}

	body.single-product .fpf-radio-images .woocommerce-input-wrapper label {
		min-height: 60px;
		padding: 6px 12px 6px 10px;
		gap: 12px !important;
	}

	body.single-product .fpf-radio-images .woocommerce-input-wrapper img {
		max-width: 48px;
		max-height: 48px;
		width: auto;
		height: auto;
	}

	/* Quantité + total */
	body.single-product .hv2-buyrow {
		margin: 12px 0 12px;
		gap: 12px;
	}

	body.single-product .hv2-buyrow .quantity button {
		width: 40px;
		height: 40px;
	}

	body.single-product .hv2-buyrow .quantity input.qty {
		height: 40px;
		font-size: 16px;
	}

	body.single-product .hv2-total-value {
		font-size: 24px;
	}

	/* Bouton « Ajouter au panier » : barre fixe collée au bas de l'écran, avec le total.
	   position: fixed (et non sticky) : elle reste visible sur toute la fiche, pas seulement tant que le formulaire est à l'écran. */
	body.single-product .single_add_to_cart_button.button.alt {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 9990;
		width: 100%;
		max-width: none;
		height: calc(58px + env(safe-area-inset-bottom, 0px));
		margin: 0;
		padding: 0 16px env(safe-area-inset-bottom, 0px);
		border-radius: 0;
		font-size: 16px;
		box-shadow: 0 -4px 16px rgba(0, 0, 0, .2);
		-webkit-tap-highlight-color: transparent;
	}

	/* Place réservée : le bas de la fiche (référence, description, footer) ne passe pas sous la barre */
	body.single-product {
		padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px));
	}

	body.single-product .single_add_to_cart_button.button.alt:active {
		transform: none;
		background: var(--pv2-red-dark);
	}

	body.single-product .hv2-btn-total {
		display: inline;
		font-weight: 700;
	}

	body.single-product .hv2-btn-total::before {
		content: "·";
		margin: 0 8px 0 2px;
		font-weight: 400;
		opacity: .8;
	}

	body.single-product #to_top {
		display: none !important;
	}

	body.single-product .product_meta {
		margin: 10px 0 0;
		padding-bottom: 10px;
	}

	/* Description et détails */
	body.single-product .woocommerce-tabs {
		margin: 24px 0 0;
		padding-top: 20px;
	}

	body.single-product .hv2-section-title {
		margin-bottom: 14px;
		font-size: 19px !important;
	}

	body.single-product .jj-desc-col.text p {
		font-size: 14px;
		line-height: 1.65;
	}

	body.single-product .jj-product-specification-label,
	body.single-product .jj-product-specification-info {
		padding: 9px 12px;
		font-size: 12px;
	}

	/* Produits similaires */
	body.single-product section.related {
		margin: 28px 0 0;
		padding-top: 24px;
		padding-bottom: 24px;
	}

	body.single-product section.related .wt-crp-heading {
		margin-bottom: 20px;
		font-size: 21px;
	}

	body.single-product section.related li.product {
		padding: 0 6px;
	}

	body.single-product section.related .product-name {
		font-size: 12px;
		line-height: 1.35;
	}

	body.single-product section.related .price ins {
		font-size: 18px;
	}

	body.single-product section.related .price del {
		font-size: 13px !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.single-product * {
		transition: none !important;
	}
}
