/* WooCommerce : panier, commande, galerie, notices, quantités. Chargé seulement sur les pages de boutique. */
.woocommerce-notices-wrapper:not(:empty){margin-bottom:24px}
.woocommerce-message,.woocommerce-info,.woocommerce-error{list-style:none;margin:0 0 20px;padding:14px 18px;border:1.5px solid var(--wt-violet);border-radius:var(--wt-rayon);background:var(--wt-violet-clair);color:var(--wt-violet-profond);font-weight:700}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none}
.woocommerce-error{border-color:var(--wt-erreur);background:#FDECEA;color:#8c1d18}
.woocommerce-message .button,.woocommerce-info .button{float:right;margin-left:12px}
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,.woocommerce #respond input#submit{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:0 22px;border:0;border-radius:6px;background:var(--wt-violet);color:#fff;font:700 1rem/1.1 var(--wt-texte)}
.woocommerce a.button:hover,.woocommerce button.button:hover{background:var(--wt-violet-profond);color:#fff}
.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce #place_order{background:var(--wt-violet);color:#fff;min-height:56px;font-size:1.0625rem}
.woocommerce button.button.alt:hover,.woocommerce #place_order:hover{background:var(--wt-violet-profond)}
.woocommerce button.button:disabled,.woocommerce button.button.disabled{opacity:.6}

/* Ajout au panier sur la fiche */
.wdt-fiche__panier form.cart{display:flex;flex-wrap:wrap;gap:12px;align-items:stretch}
.wdt-fiche__panier .quantity input.qty,.woocommerce .quantity .qty{width:84px;min-height:48px;padding:8px;border:1.5px solid var(--wt-bord-champ);border-radius:8px;text-align:center;font-size:1rem}
.wdt-fiche__panier .single_add_to_cart_button{flex:1 1 220px}
.wdt-fiche__panier .stock{display:none}
.wdt-fiche__panier table.variations{width:100%;margin-bottom:12px}
.wdt-fiche__panier table.variations th,.wdt-fiche__panier table.variations td{display:block;padding:4px 0;text-align:left}
.wdt-fiche__panier table.variations select{width:100%;min-height:48px;padding:10px 12px;border:1.5px solid var(--wt-bord-champ);border-radius:8px}
.wdt-fiche__panier .reset_variations{display:inline-block;margin-top:6px}
.woocommerce-variation-price .price{font:800 1.75rem/1.1 var(--wt-titre);font-stretch:88%;color:var(--wt-rouge-prix)}

/* Galerie */
.wdt-fiche__galerie .woocommerce-product-gallery{position:relative;opacity:1!important}
.wdt-fiche__galerie .woocommerce-product-gallery__image img{width:100%;aspect-ratio:1;object-fit:contain;background:var(--wt-brume);border-radius:var(--wt-rayon)}
.wdt-fiche__galerie .flex-control-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px;margin:10px 0 0;padding:0;list-style:none}
.wdt-fiche__galerie .flex-control-thumbs img{aspect-ratio:1;object-fit:contain;background:var(--wt-brume);border-radius:6px;cursor:pointer;opacity:.6}
.wdt-fiche__galerie .flex-control-thumbs img.flex-active{opacity:1;outline:2px solid var(--wt-violet)}
.wdt-fiche__galerie .woocommerce-product-gallery__trigger{position:absolute;top:12px;right:12px;z-index:2}
.wdt-fiche__galerie .woocommerce-product-gallery__wrapper{margin:0}

/* Panier */
.woocommerce table.shop_table{width:100%;border-collapse:collapse;border:0;font-size:.9688rem}
.woocommerce table.shop_table th{padding:12px;border-bottom:2px solid var(--wt-violet-profond);text-align:left}
.woocommerce table.shop_table td{padding:14px 12px;border-bottom:1px solid var(--wt-trait);vertical-align:middle}
.woocommerce table.shop_table img{width:64px;height:64px;object-fit:contain;background:var(--wt-brume);border-radius:6px}
.woocommerce a.remove{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;color:var(--wt-erreur)!important;font-size:1.4rem;text-decoration:none}
.woocommerce a.remove:hover{background:#FDECEA}
.woocommerce .cart-collaterals,.woocommerce-cart .cart-collaterals{margin-top:32px}
.woocommerce .cart_totals{max-width:460px;margin-left:auto;padding:24px;background:var(--wt-brume);border-radius:var(--wt-rayon)}
.woocommerce .cart_totals h2{font-size:1.5rem;margin-bottom:12px}
.woocommerce .cart_totals .shop_table th{border-bottom:1px solid var(--wt-trait)}
.woocommerce .wc-proceed-to-checkout .checkout-button{width:100%}
.woocommerce .coupon{display:none}
.woocommerce-cart .woocommerce-cart-form .actions .button[name=update_cart]{background:transparent;color:var(--wt-encre);border:2px solid var(--wt-encre)}
.woocommerce-shipping-methods{margin:0;padding:0;list-style:none}
.woocommerce-shipping-methods li{margin-bottom:6px}
.woocommerce .amount{font-weight:700}
.cart-empty.woocommerce-info{background:var(--wt-brume);border-color:var(--wt-trait);color:var(--wt-encre)}

/* Commande */
.woocommerce-checkout .col2-set{display:grid;grid-template-columns:1fr;gap:24px}
.woocommerce-checkout #customer_details .col-2{display:block}
.woocommerce form .form-row{display:flex;flex-direction:column;gap:6px;margin:0 0 16px;padding:0}
.woocommerce form .form-row label{font-weight:700;font-size:.9688rem}
.woocommerce form .form-row .required{color:var(--wt-erreur);text-decoration:none}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,.woocommerce form .form-row select,.woocommerce-checkout .select2-container .select2-selection--single{width:100%;min-height:48px;padding:10px 14px;border:1.5px solid var(--wt-bord-champ);border-radius:8px;background:#fff;font-size:1rem}
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered{line-height:26px;padding:0}
.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow{top:10px;right:8px}
.woocommerce form .form-row textarea{min-height:110px}
.woocommerce form .form-row.woocommerce-invalid input.input-text{border-color:var(--wt-erreur)}
.woocommerce-checkout #order_review_heading{margin-top:32px;font-size:1.625rem}
.woocommerce-checkout-review-order{padding:24px;background:var(--wt-brume);border-radius:var(--wt-rayon)}
.woocommerce-checkout #payment{background:transparent;border-radius:0}
.woocommerce-checkout #payment ul.payment_methods{margin:16px 0;padding:0;list-style:none;border:0}
.woocommerce-checkout #payment div.payment_box{margin-top:10px;padding:14px;background:var(--wt-blanc);border-radius:8px;color:var(--wt-encre);font-size:.9375rem}
.woocommerce-checkout #payment div.payment_box::before{display:none}
.woocommerce-checkout #payment .place-order{padding:16px 0 0}
.woocommerce-terms-and-conditions-wrapper{margin-bottom:16px;font-size:.9375rem}
@media (min-width:960px){
  .woocommerce-checkout form.checkout{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:48px;align-items:start}
  .woocommerce-checkout form.checkout>.col2-set{grid-column:1}
  .woocommerce-checkout #order_review_heading{grid-column:2;grid-row:1;margin-top:0}
  .woocommerce-checkout #order_review{grid-column:2;grid-row:1;margin-top:48px}
}

/* Confirmation de commande */
.woocommerce-order .woocommerce-thankyou-order-received{font:800 1.75rem/1.2 var(--wt-titre);font-stretch:88%;color:var(--wt-violet-profond)}
.woocommerce-order ul.order_details{display:flex;flex-wrap:wrap;gap:12px 32px;margin:24px 0;padding:20px;list-style:none;background:var(--wt-brume);border-radius:var(--wt-rayon)}
.woocommerce-order ul.order_details li{font-size:.875rem;color:var(--wt-gris)}
.woocommerce-order ul.order_details strong{display:block;font-size:1rem;color:var(--wt-encre)}
.woocommerce-order .wt-avis{margin:20px 0}
.woocommerce-customer-details address{font-style:normal;padding:16px;border:1px solid var(--wt-trait);border-radius:8px}

/* Tri et compte (archive des équipements) */
.wdt-archive-barre{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}
.wdt-archive-barre .woocommerce-result-count{margin:0;color:var(--wt-gris)}
.wdt-archive-barre select{min-height:44px;padding:8px 12px;border:1.5px solid var(--wt-bord-champ);border-radius:8px}
.woocommerce-pagination ul{display:flex;gap:8px;margin:40px 0 0;padding:0;list-style:none;border:0}
.woocommerce-pagination ul li{border:0}
.woocommerce-pagination .page-numbers{display:grid;place-items:center;min-width:44px;height:44px;border:1px solid var(--wt-trait);border-radius:8px;text-decoration:none}
.woocommerce-pagination .current{background:var(--wt-violet-profond);color:#fff}
@media (max-width:640px){
  .woocommerce table.shop_table_responsive tr{display:block;padding:12px 0;border-bottom:1px solid var(--wt-trait)}
  .woocommerce table.shop_table_responsive td{display:flex;justify-content:space-between;gap:12px;padding:6px 0;border:0;text-align:right}
  .woocommerce table.shop_table_responsive td::before{content:attr(data-title);font-weight:700;text-align:left}
  .woocommerce table.shop_table_responsive thead{display:none}
}
