/*
 * Boutique Florimeule : styles des pages WooCommerce
 * (catalogue, produit, panier, commande, mon compte).
 * Couleurs reprises du site : rouille #c64320, brun #4c2424 / #542d26,
 * creme #f2f0e9 (fond des photos de sacs), sable #dbd6c4, vert #518703.
 */

:root {
	--fl-rouille: #c64320;
	--fl-rouille-fonce: #a53718;
	--fl-brun: #4c2424;
	--fl-brun2: #542d26;
	--fl-creme: #f2f0e9;
	--fl-sable: #dbd6c4;
	--fl-vert: #518703;
}

/* ---------- Page et titres ---------- */
.woocommerce-page #main,
.woocommerce #main {
	color: var(--fl-brun);
	padding-top: 30px;
}

.woocommerce-page h1.page-title,
.woocommerce-page h1.product_title,
.woocommerce-page .woocommerce-products-header__title {
	color: var(--fl-brun2);
	font-weight: 700;
	margin-bottom: 1.2rem;
}

.woocommerce-page h2,
.woocommerce-page h3 {
	color: var(--fl-brun2);
}

.woocommerce-page a {
	color: var(--fl-rouille);
}

.woocommerce-page a:hover {
	color: var(--fl-rouille-fonce);
}

/* ---------- Gammes (boutons au-dessus du catalogue) ---------- */
.flb-gammes {
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
	margin: 0 0 1.5rem 0;
}

.flb-gammes .flb-chip {
	display: inline-block;
	padding: .35rem .9rem;
	border: 1px solid var(--fl-sable);
	border-radius: 99px;
	background: #fff;
	color: var(--fl-brun);
	text-decoration: none;
}

.flb-gammes .flb-chip:hover,
.flb-gammes .flb-chip.actif {
	background: var(--fl-rouille);
	border-color: var(--fl-rouille);
	color: #fff;
	text-decoration: none;
}

/* ---------- Catalogue : grille de produits ---------- */
.woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0 0 2rem 0;
	padding: 0;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
	content: none !important;
	display: none !important;
}

.woocommerce ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: .5rem;
	background: #fff;
	border: 1px solid var(--fl-sable);
	border-radius: 12px;
	text-align: left;
}

.woocommerce ul.products li.product a {
	text-decoration: none;
}

.woocommerce ul.products li.product a img {
	display: block;
	width: 100%;
	height: 170px;
	margin: 0;
	padding: .4rem;
	object-fit: contain;
	background: var(--fl-creme);
	border: 0;
	border-radius: 8px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
	margin: .3rem 0 0 0;
	padding: 0;
	color: var(--fl-rouille);
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.25;
}

.woocommerce ul.products li.product .price {
	color: var(--fl-brun);
	font-weight: 700;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .btn {
	margin-top: auto;
	text-align: center;
}

/* ---------- Boutons ---------- */
.woocommerce .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .btn-primary,
.woocommerce .btn-outline-primary,
.woocommerce #respond input#submit {
	display: inline-block;
	padding: .55rem 1rem;
	border: 1px solid var(--fl-rouille);
	border-radius: 8px;
	background: var(--fl-rouille);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

.woocommerce .button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce .btn-primary:hover,
.woocommerce .btn-outline-primary:hover {
	background: var(--fl-rouille-fonce);
	border-color: var(--fl-rouille-fonce);
	color: #fff;
}

.woocommerce .button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.disabled {
	opacity: .5;
}

/* ---------- Fiche produit ---------- */
.woocommerce div.product .woocommerce-product-gallery__image img,
.woocommerce div.product div.images img {
	background: var(--fl-creme);
	border-radius: 8px;
	padding: .5rem;
}

.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--fl-brun);
	font-size: 1.4rem;
	font-weight: 700;
}

.woocommerce div.product form.cart .variations {
	width: 100%;
	margin-bottom: 1rem;
	border: 0;
}

.woocommerce div.product form.cart .variations td,
.woocommerce div.product form.cart .variations th {
	padding: .4rem .5rem .4rem 0;
	background: transparent !important;
	border: 0 !important;
	vertical-align: middle;
}

.woocommerce div.product form.cart .variations select {
	min-width: 160px;
	padding: .45rem .6rem;
	border: 1px solid var(--fl-sable);
	border-radius: 8px;
	background: #fff;
	color: var(--fl-brun);
}

.woocommerce div.product form.cart .reset_variations {
	margin-left: .6rem;
	font-size: .9rem;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	color: var(--fl-rouille);
}

/* ---------- Panier, commande, mon compte ---------- */
.woocommerce table.shop_table {
	width: 100%;
	background: #fff;
	border: 1px solid var(--fl-sable);
	border-collapse: collapse;
	border-radius: 12px;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
	padding: .7rem .8rem;
	border-top: 1px solid var(--fl-sable);
	color: var(--fl-brun);
	vertical-align: middle;
}

.woocommerce table.shop_table .product-thumbnail img {
	width: 64px;
	height: auto;
	background: var(--fl-creme);
	border-radius: 6px;
}

.woocommerce .quantity .qty {
	width: 5rem;
	padding: .4rem .5rem;
	border: 1px solid var(--fl-sable);
	border-radius: 8px;
	text-align: center;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	padding: .5rem .6rem;
	border: 1px solid var(--fl-sable);
	border-radius: 8px;
	background: #fff;
	color: var(--fl-brun);
}

.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
	padding: .9rem 1.2rem;
	border-top: 3px solid var(--fl-vert);
	background: var(--fl-creme);
	color: var(--fl-brun);
	list-style: none;
}

.woocommerce .woocommerce-info {
	border-top-color: var(--fl-rouille);
}

.woocommerce .woocommerce-error {
	border-top-color: #b3261e;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
	margin: 0 0 1.5rem 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
	display: block;
	padding: .5rem .8rem;
	border-bottom: 1px solid var(--fl-sable);
	color: var(--fl-brun);
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation li a:hover {
	background: var(--fl-creme);
	color: var(--fl-rouille);
}

/* ---------- Elements ajoutes par le plugin Boutique Florimeule ---------- */
body .fl-note {
	padding: .8rem 1rem;
	border: 2px solid var(--fl-rouille);
	border-radius: 10px;
	background: #fff;
	color: var(--fl-brun);
}

body .fl-cta {
	padding: .8rem 1rem;
	border-radius: 10px;
	background: var(--fl-creme);
	color: var(--fl-brun);
}

body .fl-grille th,
body .fl-grille td {
	border-color: var(--fl-sable);
	color: var(--fl-brun);
}

body .fl-grille th {
	background: var(--fl-creme);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
	.woocommerce ul.products {
		grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	}

	.woocommerce ul.products li.product a img {
		height: 140px;
	}
}


/* =====================================================================
 * v1.2 : fiche produit, retour, panier, adresses, alignements
 * ===================================================================== */

/* Bandeau de titre : le titre "Commande en ligne" reste lisible */
.woocommerce-page .entry-header h1,
.woocommerce-page .entry-header .page-title {
	color: #fff;
	margin-bottom: 0;
}

/* Lien de retour vers les produits */
.flb-retour {
	margin: 0 0 1rem 0;
}

.flb-retour a {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	padding: .4rem .9rem;
	border: 1px solid var(--fl-sable);
	border-radius: 99px;
	background: #fff;
	color: var(--fl-brun);
	font-weight: 600;
	text-decoration: none;
}

.flb-retour a:hover {
	border-color: var(--fl-rouille);
	color: var(--fl-rouille);
}

/* Fiche produit : photo du sac deux fois plus petite, bien alignee */
.woocommerce div.product {
	display: grid;
	grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
	column-gap: 2rem;
	row-gap: 1rem;
	align-items: start;
}

.woocommerce div.product > .images,
.woocommerce div.product > .woocommerce-product-gallery {
	grid-column: 1;
	grid-row: 1 / span 3;
	float: none !important;
	width: 100% !important;
	max-width: 220px;
	margin: 0 !important;
}

.woocommerce div.product > .summary {
	grid-column: 2;
	float: none !important;
	width: auto !important;
	margin: 0 !important;
}

.woocommerce div.product > .woocommerce-tabs,
.woocommerce div.product > .related,
.woocommerce div.product > .upsells,
.woocommerce div.product > .woocommerce-notices-wrapper {
	grid-column: 1 / -1;
	clear: both;
}

.woocommerce div.product div.images img,
.woocommerce div.product .woocommerce-product-gallery__image img {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
	margin: 0 0 1rem 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	border: 0;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
	display: inline-block;
	padding: .45rem 1rem;
	border-radius: 99px;
	background: var(--fl-creme);
	color: var(--fl-brun);
	font-weight: 600;
	text-decoration: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
	background: var(--fl-rouille);
	color: #fff;
}

.woocommerce div.product .woocommerce-tabs .panel {
	padding: 1rem 0;
}

.woocommerce div.product .woocommerce-tabs .panel h2:empty {
	display: none;
}

.woocommerce div.product form.cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
	margin: 1rem 0;
}

.woocommerce div.product form.cart .variations {
	flex: 1 0 100%;
}

.woocommerce div.product form.cart .single_variation_wrap {
	flex: 1 0 100%;
}

.woocommerce div.product form.cart .woocommerce-variation-add-to-cart {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .75rem;
}

/* Souris normale sur les champs et boutons, meme inactifs */
.woocommerce div.product form.cart .quantity .qty,
.woocommerce div.product form.cart .variations select,
.woocommerce div.product form.cart .single_add_to_cart_button {
	cursor: default;
}

.woocommerce div.product form.cart .single_add_to_cart_button:not(.disabled):not(:disabled) {
	cursor: pointer;
}

.woocommerce .button.disabled,
.woocommerce button.button:disabled,
.woocommerce button.button.disabled,
.woocommerce div.product form.cart .single_add_to_cart_button.disabled {
	opacity: .5;
	cursor: default !important;
}

/* Message d'ajout au panier */
.woocommerce .woocommerce-message {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .6rem;
	border-radius: 10px;
}

.woocommerce .woocommerce-message .flb-ajout {
	flex: 1 1 220px;
	font-weight: 600;
}

.woocommerce .woocommerce-message a.button.flb-btn-panier {
	background: #fff;
	color: var(--fl-rouille);
}

.woocommerce .woocommerce-message a.button.flb-btn-panier:hover {
	background: var(--fl-creme);
	color: var(--fl-rouille-fonce);
}

.woocommerce .woocommerce-message a.button.flb-btn-commande {
	background: var(--fl-vert);
	border-color: var(--fl-vert);
	color: #fff;
}

.woocommerce .woocommerce-message a.button.flb-btn-commande:hover {
	background: #3f6a02;
	border-color: #3f6a02;
}

/* Panier */
.woocommerce table.shop_table {
	border-collapse: separate;
	border-spacing: 0;
	overflow: hidden;
}

.woocommerce table.shop_table th {
	background: var(--fl-creme);
	text-align: left;
}

.woocommerce table.shop_table td.product-remove {
	width: 2.5rem;
	text-align: center;
}

.woocommerce table.shop_table td.product-quantity,
.woocommerce table.shop_table th.product-quantity,
.woocommerce table.shop_table td.product-price,
.woocommerce table.shop_table td.product-subtotal,
.woocommerce table.shop_table th.product-price,
.woocommerce table.shop_table th.product-subtotal {
	text-align: right;
	white-space: nowrap;
}

.woocommerce .cart-collaterals {
	margin-top: 1.5rem;
}

.woocommerce .cart_totals {
	max-width: 480px;
	margin-left: auto;
}

.woocommerce .cart_totals .btn-block,
.woocommerce .wc-proceed-to-checkout .btn {
	display: block;
	width: 100%;
	text-align: center;
}

.woocommerce form .form-row {
	margin-bottom: 1rem;
}

.woocommerce form .form-row label {
	display: block;
	margin-bottom: .3rem;
	font-weight: 600;
}

.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	width: 100%;
	box-sizing: border-box;
}

.woocommerce form .form-row-first,
.woocommerce form .form-row-last {
	width: 48%;
	float: left;
}

.woocommerce form .form-row-last {
	float: right;
}

.woocommerce form .form-row-wide {
	clear: both;
	width: 100%;
}

.woocommerce form::after {
	content: "";
	display: block;
	clear: both;
}

/* Mon compte : menu et contenu alignes */
.woocommerce-account .woocommerce {
	display: grid;
	grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
	column-gap: 2rem;
	align-items: start;
}

.woocommerce-account .woocommerce > * {
	grid-column: 2;
}

.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
	grid-column: 1;
	grid-row: 1 / span 20;
}

.woocommerce-account .woocommerce > .woocommerce-notices-wrapper,
.woocommerce-account .woocommerce > .woocommerce-message,
.woocommerce-account .woocommerce > .woocommerce-error,
.woocommerce-account .woocommerce > .woocommerce-info {
	grid-column: 1 / -1;
	grid-row: auto;
}

/* Connexion / inscription : quand il n'y a pas de menu, pleine largeur */
.woocommerce-account .woocommerce > #customer_login,
.woocommerce-account .woocommerce > .u-columns {
	grid-column: 1 / -1;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--fl-sable);
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item {
	border: 0;
	border-bottom: 1px solid var(--fl-sable);
	border-radius: 0;
	color: var(--fl-brun);
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:last-child {
	border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:hover {
	background: var(--fl-creme);
	color: var(--fl-rouille);
}

/* Adresses : deux colonnes egales, bien alignees
 * (les classes Bootstrap col-1 / col-2 de WooCommerce cassaient la mise en page) */
.woocommerce-account .woocommerce-Addresses,
.woocommerce-Addresses {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.5rem;
	width: 100%;
	margin: 1rem 0 0 0;
	padding: 0;
}

.woocommerce-Addresses::before,
.woocommerce-Addresses::after {
	content: none !important;
	display: none !important;
}

.woocommerce-Addresses .woocommerce-Address,
.woocommerce-Addresses .u-column1,
.woocommerce-Addresses .u-column2,
.woocommerce-Addresses .col-1,
.woocommerce-Addresses .col-2 {
	float: none !important;
	flex: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 1.2rem 1.4rem;
	box-sizing: border-box;
	border: 1px solid var(--fl-sable);
	border-radius: 12px;
	background: #fff;
}

.woocommerce-Addresses .woocommerce-Address-title {
	display: flex;
	flex-wrap: nowrap;
	align-items: baseline;
	justify-content: space-between;
	gap: .5rem;
	margin-bottom: .6rem;
}

.woocommerce-Addresses .woocommerce-Address-title h3 {
	flex: 1 1 auto;
	margin: 0;
	font-size: 1.15rem;
}

.woocommerce-Addresses .woocommerce-Address-title .edit {
	flex: 0 0 auto;
	float: none !important;
	font-weight: 600;
}

.woocommerce-Addresses address {
	margin: 0;
	line-height: 1.7;
}

/* Formulaire de modification d'adresse */
.woocommerce-account form .btn,
.woocommerce-account form .button,
.woocommerce-account input[name="save_address"] {
	cursor: pointer !important;
}

.woocommerce-account input[name="save_address"] {
	margin-top: .5rem;
}

/* Connexion / inscription */
.woocommerce #customer_login {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 2rem;
}

.woocommerce #customer_login > div {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	flex: none !important;
	padding: 1.2rem 1.4rem;
	box-sizing: border-box;
	border: 1px solid var(--fl-sable);
	border-radius: 12px;
	background: #fff;
}

/* Commande : colonnes alignees */
.woocommerce-checkout #customer_details {
	margin-bottom: 1.5rem;
}

.woocommerce-checkout #customer_details .col-1,
.woocommerce-checkout #customer_details .col-2 {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
	flex: none !important;
	margin: 0 0 1.5rem 0;
	padding: 0;
}

.woocommerce-checkout #order_review_heading {
	margin-top: 1rem;
}

.woocommerce-checkout #payment {
	border-radius: 12px;
	background: var(--fl-creme);
	padding: 1rem;
}

.woocommerce-checkout #payment ul.payment_methods {
	margin: 0 0 1rem 0;
	padding: 0;
	list-style: none;
}

.woocommerce-checkout #payment #place_order {
	float: none;
	width: 100%;
	cursor: pointer;
}

/* Catalogue : barre de tri alignee */
.woocommerce .woocommerce-ordering {
	margin: 0 0 1rem 0;
	float: none;
}

.woocommerce .woocommerce-ordering select {
	max-width: 100%;
}

.woocommerce .woocommerce-result-count {
	margin: 0 0 1rem 0;
	float: none;
}

/* Mobile */
@media (max-width: 768px) {
	.woocommerce div.product {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce div.product > .images,
	.woocommerce div.product > .woocommerce-product-gallery,
	.woocommerce div.product > .summary {
		grid-column: 1;
		grid-row: auto;
	}

	.woocommerce div.product > .images,
	.woocommerce div.product > .woocommerce-product-gallery {
		max-width: 200px;
		margin: 0 auto !important;
	}

	.woocommerce-account .woocommerce {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-account .woocommerce > *,
	.woocommerce-account .woocommerce > .woocommerce-MyAccount-navigation {
		grid-column: 1;
		grid-row: auto;
	}

	.woocommerce-Addresses,
	.woocommerce #customer_login {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce form .form-row-first,
	.woocommerce form .form-row-last {
		float: none;
		width: 100%;
	}

	.woocommerce .cart_totals {
		max-width: none;
	}
}

/* =====================================================================
 * v1.3 : menu Mon compte aere, bandeaux de bas de page, flottants
 * ===================================================================== */

/* Les flottants de WooCommerce ne doivent plus remonter sur le pied de page */
#main::after,
.woocommerce::after,
.woocommerce-MyAccount-content::after,
.cart-collaterals::after,
.woocommerce table.cart td.actions::after,
.woocommerce-checkout #customer_details::after,
.woocommerce-checkout form.checkout::after,
.woocommerce-cart .woocommerce::after {
	content: "";
	display: table;
	clear: both;
}

#wrapper-footer,
.woocommerce-page #wrapper-footer {
	clear: both;
	position: relative;
	z-index: 1;
	margin-top: 40px;
}

#woocommerce-wrapper {
	padding-bottom: 20px;
}

/* Mon compte : le menu garde toute la largeur de sa colonne
 * (WooCommerce lui impose sinon float:left et width:30%) */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
	float: none !important;
	width: auto !important;
	max-width: none !important;
	margin: 0 !important;
	min-width: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	padding: .5rem;
	background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item {
	display: block;
	padding: .8rem 1rem;
	border: 0 !important;
	border-radius: 8px !important;
	line-height: 1.4;
	white-space: normal;
}

.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:hover,
.woocommerce-account .woocommerce-MyAccount-navigation .list-group-item:focus {
	background: var(--fl-creme);
	color: var(--fl-rouille);
	text-decoration: none;
}

/* Panier : colonne des totaux sans flottant */
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-page .cart-collaterals .cart_totals {
	float: none !important;
	width: 100% !important;
	max-width: 480px;
	margin-left: auto;
}

.woocommerce table.cart td.actions .coupon {
	float: none !important;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .5rem;
	margin: 0 0 .75rem 0;
}

.woocommerce table.cart td.actions {
	text-align: right;
}

.woocommerce table.cart td.actions .coupon input.input-text {
	width: 12rem !important;
	max-width: 100%;
}

/* Commande : colonnes sans flottant */
.woocommerce-checkout .col2-set,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-checkout #order_review_heading {
	float: none !important;
	width: 100% !important;
	max-width: none !important;
}

@media (max-width: 768px) {
	.woocommerce-account .woocommerce-MyAccount-navigation .list-group {
		flex-direction: column;
	}
}

/* =====================================================================
 * v1.6 : modeles WooCommerce standard (plus de modeles anciens du theme)
 * ===================================================================== */

/* Le contenu des pages boutique occupe toute la largeur */
#woocommerce-wrapper .row > #main.site-main,
.woocommerce-page #page-wrapper .row > #main.site-main,
.woocommerce-page .row > #main {
	flex: 1 1 100%;
	width: 100%;
	max-width: 100%;
	padding-left: 15px;
	padding-right: 15px;
}

/* Fiche produit : formulaire conditionnement + quantite + bouton */
.woocommerce div.product form.flb-form-variable {
	display: block;
	max-width: 460px;
	margin: 1.2rem 0;
	padding: 1.1rem 1.2rem;
	border: 1px solid var(--fl-sable);
	border-radius: 12px;
	background: #fff;
}

.flb-form-variable .flb-champ {
	margin: 0 0 .9rem 0;
}

.flb-form-variable .flb-champ label {
	display: block;
	margin-bottom: .3rem;
	font-weight: 600;
	color: var(--fl-brun2);
}

.flb-form-variable select {
	width: 100%;
	padding: .55rem .7rem;
	border: 1px solid var(--fl-sable);
	border-radius: 8px;
	background: #fff;
	color: var(--fl-brun);
	cursor: pointer;
}

.flb-form-variable .flb-ligne-ajout {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: .75rem;
}

.flb-form-variable .flb-champ-qte {
	margin: 0;
}

.flb-form-variable .flb-champ-qte input.qty {
	width: 6rem;
	padding: .55rem .5rem;
	border: 1px solid var(--fl-sable);
	border-radius: 8px;
	text-align: center;
	cursor: text;
}

.woocommerce .flb-form-variable button.single_add_to_cart_button {
	flex: 1 1 auto;
	min-height: 44px;
	cursor: pointer !important;
	opacity: 1;
}

/* Produits simples (formulaire WooCommerce standard) */
.woocommerce div.product form.cart:not(.flb-form-variable) .quantity .qty {
	cursor: text;
}

.woocommerce div.product form.cart .single_add_to_cart_button {
	cursor: pointer;
	min-height: 44px;
}

/* Mon compte : menu standard WooCommerce (liste), bien espace */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	margin: 0;
	padding: .5rem;
	list-style: none;
	border: 1px solid var(--fl-sable);
	border-radius: 10px;
	background: #fff;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: .8rem 1rem;
	border: 0;
	border-radius: 8px;
	color: var(--fl-brun);
	line-height: 1.4;
	text-decoration: none;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
	background: var(--fl-creme);
	color: var(--fl-rouille);
}

/* Panier : quantite, bouton de mise a jour, total */
.woocommerce table.shop_table .quantity .qty {
	width: 5rem;
	cursor: text;
}

.woocommerce table.cart td.actions .button {
	cursor: pointer;
}

.woocommerce table.cart td.actions .button[disabled],
.woocommerce table.cart td.actions .button:disabled {
	cursor: default !important;
}

.woocommerce .wc-proceed-to-checkout a.checkout-button {
	display: block;
	width: 100%;
	padding: .9rem 1rem;
	font-size: 1.1rem;
	text-align: center;
}

.woocommerce table.shop_table td.product-remove a.remove {
	display: inline-block;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	color: var(--fl-rouille) !important;
	line-height: 1.6rem;
	text-align: center;
	text-decoration: none;
}

.woocommerce table.shop_table td.product-remove a.remove:hover {
	background: var(--fl-rouille);
	color: #fff !important;
}

/* Commande : bouton de validation bien visible */
.woocommerce-checkout #payment ul.payment_methods li {
	list-style: none;
	margin: 0 0 .5rem 0;
}

.woocommerce-checkout #payment div.payment_box {
	margin: .5rem 0 0 0;
	padding: .7rem .9rem;
	border-radius: 8px;
	background: #fff;
	color: var(--fl-brun);
}

.woocommerce-checkout #payment #place_order {
	display: block;
	width: 100%;
	padding: .9rem 1rem;
	font-size: 1.1rem;
}

/* Champs : formulaires WooCommerce standard */
.woocommerce form .form-row .woocommerce-input-wrapper {
	display: block;
	width: 100%;
}

.woocommerce form .form-row .select2-container {
	width: 100% !important;
}

@media (max-width: 768px) {
	.woocommerce-account .woocommerce-Addresses,
	.woocommerce-Addresses,
	.woocommerce #customer_login {
		grid-template-columns: minmax(0, 1fr);
	}

	.woocommerce-account .woocommerce-MyAccount-navigation {
		margin-bottom: 1.2rem !important;
	}
}

/* =====================================================================
 * v1.11 : « Se connecter » et « S'inscrire » au meme niveau
 * Les "clearfix" (::before / ::after) de WooCommerce devenaient des
 * cases de la grille et decalaient les blocs : on les neutralise.
 * ===================================================================== */
.woocommerce #customer_login::before,
.woocommerce #customer_login::after,
.woocommerce .col2-set#customer_login::before,
.woocommerce .col2-set#customer_login::after,
.woocommerce-account .woocommerce::before,
.woocommerce-account .woocommerce::after,
.woocommerce div.product::before,
.woocommerce div.product::after {
	content: none !important;
	display: none !important;
}

.woocommerce #customer_login {
	align-items: stretch;
}

.woocommerce #customer_login > div {
	display: flex;
	flex-direction: column;
	margin: 0 !important;
}

.woocommerce #customer_login > div > h2 {
	margin: 0 0 1rem 0;
	font-size: 1.5rem;
	line-height: 1.3;
}

.woocommerce #customer_login form.login,
.woocommerce #customer_login form.register {
	flex: 1 1 auto;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
}

/* =====================================================================
 * v1.17 : messages (erreur, information, confirmation)
 * L'icone a gauche ne chevauche plus le texte ; icones propres au theme.
 * ===================================================================== */
.woocommerce-error,
.woocommerce-info,
.woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-message {
	position: relative;
	box-sizing: border-box;
	margin: 0 0 1.5rem 0;
	padding: .95rem 1.2rem .95rem 3.2rem !important;
	border: 0;
	border-left: 4px solid var(--fl-vert);
	border-radius: 10px;
	background: var(--fl-creme);
	color: var(--fl-brun);
	line-height: 1.5;
	list-style: none;
	word-wrap: break-word;
}

.woocommerce-info,
.woocommerce .woocommerce-info {
	border-left-color: var(--fl-rouille);
}

.woocommerce-error,
.woocommerce .woocommerce-error {
	border-left-color: #b3261e;
	background: #fbeeec;
}

.woocommerce-error li,
.woocommerce .woocommerce-error li {
	margin: 0;
	padding: 0;
	list-style: none;
}

.woocommerce-error li + li,
.woocommerce .woocommerce-error li + li {
	margin-top: .35rem;
}

/* Pastille ronde a gauche, centree sur la premiere ligne */
.woocommerce-error::before,
.woocommerce-info::before,
.woocommerce-message::before,
.woocommerce .woocommerce-error::before,
.woocommerce .woocommerce-info::before,
.woocommerce .woocommerce-message::before {
	position: absolute !important;
	top: .95rem !important;
	left: 1rem !important;
	display: block;
	width: 1.45rem;
	height: 1.45rem;
	margin: 0 !important;
	border-radius: 50%;
	background-color: var(--fl-vert);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 70%;
	color: #fff !important;
	font-family: var(--fl-police) !important;
	font-size: .9rem !important;
	font-weight: 700;
	line-height: 1.45rem !important;
	text-align: center;
	content: "\2713" !important;
}

.woocommerce-info::before,
.woocommerce .woocommerce-info::before {
	background-color: var(--fl-rouille);
	content: "i" !important;
}

.woocommerce-error::before,
.woocommerce .woocommerce-error::before {
	background-color: #b3261e;
	content: "!" !important;
}

/* Panier vide : petit panier a la place de l'icone */
.cart-empty.woocommerce-info::before,
.woocommerce .cart-empty.woocommerce-info::before,
.woocommerce-cart .cart-empty::before {
	background-color: var(--fl-rouille);
	background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4h2l2.4 10.2a1.5 1.5 0 0 0 1.5 1.2h8.6a1.5 1.5 0 0 0 1.5-1.1L21 8H6.2'/%3E%3Ccircle cx='9.5' cy='19.5' r='1.4'/%3E%3Ccircle cx='17' cy='19.5' r='1.4'/%3E%3C/svg%3E");
	content: "" !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
	float: none;
}

.woocommerce .return-to-shop .button {
	display: inline-block;
	padding: .7rem 1.3rem;
	border-radius: 8px;
	background: var(--fl-rouille);
	color: #fff;
}
