/* Onomey – Fiche produit. Charte : noir, jaune #FFC700, orange #FF5A1F, brume #F4F4F2, Archivo. */

body.onomey-pdp {
	--ofp-noir: var(--noir, #000000);
	--ofp-blanc: var(--blanc, #FFFFFF);
	--ofp-jaune: var(--jaune, #FFC700);
	--ofp-orange: var(--orange, #FF5A1F);
	--ofp-brume: var(--brume, #F4F4F2);
	--ofp-graphite: var(--graphite, #5E5E5E);
	--ofp-ligne: var(--ligne, #E3E3E1);
	--ofp-nuit: var(--nuit, #1A1A1A);
	--ofp-vert: #1F8A3B;
	--ofp-font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Mise en page ---------- */

.onomey-pdp div.product {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	column-gap: 56px;
	align-items: start;
	font-family: var(--ofp-font);
	color: var(--ofp-noir);
}
.onomey-pdp div.product > * {
	grid-column: 1 / -1;
	min-width: 0;
}
.onomey-pdp div.product > .woocommerce-product-gallery,
.onomey-pdp div.product > .images {
	grid-column: 1;
	grid-row: 1;
}
.onomey-pdp div.product > .summary {
	grid-column: 2;
	grid-row: 1;
}
.onomey-pdp div.product div.images,
.onomey-pdp div.product div.summary,
.onomey-pdp.woocommerce div.product div.images,
.onomey-pdp.woocommerce div.product div.summary {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	clear: none !important;
}
.onomey-pdp div.product .woocommerce-breadcrumb:not(.onomey-breadcrumb),
.onomey-pdp .ast-breadcrumbs-wrapper,
.onomey-pdp div.product .summary .product_meta,
.onomey-pdp div.product .reset_variations { display: none !important; }

.onomey-pdp .onomey-breadcrumb {
	font-family: var(--ofp-font);
	font-size: 13px;
	color: var(--ofp-graphite);
	margin: 0 0 24px;
}
.onomey-pdp .onomey-breadcrumb a { color: var(--ofp-graphite); }
.onomey-pdp .onomey-breadcrumb a:hover { color: var(--ofp-noir); }

/* ---------- Galerie ---------- */

.onomey-pdp .woocommerce-product-gallery {
	position: relative;
	display: grid !important;
	grid-template-columns: 84px minmax(0, 1fr);
	gap: 16px;
	opacity: 1 !important;
}
.onomey-pdp .woocommerce-product-gallery > .flex-viewport,
.onomey-pdp .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper {
	grid-column: 2;
	grid-row: 1;
	background: var(--ofp-brume);
}
.onomey-pdp .woocommerce-product-gallery__image img { mix-blend-mode: multiply; }
.onomey-pdp .woocommerce-product-gallery .flex-control-thumbs {
	grid-column: 1;
	grid-row: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin: 0 !important;
	padding: 0;
	list-style: none;
}
.onomey-pdp .woocommerce-product-gallery .flex-control-thumbs li {
	width: 84px !important;
	height: 84px;
	float: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: var(--ofp-brume);
}
.onomey-pdp .woocommerce-product-gallery .flex-control-thumbs img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 1px solid var(--ofp-ligne);
	opacity: .75;
	cursor: pointer;
	transition: opacity .15s;
}
.onomey-pdp .woocommerce-product-gallery .flex-control-thumbs img.flex-active,
.onomey-pdp .woocommerce-product-gallery .flex-control-thumbs img:hover {
	opacity: 1;
	border: 2px solid var(--ofp-noir);
}
/* Galerie sans miniatures (une seule photo) */
.onomey-pdp .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) { grid-template-columns: minmax(0, 1fr); }
.onomey-pdp .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) > * { grid-column: 1; }

.onomey-pdp .woocommerce-product-gallery__trigger {
	top: 16px !important;
	right: 16px !important;
	left: auto !important;
	z-index: 3;
}
.onomey-pdp.ofp-bestseller .woocommerce-product-gallery::before {
	content: "Best-seller";
	position: absolute;
	top: 16px;
	left: 116px;
	z-index: 3;
	background: var(--ofp-noir);
	color: var(--ofp-jaune);
	font: 800 11px/1 var(--ofp-font);
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 7px 10px;
	pointer-events: none;
}
.onomey-pdp.ofp-bestseller .woocommerce-product-gallery:not(:has(.flex-control-thumbs))::before { left: 16px; }
.onomey-pdp div.product span.onsale {
	position: absolute;
	z-index: 4;
	top: 16px;
	left: 116px;
	margin: 0;
	min-width: 0;
	min-height: 0;
	border-radius: 0;
	background: var(--ofp-jaune);
	color: var(--ofp-noir);
	font: 800 11px/1 var(--ofp-font);
	letter-spacing: .1em;
	text-transform: uppercase;
	padding: 7px 10px;
}
.onomey-pdp.ofp-bestseller div.product span.onsale { top: 48px; }

/* ---------- Résumé ---------- */

.onomey-pdp .summary { display: flex; flex-direction: column; gap: 24px; }
.onomey-pdp .summary > * { margin-top: 0 !important; margin-bottom: 0 !important; }

.onomey-pdp .ofp-head { display: flex; flex-direction: column; gap: 10px; }
.onomey-pdp .ofp-eyebrow,
.onomey-pdp .ofp-kicker {
	font: 700 12px/1.2 var(--ofp-font);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--ofp-graphite);
}
.onomey-pdp .ofp-title.product_title {
	margin: 0 !important;
	font: 800 44px/1 var(--ofp-font);
	font-stretch: 118%;
	letter-spacing: -.01em;
	text-transform: uppercase;
	text-wrap: balance;
	color: var(--ofp-noir);
}
.onomey-pdp .ofp-rating { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ofp-graphite); }
.onomey-pdp .ofp-rating .star-rating { margin: 0; color: var(--ofp-noir); }

.onomey-pdp .ofp-price {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px 12px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--ofp-ligne);
}
.onomey-pdp .ofp-price .price {
	margin: 0 !important;
	font: 800 30px/1.1 var(--ofp-font) !important;
	color: var(--ofp-noir) !important;
	font-variant-numeric: tabular-nums;
}
.onomey-pdp .ofp-price .price del { font-size: 20px; font-weight: 500; color: var(--ofp-graphite); }
.onomey-pdp .ofp-price .price ins { text-decoration: none; }
.onomey-pdp .ofp-ttc { font-size: 13px; color: var(--ofp-graphite); }

/* ---------- Formulaire d'ajout ---------- */

.onomey-pdp form.cart { display: flex; flex-direction: column; gap: 16px; margin: 0 !important; }
.onomey-pdp form.cart:not(.variations_form),
.onomey-pdp .woocommerce-variation-add-to-cart {
	display: flex !important;
	flex-direction: row !important;
	flex-wrap: wrap;
	gap: 10px;
	align-items: stretch;
}
.onomey-pdp form.cart::before,
.onomey-pdp form.cart::after,
.onomey-pdp .woocommerce-variation-add-to-cart::before,
.onomey-pdp .woocommerce-variation-add-to-cart::after { display: none !important; }

.onomey-pdp table.variations { margin: 0 !important; border: 0; width: 100%; }
.onomey-pdp table.variations tr { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.onomey-pdp table.variations th,
.onomey-pdp table.variations td { display: block; padding: 0 !important; border: 0 !important; background: none !important; text-align: left; }
.onomey-pdp table.variations.ofp-enhanced th,
.onomey-pdp table.variations.ofp-enhanced .label { display: none !important; }
.onomey-pdp table.variations.ofp-enhanced select { display: none !important; }

.onomey-pdp .ofp-opt-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.onomey-pdp .ofp-opt-label { font-weight: 700; }
.onomey-pdp .ofp-opt-label span { font-weight: 400; color: var(--ofp-graphite); margin-left: 6px; }
.onomey-pdp .ofp-guide-link { font-weight: 600; color: var(--ofp-noir); text-underline-offset: 3px; }

.onomey-pdp .ofp-swatches {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
	gap: 8px;
}
.onomey-pdp .ofp-swatch {
	height: 52px;
	padding: 0 10px;
	border: 1px solid var(--ofp-noir);
	border-radius: 0;
	background: var(--ofp-blanc);
	color: var(--ofp-noir);
	font: 700 15px/1 var(--ofp-font);
	cursor: pointer;
	transition: background .12s, color .12s;
}
.onomey-pdp .ofp-swatch:hover { background: var(--ofp-brume); color: var(--ofp-noir); }
.onomey-pdp .ofp-swatch[aria-checked="true"] { background: var(--ofp-noir); color: var(--ofp-blanc); }
.onomey-pdp .ofp-swatch.is-out {
	border-color: var(--ofp-ligne);
	background: var(--ofp-brume);
	color: #8A8A86;
	text-decoration: line-through;
	cursor: not-allowed;
}
.onomey-pdp .ofp-swatch.is-unavailable { display: none; }
.onomey-pdp .ofp-swatch:focus-visible,
.onomey-pdp .ofp-sticky-btn:focus-visible,
.onomey-pdp .ofp-unit button:focus-visible,
.onomey-pdp .ofp-qty button:focus-visible,
.onomey-pdp .ofp-acc summary:focus-visible {
	outline: 3px solid var(--ofp-jaune);
	outline-offset: 2px;
}

.onomey-pdp .ofp-size-status { display: flex; align-items: center; gap: 8px; min-height: 20px; font-size: 13px; color: var(--ofp-nuit); }
.onomey-pdp .ofp-dot { width: 8px; height: 8px; flex: none; background: var(--ofp-ligne); }
.onomey-pdp .ofp-size-status[data-state="ok"] .ofp-dot { background: var(--ofp-vert); }
.onomey-pdp .ofp-size-status[data-state="low"] .ofp-dot { background: var(--ofp-orange); }
.onomey-pdp .ofp-size-status[data-state="out"] .ofp-dot { background: var(--ofp-graphite); }
.onomey-pdp .ofp-model { margin: 0; font-size: 13px; color: var(--ofp-graphite); }
.onomey-pdp .single_variation_wrap .woocommerce-variation { display: none !important; }
.onomey-pdp .single_variation_wrap { display: flex; flex-direction: column; gap: 16px; }
.onomey-pdp form.cart > .stock { display: none; }

/* Quantité */
.onomey-pdp .quantity { margin: 0 !important; float: none !important; }
.onomey-pdp .ofp-qty { display: flex; height: 56px; border: 1px solid var(--ofp-noir); }
.onomey-pdp .ofp-qty button {
	width: 44px;
	border: 0;
	border-radius: 0;
	background: var(--ofp-blanc);
	color: var(--ofp-noir);
	font: 400 20px/1 var(--ofp-font);
	cursor: pointer;
	padding: 0;
}
.onomey-pdp .ofp-qty button:hover { background: var(--ofp-brume); }
.onomey-pdp .ofp-qty input.qty {
	width: 40px !important;
	height: 100% !important;
	border: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	background: none !important;
	text-align: center;
	font: 700 16px var(--ofp-font);
	-moz-appearance: textfield;
	appearance: textfield;
}
.onomey-pdp .ofp-qty input.qty::-webkit-inner-spin-button,
.onomey-pdp .ofp-qty input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Bouton principal */
.onomey-pdp .single_add_to_cart_button.button,
.onomey-pdp .ofp-sticky-btn {
	flex: 1 1 200px;
	min-height: 56px;
	margin: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: var(--ofp-noir) !important;
	color: var(--ofp-blanc) !important;
	font: 800 14px/1.2 var(--ofp-font) !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	cursor: pointer;
	padding: 0 20px !important;
	transition: background .15s;
}
.onomey-pdp .single_add_to_cart_button.button:hover,
.onomey-pdp .ofp-sticky-btn:hover { background: var(--ofp-nuit) !important; }
.onomey-pdp .single_add_to_cart_button.button.disabled,
.onomey-pdp .single_add_to_cart_button.button:disabled,
.onomey-pdp .ofp-sticky-btn.is-disabled {
	background: var(--ofp-ligne) !important;
	color: var(--ofp-graphite) !important;
	opacity: 1 !important;
	cursor: not-allowed;
}

/* Bloc WooPayments / Klarna conservé */
.onomey-pdp .summary #payment-method-message { margin: -12px 0 0 !important; }

/* ---------- Réassurance ---------- */

.onomey-pdp .ofp-reassurance {
	list-style: none;
	margin: 0 !important;
	padding: 18px 0;
	display: flex;
	flex-direction: column;
	gap: 14px;
	border-top: 1px solid var(--ofp-ligne);
	border-bottom: 1px solid var(--ofp-ligne);
	font-size: 14px;
	line-height: 1.5;
}
.onomey-pdp .ofp-reassurance li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.onomey-pdp .ofp-reassurance svg { flex: none; color: var(--ofp-noir); }

/* ---------- Accordéons ---------- */

.onomey-pdp .ofp-accordions { display: flex; flex-direction: column; }
.onomey-pdp .ofp-acc { border-bottom: 1px solid var(--ofp-ligne); }
.onomey-pdp .ofp-acc summary {
	list-style: none;
	min-height: 56px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	cursor: pointer;
	font: 700 14px/1.3 var(--ofp-font);
	letter-spacing: .06em;
	text-transform: uppercase;
}
.onomey-pdp .ofp-acc summary::-webkit-details-marker { display: none; }
.onomey-pdp .ofp-acc-sign::before { content: "+"; font: 400 22px/1 var(--ofp-font); }
.onomey-pdp .ofp-acc[open] .ofp-acc-sign::before { content: "\2212"; }
.onomey-pdp .ofp-acc-body { padding-bottom: 20px; font-size: 15px; line-height: 1.6; color: var(--ofp-nuit); }
.onomey-pdp .ofp-acc-body > :first-child { margin-top: 0; }
.onomey-pdp .ofp-acc-body > :last-child { margin-bottom: 0; }
.onomey-pdp .ofp-acc-body table { font-size: 13px; }
.onomey-pdp .ofp-trace { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.onomey-pdp .ofp-trace div { background: var(--ofp-brume); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.onomey-pdp .ofp-trace span { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ofp-graphite); }

/* ---------- Sections sous la fiche ---------- */

.onomey-pdp .ofp-details,
.onomey-pdp .ofp-guide,
.onomey-pdp .ofp-reviews,
.onomey-pdp div.product > .related,
.onomey-pdp div.product > .upsells { margin-top: 96px; font-family: var(--ofp-font); }

.onomey-pdp .ofp-details { display: flex; flex-wrap: wrap; background: var(--ofp-noir); color: var(--ofp-blanc); }
.onomey-pdp .ofp-details-media { flex: 1 1 420px; min-width: 0; background: var(--ofp-brume); }
.onomey-pdp .ofp-details-media img { width: 100%; height: 100%; max-height: 640px; object-fit: cover; display: block; mix-blend-mode: multiply; }
.onomey-pdp .ofp-details-body { flex: 1 1 420px; min-width: 0; padding: 64px; display: flex; flex-direction: column; justify-content: center; gap: 32px; }
.onomey-pdp .ofp-details .ofp-kicker { color: var(--ofp-jaune); }
.onomey-pdp .ofp-details h2 {
	margin: 0;
	color: var(--ofp-blanc);
	font: 800 48px/1 var(--ofp-font);
	font-stretch: 120%;
	text-transform: uppercase;
	text-wrap: balance;
}
.onomey-pdp .ofp-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 28px 32px; }
.onomey-pdp .ofp-details-grid div { display: flex; flex-direction: column; gap: 6px; border-top: 2px solid var(--ofp-jaune); padding-top: 14px; }
.onomey-pdp .ofp-details-grid b { font-size: 28px; font-weight: 800; }
.onomey-pdp .ofp-details-grid span { font-size: 14px; color: #D6D6D2; }

.onomey-pdp .ofp-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.onomey-pdp .ofp-section-head > div { display: flex; flex-direction: column; gap: 8px; }
.onomey-pdp .ofp-guide h2,
.onomey-pdp div.product > .related > h2,
.onomey-pdp div.product > .upsells > h2,
.onomey-pdp .ofp-reviews .woocommerce-Reviews-title {
	margin: 0;
	font: 800 36px/1.05 var(--ofp-font) !important;
	font-stretch: 115% !important;
	text-transform: uppercase;
	color: var(--ofp-noir);
}
.onomey-pdp div.product > .related > h2,
.onomey-pdp div.product > .upsells > h2 { margin-bottom: 24px; }
.onomey-pdp .ofp-unit { display: flex !important; flex-direction: row !important; border: 1px solid var(--ofp-noir); }
.onomey-pdp .ofp-unit button {
	display: inline-block;
	width: auto !important;
	height: 44px;
	padding: 0 18px;
	border: 0;
	border-radius: 0;
	background: var(--ofp-blanc);
	color: var(--ofp-noir);
	font: 700 13px/1 var(--ofp-font);
	letter-spacing: .06em;
	text-transform: uppercase;
	cursor: pointer;
}
.onomey-pdp .ofp-unit button[aria-pressed="true"] { background: var(--ofp-noir); color: var(--ofp-blanc); }
.onomey-pdp .ofp-table-wrap { overflow-x: auto; border-top: 2px solid var(--ofp-noir); }
.onomey-pdp .ofp-size-table { width: 100%; min-width: 560px; border-collapse: collapse; border: 0; margin: 0; font-size: 15px; }
.onomey-pdp .ofp-size-table th,
.onomey-pdp .ofp-size-table td { padding: 14px 16px; border: 0; border-bottom: 1px solid var(--ofp-ligne); text-align: left; background: none; font-variant-numeric: tabular-nums; }
.onomey-pdp .ofp-size-table thead th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.onomey-pdp .ofp-size-table tbody th { font-weight: 800; }
.onomey-pdp .ofp-size-table tr.is-selected th,
.onomey-pdp .ofp-size-table tr.is-selected td { background: var(--ofp-jaune); }
.onomey-pdp .ofp-guide-note { margin: 14px 0 0; font-size: 13px; color: var(--ofp-graphite); }

.onomey-pdp .ofp-reviews { background: var(--ofp-brume); padding: 40px; }
.onomey-pdp .ofp-reviews #reviews { margin: 0; }
.onomey-pdp .ofp-reviews .woocommerce-noreviews { margin: 12px 0 24px; font-size: 15px; }
.onomey-pdp .ofp-reviews #review_form_wrapper input[type="submit"],
.onomey-pdp .ofp-reviews .form-submit .submit,
.onomey-pdp div.product > .related .button,
.onomey-pdp div.product > .upsells .button {
	border-radius: 0 !important;
	background: var(--ofp-noir) !important;
	color: var(--ofp-blanc) !important;
	font: 700 13px/1 var(--ofp-font) !important;
	letter-spacing: .08em;
	text-transform: uppercase;
	padding: 16px 22px !important;
}
.onomey-pdp .ofp-reviews #review_form_wrapper input[type="submit"]:hover,
.onomey-pdp div.product > .related .button:hover,
.onomey-pdp div.product > .upsells .button:hover { background: var(--ofp-nuit) !important; }
.onomey-pdp .ofp-reviews #review_form #respond { border: 0; padding: 0; background: none; }
.onomey-pdp .ofp-reviews .comment-reply-title { font: 700 18px/1.3 var(--ofp-font); }
.onomey-pdp .ofp-reviews textarea,
.onomey-pdp .ofp-reviews input[type="text"],
.onomey-pdp .ofp-reviews input[type="email"] { border-radius: 0; border: 1px solid var(--ofp-noir); background: var(--ofp-blanc); }
.onomey-pdp .ofp-reviews .stars a { color: var(--ofp-noir); }
.onomey-pdp .ofp-reviews-title { margin: 0 0 8px; }
.onomey-pdp .ofp-reviews #comments > .woocommerce-Reviews-title { display: none; }

.onomey-pdp div.product > .related ul.products li.product .woocommerce-loop-product__title { font-family: var(--ofp-font); font-weight: 700; color: var(--ofp-noir); }
.onomey-pdp div.product > .related ul.products li.product img { background: var(--ofp-brume); }

/* ---------- Barre d'achat mobile ---------- */

.ofp-sticky { display: none; }
@media (max-width: 921px) {
	.onomey-pdp .ofp-sticky:not([hidden]) {
		display: block;
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 999;
		background: var(--ofp-blanc);
		border-top: 1px solid var(--ofp-ligne);
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
	}
	.onomey-pdp .ofp-sticky-btn { width: 100%; }
}

/* ---------- Tablette et mobile ---------- */

@media (max-width: 921px) {
	.onomey-pdp div.product { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
	.onomey-pdp div.product > .woocommerce-product-gallery,
	.onomey-pdp div.product > .images,
	.onomey-pdp div.product > .summary { grid-column: 1; grid-row: auto; }
	.onomey-pdp .woocommerce-product-gallery { grid-template-columns: minmax(0, 1fr); }
	.onomey-pdp .woocommerce-product-gallery > .flex-viewport,
	.onomey-pdp .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { grid-column: 1; }
	.onomey-pdp .woocommerce-product-gallery .flex-control-thumbs { grid-column: 1; grid-row: 2; flex-direction: row; overflow-x: auto; }
	.onomey-pdp .woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 64px; width: 64px !important; height: 64px; }
	.onomey-pdp.ofp-bestseller .woocommerce-product-gallery::before,
	.onomey-pdp div.product span.onsale { left: 12px; top: 12px; }
	.onomey-pdp.ofp-bestseller div.product span.onsale { top: 44px; }
	.onomey-pdp .ofp-title.product_title { font-size: 32px; }
	.onomey-pdp .ofp-price .price { font-size: 24px !important; }
	.onomey-pdp .ofp-details-body { padding: 40px 24px; }
	.onomey-pdp .ofp-details h2 { font-size: 32px; }
	.onomey-pdp .ofp-guide h2,
	.onomey-pdp div.product > .related > h2,
	.onomey-pdp div.product > .upsells > h2,
	.onomey-pdp .ofp-reviews .woocommerce-Reviews-title { font-size: 26px !important; }
	.onomey-pdp .ofp-reviews { padding: 24px; }
	.onomey-pdp .ofp-details,
	.onomey-pdp .ofp-guide,
	.onomey-pdp .ofp-reviews,
	.onomey-pdp div.product > .related,
	.onomey-pdp div.product > .upsells { margin-top: 64px; }
	.onomey-pdp.ofp-has-sticky { padding-bottom: 88px; }
}

@media (prefers-reduced-motion: reduce) {
	.onomey-pdp .ofp-swatch,
	.onomey-pdp .single_add_to_cart_button.button,
	.onomey-pdp .woocommerce-product-gallery .flex-control-thumbs img { transition: none; }
}

/* ---------- Compatibilité avec le CSS additionnel d'onomey.fr ----------
   Le CSS du thème ordonne les blocs de la fiche (order) et force la galerie en bloc collant.
   Ces règles, plus spécifiques, rétablissent l'ordre et la mise en page de l'extension. */

body.onomey-pdp.single-product div.product {
	grid-template-columns: minmax(0, 1fr) minmax(0, 460px);
	column-gap: 56px;
}
body.onomey-pdp.single-product div.product > * { order: 10; }
body.onomey-pdp.single-product div.product > .woocommerce-product-gallery,
body.onomey-pdp.single-product div.product > .images { order: 1; }
body.onomey-pdp.single-product div.product > .summary { order: 2; }
body.onomey-pdp.single-product div.product > .ofp-details { order: 3; }
body.onomey-pdp.single-product div.product > .ofp-guide { order: 4; }
body.onomey-pdp.single-product div.product > .ofp-reviews { order: 5; }
body.onomey-pdp.single-product div.product > .up-sells,
body.onomey-pdp.single-product div.product > .upsells { order: 6; }
body.onomey-pdp.single-product div.product > .related { order: 7; background: none !important; padding: 0 !important; }

/* Produit avec une seule photo : pas de colonne de miniatures, la photo prend toute la largeur. */
body.onomey-pdp.single-product div.product .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) {
	grid-template-columns: minmax(0, 1fr) !important;
}
body.onomey-pdp.single-product div.product .woocommerce-product-gallery:not(:has(.flex-control-thumbs)) > * {
	grid-column: 1 !important;
}
body.onomey-pdp.ofp-bestseller div.product .woocommerce-product-gallery:not(:has(.flex-control-thumbs))::before { left: 16px; }

/* Photos : le fond blanc des images se fond dans le gris brume du cadre (plus de carré blanc). */
body.onomey-pdp.single-product div.product .woocommerce-product-gallery .flex-viewport,
body.onomey-pdp.single-product div.product .woocommerce-product-gallery__image,
body.onomey-pdp.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { background: var(--ofp-brume) !important; }
body.onomey-pdp.single-product div.product .woocommerce-product-gallery__image img,
body.onomey-pdp.single-product div.product .woocommerce-product-gallery .flex-control-thumbs img {
	background: transparent !important;
	mix-blend-mode: multiply;
}
body.onomey-pdp .woocommerce-product-gallery .zoomImg { display: none !important; }

body.onomey-pdp.single-product .ofp-reviews #respond input#submit {
	background: var(--ofp-noir) !important;
	color: var(--ofp-blanc) !important;
	-webkit-text-fill-color: var(--ofp-blanc);
	border: 0 !important;
}
body.onomey-pdp.single-product .ofp-reviews #respond input#submit:hover { background: var(--ofp-nuit) !important; }

body.onomey-pdp.single-product div.product .summary > *,
body.onomey-pdp.single-product div.product .ofp-head > * { order: 0 !important; }

body.onomey-pdp.single-product div.product .woocommerce-product-gallery {
	position: relative !important;
	top: auto !important;
	display: grid !important;
	grid-template-columns: 84px minmax(0, 1fr) !important;
	gap: 16px !important;
}
body.onomey-pdp.single-product div.product .woocommerce-product-gallery .flex-control-thumbs {
	display: flex !important;
	flex-direction: column !important;
	grid-column: 1 !important;
	grid-row: 1 !important;
	width: 84px !important;
	grid-template-columns: none !important;
	gap: 12px !important;
	border: 0 !important;
	background: none !important;
	margin: 0 !important;
}
body.onomey-pdp.single-product div.product .woocommerce-product-gallery > .flex-viewport {
	grid-column: 2 !important;
	grid-row: 1 !important;
}
body.onomey-pdp.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li {
	width: 84px !important;
	flex: 0 0 auto !important;
}

@media (max-width: 921px) {
	body.onomey-pdp.single-product div.product { grid-template-columns: minmax(0, 1fr); }
	body.onomey-pdp.single-product div.product .woocommerce-product-gallery { grid-template-columns: minmax(0, 1fr) !important; }
	body.onomey-pdp.single-product div.product .woocommerce-product-gallery > .flex-viewport { grid-column: 1 !important; }
	body.onomey-pdp.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { flex-direction: row !important; grid-row: 2 !important; width: auto !important; overflow-x: auto; }
	body.onomey-pdp.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 64px !important; flex: 0 0 64px !important; }
}
