/* Cosylueur single product — Share removed, tabs in the summary column. */

.single-product .ecomus-extra-link-item--share,
.single-product .product-share-modal,
.single-product .ecomus-product-extra-link:empty {
	display: none !important;
}

/* If default full-width tabs still render below the gallery, hide them
   once the summary accordion is present, so they are not duplicated. */
.single-product:has(.cl-summary-tabs) div.product > .woocommerce-tabs.wc-tabs-wrapper,
.single-product:has(.cl-summary-tabs) .product-gallery-summary ~ .woocommerce-tabs.wc-tabs-wrapper {
	display: none !important;
}

.single-product .summary .cl-summary-tabs {
	width: 100%;
	margin: 8px 0 0;
	clear: both;
}

.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-title {
	background-color: #f6f1ea;
	color: #2a231d;
	font-size: 16px;
	padding: 12px 16px;
	border-radius: 10px;
}

.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-content {
	padding: 16px 4px 8px;
	margin-top: 10px;
	border-color: rgba(42, 35, 29, 0.14);
	font-size: 16px;
	line-height: 1.6;
	color: #333;
}

.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-content > h2:first-child {
	display: none;
}

.single-product .summary .woocommerce-tabs--dropdown:not(.last) {
	margin-bottom: 10px;
}

.single-product .summary table.woocommerce-product-attributes {
	width: 100%;
	margin: 0;
	font-size: 16px;
}

.single-product .summary table.woocommerce-product-attributes th,
.single-product .summary table.woocommerce-product-attributes td {
	padding: 8px 0;
	color: #333;
	border-color: rgba(42, 35, 29, 0.12);
}

@media (max-width: 767px) {
	.single-product .summary .cl-summary-tabs {
		margin-top: 12px;
	}

	.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-title {
		padding: 12px 14px;
	}

	.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-content {
		padding: 14px 2px 6px;
	}
}

/* Description and Informations complémentaires headers must match
   (same type, icon, spacing — no pre-selected / bolder state). */
.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-title,
.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-title.active {
	font-weight: 600;
	letter-spacing: 0;
	background-color: #f6f1ea;
	color: #2a231d;
}

/* Product gallery + summary columns (desktop).
   1.1.9 pinned only the summary inside a grid that also pulled related
   products into the left column. The right column stayed still while the
   gallery scrolled away — “la partie gauche bouge toute seule”.

   Both columns fit typical desktop viewports (538px gallery at 1440×900
   and 1366×768 once the non-sticky header has started to leave). Sticky
   on either column would make their tops diverge. Keep both in normal
   flow so they stay aligned and move only with the page. Related /
   upsells / recently viewed go back to full-width rows below the block.

   transform:none is applied to the column boxes only, never to Swiper
   wrappers inside the gallery. overflow-anchor:none and a min-height on
   payment icons avoid late-load jitter. */
.single-product .cl-payicons {
	min-height: 34px;
	margin-top: 20px !important;
}

@media (min-width: 1024px) {
	.single-product .site-content,
	.single-product .content-area,
	.single-product div.product,
	.single-product .product-gallery-summary {
		overflow: visible !important;
	}

	/* Do not put transform:none on #page/.site: that can break off-canvas panels. */
	.single-product div.product .product-gallery-summary {
		transform: none !important;
		filter: none !important;
		perspective: none !important;
		align-items: flex-start !important;
		overflow-anchor: none;
	}

	.single-product div.product .product-gallery-summary > .woocommerce-product-gallery,
	.single-product div.product .product-gallery-summary > .entry-summary,
	.single-product div.product .product-gallery-summary > .summary {
		position: relative !important;
		top: auto !important;
		align-self: flex-start !important;
		overflow-anchor: none;
	}

	/* Neutralize inline translates on the column boxes only — not on
	   .swiper-wrapper inside the gallery, which must keep its transform. */
	.single-product div.product .product-gallery-summary > .entry-summary,
	.single-product div.product .product-gallery-summary > .summary {
		transform: none !important;
		filter: none !important;
	}

	.single-product div.product .product-gallery-summary > .woocommerce-product-gallery {
		/* The gallery box itself must not be sticky or translated; leave
		   inner Swiper transforms alone. */
		position: relative !important;
		top: auto !important;
	}
}

/* Mobile / narrow: normal stacking, no sticky. */
@media (max-width: 767px) {
	.single-product div.product .product-gallery-summary .entry-summary,
	.single-product div.product .product-gallery-summary .summary,
	.single-product div.product .product-gallery-summary .woocommerce-product-gallery {
		position: relative;
		top: auto;
	}
}

/* Space between the product title and the price (desktop and mobile).
   Title already had 15px margin-bottom; raise it to 20px and add 8px
   padding-top on the price wrap so the gap does not collapse. */
.single-product div.product .summary h1.product_title.entry-title {
	margin-bottom: 20px;
}

.single-product div.product .summary .ecomus-product-price {
	padding-top: 8px;
}

/* =====================================================================
   1.2.0 — conversion & mobile-first upgrade.
   Palette: linen #faf7f2 · sand #f3ece2 · espresso #251e18 · amber #9c562c
   ===================================================================== */

/* Price + short description right under the title. */
.single-product div.product .summary .ecomus-product-price .price {
	color: #251e18;
	font-weight: 700;
}

.single-product div.product .summary .short-description {
	margin: 4px 0 16px;
}

.single-product div.product .summary .short-description__content,
.single-product div.product .summary .short-description__content p {
	max-height: none !important;
	-webkit-line-clamp: unset !important;
	overflow: visible !important;
	margin: 0;
	color: #3f352d;
	font-size: 16px;
	line-height: 1.6;
}

.single-product div.product .summary .short-description__more {
	display: none !important;
}

/* Real stock state pill (only printed when the product is in stock). */
.single-product .summary .cl-stock-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 18px;
	padding: 6px 12px;
	border-radius: 999px;
	background: #eef4ea;
	color: #2f5a2b;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.single-product .summary .cl-stock-pill__dot {
	flex: 0 0 8px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #3f8a3a;
	box-shadow: 0 0 0 3px rgba(63, 138, 58, 0.18);
}

/* Buttons layout: quantity + Acheter maintenant on one row,
   Ajouter au panier (outlined) full width below, nudge under it. */
.single-product form.cart .ecomus-product-atc-group {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	column-gap: 12px;
	row-gap: 10px;
	margin-bottom: 0;
}

.single-product form.cart .em-product-quantity {
	display: contents;
}

.single-product form.cart .quantity__label {
	order: 0;
	flex: 1 1 100%;
	width: 100%;
	margin: 0;
	font-size: 14px;
}

.single-product form.cart .ecomus-product-atc-group .quantity {
	order: 1;
	flex: 0 0 auto;
	height: 52px;
	box-sizing: border-box;
	border-color: #d9cbbb;
	border-radius: 10px;
}

.single-product form.cart .cl-buy-now,
.single-product form.cart .single_add_to_cart_button {
	display: flex !important;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-sizing: border-box;
	height: 52px;
	min-height: 52px;
	margin: 0 !important;
	padding: 0 20px;
	border-radius: 10px !important;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: 0.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	text-decoration: none;
	cursor: pointer;
	visibility: visible !important;
	pointer-events: auto !important;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.single-product form.cart .cl-buy-now {
	order: 2;
	flex: 1 1 0;
	min-width: 0;
	width: auto;
	border: 1px solid #251e18 !important;
	background-color: #251e18 !important;
	color: #f7f2eb !important;
	box-shadow: 0 6px 18px rgba(37, 30, 24, 0.18);
}

.single-product form.cart .cl-buy-now:hover,
.single-product form.cart .cl-buy-now:focus-visible {
	background-color: #9c562c !important;
	border-color: #9c562c !important;
	color: #ffffff !important;
}

.single-product form.cart .single_add_to_cart_button {
	order: 3;
	flex: 1 1 100%;
	width: 100% !important;
	border: 1.5px solid #251e18 !important;
	background: transparent !important;
	background-color: transparent !important;
	color: #251e18 !important;
	box-shadow: none !important;
}

.single-product form.cart .single_add_to_cart_button .divide,
.single-product form.cart .single_add_to_cart_button .price {
	display: none !important;
}

.single-product form.cart .single_add_to_cart_button .text {
	color: inherit !important;
}

.single-product form.cart .single_add_to_cart_button:hover,
.single-product form.cart .single_add_to_cart_button:focus-visible {
	background-color: #f3ece2 !important;
	border-color: #9c562c !important;
	color: #9c562c !important;
}

.single-product form.cart .single_add_to_cart_button.loading {
	opacity: 0.7;
}

.single-product form.cart .cl-buy-now:focus-visible,
.single-product form.cart .single_add_to_cart_button:focus-visible {
	outline: 2px solid #9c562c;
	outline-offset: 2px;
}

/* Any extra theme wrappers inside the group go last. */
.single-product form.cart .ecomus-product-atc-group > *:not(.quantity):not(.quantity__label):not(.cl-buy-now):not(.single_add_to_cart_button) {
	order: 5;
}

/* Free-shipping nudge (only under the 49 € threshold). */
.single-product form.cart .cl-ship-nudge,
.single-product .summary .cl-ship-nudge {
	order: 4 !important;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex: 1 1 100%;
	width: 100%;
	margin: 2px 0 0;
	color: #6b4a33;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	text-align: center;
}

.single-product .summary .cl-ship-nudge .cl-ico {
	flex: 0 0 auto;
	color: #9c562c;
}

/* Old run-on trust line: replaced by the reassurance card. */
.single-product .summary form.cart .cl-trust-line {
	display: none !important;
}

/* Reassurance card (wraps the official payment badges). */
.single-product .summary .cl-reassure {
	margin: 22px 0 18px;
	padding: 18px 18px 6px;
	background: #faf7f2;
	border: 1px solid #e7dccd;
	border-radius: 12px;
}

.single-product .summary .cl-reassure__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.single-product .summary .cl-reassure__list li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	margin: 0 0 12px;
	padding: 0;
	color: #4a3f37;
	font-size: 14px;
	line-height: 1.45;
}

.single-product .summary .cl-reassure__list li::before {
	content: none;
}

.single-product .summary .cl-reassure__list .cl-ico {
	flex: 0 0 22px;
	margin-top: 1px;
	color: #9c562c;
}

.single-product .summary .cl-reassure__list strong {
	display: block;
	color: #251e18;
	font-weight: 600;
}

.single-product .summary .cl-reassure .cl-payicons {
	margin: 4px 0 12px 34px !important;
	padding-top: 12px;
	border-top: 1px solid #eadfd1;
	width: calc(100% - 34px) !important;
	min-height: 0;
}

/* Accordions */
.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-title,
.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-title.active {
	background-color: #f3ece2;
	color: #251e18;
	border-radius: 10px;
}

.single-product .summary .woocommerce-tabs--dropdown.wc-tabs-first--opened > .woocommerce-tabs-content {
	display: block;
}

/* Description content: readable headings, never broken mid-word. */
.single-product .summary .woocommerce-tabs-content h2,
.single-product .summary .woocommerce-tabs-content h3,
.single-product .summary .woocommerce-tabs-content h4,
.single-product .woocommerce-Tabs-panel h2,
.single-product .woocommerce-Tabs-panel h3,
.single-product .woocommerce-Tabs-panel h4 {
	margin: 20px 0 10px;
	font-size: 1.05rem !important;
	font-weight: 600;
	line-height: 1.35 !important;
	letter-spacing: 0 !important;
	color: #251e18;
	word-break: normal !important;
	overflow-wrap: normal !important;
	hyphens: none !important;
}

.single-product .summary .woocommerce-tabs--dropdown .woocommerce-tabs-content > h2:first-child {
	display: none;
}

.single-product .summary .woocommerce-tabs-content p {
	margin: 0 0 12px;
}

.single-product .summary .woocommerce-tabs-content ul {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
}

.single-product .summary .woocommerce-tabs-content ul li {
	position: relative;
	margin: 0 0 8px;
	padding-left: 22px;
	line-height: 1.5;
}

.single-product .summary .woocommerce-tabs-content ul li::before {
	content: "";
	position: absolute;
	left: 3px;
	top: 0.62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #9c562c;
}

.single-product .summary .cl-tab-shipping a,
.single-product .summary .woocommerce-tabs-content a {
	color: #9c562c;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.single-product .summary .cl-tab-shipping__links {
	margin: 6px 0 0;
	font-size: 14px;
}

/* Mobile sticky buy bar (shown by product.js after the main CTA scrolls away). */
.cl-sticky-buy {
	display: none;
}

@media (max-width: 768px) {
	.cl-sticky-buy {
		position: fixed;
		left: 0;
		right: 0;
		bottom: 0;
		z-index: 99990;
		display: flex;
		align-items: center;
		gap: 12px;
		padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
		background: #fffdf9;
		isolation: isolate;
		border-top: 1px solid #e7dccd;
		box-shadow: 0 -8px 24px rgba(37, 30, 24, 0.12);
		transform: translateY(110%);
		visibility: hidden;
		transition: transform 0.28s ease, visibility 0s linear 0.28s;
	}

	.cl-sticky-buy.is-visible {
		transform: translateY(0);
		visibility: visible;
		transition: transform 0.28s ease, visibility 0s;
	}

	.cl-sticky-buy__info {
		display: flex;
		flex-direction: column;
		flex: 1 1 auto;
		min-width: 0;
	}

	.cl-sticky-buy__title {
		overflow: hidden;
		white-space: nowrap;
		text-overflow: ellipsis;
		color: #251e18;
		font-size: 14px;
		font-weight: 600;
		line-height: 1.3;
	}

	.cl-sticky-buy__price {
		color: #251e18;
		font-size: 15px;
		font-weight: 700;
		line-height: 1.3;
	}

	.cl-sticky-buy__btn {
		flex: 0 0 auto;
		height: 46px;
		padding: 0 26px;
		border: 0;
		border-radius: 10px;
		background: #251e18;
		color: #f7f2eb;
		font-size: 15px;
		font-weight: 600;
		white-space: nowrap;
		cursor: pointer;
	}

	.cl-sticky-buy__btn:hover,
	.cl-sticky-buy__btn:focus-visible {
		background: #9c562c;
		color: #fff;
	}

	body.cl-sticky-buy-on {
		padding-bottom: 72px;
	}

	/* Scroll-to-top button: hidden on mobile product pages (sticky bar). */
	.single-product #gotop,
	.single-product .gotop,
	.single-product #scroll-top,
	.single-product .ecomus-gotop {
		display: none !important;
	}
}

/* Mobile: CTA row never wraps the label onto 2 lines. */
@media (max-width: 767px) {
	.single-product form.cart .ecomus-product-atc-group .quantity {
		width: 118px;
		min-width: 0;
	}

	.single-product form.cart .cl-buy-now {
		font-size: 15.5px;
		padding: 0 12px;
	}

	.single-product .summary .cl-reassure {
		padding: 16px 14px 4px;
	}

	.single-product .summary .cl-reassure .cl-payicons {
		margin-left: 0 !important;
		width: 100% !important;
	}
}

@media (max-width: 359px) {
	.single-product form.cart .ecomus-product-atc-group .quantity {
		flex: 1 1 100%;
		width: 100%;
	}

	.single-product form.cart .cl-buy-now {
		flex: 1 1 100%;
	}
}

@media (prefers-reduced-motion: reduce) {
	.cl-sticky-buy,
	.cl-sticky-buy.is-visible {
		transition: none;
	}
}
