/*
Theme Name: Astra Child - Bricofuté
Template: astra
*/
/* =========================================================
   Bricofuté – Charte WooCommerce (Mon compte / Panier / Checkout)
   ========================================================= */

/* Fond global sur pages WooCommerce */
.woocommerce-page,
.woocommerce {
  background: #fffaf4;
}

/* Titres */
.woocommerce h1,
.woocommerce h2,
.woocommerce h3,
.woocommerce-page h1,
.woocommerce-page h2,
.woocommerce-page h3 {
  color: #1e1e1e;
  font-weight: 800;
}

/* Liens (plus doux) */
.woocommerce a {
  color: #1e1e1e;
}
.woocommerce a:hover {
  color: #ffb347;
}

/* Cartes / blocs principaux */
.woocommerce .woocommerce-MyAccount-navigation,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce .cart-collaterals,
.woocommerce .woocommerce-checkout-review-order,
.woocommerce .woocommerce-form-login,
.woocommerce .woocommerce-form-register,
.woocommerce .woocommerce-NoticeGroup,
.woocommerce .woocommerce-notices-wrapper,
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-error,
.woocommerce .woocommerce-info {
  background: #fff;
  border: 1px solid rgba(0,0,0,.07);
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

/* Padding propre */
.woocommerce .woocommerce-MyAccount-navigation,
.woocommerce .woocommerce-MyAccount-content,
.woocommerce .cart-collaterals,
.woocommerce .woocommerce-checkout-review-order {
  padding: 1.1rem;
}

/* Boutons Bricofuté (remplace le bleu Woo) */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order {
  background: linear-gradient(90deg,#ffd99a,#ffb347) !important;
  color: #1e1e1e !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: .8rem !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.18) !important;
  font-weight: 800 !important;
  padding: .75rem 1rem !important;
  text-transform: none !important;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover,
.woocommerce #place_order:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.22) !important;
  filter: brightness(1.02);
}

/* Champs (checkout / compte) */
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="password"],
.woocommerce input[type="tel"],
.woocommerce textarea,
.woocommerce select {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: .8rem;
  padding: .7rem .8rem;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
}

/* Tables (abonnements, commandes, panier) */
.woocommerce table.shop_table {
  border: 1px solid rgba(0,0,0,.07) !important;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.woocommerce table.shop_table th {
  background: #fff3e3;
  color: #1e1e1e;
  font-weight: 800;
}

.woocommerce table.shop_table td {
  vertical-align: middle;
}

/* Mon compte – menu gauche plus “card” */
.woocommerce-MyAccount-navigation ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.woocommerce-MyAccount-navigation li a {
  display: block;
  padding: .75rem .9rem;
  border-radius: .8rem;
  color: #1e1e1e;
  text-decoration: none;
}
.woocommerce-MyAccount-navigation li a:hover {
  background: #fff3e3;
}
.woocommerce-MyAccount-navigation li.is-active a {
  background: linear-gradient(90deg,#ffd99a,#ffb347);
  font-weight: 800;
}

/* Totaux panier / checkout : mettre en valeur */
.woocommerce .cart_totals h2,
.woocommerce .woocommerce-checkout-review-order-table thead th {
  font-weight: 900;
}

/* Responsive : colonne compte en 1 bloc sur mobile */
@media (max-width: 920px){
  .woocommerce .woocommerce-MyAccount-navigation,
  .woocommerce .woocommerce-MyAccount-content {
    width: 100% !important;
    float: none !important;
    margin: 0 0 1rem 0 !important;
  }
}
/* Force boutons WooCommerce en style Bricofuté */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce #place_order,
.woocommerce .woocommerce-button {
  background: linear-gradient(90deg,#ffd99a,#ffb347) !important;
  color: #1e1e1e !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: .8rem !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.18) !important;
  font-weight: 800 !important;
}

.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #place_order:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.22) !important;
}
/* ==== Force ABSOLUE boutons WooCommerce en Bricofuté ==== */

/* Bouton principal checkout */
.woocommerce #place_order,
.woocommerce-cart .checkout-button,
.woocommerce a.checkout-button {
  background: linear-gradient(90deg,#ffd99a,#ffb347) !important;
  color: #1e1e1e !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: .8rem !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.18) !important;
  font-weight: 800 !important;
}

/* Tous les boutons WooCommerce */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce .woocommerce-button {
  background: linear-gradient(90deg,#ffd99a,#ffb347) !important;
  color: #1e1e1e !important;
  border: 1px solid rgba(0,0,0,.08) !important;
  border-radius: .8rem !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.18) !important;
  font-weight: 800 !important;
}

/* Hover */
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce #place_order:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0,0,0,.22) !important;
}
