/*
 * Sweet Corner: single product page (2026-11-21)
 * Title band rules apply to all WooCommerce pages (shop, categories, product);
 * everything else is scoped to body.single-product.
 */

/* 1. Title band: drop the generic "Boutique" heading, keep a compact breadcrumb */
body.woocommerce .main-title-section-wrapper .main-title-section {
	display: none;
}

body.woocommerce .main-title-section-wrapper .main-title-section-container {
	padding: 16px 0 12px;
}

body.woocommerce .main-title-section-wrapper .breadcrumb {
	font-size: 13px;
	line-height: 1.5;
}

body.woocommerce .main-title-section-wrapper .breadcrumb a,
body.woocommerce .main-title-section-wrapper .breadcrumb span {
	font-size: inherit;
}

/* 2. Remove the 100px gap the theme puts under the header block */
body.woocommerce #header-wrapper {
	margin-bottom: 24px;
}

@media (max-width: 767px) {
	body.woocommerce .main-title-section-wrapper .main-title-section-container {
		padding: 10px 0 8px;
	}

	body.woocommerce .main-title-section-wrapper .breadcrumb {
		font-size: 12px;
	}

	body.woocommerce #header-wrapper {
		margin-bottom: 12px;
	}
}

/* Price in the summary: brand pink and bold, old price small and grey */
body.single-product .summary p.price,
body.single-product .summary p.price .amount,
body.single-product .summary p.price ins,
body.single-product .summary .woocommerce-variation-price .price .amount {
	color: #ac3c77;
	font-weight: 700;
	text-decoration: none;
	background: none;
}

body.single-product .summary p.price del,
body.single-product .summary p.price del .amount,
body.single-product .summary .woocommerce-variation-price .price del .amount {
	color: #6e6e6e;
	font-weight: 400;
}

/*
 * One size for every current price: simple products on sale were 32px (theme size for <ins>),
 * while variable products with a range ("179.00 – 317.00") were 20px. Old price stays 16px.
 */
body.single-product .summary .wdt-single-product-price p.price {
	--sc-price: 32px;
	font-size: var(--sc-price);
	line-height: 1.25;
}

body.single-product .summary .wdt-single-product-price p.price ins,
body.single-product .summary .wdt-single-product-price p.price ins .amount,
body.single-product .summary .wdt-single-product-price p.price > .amount {
	font-size: var(--sc-price) !important;
}

/* Phones: 26px, so a range ("179.00 – 317.00") stays on one line and choosing an option
   (which swaps in a single price) doesn't move the buttons. */
@media (max-width: 767px) {
	body.single-product .summary .wdt-single-product-price p.price {
		--sc-price: 26px;
	}
}

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

/* The chosen option's price now replaces the top price (js/sc-product-page.js) */
body.single-product .summary .single_variation_wrap .woocommerce-variation-price {
	display: none !important;
}

/*
 * 3. Gallery (Woo Gallery Slider).
 * Every main image sits in the same 2:3 frame (the catalogue's standard
 * photo ratio), so the slider no longer grows to the tallest photo and
 * leaves white bands above shorter ones. Odd-ratio photos are cropped
 * slightly; the lightbox still opens the full image.
 */
body.single-product #wpgs-gallery .wcgs-carousel .spswiper-slide,
body.single-product #wpgs-gallery .wcgs-carousel .wcgs-slider-image {
	height: auto;
}

body.single-product #wpgs-gallery .wcgs-carousel .wcgs-slider-image img.wcgs-slider-image-tag {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 3;
	object-fit: cover;
	object-position: center;
}

/* Zoom (loupe) button: keep it on the photo, inset from the corner */
body.single-product #wpgs-gallery .wcgs-carousel {
	position: relative;
}

body.single-product #wpgs-gallery .wcgs-carousel .wcgs-lightbox {
	top: 12px;
	right: 12px;
	left: auto;
	bottom: auto;
	border-radius: 50%;
	z-index: 5;
}

/* Thumbnails: identical squares whatever the source ratio */
body.single-product #wpgs-gallery .gallery-navigation-carousel .wcgs-thumb {
	aspect-ratio: 1 / 1;
	height: auto !important;
	overflow: hidden;
}

body.single-product #wpgs-gallery .gallery-navigation-carousel .wcgs-thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

/*
 * 4. Variation picker (Variation Swatches by CartFlows, cfvsw).
 *    Title row on the left: "Sélectionnez : Lot de serviettes" + chosen value,
 *    with "Effacer" moved to the right end of that row by js/sc-product-page.js.
 *    Compact tiles; the chosen one gets a pink ring and a check mark.
 */
body.single-product .summary form.variations_form {
	display: block;
	width: 100%;
	margin: 16px 0 0;
}

body.single-product .summary form.variations_form table.variations {
	display: block;
	width: 100%;
	margin: 0 0 18px;
}

body.single-product .summary form.variations_form table.variations tbody,
body.single-product .summary form.variations_form table.variations tr,
body.single-product .summary form.variations_form table.variations td.value {
	display: block;
	width: 100%;
	padding: 0;
}

body.single-product .summary form.variations_form table.variations tr + tr {
	margin-top: 16px;
}

body.single-product .summary .custom-variation-title {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: 0 0 10px;
	text-align: left;
	font-size: 14px;
	line-height: 1.4;
	font-weight: 600;
	color: #111;
}

body.single-product .summary .custom-variation-title .sc-var-label {
	font-weight: 600;
}

body.single-product .summary .custom-variation-title .sc-var-chosen {
	font-weight: 500;
	color: #ac3c77;
}

body.single-product .summary form.variations_form table.variations tbody {
	margin: 0 !important;
}

body.single-product .summary form.variations_form table.variations td.value {
	text-align: left;
}

/* "Effacer la sélection": own line under the last option row (moved there by js/sc-product-page.js) */
/*
 * The line always keeps its height (18px), shown or not: WooCommerce only toggles its visibility,
 * so selecting or clearing an option never moves the buttons and the content below (that jump
 * read as a flicker on phones). Tiles -> 10px -> line -> 16px -> buttons = 44px.
 */
body.single-product .summary .sc-var-reset {
	height: 18px;
	margin: -14px 0 16px;
	line-height: 18px;
}

body.single-product .summary .sc-var-reset .reset_variations {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	width: auto !important;
	margin: 0 !important;
	padding: 0;
	font-size: 13px;
	font-weight: 500;
	color: #555;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none !important;
	letter-spacing: 0;
	white-space: nowrap;
}

body.single-product .summary .sc-var-reset .reset_variations::before {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 3-6.7'/%3E%3Cpath d='M3 4v5h5'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-product .summary .sc-var-reset .reset_variations:hover {
	color: #ac3c77;
}

/* Tiles */
body.single-product .summary .cfvsw-swatches-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	gap: 10px;
	margin: 0;
	/* room for the 2px ring and the check badge, so nothing is cut by the column edge */
	padding: 8px 8px 2px 2px;
}

/* The plugin's hover tooltip was clipped by the summary column; the hovered name is
   previewed in the title row instead (js/sc-product-page.js). */
body.single-product .summary .cfvsw-swatches-container .cfvsw-tooltip {
	display: none !important;
}

body.single-product .summary .custom-variation-title .sc-var-chosen.is-preview {
	color: #7a7a7a;
}

body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-image-option {
	position: relative;
	width: 88px !important;
	height: 88px !important;
	min-width: 88px !important;
	min-height: 88px !important;
	margin: 0 !important;
	padding: 2px;
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	box-sizing: border-box;
	transition: border-color .15s ease, box-shadow .15s ease;
}

body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option .cfvsw-swatch-inner {
	width: 100% !important;
	height: 100% !important;
	border-radius: 7px;
	overflow: hidden;
}

body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option:hover {
	border-color: #999;
}

body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-selected-swatch {
	border-color: #ac3c77 !important;
	box-shadow: 0 0 0 2px #ac3c77;
}

body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-selected-swatch::after {
	content: "";
	position: absolute;
	top: -6px;
	right: -6px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #ac3c77 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
	box-shadow: 0 0 0 2px #fff;
	z-index: 2;
}

/* Hidden "Effacer" must not reserve a row when it sits in its original place */
body.single-product .summary form.variations_form td.value > .reset_variations {
	display: none !important;
}

/* Tighter block under the picker */
body.single-product .summary form.variations_form .single_variation_wrap .woocommerce-variation-add-to-cart {
	margin-top: 0;
}

body.single-product .summary form.variations_form .woocommerce-variation.single_variation:not(:empty) {
	margin-bottom: 12px;
}

@media (max-width: 767px) {
	body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-image-option {
		width: 76px !important;
		height: 76px !important;
		min-width: 76px !important;
		min-height: 76px !important;
	}
}

/* 5. "Acheter maintenant" (Neytri buy-now): brand pink with a cart icon */
body.single-product .product-buy-now a.quick_buy_now_button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #ac3c77;
	border-color: #ac3c77;
	color: #fff;
	transition: background-color .2s ease, border-color .2s ease;
}

body.single-product .product-buy-now a.quick_buy_now_button::before {
	content: "";
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2.5 3h2.6l2.4 11.4a1.5 1.5 0 0 0 1.5 1.2h8.9a1.5 1.5 0 0 0 1.5-1.2L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.5'/%3E%3Ccircle cx='18' cy='20' r='1.5'/%3E%3Cpath d='M2.5 3h2.6l2.4 11.4a1.5 1.5 0 0 0 1.5 1.2h8.9a1.5 1.5 0 0 0 1.5-1.2L21 7H6'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.single-product .product-buy-now a.quick_buy_now_button:hover,
body.single-product .product-buy-now a.quick_buy_now_button:focus-visible {
	background: #8f2f62;
	border-color: #8f2f62;
	color: #fff;
}

/* 6. Mobile: tight gap between the gallery and the product title (was ~100px, now 16px) */
@media (max-width: 767px) {
	body.single-product #wpgs-gallery,
	body.single-product .wcgs-woocommerce-product-gallery {
		margin-bottom: 16px !important;
	}

	body.single-product .elementor-top-column:has(.wdt-product-summary) > .elementor-widget-wrap {
		padding-top: 0 !important;
	}
}

/*
 * 7. Every swatch type (image, colour, label) is a rounded square, so the pink selection ring
 *    and the keyboard focus ring follow the tile instead of drawing a circle (colour swatches
 *    were border-radius:100% around a square inside).
 */
body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option {
	border-radius: 10px !important;
}

body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option .cfvsw-swatch-inner {
	border-radius: 7px !important;
}

body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option:focus {
	outline: none;
}

body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option:focus-visible {
	outline: 2px solid #ac3c77;
	outline-offset: 3px;
	border-radius: 10px !important;
}

/*
 * 8. Unavailable options: no pink X badge; the tile is struck through from corner to corner.
 *    The line is dark with a white edge on both sides, so it stays visible on white, black,
 *    grey or any colour swatch. The tile content is dimmed, the line is not.
 */
body.single-product .summary .cfvsw-swatches-option .out-of-stock-badge {
	display: none !important;
}

body.single-product .summary .cfvsw-swatches-option.cfvsw-swatches-disabled,
body.single-product .summary .cfvsw-swatches-option.cfvsw-swatches-out-of-stock {
	position: relative;
	opacity: 1 !important;
	cursor: not-allowed;
}

body.single-product .summary .cfvsw-swatches-option.cfvsw-swatches-disabled > *,
body.single-product .summary .cfvsw-swatches-option.cfvsw-swatches-out-of-stock > * {
	opacity: 0.45;
}

body.single-product .summary .cfvsw-swatches-option.cfvsw-swatches-disabled::before,
body.single-product .summary .cfvsw-swatches-option.cfvsw-swatches-out-of-stock::before {
	content: "" !important;
	display: block !important;
	position: absolute;
	inset: 0;
	z-index: 3;
	border-radius: 9px;
	pointer-events: none;
	opacity: 1;
	background: linear-gradient(to top right,
		transparent calc(50% - 2.5px),
		#fff calc(50% - 2.5px), #fff calc(50% - 1px),
		#3a3a3a calc(50% - 1px), #3a3a3a calc(50% + 1px),
		#fff calc(50% + 1px), #fff calc(50% + 2.5px),
		transparent calc(50% + 2.5px)) !important;
}

/*
 * 9-10. Purchase block rhythm (2026-11-21), same on desktop and mobile:
 *   swatches -> 24px -> [quantity] 12px [Ajouter au panier] -> 12px -> [Acheter maintenant]
 *   The quantity keeps its width and "Ajouter au panier" takes the rest of the row, so both rows
 *   end on the same right edge. Applies to variable products (.woocommerce-variation-add-to-cart,
 *   a grid in the theme) and simple ones (form.cart, where the button used to drop under the quantity).
 */
body.single-product .summary form.variations_form table.variations {
	margin-bottom: 24px !important;
}

body.single-product .summary form.cart {
	margin-bottom: 0 !important;
}

body.single-product .summary .woocommerce-variation-add-to-cart,
body.single-product .summary form.cart:not(.variations_form) {
	display: flex !important;
	flex-wrap: nowrap;
	align-items: stretch;
	gap: 12px;
	width: 100%;
	margin-top: 0 !important;
}

body.single-product .summary form.cart .quantity {
	flex: 0 0 auto;
	margin: 0 !important;
}

body.single-product .summary form.cart .single_add_to_cart_button {
	flex: 1 1 auto;
	min-width: 0;
	width: auto !important;
	margin: 0 !important;
}

/* WooCommerce's variation box (price, stock, description) is always empty here: the theme hides its
   parts and the price now updates at the top. Its slide animation still gave it ~12px for a moment
   when an option was cleared, which pushed the buttons down and back up. */
body.single-product .summary .single_variation_wrap .woocommerce-variation.single_variation {
	display: none !important;
}

body.single-product .summary .product-buy-now {
	margin-top: 12px !important;
	padding-top: 0 !important;
}

body.single-product .summary .product-buy-now a.quick_buy_now_button {
	margin-top: 0 !important;
}

/*
 * 11. Bigger tap targets for text options (sizes etc.): they were 27px tall. 44px is the usual
 *     minimum for a finger. Colour (48px) and image tiles (76-88px) are already big enough.
 */
body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option.cfvsw-label-option {
	min-height: 44px !important;
	min-width: 56px !important;
	padding: 0 16px !important;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	font-size: 13px !important;
	line-height: 1.2 !important;
}

body.single-product .summary .cfvsw-swatches-container .cfvsw-swatches-option {
	touch-action: manipulation; /* no double-tap-zoom delay on the tiles */
	-webkit-tap-highlight-color: transparent;
}

/*
 * 12. Instant checkout box: "Ajouter au panier" sits inside it, under "Commander via WhatsApp",
 *     full width with the same 12px rhythm; its quantity selector is hidden (the box has its own).
 */
body.single-product .ma-ipc-form-wrapper + form.cart:not(.variations_form) {
	visibility: hidden; /* until js/sc-product-page.js moves it into the box */
}

body.single-product .ma-ipc-form-wrapper.sc-ipc-has-cart > form.cart {
	display: block !important;
	margin: 12px 0 0 !important;
	visibility: visible;
}

body.single-product .ma-ipc-form-wrapper.sc-ipc-has-cart > form.cart .quantity {
	display: none !important;
}

body.single-product .ma-ipc-form-wrapper.sc-ipc-has-cart > form.cart .single_add_to_cart_button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	width: 100% !important;
	min-height: 52px;
	margin: 0 !important;
	line-height: 1.2 !important;
}

/* 13. Promo badge on the product photos (inc/sc-product-page.php + js) */
body.single-product #wpgs-gallery,
body.single-product .wcgs-woocommerce-product-gallery,
body.single-product .wdt-product-image-gallery-holder {
	position: relative;
}

body.single-product .sc-gallery-labels {
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 6;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	pointer-events: none;
}

body.single-product .sc-gallery-labels[hidden] {
	display: none;
}

body.single-product .sc-gallery-labels > span {
	position: static !important;
	margin: 0 !important;
	line-height: normal; /* the gallery inherits a 44px line-height */
}

/*
 * 15. First paint of the gallery: Woo Gallery Slider keeps the main photo strip invisible
 *     (opacity 0, visibility hidden) until its deferred script has run, so for 1-2 s visitors saw
 *     the promo badge over a blank box. The first photo is already loaded early (eager,
 *     fetchpriority high) and the strip has the same size before and after the script, so it is
 *     shown straight away. Only the first slide is visible: the others sit to its right, clipped.
 */
body.single-product #wpgs-gallery.wcgs-spswiper-before-init .wcgs-carousel {
	opacity: 1 !important;
	visibility: visible !important;
	overflow: hidden;
}

body.single-product #wpgs-gallery.wcgs-spswiper-before-init .wcgs-carousel .spswiper-wrapper,
body.single-product #wpgs-gallery.wcgs-spswiper-before-init .wcgs-carousel .spswiper-slide,
body.single-product #wpgs-gallery.wcgs-spswiper-before-init .wcgs-carousel .spswiper-slide img {
	visibility: visible !important;
}

body.single-product #wpgs-gallery.wcgs-spswiper-before-init .wcgs-carousel .spswiper-slide {
	flex-shrink: 0;
	width: 100%;
}

/*
 * 14. Gallery keeps its height when an option is chosen or cleared.
 *     Woo Gallery Slider hides the thumbnail strip when the chosen option has only one photo
 *     (display:none), and rebuilds it when it comes back; for a frame its thumbnail rendered at
 *     full width (~400px tall). Either way everything below the gallery jumped.
 *     js/sc-product-page.js measures the strip once the page has loaded (--sc-thumbs-h, and
 *     --sc-thumbs-outer with its margins). The strip keeps that fixed height (clipping the
 *     rebuild frame), and the same space is kept while it is hidden. The plugin's loading veil,
 *     which faded in over the photo on every change, is switched off: the slides simply change.
 */
body.single-product #wpgs-gallery.sc-thumbs-locked > .gallery-navigation-carousel-wrapper.horizontal {
	height: var(--sc-thumbs-h) !important;
	overflow: hidden !important;
}

body.single-product #wpgs-gallery.sc-thumbs-locked > .gallery-navigation-carousel-wrapper.horizontal img {
	max-height: var(--sc-thumbs-h);
	object-fit: cover;
}

body.single-product #wpgs-gallery.sc-thumbs-locked:has(> .gallery-navigation-carousel-wrapper.horizontal[style*="display: none"]) {
	padding-bottom: var(--sc-thumbs-outer, 0px);
}

body.single-product #wpgs-gallery .wcgs-gallery-preloader {
	display: none !important;
}

/*
 * 16. Theme gallery (Neytri Pro "images carousel", used by most simple products), 2026-11-22.
 *  a. Its zoom button was a 45px black square at the top-left, under the promo badge. It now
 *     matches Woo Gallery Slider's loupe: a 30px dark circle at the top-right, always visible.
 *  b. Thumbnails: the theme pins the strip with transform:none, so only the first 4 of up to
 *     13 photos could ever be seen or clicked. The strip now scrolls sideways (swipe, trackpad,
 *     or follows the main photo via js/sc-product-page.js). Each thumbnail fills its frame,
 *     and the one on display gets the pink ring.
 */
body.single-product .wdt-product-image-gallery-container .wdt-product-image-gallery-thumb-enlarger {
	left: auto;
	right: 12px;
	top: 12px;
	width: 30px;
	height: 30px;
	line-height: 30px;
	border-radius: 50% !important;
	background-color: rgba(0, 0, 0, 0.5);
	opacity: 1;
	visibility: visible;
	z-index: 7;
}

body.single-product .wdt-product-image-gallery-container .wdt-product-image-gallery-thumb-enlarger:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

body.single-product .wdt-product-image-gallery-container .wdt-product-image-gallery-thumb-enlarger::before {
	color: #fff;
	font-size: 13px;
	vertical-align: top;
}

body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container.swiper-horizontal {
	overflow-x: auto !important;
	overflow-y: hidden !important;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}

body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container.swiper-horizontal::-webkit-scrollbar {
	display: none;
}

body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container.swiper-horizontal .swiper-wrapper {
	justify-content: flex-start !important;
}

body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container .swiper-slide {
	flex-shrink: 0;
	max-width: none !important;
	overflow: hidden;
	border-radius: 6px;
	cursor: pointer;
	scroll-snap-align: start;
}

body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container.swiper-container .swiper-wrapper .swiper-slide img {
	left: 0;
	top: 0;
	width: 100% !important;
	height: 100% !important;
	padding: 0;
	border: 0;
	transform: none;
	object-fit: cover;
	object-position: center;
}

body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container .swiper-slide::after {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid #ececec;
	border-radius: 6px;
	pointer-events: none;
}

body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container .swiper-slide.sc-thumb-current::after {
	border: 2px solid #ac3c77;
}

/*
 * 16c. Theme gallery main photos all sit in the same 3:4 frame (the shape of most catalogue
 *      photos, 810x1080), filled edge to edge. The slider used to take the height of its tallest
 *      photo, so a 9:16 photo left up to ~400px of white under the squarer ones (Parure Tweety).
 *      Odd-shaped photos are trimmed slightly; the zoom view still opens the whole photo.
 */
/* (2026-11-22) Also before the slider starts (no .swiper-horizontal yet), so the photo keeps
   the same frame from the first paint. */
body.single-product .wdt-product-image-gallery-container:not(.swiper-vertical) .wdt-product-image.swiper-slide {
	height: auto !important;
	overflow: hidden;
}

body.single-product .wdt-product-image-gallery-container:not(.swiper-vertical) .wdt-product-image.swiper-slide img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 3 / 4;
	object-fit: cover;
	object-position: center;
}

/*
 * 16d. No jump while the page loads (2026-11-22, Pack Nara Luxury Collection). Until the
 *      slider script starts (about 1s, more on slow phones), the thumbnail strip had no slider
 *      sizing: every thumbnail showed at full width, one under the other, so the gallery was
 *      twice as tall (mobile 582px became ~1050px, desktop 1012px became 1617px) and then
 *      snapped back. These rules give the strip its final layout from the first paint:
 *      4 thumbnails per row, 10px apart, 3:4.2 frame (the theme's 130% padding).
 *      The "4" matches the widget's "slides per view (thumbnail)" setting.
 */
body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container:not(.swiper-initialized) {
	overflow: hidden !important;
}

body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
	justify-content: flex-start;
}

body.single-product .wdt-product-image-gallery-holder .wdt-product-image-gallery-thumb-container:not(.swiper-initialized) .swiper-slide {
	flex: 0 0 auto;
	width: calc((100% - 30px) / 4);
	margin-right: 10px;
}

/* The main photos sit in one row too, so only the first one shows before the slider starts. */
body.single-product .wdt-product-image-gallery-container:not(.swiper-initialized) .swiper-wrapper {
	display: flex;
}

body.single-product .wdt-product-image-gallery-container:not(.swiper-initialized) .wdt-product-image.swiper-slide {
	flex: 0 0 100%;
	width: 100%;
}

/*
 * 17. Mobile: more air between the photos and the product title (2026-11-22). The title widget
 *     sits 20px higher (negative margin set in Elementor), so 16 + 36 - 20 = 32px from the bottom
 *     of the thumbnails to the title box, the same with both galleries (was 16px, or 0 with the
 *     theme gallery).
 */
@media (max-width: 767px) {
	body.single-product .wdt-product-image-gallery-holder {
		margin-bottom: 16px !important;
	}

	body.single-product .wdt-single-product-title .product_title {
		margin-top: 36px !important;
	}
}

/*
 * 18. Wishlist heart on the product photo (2026-11-22), both galleries. Printed by
 *     inc/sc-wishlist.php and moved into the gallery by js/sc-product-page.js. Same circle as the
 *     zoom button above it (30px, 12px from the edge, 50% black, white icon), 8px below it.
 *     Outline heart before adding; filled heart after, which links to "Mes favoris".
 *     The plugin's texts stay in the page for screen readers but are not shown.
 */
body.single-product .sc-gallery-wishlist {
	position: absolute;
	top: 50px;
	right: 12px;
	z-index: 7;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background-color: rgba(0, 0, 0, 0.5);
	color: #fff;
	font-size: 0;
	line-height: 0;
	transition: background-color .2s ease;
}

body.single-product .sc-gallery-wishlist[hidden] {
	display: none;
}

body.single-product .sc-gallery-wishlist:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

body.single-product .sc-gallery-wishlist .yith-wcwl-add-to-wishlist,
body.single-product .sc-gallery-wishlist .yith-wcwl-add-button,
body.single-product .sc-gallery-wishlist .yith-wcwl-wishlistaddedbrowse,
body.single-product .sc-gallery-wishlist .yith-wcwl-wishlistexistsbrowse {
	position: absolute;
	inset: 0;
	margin: 0 !important;
	padding: 0 !important;
}

/* The link fills the circle and shows only the heart */
body.single-product .sc-gallery-wishlist a,
body.single-product .sc-gallery-wishlist .feedback {
	position: absolute;
	inset: 0;
	display: flex !important;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: #fff !important;
	font-size: 0 !important;
	line-height: 0 !important;
	text-decoration: none !important;
}

body.single-product .sc-gallery-wishlist a {
	z-index: 1;
}

body.single-product .sc-gallery-wishlist svg,
body.single-product .sc-gallery-wishlist img,
body.single-product .sc-gallery-wishlist i {
	width: 16px !important;
	height: 16px !important;
	margin: 0 !important;
	color: #fff !important; /* the plugin colours the filled "added" heart black */
	fill: currentColor;
	font-size: 16px !important;
	line-height: 1 !important;
}

/* Added / already in favourites: the heart sits in .feedback, the link on top goes to the list */
body.single-product .sc-gallery-wishlist .yith-wcwl-wishlistaddedbrowse a > *,
body.single-product .sc-gallery-wishlist .yith-wcwl-wishlistexistsbrowse a > * {
	display: none !important;
}

body.single-product .sc-gallery-wishlist .separator,
body.single-product .sc-gallery-wishlist .view-wishlist,
body.single-product .sc-gallery-wishlist .ajax-loading,
body.single-product .sc-gallery-wishlist .yith-wcwl-add-to-wishlist__count,
body.single-product .sc-gallery-wishlist .count-add-to-wishlist {
	display: none !important;
}
