/* =========================================================================
   MONACO-GP — Harmonisation WooCommerce (panier, checkout, compte)
   Aligne les blocs WooCommerce sur l'identité du site (navy/rouge/Heebo).
   Scopé aux classes WooCommerce : n'affecte pas le reste du site.
   ========================================================================= */
.woocommerce,
.wc-block-cart, .wc-block-checkout,
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout,
.woocommerce-account .woocommerce{
  font-family:"Heebo",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;
}

/* Titres, libellés, totaux → navy */
.wc-block-components-title,
.wc-block-cart__totals-title,
.wp-block-woocommerce-cart-order-summary-heading-block,
.wc-block-components-order-summary__button-text,
.wc-block-components-totals-item__label,
.wc-block-components-product-name,
.woocommerce-account h2,
.woocommerce-account h3{
  color:var(--mgp-navy,#203250);
}
.wc-block-components-totals-item__value,
.wc-block-formatted-money-amount,
.woocommerce-Price-amount{
  color:var(--mgp-navy,#203250);font-weight:700;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-weight:900;
}

/* Boutons primaires (Commander / Valider) → rouge du site */
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained,
.woocommerce-account button.woocommerce-button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
  background:var(--mgp-red,#C42D2D)!important;
  color:#fff!important;
  border:0!important;
  border-radius:var(--mgp-r-btn,5px)!important;
  font-weight:800!important;
  text-transform:uppercase;
  letter-spacing:.4px;
  transition:filter .15s ease;
}
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover,
.wc-block-components-button.contained:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover{
  filter:brightness(1.08);
}

/* Liens du CONTENU WooCommerce (retour boutique, éditer, etc.) → rouge.
   Scopé aux conteneurs WooCommerce pour ne JAMAIS toucher le header/footer du thème. */
.wp-block-woocommerce-cart a.wc-block-components-button.is-link,
.wp-block-woocommerce-checkout a.wc-block-components-button.is-link,
.woocommerce-account .woocommerce-MyAccount-content a:not(.button),
.woocommerce-account .woocommerce-MyAccount-navigation a{
  color:var(--mgp-red,#C42D2D);
}

/* Champs de formulaire cohérents */
.wc-block-components-text-input input,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce-account .woocommerce input.input-text{
  border-radius:8px;
  border-color:var(--mgp-line,#E3E6EA);
}
.wc-block-components-text-input.is-active input:focus,
.woocommerce form .form-row input.input-text:focus{
  border-color:var(--mgp-navy,#203250);
  box-shadow:0 0 0 2px rgba(32,50,80,.12);
}

/* Lignes du panier : image de variation nette */
.wc-block-cart-item__image img,
.wc-block-components-order-summary-item__image img{
  border-radius:8px;border:1px solid var(--mgp-line,#E3E6EA);
}

/* Notices WooCommerce au ton du site */
.woocommerce-message,
.wc-block-components-notice-banner.is-success{
  border-left-color:var(--mgp-red,#C42D2D);
}

/* Panier vide : message centré + CTA rouge */
.mgp-empty-cart{max-width:560px;margin:32px auto 8px;text-align:center;}
.mgp-empty-cart h2{color:var(--mgp-navy,#203250);font-weight:900;text-transform:uppercase;letter-spacing:.4px;}
.mgp-empty-cart p{color:#747d86;font-size:16px;margin:8px 0 22px;}
.mgp-empty-cart-cta .wp-block-button__link{
  background:var(--mgp-red,#C42D2D)!important;color:#fff!important;
  border-radius:var(--mgp-r-btn,5px)!important;border:0!important;
  padding:14px 30px!important;font-weight:800!important;text-transform:uppercase;letter-spacing:.5px;
}
.mgp-empty-cart-cta .wp-block-button__link:hover{filter:brightness(1.08);}
