/*
 Theme Name:   Bricks Child Theme
 Theme URI:    https://bricksbuilder.io/
 Description:  Use this child theme to extend Bricks.
 Author:       Bricks
 Author URI:   https://bricksbuilder.io/
 Template:     bricks
 Version:      1.1
 Text Domain:  bricks
*/


/************************* Grille produits Woocommerce **************************/
/* 1. Grille produits : colonnes égales et espacements propres */
.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

/* 2. Chaque produit = carte en colonne, hauteur 100% */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 3. Forcer le visuel dans un ratio fixe (carré ici) */
.woocommerce ul.products li.product a img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;  /* ou cover selon ton rendu souhaité */
}

/* 4. Zone texte (titre + prix) avec un peu d'air */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .price {
  margin-bottom: 0.75rem;
}

/* 5. Bouton toujours aligné en bas de la carte */
.woocommerce ul.products li.product .button {
  margin-top: auto;
}
/************************* Fin Grille produits Woocommerce **************************/


/*************************ESPACE CLIENT********************************************/
/*********Lien adresse***************************/
.woocommerce-Addresses a {
  color: #bf2c37;
  text-decoration: underline;
  font-weight: 500;
}
/*************************FIN ESPACE CLIENT********************************************/



/* ********** Masquer définitivement la catégorie "Non classé" (WooCommerce Blocks)*********/
.bricks-widget-wrapper
a[href*="/categorie-produit/non-classe/"] {
  display: none !important;
}
/*************************FIN MASQUE NON CLASSE********************************************/





/*************************FICHE PRODUIT********************************************/
/* Bordure claire autour des images produits */
/* .woocommerce ul.products li.product a img, .brxe-woocommerce-products .product .dynamic a img {
    border: 1px solid #e5e5e5;
    border-radius: 4px; /* optionnel, pour un rendu plus propre */
   /* padding: 4px; /* optionnel si tu veux éviter que la bordure touche l’image */
   /* background: #fff; /* optionnel, joli rendu si fond catalogue gris */




/*************************FIN FICHE PRODUIT********************************************/



/*************************PANIER********************************************/
/**********Popup Slide Panier*****************************************/
.brxe-woocommerce-mini-cart .cart-detail li .variation {
	display:none;
}
/*********************************************************************/


/************Taille Font description***********************************/
.woocommerce-cart-form dl.variation {
	font-weight:400;
}
/*********************************************************************/


/*********Bouton Valider commande***************************/
.cart-collaterals .wc-proceed-to-checkout .button {
	font-size:1em!important;
	line-height:40px!important;
}

/* Panier – aération horizontale des cellules */
.woocommerce-cart .shop_table th,
.woocommerce-cart .shop_table td {
  padding-left: 10px;
  padding-right: 10px;
}


/********************CHECKOUT*************************************************/
/********Bouton Commander*******************************/
.woocommerce-checkout .place-order .button {
	font-size:1em!important;
	line-height:40px!important;
}


/* Checkout – élargir la colonne "Sous-total" (Order Review) */
.woocommerce-checkout #order_review .shop_table th.product-total,
.woocommerce-checkout #order_review .shop_table td.product-total {
  width: 44%;
  min-width: 220px;
  white-space: normal; /* permet aux libellés (ex: livraison) de respirer */
}

/* Réduire légèrement la colonne "Produit" pour compenser */
.woocommerce-checkout #order_review .shop_table th.product-name,
.woocommerce-checkout #order_review .shop_table td.product-name {
  width: 56%;
}

/* Bonus UX : aérer la zone des modes d’expédition */
.woocommerce-checkout #order_review .shop_table .shipping td,
.woocommerce-checkout #order_review .shop_table .shipping th {
  padding-top: 14px;
  padding-bottom: 14px;
}

.woocommerce-checkout #order_review #shipping_method li {
  margin: 8px 0;
  line-height: 1.35;
}


/* Responsive : sur petits écrans, on évite les largeurs figées */
@media (max-width: 768px) {
  .woocommerce-checkout #order_review .shop_table th.product-total,
  .woocommerce-checkout #order_review .shop_table td.product-total,
  .woocommerce-checkout #order_review .shop_table th.product-name,
  .woocommerce-checkout #order_review .shop_table td.product-name {
    width: auto;
    min-width: 0;
  }
}

/* Checkout – aligner les titres (th) en haut */
.woocommerce-checkout #order_review .shop_table th {
  vertical-align: top;
  padding-top: 14px; /* cohérent avec l’aération côté droit */
}