/* ==========================================================================
   St-Élie Aventures : panier, paiement, compte client (WooCommerce)
   ========================================================================== */

.page-boutique { padding: 60px 0 110px; }
.page-boutique .page-simple__titre { margin-bottom: 36px; }
.page-boutique .page-simple__titre::before { content: attr(data-sur); display: block; margin-bottom: 6px; font: 400 26px/1.2 var(--f-main); color: var(--bleu); }

.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce .woocommerce-message, .woocommerce .woocommerce-info, .woocommerce .woocommerce-error,
.woocommerce-page .woocommerce-message, .woocommerce-page .woocommerce-info, .woocommerce-page .woocommerce-error {
	margin: 0 0 28px; padding: 16px 20px 16px 52px; border: 0; border-radius: 12px; background: #fff4d6; color: var(--encre);
}
.woocommerce .woocommerce-error, .woocommerce-page .woocommerce-error { background: #fde8e7; }
.woocommerce .woocommerce-message::before, .woocommerce .woocommerce-info::before, .woocommerce .woocommerce-error::before { top: 16px; left: 20px; color: var(--bleu); }
.woocommerce-message .button, .woocommerce-info .button { float: right; }

/* Boutons */
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt,
.woocommerce-page a.button, .woocommerce-page button.button {
	padding: 14px 24px; border: 0; border-radius: 10px; background: var(--bleu); color: #fff;
	font: 700 15px/1.2 var(--f-texte); transition: background-color .25s, color .25s;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--encre); color: #fff; }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce #place_order, .woocommerce .checkout-button {
	background: var(--jaune) !important; color: var(--bleu) !important; font-size: 17px !important; padding: 18px 28px !important;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce #place_order:hover, .woocommerce .checkout-button:hover { background: var(--bleu) !important; color: #fff !important; }
.woocommerce button.button:disabled, .woocommerce button.button:disabled[disabled] { padding: 14px 24px; opacity: .5; }

/* Tableaux : éditorial, sans bandeau ni cadre */
.woocommerce table.shop_table { border: 0; border-collapse: collapse; border-radius: 0; background: transparent; box-shadow: none; }
.woocommerce table.shop_table thead th { padding: 0 16px 12px 0; border: 0; border-bottom: 1px solid var(--encre); background: transparent; color: var(--encre); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: left; }
.woocommerce table.shop_table td { padding: 22px 16px 22px 0; border: 0; vertical-align: top; background: transparent !important; }
.woocommerce table.shop_table td.product-name a, .woocommerce table.shop_table td.product-name { color: var(--encre); font-size: 18px; font-weight: 800; }
.woocommerce table.shop_table td.product-thumbnail img { width: 96px; border-radius: 0; }
.woocommerce table.cart .product-quantity, .woocommerce table.cart td.actions, .woocommerce table.cart [name=update_cart] { display: none; }
.woocommerce table.cart .product-subtotal small { display: block; margin-top: 4px; color: var(--gris); font-size: 13px; font-weight: 500; }
.woocommerce a.remove { width: 28px; height: 28px; line-height: 26px; border-radius: 0; background: transparent; color: var(--gris) !important; font-size: 22px; }
.woocommerce a.remove:hover { background: transparent; color: #c0392b !important; }
.woocommerce td.product-name dl.variation { margin: 10px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 14px; font-weight: 400; }
.woocommerce td.product-name dl.variation dt { margin: 0; color: var(--gris); font-weight: 600; }
.woocommerce td.product-name dl.variation dd { margin: 0; color: var(--encre); }
.woocommerce td.product-name dl.variation dd p { margin: 0; }

/* Totaux : lignes typographiques, montant final en avant */
.woocommerce .cart-collaterals .cart_totals, .woocommerce-page .cart-collaterals .cart_totals { width: min(440px, 100%); }
.cart_totals h2, .woocommerce-checkout h3, #order_review_heading { margin: 0 0 18px; font-size: 26px; }
.cart_totals table.shop_table th, .woocommerce-checkout-review-order-table tfoot th { padding: 12px 16px 12px 0; border: 0; background: transparent !important; color: var(--gris); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-align: left; }
.cart_totals table.shop_table td, .woocommerce-checkout-review-order-table tfoot td { padding: 12px 0; background: transparent !important; color: var(--encre); font-size: 16px; text-align: right; }
.cart_totals .order-total th, .cart_totals .order-total td, .woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { padding-top: 18px; border-top: 1px solid var(--encre); }
.cart_totals .order-total td, .woocommerce-checkout-review-order-table .order-total td, .cart_totals .order-total td strong, .woocommerce-checkout-review-order-table .order-total td strong { font-size: 24px; font-weight: 800; }
.cart_totals .order-paid td, .woocommerce-checkout-review-order-table .order-paid td { font-weight: 800; }
.woocommerce-checkout-review-order-table thead th:last-child, .woocommerce-checkout-review-order-table td.product-total { text-align: right; padding-right: 0; }
.woocommerce .wc-proceed-to-checkout { padding: 18px 0 0; }
.woocommerce .wc-proceed-to-checkout .checkout-button { width: 100%; border-radius: 10px; }

/* Avis : bloc plein, sans contour de focus */
.woocommerce-notices-wrapper :focus, .woocommerce-message:focus, .woocommerce-error:focus, .woocommerce-info:focus { outline: none; }

/* Carte Square : un seul champ, sans double cadre */
#wc-square-credit-card-credit-card-form { margin: 0; padding: 0; border: 0; }
.woocommerce-checkout #payment .payment_method_square_credit_card .payment_box { padding: 18px; }
.woocommerce-checkout #payment .payment_methods > li > label img { max-height: 22px; }

/* Formulaires de paiement et de compte */
.woocommerce form .form-row { margin: 0 0 16px; padding: 0; }
.woocommerce form .form-row label { margin-bottom: 6px; color: var(--encre); font-size: 14px; font-weight: 700; }
.woocommerce form .form-row .input-text, .woocommerce form .form-row select, .woocommerce-page form .form-row .input-text,
.woocommerce form .form-row textarea, .select2-container--default .select2-selection--single {
	min-height: 50px; padding: 12px 16px; border: 0; border-radius: 10px; background: var(--menthe); color: var(--encre); font: inherit;
}
.select2-container--default .select2-selection--single { display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { top: 12px; right: 8px; }
.woocommerce form .form-row .input-text:focus, .woocommerce form .form-row select:focus { outline: none; background: #fff; box-shadow: 0 0 0 2px var(--bleu); }
.woocommerce form .form-row.woocommerce-invalid .input-text { box-shadow: 0 0 0 2px #e74c3c; }
.woocommerce-checkout .col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; width: 100%; }
.woocommerce-checkout .col2-set::before, .woocommerce-checkout .col2-set::after { display: none; }
.woocommerce-checkout .col2-set .col-1, .woocommerce-checkout .col2-set .col-2 { float: none; width: auto; }
.woocommerce-checkout #order_review { padding: 34px; border-radius: 18px; background: var(--menthe); }
.woocommerce-checkout #order_review table.shop_table { box-shadow: none; background: transparent; }
.woocommerce-checkout #payment { border-radius: 14px; background: #fff; }
.woocommerce-checkout #payment ul.payment_methods { padding: 20px; border: 0; }
.woocommerce-checkout #payment div.payment_box { border-radius: 10px; background: var(--menthe); color: var(--texte); }
.woocommerce-checkout #payment div.payment_box::before { border-bottom-color: var(--menthe); }
.woocommerce-checkout #payment div.form-row { padding: 20px; }
.woocommerce-terms-and-conditions-wrapper { font-size: 14px; }
.woocommerce-form-coupon-toggle .woocommerce-info { background: var(--menthe); }

/* Compte client */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 50px; }
.woocommerce-account .woocommerce::before, .woocommerce-account .woocommerce::after { display: none; }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none; width: auto; }
.woocommerce-MyAccount-navigation ul { padding: 10px; border-radius: 16px; background: var(--menthe); }
.woocommerce-MyAccount-navigation a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--encre); font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--bleu); color: #fff; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }
.woocommerce form.login, .woocommerce form.register { padding: 34px; border: 0; border-radius: 18px; background: var(--menthe); }
.woocommerce .u-columns.col2-set { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.woocommerce .u-columns.col2-set .u-column1, .woocommerce .u-columns.col2-set .u-column2 { float: none; width: auto; }

@media (max-width: 900px) {
	.woocommerce-checkout .col2-set, .woocommerce .u-columns.col2-set, .woocommerce-account .woocommerce { grid-template-columns: 1fr; gap: 30px; }
	.woocommerce-checkout #order_review { padding: 22px 16px; }
}
@media (max-width: 767px) {
	.page-boutique { padding: 40px 0 80px; }
	.woocommerce table.shop_table_responsive tr td { padding: 12px 16px; }
	.woocommerce table.shop_table_responsive tr td::before { color: var(--gris); }
}
.ova_tax_label { display: none; }
.woocommerce table.shop_table tbody th, .woocommerce table.shop_table tfoot th, .woocommerce table.shop_table tfoot td, .woocommerce table.shop_table tbody td, .cart_totals table.shop_table tr th, .cart_totals table.shop_table tr td { border-top: 0; }
.woocommerce table.shop_table tfoot .order-total th, .woocommerce table.shop_table tfoot .order-total td, .cart_totals table.shop_table .order-total th, .cart_totals table.shop_table .order-total td { border-top: 1px solid var(--encre); }
