/* =====================================================================
   FoodAcces Theme 1.1 — WooCommerce (panier, commande, compte) façon application.
   Mobile-first. Complet pour les pages « classiques » (les CSS WooCommerce d'origine sont retirées
   lorsque l'option « Style application » est active) ; harmonisation des blocs Panier / Validation.
   ===================================================================== */

/* ---------- Base commune ---------- */
.woocommerce,.woocommerce-page .woocommerce{color:var(--fat-text)}
.woocommerce *,.woocommerce *::before,.woocommerce *::after{box-sizing:border-box}
.woocommerce a{color:var(--fat-primary)}
.woocommerce table{width:100%;border-collapse:collapse;border-spacing:0}
.woocommerce img{max-width:100%;height:auto}
.woocommerce .screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.woocommerce .amount{font-weight:700;white-space:nowrap}
.woocommerce del .amount{font-weight:500;opacity:.55}
.woocommerce ins{text-decoration:none}
.woocommerce abbr.required,.woocommerce .required{color:var(--fat-primary);text-decoration:none;border:0}
.woocommerce .optional{color:var(--fat-muted);font-weight:500}
.fat-flow{max-width:1180px;padding-bottom:32px}
.fat-flow .fat-pagehead{margin:4px 0 16px}
.fat-flow .fat-pagehead__title{font-size:clamp(1.5rem,3.5vw,2rem)}
.fat-flow .fat-prose{font-size:1em}

/* ---------- Boutons ---------- */
.woocommerce .button,.woocommerce button.button,.woocommerce a.button,.woocommerce input.button,.woocommerce #respond input#submit,.woocommerce .woocommerce-Button,.woocommerce .woocommerce-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:var(--fat-btn-h,48px);padding:0 20px;border:0;border-radius:999px;
  background:var(--fat-surface-2);color:var(--fat-text)!important;font:inherit;font-weight:750;line-height:1.2;text-decoration:none!important;cursor:pointer;
  transition:transform .15s var(--fat-ease),filter .2s,opacity .2s;-webkit-tap-highlight-color:transparent;touch-action:manipulation;text-align:center}
.woocommerce .button:hover{filter:brightness(.97)}
.woocommerce .button:active{transform:scale(.98)}
.woocommerce .button.alt,.woocommerce button.button.alt,.woocommerce a.button.alt,.woocommerce button#place_order,.woocommerce a.button.checkout-button,.woocommerce .button.woocommerce-form-login__submit,.woocommerce .button.woocommerce-form-register__submit,.woocommerce .button[name=save_account_details],.woocommerce .button[name=save_address],.woocommerce .button[name=login],.woocommerce .button[name=register]{
  background:var(--fat-primary);color:var(--fat-on-primary)!important;box-shadow:0 6px 18px color-mix(in srgb,var(--fat-primary) 28%,transparent)}
.woocommerce .button:disabled,.woocommerce .button.disabled,.woocommerce .button[disabled]{opacity:.45;cursor:not-allowed;transform:none}
.fat-buttons-rounded .woocommerce .button{border-radius:var(--fat-ui-radius,14px)}
.woocommerce .button:focus-visible{outline:2px solid var(--fat-text);outline-offset:2px}

/* ---------- Champs ---------- */
.woocommerce form .form-row{margin:0 0 14px;padding:0}
.woocommerce form .form-row label,.woocommerce form .woocommerce-form-row label{display:block;font-weight:650;font-size:.92em;margin:0 0 6px;line-height:1.3}
.woocommerce form .form-row .input-text,.woocommerce form .form-row select,.woocommerce form .form-row textarea,.woocommerce .woocommerce-Input,.woocommerce .input-text,.woocommerce select{
  width:100%;min-height:50px;padding:12px 14px;border:1px solid var(--fat-line);border-radius:var(--fat-ui-radius,14px);background:var(--fat-surface);color:var(--fat-text);font-size:16px;line-height:1.3;appearance:none;-webkit-appearance:none}
.woocommerce select{background-image:linear-gradient(45deg,transparent 50%,currentColor 50%),linear-gradient(135deg,currentColor 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 15px) 50%;background-size:5px 5px;background-repeat:no-repeat;padding-right:40px}
.woocommerce form .form-row textarea{min-height:96px;resize:vertical}
.woocommerce form .form-row .input-text:focus,.woocommerce select:focus,.woocommerce textarea:focus{outline:0;border-color:var(--fat-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--fat-primary) 20%,transparent)}
.woocommerce form .form-row.woocommerce-invalid .input-text,.woocommerce form .form-row.woocommerce-invalid select{border-color:#d63638}
.woocommerce form .form-row .woocommerce-input-wrapper{display:block}
.woocommerce input[type=checkbox],.woocommerce input[type=radio]{width:20px;height:20px;accent-color:var(--fat-primary);margin:0 8px 0 0;vertical-align:middle;flex:0 0 auto}
.woocommerce .woocommerce-form__label-for-checkbox{display:flex!important;align-items:flex-start;gap:4px;font-weight:500!important}
.woocommerce .password-input{position:relative;display:block}
.woocommerce .show-password-input{position:absolute;right:6px;top:50%;transform:translateY(-50%);width:40px;height:40px;border:0;border-radius:10px;background:transparent;cursor:pointer;color:var(--fat-muted)}
.woocommerce .show-password-input::after{content:"";display:block;width:20px;height:20px;margin:auto;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c5 0 9 4.5 10 7-1 2.5-5 7-10 7S3 14.5 2 12c1-2.5 5-7 10-7zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4z'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 5c5 0 9 4.5 10 7-1 2.5-5 7-10 7S3 14.5 2 12c1-2.5 5-7 10-7zm0 3a4 4 0 1 0 0 8 4 4 0 0 0 0-8zm0 2a2 2 0 1 1 0 4 2 2 0 0 1 0-4z'/%3E%3C/svg%3E") center/contain no-repeat}
.woocommerce .password-input .input-text{padding-right:52px}
@media (min-width:520px){
  .woocommerce form .form-row-first,.woocommerce form .form-row-last{width:calc(50% - 7px);display:inline-block;vertical-align:top;float:left}
  .woocommerce form .form-row-last{float:right}
  .woocommerce form .form-row-wide,.woocommerce form .form-row:not(.form-row-first):not(.form-row-last){clear:both}
  .woocommerce form [class*="fields__field-wrapper"]::after,.woocommerce form .form-row-last + :not(.form-row)::before{content:"";display:table;clear:both}
}
.woocommerce form .form-row-wide,.woocommerce .clear{clear:both}

/* ---------- Notifications ---------- */
.woocommerce-notices-wrapper:empty{display:none}
.woocommerce-message,.woocommerce-info,.woocommerce-error,.woocommerce-noreviews,p.no-comments{
  list-style:none;margin:0 0 16px;padding:14px 16px 14px 18px;border-radius:var(--fat-ui-radius,14px);background:var(--fat-surface);color:var(--fat-text);
  border:1px solid var(--fat-line);border-left:4px solid var(--fat-primary);box-shadow:var(--fat-shadow);display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;line-height:1.45}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{display:none}
.woocommerce-message{border-left-color:#16a34a}
.woocommerce-error{border-left-color:#d63638;background:color-mix(in srgb,#d63638 7%,var(--fat-surface))}
.woocommerce-error li{list-style:none;margin:0;padding:0;width:100%}
.woocommerce-message .button,.woocommerce-info .button{order:2;margin-left:auto;min-height:40px;padding:0 16px}

/* ---------- Panier (classique) ---------- */
.woocommerce-cart-form{background:var(--fat-surface);border-radius:var(--fat-radius);box-shadow:var(--fat-shadow);border:1px solid var(--fat-line);padding:4px 16px 16px}
.woocommerce table.cart thead{display:none}
.woocommerce table.cart tr.cart_item{display:grid;grid-template-columns:72px minmax(0,1fr) auto;grid-template-areas:"thumb name remove" "thumb price price" "thumb qty subtotal";column-gap:12px;row-gap:4px;align-items:center;padding:16px 0;border-bottom:1px solid var(--fat-line)}
.woocommerce table.cart td{display:block;padding:0;border:0;text-align:left}
.woocommerce table.cart td::before{display:none}
.woocommerce table.cart .product-thumbnail{grid-area:thumb;align-self:start}
.woocommerce table.cart .product-thumbnail img{width:72px!important;height:72px;object-fit:cover;border-radius:calc(var(--fat-radius) - 4px);display:block;margin:0}
.woocommerce table.cart .product-name{grid-area:name;font-weight:700;line-height:1.3;min-width:0;overflow-wrap:anywhere}
.woocommerce table.cart .product-name a{color:var(--fat-text);text-decoration:none}
.woocommerce table.cart .product-remove{grid-area:remove;align-self:start}
.woocommerce table.cart .product-price{grid-area:price;font-size:.85em;color:var(--fat-muted)}
.woocommerce table.cart .product-price .amount{font-weight:600}
.woocommerce table.cart .product-quantity{grid-area:qty}
.woocommerce table.cart .product-subtotal{grid-area:subtotal;text-align:right;font-size:1.02em}
.woocommerce a.remove{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--fat-surface-2);color:var(--fat-muted)!important;font-size:20px;line-height:1;text-decoration:none;font-weight:400}
.woocommerce a.remove:hover{background:#fdeceb;color:#b42318!important}
.woocommerce dl.variation,.woocommerce .wc-item-meta{margin:6px 0 0;padding:0;font-size:.82em;font-weight:500;line-height:1.45;color:var(--fat-muted);display:block;list-style:none;text-align:left}
.woocommerce dl.variation dt,.woocommerce dl.variation dd{display:inline}.woocommerce dl.variation > dt{margin-right:4px}
.woocommerce dl.variation dd::after{content:"";display:block}
.woocommerce dl.variation dt,.woocommerce dl.variation dd,.woocommerce .wc-item-meta li{margin:0;padding:0;font-weight:500}
.woocommerce dl.variation dt{color:var(--fat-text)}
.woocommerce dl.variation dd p,.woocommerce .wc-item-meta p{margin:0;display:inline}
.woocommerce .wc-item-meta{display:block}.woocommerce .wc-item-meta li{margin:2px 0}
.woocommerce .quantity{display:inline-flex}
.woocommerce .quantity .qty{width:84px;min-height:44px;text-align:center;font-weight:700;padding:8px;-moz-appearance:textfield;border-radius:12px}
.woocommerce table.cart td.actions{display:flex;flex-direction:column;gap:10px;padding:16px 0 0;border:0}
.woocommerce table.cart tr:last-child{display:block}
.woocommerce .coupon{display:flex;gap:8px;flex-wrap:wrap}
.woocommerce .coupon .input-text{flex:1 1 160px;width:auto;min-height:46px}
.woocommerce .coupon .button{flex:0 0 auto;min-height:46px}
.woocommerce table.cart button[name=update_cart]{align-self:stretch;background:transparent;border:1px solid var(--fat-line)}
.cart-collaterals{margin-top:16px}
.cart-collaterals .cart_totals,.cart-collaterals .cross-sells{background:var(--fat-surface);border-radius:var(--fat-radius);box-shadow:var(--fat-shadow);border:1px solid var(--fat-line);padding:16px}
.cart-collaterals h2{font-size:1.15em;margin:0 0 8px}
.cart_totals table th,.cart_totals table td,.woocommerce-checkout-review-order-table th,.woocommerce-checkout-review-order-table td{padding:12px 0;border-bottom:1px solid var(--fat-line);text-align:left;vertical-align:top;font-weight:500}
.cart_totals table td,.woocommerce-checkout-review-order-table td{text-align:right}
.cart_totals table th{font-weight:650;width:40%}
.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{border-bottom:0;font-size:1.15em;font-weight:800;padding-top:14px}
.cart_totals table td::before{display:none}
.woocommerce ul#shipping_method{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;text-align:left}
.woocommerce ul#shipping_method li{display:flex;align-items:center;gap:6px;margin:0;padding:10px 12px;border:1px solid var(--fat-line);border-radius:12px;font-weight:600;line-height:1.3}
.woocommerce ul#shipping_method li:has(input:checked){border-color:var(--fat-primary);background:color-mix(in srgb,var(--fat-primary) 6%,var(--fat-surface))}
.woocommerce ul#shipping_method li label{margin:0;cursor:pointer;flex:1}
.woocommerce-shipping-destination,.woocommerce-shipping-calculator{font-size:.85em;color:var(--fat-muted);text-align:left;margin:8px 0 0}
.wc-proceed-to-checkout{padding-top:14px}
.wc-proceed-to-checkout .checkout-button{width:100%;min-height:56px;font-size:1.05em}
.return-to-shop{margin-top:12px}
.wc-empty-cart-message .cart-empty{font-size:1.05em}
@media (max-width:767.98px){
  .woocommerce-cart .wc-proceed-to-checkout,.fat-flow .wc-proceed-to-checkout{position:sticky;bottom:calc(var(--fat-bottomnav-h,0px) + 8px + env(safe-area-inset-bottom,0px));z-index:5;margin:0 -8px;padding:10px 8px;background:linear-gradient(to top,var(--fat-surface) 70%,transparent)}
}
@media (min-width:900px){
  .woocommerce-cart .woocommerce,.fat-flow .woocommerce:has(.woocommerce-cart-form){display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:24px;align-items:start}
  .woocommerce:has(.woocommerce-cart-form) > .woocommerce-notices-wrapper{grid-column:1/-1}
  .woocommerce:has(.woocommerce-cart-form) .cart-collaterals{margin-top:0;position:sticky;top:calc(var(--fat-header-h) + 20px)}
  .woocommerce table.cart tr.cart_item{grid-template-columns:88px minmax(0,1fr) 120px 110px 44px;grid-template-areas:"thumb name qty subtotal remove" "thumb price qty subtotal remove"}
  .woocommerce table.cart .product-thumbnail img{width:88px!important;height:88px}
  .woocommerce table.cart td.actions{flex-direction:row;justify-content:space-between}
  .woocommerce table.cart button[name=update_cart]{align-self:auto}
}

/* ---------- Validation de commande (classique) ---------- */
.woocommerce-checkout form.checkout{display:flex;flex-direction:column;gap:16px}
.woocommerce form.checkout_coupon,.woocommerce form.login{border:1px solid var(--fat-line);border-radius:var(--fat-radius);padding:16px;margin:0 0 16px;background:var(--fat-surface)}
#customer_details{display:flex;flex-direction:column;gap:16px}
#customer_details .col-1,#customer_details .col-2{width:100%;float:none;padding:0;margin:0}
#customer_details > div > div,#customer_details .col-1,#customer_details .col-2:not(:empty){background:var(--fat-surface);border-radius:var(--fat-radius);box-shadow:var(--fat-shadow);border:1px solid var(--fat-line);padding:4px 16px 4px}
#customer_details .col-1 > div,#customer_details .col-2 > div{background:none;box-shadow:none;border:0;padding:0}
#customer_details h3,#order_review_heading{font-size:1.1em;margin:14px 0 12px}
#order_review_heading{margin:0;padding:16px 16px 0;background:var(--fat-surface);border:1px solid var(--fat-line);border-bottom:0;border-radius:var(--fat-radius) var(--fat-radius) 0 0}
#order_review{background:var(--fat-surface);border:1px solid var(--fat-line);border-top:0;border-radius:0 0 var(--fat-radius) var(--fat-radius);padding:0 16px 16px;box-shadow:var(--fat-shadow)}
.woocommerce-checkout-review-order-table thead th{font-size:.8em;text-transform:uppercase;letter-spacing:.06em;color:var(--fat-muted);font-weight:700}
.woocommerce-checkout-review-order-table thead th:last-child{text-align:right}
.woocommerce-checkout-review-order-table .product-name{font-weight:650;overflow-wrap:anywhere;text-align:left!important;padding-right:12px}
.woocommerce-checkout-review-order-table .product-quantity{font-weight:700;color:var(--fat-muted)}
.woocommerce-checkout-review-order-table tfoot th{font-weight:650}
.woocommerce-checkout-review-order-table ul#shipping_method{margin-top:4px}
.foodacces-slot-field{margin:16px 0!important;padding:14px;border-radius:var(--fat-ui-radius,14px);background:color-mix(in srgb,var(--fat-primary) 6%,var(--fat-surface));border:1px solid color-mix(in srgb,var(--fat-primary) 25%,var(--fat-line))}
.foodacces-slot-field label{display:block;font-weight:750;margin:0 0 8px}
#payment{margin-top:8px}
#payment ul.payment_methods{list-style:none;margin:0 0 12px;padding:0;display:flex;flex-direction:column;gap:8px}
#payment ul.payment_methods li{margin:0;padding:12px 14px;border:1px solid var(--fat-line);border-radius:var(--fat-ui-radius,14px);background:var(--fat-surface)}
#payment ul.payment_methods li:has(input:checked){border-color:var(--fat-primary);box-shadow:0 0 0 1px var(--fat-primary) inset}
#payment ul.payment_methods li > label{display:inline-flex;align-items:center;gap:8px;font-weight:700;cursor:pointer;width:calc(100% - 32px)}
#payment ul.payment_methods li img{max-height:24px;width:auto;margin-left:auto}
#payment .payment_box{margin:10px 0 0;padding:10px 12px;border-radius:10px;background:var(--fat-surface-2);font-size:.9em;color:var(--fat-muted)}
#payment .payment_box p:last-child{margin-bottom:0}
#payment .place-order{margin:0;padding:0}
.woocommerce-terms-and-conditions-wrapper{font-size:.86em;color:var(--fat-muted)}
.woocommerce-privacy-policy-text p{margin:0 0 10px}
#place_order{width:100%;min-height:58px;font-size:1.08em;margin-top:8px}
.fat-trust{display:flex;align-items:center;justify-content:center;gap:6px;margin:10px 0 0;font-size:.82em;color:var(--fat-muted);text-align:center}
.fat-trust .fat-icon{color:#16a34a}
@media (min-width:1024px){
  :is(.woocommerce-checkout form.checkout,form.checkout.woocommerce-checkout){display:grid;grid-template-columns:minmax(0,1.3fr) minmax(340px,1fr);gap:0 28px;align-items:start}
  :is(.woocommerce-checkout form.checkout,form.checkout.woocommerce-checkout) > .woocommerce-NoticeGroup{grid-column:1/-1}
  form.checkout #customer_details{grid-column:1;grid-row:1/span 3}
  form.checkout #order_review_heading{grid-column:2;grid-row:1}
  form.checkout #order_review{grid-column:2;grid-row:2;position:sticky;top:calc(var(--fat-header-h) + 20px)}
}

/* ---------- Commande reçue ---------- */
.woocommerce-order{display:flex;flex-direction:column;gap:16px}
.woocommerce-thankyou-order-received{font-size:1.15em;font-weight:750;padding:16px;border-radius:var(--fat-radius);background:color-mix(in srgb,#16a34a 10%,var(--fat-surface));border:1px solid color-mix(in srgb,#16a34a 30%,var(--fat-line))}
ul.woocommerce-order-overview{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:8px}
ul.woocommerce-order-overview li{padding:12px;border-radius:12px;background:var(--fat-surface);border:1px solid var(--fat-line);font-size:.8em;color:var(--fat-muted);text-transform:uppercase;letter-spacing:.04em}
ul.woocommerce-order-overview li strong{display:block;margin-top:4px;font-size:1.15em;color:var(--fat-text);text-transform:none;letter-spacing:0}

/* ---------- Détails de commande & adresses ---------- */
.woocommerce-order-details,.woocommerce-customer-details,.woocommerce-MyAccount-content > section{margin:0 0 16px}
.woocommerce table.order_details,.woocommerce table.woocommerce-table--order-details{background:var(--fat-surface);border:1px solid var(--fat-line);border-radius:var(--fat-radius);overflow:hidden}
.woocommerce table.order_details th,.woocommerce table.order_details td{padding:12px 14px;border-bottom:1px solid var(--fat-line);text-align:left;vertical-align:top}
.woocommerce table.order_details td:last-child,.woocommerce table.order_details tfoot td{text-align:right}
.woocommerce table.order_details thead th{font-size:.8em;text-transform:uppercase;letter-spacing:.06em;color:var(--fat-muted)}
.woocommerce table.order_details tfoot tr:last-child th,.woocommerce table.order_details tfoot tr:last-child td{border-bottom:0;font-weight:800;font-size:1.05em}
.woocommerce .product-name{overflow-wrap:anywhere}
.woocommerce-customer-details address{font-style:normal;padding:14px;border:1px solid var(--fat-line);border-radius:var(--fat-radius);background:var(--fat-surface);line-height:1.6}
.woocommerce-customer-details address p{margin:6px 0 0}
.woocommerce-order-details__title,.woocommerce-column__title,.woocommerce-MyAccount-content h2{font-size:1.1em;margin:0 0 10px}
mark{background:color-mix(in srgb,var(--fat-primary) 14%,transparent);color:inherit;padding:0 4px;border-radius:4px}

/* ---------- Mon compte ---------- */
.woocommerce-account .woocommerce,.fat-flow .woocommerce:has(.woocommerce-MyAccount-navigation){display:grid;gap:16px}
.woocommerce-account .woocommerce-MyAccount-navigation,.woocommerce-account .woocommerce-MyAccount-content,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content{float:none!important;width:auto!important;min-width:0}
.woocommerce-MyAccount-navigation ul{list-style:none;margin:0 calc(var(--fat-gutter,16px) * -1);padding:2px var(--fat-gutter,16px) 6px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;scroll-padding-inline:var(--fat-gutter,16px)}
.woocommerce-MyAccount-navigation ul::-webkit-scrollbar{display:none}
.woocommerce-MyAccount-navigation li{flex:0 0 auto;scroll-snap-align:start}
.woocommerce-MyAccount-navigation a{display:block;white-space:nowrap;padding:10px 16px;border-radius:999px;background:var(--fat-surface);color:var(--fat-text)!important;text-decoration:none;font-weight:700;border:1px solid var(--fat-line);font-size:.92em}
.woocommerce-MyAccount-navigation .is-active a{background:var(--fat-primary);border-color:var(--fat-primary);color:var(--fat-on-primary)!important}
.woocommerce-MyAccount-navigation-link--customer-logout a{color:#b42318!important}
.woocommerce-MyAccount-content{background:var(--fat-surface);border-radius:var(--fat-radius);box-shadow:var(--fat-shadow);border:1px solid var(--fat-line);padding:16px;overflow-wrap:anywhere}
.woocommerce-MyAccount-content > p:first-child{margin-top:0}
.woocommerce-Addresses{display:grid;gap:16px}
@media (min-width:768px){.woocommerce-Addresses{grid-template-columns:1fr 1fr}}
.woocommerce-Address-title{display:flex;justify-content:space-between;align-items:center;gap:8px}
.woocommerce-Address-title h2,.woocommerce-Address-title h3{margin:0;font-size:1.05em}
@media (min-width:1024px){
  .woocommerce-account .woocommerce,.fat-flow .woocommerce:has(.woocommerce-MyAccount-navigation){grid-template-columns:240px minmax(0,1fr);align-items:start;gap:24px}
  .woocommerce-MyAccount-navigation ul{flex-direction:column;margin:0;padding:8px;background:var(--fat-surface);border-radius:var(--fat-radius);box-shadow:var(--fat-shadow);border:1px solid var(--fat-line);position:sticky;top:calc(var(--fat-header-h) + 20px);overflow:visible}
  .woocommerce-MyAccount-navigation a{border:0;border-radius:12px;background:transparent}
  .woocommerce-MyAccount-navigation a:hover{background:var(--fat-surface-2)}
  .woocommerce-MyAccount-content{padding:24px}
}

/* Tableaux responsives (commandes, téléchargements, moyens de paiement) : cartes sur mobile */
.woocommerce table.shop_table_responsive:not(.cart){width:100%}
.woocommerce table.shop_table_responsive:not(.cart) th,.woocommerce table.shop_table_responsive:not(.cart) td{padding:12px 10px;border-bottom:1px solid var(--fat-line);text-align:left;vertical-align:middle}
.woocommerce table.shop_table_responsive:not(.cart) thead th{font-size:.8em;text-transform:uppercase;letter-spacing:.06em;color:var(--fat-muted)}
.woocommerce .woocommerce-orders-table__cell-order-actions .button{min-height:40px;padding:0 14px;font-size:.9em;margin:2px 0}
@media (max-width:767.98px){
  .woocommerce table.shop_table_responsive:not(.cart):not(.order_details) thead{display:none}
  .woocommerce table.shop_table_responsive:not(.cart):not(.order_details) tbody tr{display:block;margin:0 0 12px;padding:6px 12px;border:1px solid var(--fat-line);border-radius:var(--fat-radius);background:var(--fat-surface)}
  .woocommerce table.shop_table_responsive:not(.cart):not(.order_details) tbody th,.woocommerce table.shop_table_responsive:not(.cart):not(.order_details) tbody td{display:flow-root;padding:10px 0;text-align:right;border-bottom:1px dashed var(--fat-line);overflow-wrap:anywhere}
  .woocommerce table.shop_table_responsive:not(.cart):not(.order_details) tbody tr > :last-child{border-bottom:0}
  .woocommerce table.shop_table_responsive:not(.cart):not(.order_details) tbody [data-title]::before{content:attr(data-title);float:left;margin-right:12px;font-weight:700;color:var(--fat-muted);text-align:left}
  /* Totaux du panier : lignes simples libellé / montant (pas de cartes). */
  .woocommerce .cart_totals table.shop_table_responsive:not(.cart):not(.order_details) tbody tr{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin:0;padding:0;border:0;border-bottom:1px solid var(--fat-line);border-radius:0;background:none}
  .woocommerce .cart_totals table.shop_table_responsive:not(.cart):not(.order_details) tbody tr:last-child{border-bottom:0}
  .woocommerce .cart_totals table.shop_table_responsive:not(.cart):not(.order_details) tbody th,.woocommerce .cart_totals table.shop_table_responsive:not(.cart):not(.order_details) tbody td{display:block;border:0;padding:12px 0;width:auto}
  .woocommerce .cart_totals table.shop_table_responsive:not(.cart):not(.order_details) tbody td{flex:1;min-width:0}
  .woocommerce .cart_totals table.shop_table_responsive:not(.cart):not(.order_details) tbody [data-title]::before{display:none}
  .woocommerce .cart_totals table.shop_table_responsive:not(.cart):not(.order_details) tr.woocommerce-shipping-totals{flex-direction:column;gap:0}
  .woocommerce .cart_totals table.shop_table_responsive:not(.cart):not(.order_details) tr.woocommerce-shipping-totals td{width:100%;padding-top:0}
  .woocommerce .woocommerce-orders-table__cell-order-number a{font-size:1.1em;font-weight:800}
  .woocommerce .woocommerce-orders-table__cell-order-actions{flex-wrap:wrap}
  .woocommerce .woocommerce-orders-table__cell-order-actions::before{display:none}
  .woocommerce .woocommerce-orders-table__cell-order-actions .button{flex:1 1 auto}
}
.woocommerce-pagination{display:flex;gap:8px;justify-content:space-between;margin-top:12px}

/* ---------- Connexion / inscription ---------- */
.woocommerce .col2-set#customer_login,.woocommerce .u-columns{display:grid;gap:16px}
.woocommerce .col2-set#customer_login > div{width:auto;float:none;padding:0;margin:0}
@media (min-width:768px){.woocommerce .col2-set#customer_login,.woocommerce .u-columns{grid-template-columns:1fr 1fr;gap:24px}}
.woocommerce form.login,.woocommerce form.register,.woocommerce form.lost_reset_password,.woocommerce form.edit-account,.woocommerce-EditAccountForm{border:1px solid var(--fat-line);border-radius:var(--fat-radius);background:var(--fat-surface);box-shadow:var(--fat-shadow);padding:18px;margin:0}
.woocommerce form.login .form-row:has(.woocommerce-form-login__submit){display:flex;flex-direction:column-reverse;gap:12px}
.woocommerce .woocommerce-form-login__submit,.woocommerce .woocommerce-form-register__submit{width:100%}
.woocommerce #customer_login h2{font-size:1.2em;margin:0 0 12px}
.woocommerce .lost_password{margin:12px 0 0;font-size:.9em}
.woocommerce fieldset{border:1px solid var(--fat-line);border-radius:var(--fat-radius);padding:12px 16px;margin:16px 0}
.woocommerce fieldset legend{font-weight:750;padding:0 6px}

/* ---------- Mode commande concentré ---------- */
.fat-focus .fat-nav,.fat-focus .fat-header__cta,.fat-focus .fat-header__status,.fat-focus [data-fat-open="search"],.fat-focus .fat-header__burger,.fat-focus .fat-cartlink{display:none!important}
.fat-focus .fat-footer{margin-top:24px}

/* ---------- Blocs Panier / Validation (styles WooCommerce conservés, harmonisés) ---------- */
.wc-block-components-button:not(.is-link),.wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button{min-height:var(--fat-btn-h,52px)!important;border-radius:999px!important;background:var(--fat-primary)!important;color:var(--fat-on-primary)!important;font-weight:800!important;border:0!important}
.fat-buttons-rounded .wc-block-components-button:not(.is-link){border-radius:var(--fat-ui-radius,14px)!important}
.wc-block-components-text-input input,.wc-block-components-combobox .wc-block-components-combobox-control input,.wc-block-components-select select,.wc-blocks-components-select__select,.wc-block-components-textarea{border-radius:var(--fat-ui-radius,14px)!important;border-color:var(--fat-line)!important;background:var(--fat-surface)!important;color:var(--fat-text)!important}
.wc-block-components-sidebar-layout .wc-block-components-sidebar{background:var(--fat-surface);border-radius:var(--fat-radius);box-shadow:var(--fat-shadow);padding:16px!important}
.wc-block-components-radio-control__option,.wc-block-components-radio-control-accordion-option{border-radius:var(--fat-ui-radius,14px)!important}
.wc-block-components-checkout-step__title{font-weight:800!important}
.wc-block-components-product-name{overflow-wrap:anywhere}
.wp-block-woocommerce-checkout,.wp-block-woocommerce-cart{margin-bottom:24px}
@media (max-width:767.98px){
  .wc-block-components-sidebar-layout{margin:0!important}
  .wc-block-cart__submit-container--sticky{bottom:calc(var(--fat-bottomnav-h,0px) + env(safe-area-inset-bottom,0px))!important;padding-bottom:12px!important}
}

/* ---------- Boutique de repli (sans l'extension FoodAcces) ---------- */
.woocommerce ul.products{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--fa-gap,16px)}
@media (min-width:768px){.woocommerce ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (min-width:1200px){.woocommerce ul.products{grid-template-columns:repeat(4,minmax(0,1fr))}}
.woocommerce ul.products li.product{width:auto!important;float:none!important;margin:0!important;background:var(--fat-surface);border-radius:var(--fat-radius);overflow:hidden;box-shadow:var(--fat-shadow);padding-bottom:14px;text-align:left;display:flex;flex-direction:column}
.woocommerce ul.products li.product a img{margin:0 0 10px;width:100%;aspect-ratio:1/1;object-fit:cover}
.woocommerce ul.products li.product .woocommerce-loop-product__title,.woocommerce ul.products li.product .price,.woocommerce ul.products li.product .button{margin-inline:12px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{font-size:1em;margin-block:0 6px}
.woocommerce ul.products li.product .button{margin-top:auto}
.woocommerce span.onsale{position:absolute;margin:8px;background:var(--fat-primary);color:var(--fat-on-primary);border-radius:999px;padding:6px 10px;font-size:.75em;font-weight:800}
.woocommerce ul.products li.product{position:relative}
.fat-crumbs,.woocommerce-breadcrumb{font-size:.85em;color:var(--fat-muted);margin:4px 0 14px}.fat-crumbs a,.woocommerce-breadcrumb a{color:inherit;text-decoration:none}

/* FoodAcces price display: current promotional price emphasized, previous price struck through. */
.foodacces-theme .price del,.woocommerce .price del,.fa-product__price del,.fa-sheet__price del{color:var(--fat-muted,#777);opacity:.78;font-size:.76em;font-weight:500;text-decoration:line-through;text-decoration-thickness:2px;margin-inline-end:.35em}
.foodacces-theme .price ins,.woocommerce .price ins,.fa-product__price ins,.fa-sheet__price ins{color:var(--fat-primary,#d9360b);font-weight:800;text-decoration:none;background:transparent}

/* FoodAcces 1.3.2 — prix promotionnel lisible : prix actuel mis en avant, ancien prix barré. */
.fa-product__price,.fa-sheet__price{display:flex;align-items:baseline;flex-wrap:wrap;gap:.35rem .55rem;line-height:1.35}
.fa-product__price ins,.fa-sheet__price ins{font-size:1.18em;font-weight:850;text-decoration:none;background:transparent;color:var(--fat-primary,#d9360b)}
.fa-product__price del,.fa-sheet__price del{font-size:.78em;opacity:.72;text-decoration-line:line-through;text-decoration-thickness:2px}
