/* MagicDigitalCuts V7.6.5 — cartes compactes, images entières, avis visibles. */

/* La grille ne force plus les cartes d'une ligne à prendre la même hauteur. */
body.mdc-v765-shop-cards .mdc-products-grid,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-products-grid{
  align-items:start!important;
  grid-auto-rows:max-content!important;
}

body.mdc-v765-shop-cards .mdc-product-card,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-card{
  display:grid!important;
  grid-template-rows:auto auto!important;
  align-self:start!important;
  height:max-content!important;
  min-height:0!important;
  max-height:none!important;
  flex:none!important;
  border-radius:14px!important;
  overflow:hidden!important;
}

/* Méthode compatible avec tous les navigateurs : un vrai carré, sans image coupée. */
body.mdc-v765-shop-cards .mdc-product-image,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-image{
  position:relative!important;
  display:block!important;
  width:100%!important;
  height:0!important;
  min-height:0!important;
  padding-bottom:100%!important;
  aspect-ratio:auto!important;
  overflow:hidden!important;
  background:linear-gradient(145deg,#f6f0f3,#fbf7f2)!important;
}
body.mdc-v765-shop-cards .mdc-product-image img,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-image img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:contain!important;
  object-position:center!important;
  transform:none!important;
  transition:opacity .2s ease!important;
}
body.mdc-v765-shop-cards .mdc-product-card:hover .mdc-product-image img,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-card:hover .mdc-product-image img{
  transform:none!important;
  opacity:.97!important;
}

/* Contenu court : aucun flex-grow, aucun grand rectangle blanc. */
body.mdc-v765-shop-cards .mdc-product-info,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-info{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  grid-auto-rows:max-content!important;
  align-content:start!important;
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  flex:0 0 auto!important;
  padding:16px 17px 17px!important;
}
body.mdc-v765-shop-cards .mdc-product-category,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-category{
  margin:0 0 7px!important;
}
body.mdc-v765-shop-cards .mdc-product-name,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-name{
  margin:0 0 7px!important;
  font-size:clamp(22px,1.55vw,26px)!important;
  line-height:1.03!important;
}
body.mdc-v765-shop-cards .mdc-product-name a,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-name a{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
}

/* Avis réels WooCommerce, comme dans l'ancienne boutique. */
body.mdc-v765-shop-cards .mdc-product-rating--card,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-rating--card{
  display:flex!important;
  align-items:center!important;
  gap:7px!important;
  width:max-content!important;
  margin:0 0 7px!important;
  color:#a87922!important;
  text-decoration:none!important;
}
body.mdc-v765-shop-cards .mdc-product-rating--card .star-rating,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-rating--card .star-rating{
  float:none!important;
  margin:0!important;
  font-size:13px!important;
  color:#d2a536!important;
}
body.mdc-v765-shop-cards .mdc-product-rating--card > span,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-rating--card > span{
  color:#786878!important;
  font:650 10.5px/1.2 Manrope,Arial,sans-serif!important;
}

body.mdc-v765-shop-cards .mdc-product-compat,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-compat{
  display:-webkit-box!important;
  -webkit-box-orient:vertical!important;
  -webkit-line-clamp:2!important;
  overflow:hidden!important;
  height:auto!important;
  min-height:0!important;
  margin:0!important;
  font-size:11.5px!important;
  line-height:1.45!important;
}
body.mdc-v765-shop-cards .mdc-product-footer,
body.mdc-v765-shop-cards .mdc-product-footer--clean,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-footer,
body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-footer--clean{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  align-self:start!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  margin:12px 0 0!important;
  padding:0!important;
  flex:none!important;
}

/* La grande image d'une fiche produit reste elle aussi entière. */
body.mdc-v765-product-images .mdc-product-gallery-main{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(145deg,#f6f0f3,#fbf7f2)!important;
}
body.mdc-v765-product-images .mdc-product-gallery-main .mdc-main-product-image{
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
}

@media(max-width:820px){
  body.mdc-v765-shop-cards .mdc-product-info,
  body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-info{padding:14px 15px 15px!important}
  body.mdc-v765-shop-cards .mdc-product-name,
  body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-name{font-size:23px!important}
}
@media(max-width:560px){
  body.mdc-v765-shop-cards .mdc-product-image,
  body.mdc-v765-shop-cards .mdc-shop-page .mdc-product-image{padding-bottom:92%!important}
}
