/*
--------------------------------------
Notices d'ajout au panier
--------------------------------------
*/

.woocommerce-notices-wrapper {
	position: fixed;
	z-index: 20;
	top: 25%;
	right: 10px;
	opacity: 1;
	visibility: visible;
	pointer-events: all;
	box-shadow: rgba(0, 0, 0, 0.09) 0 3px 12px;
	border-radius: 7px;
	transition: transform 1s ease, opacity 1s ease;
	max-width: calc(280px + (380 - 280) * ((100vw - 320px) / (1920 - 320)));
}

.woocommerce-notices-wrapper--hidden {
	opacity: 0;
	transform: translateY(-20px);
	pointer-events: none;
}

.woocommerce-message,
.woocommerce-info {
	border-top-color: var(--e-global-color-primary, #091B25);
	margin-bottom: 0;
}

.woocommerce-message:focus-visible {
	outline: none;
}

.woocommerce-notices-wrapper .woocommerce-message {
	display: flex;
	flex-direction: column;
	justify-content: center;
	background: #fff;
	min-width: 320px;
	min-height: 155px;
	padding: 1em;
}

.woocommerce-message::before {
	display: none;
}

.woocommerce-message-inner .woocommerce-message-text {
	display: flex;
	flex-direction: column;
	row-gap: 10px;
	font-family: var(--e-global-typography-primary-font-family);
	font-size: 14px;
	color: #000;
	max-width: 90%;
	line-height: 1.5;
}

.woocommerce-message-inner .close-button {
	position: absolute;
	top: 5px;
	right: 10px;
	background: transparent;
	padding: 0;
	cursor: pointer;
}

.wc-forward {
	text-align: center !important;
}

/*
--------------------------------------
Fil d'Ariane
--------------------------------------
*/

.separate-containers .inside-article {
	background: #F7F4EB !important;
}

/*
--------------------------------------
Fil d'Ariane
--------------------------------------
*/

.single-product .woocommerce-breadcrumb {
	max-width: 1280px;
	margin: 1.25rem auto 0;
	padding-inline: 1.25rem;
	font-size: 0.85rem;
	color: var(--muted-foreground);
}

.single-product .woocommerce-breadcrumb a {
	color: var(--muted-foreground);
}

.single-product .woocommerce-breadcrumb a:hover {
	color: var(--primary);
}

/*
--------------------------------------
Bloc principal (image + résumé)
--------------------------------------
*/

.bwa-product__top {
	display: flex;
	flex-direction: column;
	gap: 2rem;
	padding-block: 2rem 3rem;
}

.bwa-product__gallery .woocommerce-product-gallery {
	/* WooCommerce applique par défaut width:48%/float:left à .images (pensé
	   pour son propre layout 2 colonnes) : on neutralise pour occuper toute
	   la colonne de notre propre grille. */
	float: none !important;
	width: 100% !important;
	border-radius: var(--radius-2xl);
	overflow: hidden;
}

.bwa-product__gallery .woocommerce-product-gallery__image img {
	width: 100% !important;
	height: auto;
}

/* Le wrapper et chaque slide reçoivent leur largeur en JS par Flexslider
   (ex. width:800% sur le wrapper, une fraction par slide) dès qu'il y a
   plusieurs images : ne JAMAIS forcer leur width en CSS, sous peine de
   casser le slide (le clic sur une vignette ne change alors plus rien). */

.bwa-product__gallery .flex-control-thumbs {
	display: flex;
	gap: 0.75rem;
	margin-top: 0.75rem;
	padding: 0;
	list-style: none;
}

.bwa-product__gallery .flex-control-thumbs li {
	/* !important : WooCommerce force width:25%;float:left (grille 4
	   colonnes) avec une spécificité plus forte que cette règle. */
	width: 4.5rem !important;
	height: 4.5rem;
	float: none !important;
	border-radius: var(--radius-md);
	overflow: hidden;
	cursor: pointer;
	border: 2px solid transparent;
}

.bwa-product__gallery .flex-control-thumbs img {
	/* !important nécessaire : WooCommerce a sa propre règle
	   ".woocommerce div.product div.images img{width:100%;height:auto}"
	   plus spécifique que celle-ci, qui sinon l'emporte et casse le
	   recadrage (vignette étirée en haut, coupée en bas). */
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
	opacity: 0.7;
	transition: opacity var(--transition-fast);
}

.bwa-product__gallery .flex-control-thumbs .flex-active img,
.bwa-product__gallery .flex-control-thumbs img:hover {
	opacity: 1;
	border-color: var(--primary);
}

.bwa-product__heading {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
}

.bwa-product__brand {
	color: var(--sunny);
	font-size: 1.5rem;
	margin: 0;
}

.bwa-product__title {
	margin: 0.25rem 0 0.75rem;
	color: var(--forest);
	font-size: 2rem;
}

.bwa-product__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.6rem;
	margin: 0 0 1rem;
	font-family: var(--font-display);
	font-size: 1.5rem;
	color: var(--foreground);
}

.bwa-product__price .woocommerce-Price-amount {
	color: var(--forest);
}

.bwa-product__price-note {
	font-family: var(--font-body);
	font-size: 0.85rem;
	color: var(--muted-foreground);
}

.bwa-product__excerpt {
	color: color-mix(in oklch, var(--foreground) 80%, transparent);
	line-height: 1.6;
	margin-bottom: 1.5rem;
}

.bwa-product__excerpt p:last-child {
	margin-bottom: 0;
}

.bwa-product__actions {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.bwa-product__actions .cart {
	display: flex;
	gap: 0.75rem;
}

.bwa-product__actions .quantity {
	display: flex;
	align-items: center;
	min-height: 3.1rem;
	border-radius: 999px;
	border: 1px solid var(--border);
	background: var(--card);
	overflow: hidden;
}

.bwa-product__actions .quantity .qty {
	width: 2.75rem;
	height: 100%;
	min-height: 3.1rem;
	border: none;
	text-align: center;
	background: transparent;
	font-size: 1rem;
	-moz-appearance: textfield;
}

.bwa-product__actions .quantity .qty::-webkit-inner-spin-button,
.bwa-product__actions .quantity .qty::-webkit-outer-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.bwa-product__actions .bwa-qty-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 3.1rem;
	flex-shrink: 0;
	border: none;
	background: transparent;
	color: var(--forest);
	font-size: 1.1rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color var(--transition-normal);
}

.bwa-product__actions .bwa-qty-btn:hover {
	background-color: color-mix(in oklch, var(--forest) 8%, transparent);
}

.bwa-product__actions .bwa-qty-btn:disabled {
	opacity: 0.35;
	cursor: not-allowed;
}

/* Mention de stock bas ("Plus que X en stock !") — voir bwa_product_stock_html() */
.stock.bwa-stock-low {
	margin: 0 0 0.5rem;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--sunny);
}

.stock.out-of-stock {
	margin: 0 0 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--destructive);
}

.bwa-product__actions .single_add_to_cart_button svg {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
}

.bwa-product__actions .single_add_to_cart_button,
.btn--outline {
	flex: 1;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	width: 100%;
}

.bwa-product__actions .single_add_to_cart_button {
	gap: 0.5rem;
	background-color: var(--primary) !important;
	color: var(--primary-foreground) !important;
	border: 2px solid var(--primary) !important;
	border-radius: 999px !important;
	font-family: var(--font-body) !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	text-transform: none !important;
	padding: 0.875rem 1.75rem !important;
	transition: background-color var(--transition-normal), color var(--transition-normal) !important;
}

.bwa-product__actions .single_add_to_cart_button:hover {
	background-color: transparent !important;
	color: var(--primary) !important;
}

.btn--outline {
	background: transparent;
	border: 1.5px solid var(--primary);
	color: var(--primary);
}

.btn--outline:hover {
	background: var(--primary);
	color: var(--primary-foreground);
}

.bwa-product__trust {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	column-gap: 1rem;
	row-gap: 0.6rem;
	list-style: none;
	margin: 0;
	padding-top: 1.25rem;
	border-top: 1px solid var(--border);
	font-size: 0.8rem;
	color: var(--muted-foreground);
}

.bwa-product__trust li {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	white-space: nowrap;
}

.bwa-product__trust svg {
	flex-shrink: 0;
	color: var(--primary);
}

.bwa-product__flag {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: var(--muted-foreground);
	font-size: 16px;
	font-weight: 500;
	flex-shrink: 0;
}

/*
--------------------------------------
Modale de personnalisation
--------------------------------------
*/

.bwa-modal[hidden] {
	display: none;
}

body.bwa-modal-open {
	overflow: hidden;
}

.bwa-modal {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

.bwa-modal__overlay {
	position: absolute;
	inset: 0;
	background: color-mix(in oklch, var(--forest) 55%, transparent);
}

.bwa-modal__panel {
	position: relative;
	background: var(--cream);
	border-radius: var(--radius-2xl);
	padding: 2rem;
	max-width: 460px;
	width: 100%;
	max-height: 90vh;
	overflow-y: auto;
}

.bwa-modal__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--foreground);
}

.bwa-modal__eyebrow {
	color: var(--sunny);
	font-size: 1.25rem;
	margin: 0;
}

.bwa-modal__title {
	font-family: var(--font-display);
	color: var(--forest);
	font-size: 1.75rem;
	margin: 0 0 1rem;
}

.bwa-modal__image {
	border-radius: var(--radius-lg);
	overflow: hidden;
	margin-bottom: 1.25rem;
}

.bwa-modal__image img {
	width: 100%;
	display: block;
}

.bwa-modal__form label {
	display: block;
	font-size: 0.9rem;
	margin-bottom: 0.5rem;
	color: var(--foreground);
}

.bwa-modal__form input[type="text"] {
	width: 100%;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-lg);
	border: 1px solid var(--border);
	background: var(--card);
	font-size: 1rem;
}

.bwa-modal__hint {
	font-size: 0.8rem;
	color: var(--muted-foreground);
	margin: 0.5rem 0 1.25rem;
}

.bwa-modal__price-box {
	background: var(--muted);
	border-radius: var(--radius-lg);
	padding: 0.9rem 1rem;
	margin-bottom: 1.5rem;
	font-size: 0.9rem;
}

.bwa-modal__price-box p {
	margin: 0;
}

.bwa-modal__price-box p + p {
	margin-top: 0.35rem;
	color: var(--muted-foreground);
}

.bwa-modal__submit {
	width: 100%;
	justify-content: center;
}

/*
--------------------------------------
Onglets Description / Caractéristiques / Conseil
--------------------------------------
*/

.bwa-product-tabs {
	background: var(--card);
	border-radius: var(--radius-2xl);
	padding: 1.5rem;
	margin-bottom: 3rem;
}

.bwa-product-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	border-bottom: 1px solid var(--border);
	margin-bottom: 1.5rem;
}

.bwa-product-tabs__tab {
	background: none;
	border: none;
	padding: 0 0 0.85rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--muted-foreground);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color var(--transition-fast);
}

.bwa-product-tabs__tab:hover,
.bwa-product-tabs__tab:focus {
	background: none;
	color: #000;
}

.bwa-product-tabs__tab.is-active {
	color: var(--forest);
	border-bottom-color: var(--forest);
}

.bwa-product-tabs__panel {
	display: none;
}

.bwa-product-tabs__panel.is-active {
	display: block;
}

.bwa-product-tabs__prose {
	line-height: 1.7;
	color: color-mix(in oklch, var(--foreground) 85%, transparent);
}

.bwa-product-tabs__prose p {
	margin: 0 0 1rem;
}

.bwa-product-tabs__prose p:last-child {
	margin-bottom: 0;
}

.bwa-product-tabs__specs {
	margin: 0;
	max-width: 600px;
}

.bwa-product-tabs__spec-row {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-bottom: 1px solid var(--border);
}

.bwa-product-tabs__spec-row:last-child {
	border-bottom: none;
}

.bwa-product-tabs__spec-row dt {
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--forest);
}

.bwa-product-tabs__spec-row dd {
	margin: 0;
	color: var(--foreground);
}

.bwa-product-tabs__advice {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
	text-align: center;
}

.bwa-product-tabs__advice-mascot img {
	width: 100px;
	height: auto;
}

.bwa-product-tabs__quote-mark {
	display: block;
	font-family: var(--font-display);
	font-size: 2.5rem;
	line-height: 1;
	color: var(--sunny);
}

.bwa-product-tabs__advice-body p:not(.bwa-product-tabs__advice-signature) {
	font-family: var(--font-display);
	font-style: italic;
	font-size: 1.1rem;
	line-height: 1.6;
	color: var(--forest);
	margin: 0.5rem 0 1rem;
}

.bwa-product-tabs__advice-signature {
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--sunny);
	margin: 0;
}

/*
--------------------------------------
Produits apparentés (bandeau fond forêt)
--------------------------------------
*/

.bwa-related {
	position: relative;
	background: var(--forest);
	padding-block: 4rem;
}

.bwa-related__wave {
	position: absolute;
	left: 0;
	z-index: 1;
	width: 100%;
	line-height: 0;
}

.bwa-related__wave svg {
	display: block;
	height: 40px;
	width: 100%;
}

.bwa-related__wave--top {
	top: 0;
}

.bwa-related__wave--bottom {
	bottom: 0;
	transform: rotate(180deg);
}

.bwa-related__inner {
	position: relative;
	z-index: 1;
}

.bwa-related__head {
	position: relative;
	text-align: center;
	margin-bottom: 2.5rem;
}

.bwa-related__couronne {
	position: absolute;
	left: 0;
	top: 4rem;
	z-index: 0;
	width: 7rem;
	height: auto;
	pointer-events: none;
}

.bwa-related__eyebrow {
	margin: 0;
	font-size: 1.5rem;
	color: var(--sunny);
}

.bwa-related__head h2 {
	margin: 0.25rem 0 0;
	font-size: 1.875rem;
	color: var(--cream);
}

.bwa-related__grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 1.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bwa-related-card {
	display: block;
}

.bwa-related-card__media {
	display: block;
	overflow: hidden;
	border-radius: var(--radius-2xl);
	aspect-ratio: 1 / 1;
	background: var(--card);
	box-shadow: var(--shadow-soft);
}

.bwa-related-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-slow);
}

.bwa-related-card:hover .bwa-related-card__media img {
	transform: scale(1.05);
}

.bwa-related-card__link {
	display: block;
	margin-top: 1rem;
	text-decoration: none;
}

.bwa-related-card__row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.75rem;
}

.bwa-related-card__name {
	font-family: var(--font-display);
	font-size: 1rem;
	line-height: 1.3;
	color: var(--cream);
}

.bwa-related-card__price {
	flex-shrink: 0;
	font-family: var(--font-display);
	font-size: 1rem;
	color: var(--cream);
}

.bwa-related-card__brand {
	display: block;
	margin-top: 0.2rem;
	font-size: 0.8rem;
	color: color-mix(in oklch, var(--cream) 65%, transparent);
}

/* FAQ ("Des questions ?") — mêmes règles que .shop-faq* dans shop-listing.css
   (page catalogue), dupliquées ici car chaque page WooCommerce charge son
   propre bundle CSS (voir inc/woocommerce-support.php).
-------------------------------------------------- */

.shop-faq {
	padding-block: 4rem;
}

.shop-faq__grid {
	display: grid;
	gap: 2.5rem;
}

.shop-faq__intro h2 {
	font-family: var(--font-display);
	font-size: calc(26px + (36 - 26) * ((100vw - 320px) / (1920 - 320)));
	color: var(--forest);
	margin: 0.25rem 0 1rem;
}

.shop-faq__intro p.script {
	color: var(--sunny);
	font-size: 1.4rem;
	margin: 0;
}

.shop-faq__intro > p:not(.script) {
	font-size: 0.9rem;
	line-height: 1.6;
	color: color-mix(in oklch, var(--foreground) 75%, transparent);
	margin-bottom: 1.25rem;
}

.shop-faq__list {
	display: flex;
	flex-direction: column;
}

.shop-faq__item {
	border-top: 1px solid color-mix(in oklch, var(--forest) 15%, transparent);
	padding-block: 1rem;
}

.shop-faq__item:last-child {
	border-bottom: 1px solid color-mix(in oklch, var(--forest) 15%, transparent);
}

.shop-faq__item summary {
	font-family: var(--font-display);
	font-size: 1.05rem;
	color: var(--forest);
	cursor: pointer;
	list-style: none;
}

.shop-faq__item summary::-webkit-details-marker {
	display: none;
}

.shop-faq__item summary::after {
	content: '+';
	float: right;
	font-size: 1.2rem;
}

.shop-faq__item[open] summary::after {
	content: '–';
}

.shop-faq__item p {
	margin: 0.75rem 0 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: color-mix(in oklch, var(--foreground) 75%, transparent);
}

@media (min-width: 1024px) {
	.shop-faq__grid {
		grid-template-columns: 1fr 1.4fr;
		gap: 4rem;
	}
}