/*
 * AFIWAI Smart Shop — Product cards layout 2.28.23
 * Authoritative layout loaded after every template/front stylesheet.
 *
 * Desktop/tablet:
 * - all cards same height
 * - every internal element aligned in the same row
 * - full product image, never cropped
 * - price then action button below
 *
 * Mobile:
 * - height follows content
 * - full product image, never cropped
 * - nothing may escape the card
 * - description can be expanded with "Lire plus"
 */

/* Shared reset — only product cards. */
body.afiwai-smart-shop-managed-page .afiwai-preview-product-card.afiwai-product-card,
body.afiwai-smart-shop-managed-page .afiwai-product-card{
  box-sizing:border-box!important;
  width:100%!important;
  min-width:0!important;
}

body.afiwai-smart-shop-managed-page .afiwai-product-card *,
body.afiwai-smart-shop-managed-page .afiwai-product-card *::before,
body.afiwai-smart-shop-managed-page .afiwai-product-card *::after{
  box-sizing:border-box!important;
}

/* ==========================================================
   PC + TABLETTE : composition uniforme et hauteurs égales
   ========================================================== */
@media(min-width:783px){

  /* Every row and every card stretches to one common card height. */
  body.afiwai-smart-shop-managed-page .afiwai-v3-product-grid,
  body.afiwai-smart-shop-managed-page .afiwai-catalog-v3__grid,
  body.afiwai-smart-shop-managed-page .afiwai-smart-catalog-grid,
  body.afiwai-smart-shop-managed-page .afiwai-smart-catalog,
  body.afiwai-smart-shop-managed-page .afiwai-cs-gallery{
    align-items:stretch!important;
    grid-auto-rows:1fr!important;
  }

  /* On tablet, keep enough horizontal room for a clean card. */
  body.afiwai-smart-shop-managed-page .afiwai-v3-product-grid,
  body.afiwai-smart-shop-managed-page .afiwai-catalog-v3__grid,
  body.afiwai-smart-shop-managed-page .afiwai-smart-catalog-grid{
    column-gap:22px!important;
    row-gap:22px!important;
  }

  /* One common horizontal composition for ALL card templates. */
  body.afiwai-smart-shop-managed-page .afiwai-preview-product-card.afiwai-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-classic .afiwai-preview-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-light .afiwai-preview-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-pro .afiwai-preview-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-elegant .afiwai-preview-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-studio .afiwai-preview-product-card{
    position:relative!important;
    display:grid!important;
    grid-template-columns:minmax(190px,42%) minmax(0,58%)!important;
    grid-template-rows:1fr!important;
    align-items:stretch!important;
    width:100%!important;
    height:100%!important;
    min-height:320px!important;
    max-height:none!important;
    overflow:hidden!important;
  }

  /* Full image, centered, no crop. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-media,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-image{
    position:relative!important;
    grid-column:1!important;
    grid-row:1!important;
    display:grid!important;
    place-items:center!important;
    align-self:stretch!important;
    width:100%!important;
    height:100%!important;
    min-height:320px!important;
    max-height:none!important;
    margin:0!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
    background:#fff!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-media img,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-image img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    margin:0!important;
    object-fit:contain!important;
    object-position:center!important;
    background:transparent!important;
  }

  /* Right content: exact rows, identical on every card. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-body,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-smart-card-body,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__body{
    grid-column:2!important;
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:
      18px
      54px
      66px
      24px
      54px
      46px!important;
    gap:8px!important;
    align-content:center!important;
    width:100%!important;
    height:100%!important;
    min-height:320px!important;
    max-height:none!important;
    margin:0!important;
    padding:18px!important;
    overflow:hidden!important;
    text-align:left!important;
  }

  /* 1. Kicker */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-body > small,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-kicker{
    grid-row:1!important;
    display:block!important;
    min-height:18px!important;
    max-height:18px!important;
    margin:0!important;
    overflow:hidden!important;
    line-height:18px!important;
    white-space:nowrap!important;
    text-overflow:ellipsis!important;
  }

  /* 2. Title */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-body > h3,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-title{
    grid-row:2!important;
    display:-webkit-box!important;
    min-height:54px!important;
    max-height:54px!important;
    margin:0!important;
    overflow:hidden!important;
    font-family:inherit!important;
    font-size:19px!important;
    font-weight:800!important;
    line-height:1.28!important;
    text-align:left!important;
    -webkit-line-clamp:2!important;
    -webkit-box-orient:vertical!important;
  }

  /* 3. Description */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-excerpt{
    grid-row:3!important;
    display:-webkit-box!important;
    min-height:66px!important;
    max-height:69px!important;
    margin:0!important;
    overflow:hidden!important;
    font-size:12.5px!important;
    line-height:1.35!important;
    text-align:left!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
  }
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-excerpt.is-empty{
    visibility:hidden!important;
  }
  body.afiwai-smart-shop-managed-page .afiwai-product-card-read-more{
    display:none!important;
  }

  /* 4. Swatches */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-swatches,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__swatches{
    grid-row:4!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    min-width:0!important;
    min-height:24px!important;
    height:24px!important;
    margin:0!important;
    padding:1px!important;
    gap:7px!important;
    overflow:hidden!important;
  }

  /* 5 + 6. Price then button. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-footer,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__footer,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-bottom{
    grid-row:5 / span 2!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:54px 46px!important;
    gap:8px!important;
    align-items:stretch!important;
    width:100%!important;
    height:108px!important;
    min-height:108px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card-price-group{
    grid-row:1!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    justify-content:center!important;
    min-height:54px!important;
    margin:0!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card-price-prefix{
    display:block!important;
    margin:0 0 2px!important;
    color:#6b7e91!important;
    font-size:10.5px!important;
    font-weight:800!important;
    line-height:1!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card-price,
  body.afiwai-smart-shop-managed-page .afiwai-product-card__price{
    display:block!important;
    width:100%!important;
    margin:0!important;
    font-size:23px!important;
    font-weight:900!important;
    line-height:1.05!important;
    text-align:left!important;
    white-space:nowrap!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-smart-add-to-cart,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__action{
    grid-row:2!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-width:0!important;
    min-height:46px!important;
    height:46px!important;
    margin:0!important;
  }
}

/* Tablets: one horizontal card per row when space becomes tight. */
@media(min-width:783px) and (max-width:1100px){
  body.afiwai-smart-shop-managed-page .afiwai-v3-product-grid,
  body.afiwai-smart-shop-managed-page .afiwai-catalog-v3__grid,
  body.afiwai-smart-shop-managed-page .afiwai-smart-catalog-grid{
    grid-template-columns:1fr!important;
  }
}

/* ==========================================================
   MOBILE : card height follows content, everything inside
   ========================================================== */
@media(max-width:782px){

  body.afiwai-smart-shop-managed-page .afiwai-v3-product-grid,
  body.afiwai-smart-shop-managed-page .afiwai-catalog-v3__grid,
  body.afiwai-smart-shop-managed-page .afiwai-smart-catalog-grid,
  body.afiwai-smart-shop-managed-page .afiwai-smart-catalog,
  body.afiwai-smart-shop-managed-page .afiwai-cs-gallery{
    grid-template-columns:1fr!important;
    grid-auto-rows:auto!important;
    align-items:start!important;
  }

  /* Natural card height. */
  body.afiwai-smart-shop-managed-page .afiwai-preview-product-card.afiwai-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-classic .afiwai-preview-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-light .afiwai-preview-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-pro .afiwai-preview-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-elegant .afiwai-preview-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-template-studio .afiwai-preview-product-card{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }

  /* Full image: no crop, no fixed height. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-media,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-image{
    position:relative!important;
    display:grid!important;
    place-items:center!important;
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    aspect-ratio:4 / 3!important;
    overflow:hidden!important;
    background:#fff!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-media img,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-image img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  /* Natural content flow. No grid-row/height inherited from desktop. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-body,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-smart-card-body,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__body{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:14px!important;
    overflow:visible!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-body > small,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-kicker{
    order:10!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 0 7px!important;
    line-height:1.2!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-body > h3,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-title{
    order:20!important;
    display:block!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 0 9px!important;
    overflow:visible!important;
    font-family:inherit!important;
    font-size:20px!important;
    font-weight:800!important;
    line-height:1.25!important;
    -webkit-line-clamp:unset!important;
  }

  /* Collapsed description saves room, full text remains in DOM. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-excerpt{
    order:30!important;
    display:-webkit-box!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    overflow:hidden!important;
    font-size:12.5px!important;
    line-height:1.5!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
  }
  body.afiwai-smart-shop-managed-page .afiwai-product-card.is-description-expanded .afiwai-product-card-excerpt{
    display:block!important;
    overflow:visible!important;
    -webkit-line-clamp:unset!important;
  }
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-excerpt.is-empty{
    display:none!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card-read-more{
    order:31!important;
    display:inline-flex!important;
    align-self:flex-start!important;
    min-height:30px!important;
    margin:4px 0 8px!important;
    padding:0!important;
    border:0!important;
    background:transparent!important;
    color:#0064C0!important;
    font-size:11px!important;
    font-weight:800!important;
    line-height:1!important;
    text-decoration:underline!important;
    cursor:pointer!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-swatches,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__swatches{
    order:40!important;
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:flex-start!important;
    width:100%!important;
    height:auto!important;
    min-height:24px!important;
    max-height:none!important;
    margin:0 0 9px!important;
    padding:1px!important;
    gap:7px!important;
    overflow:visible!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-footer,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__footer,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-bottom{
    order:50!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    padding:0!important;
    gap:9px!important;
    overflow:visible!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card-price-group{
    display:flex!important;
    flex-direction:column!important;
    align-items:flex-start!important;
    width:100%!important;
    min-height:0!important;
    margin:0!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card-price-prefix{
    display:block!important;
    margin:0 0 2px!important;
    font-size:10.5px!important;
    font-weight:800!important;
    line-height:1.05!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card-price,
  body.afiwai-smart-shop-managed-page .afiwai-product-card__price{
    display:block!important;
    width:100%!important;
    margin:0!important;
    font-size:25px!important;
    font-weight:900!important;
    line-height:1.05!important;
    white-space:nowrap!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-smart-add-to-cart,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__action{
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    min-height:46px!important;
    height:46px!important;
    margin:0!important;
  }
}


/* ==========================================================================
   2.28.23 — CORRECTIONS STRICTEMENT AUTORISÉES
   PC/tablette : uniquement bouton pleine largeur.
   Mobile : image entière, contenu visible, hauteur naturelle, Lire plus existant.
   ========================================================================== */

/* PC / tablette : AUCUNE modification de mise en page, uniquement le bouton. */
@media(min-width:783px){
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-smart-add-to-cart,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-action,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__action{
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    box-sizing:border-box!important;
  }
}

/* Mobile uniquement. */
@media(max-width:782px){

  /* 1. Image entière, sans recadrage et sans hauteur/ratio imposé. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-media,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-image{
    display:block!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-media img,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-image img{
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
    max-height:none!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  /* 2 + 4. Vignette et contenu en hauteur naturelle : rien ne sort du bloc. */
  body.afiwai-smart-shop-managed-page .afiwai-preview-product-card.afiwai-product-card,
  body.afiwai-smart-shop-managed-page .afiwai-product-card{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-body,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-smart-card-body,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__body{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
  }

  /* Titres toujours visibles entièrement. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-product-body > h3,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-title{
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    -webkit-line-clamp:unset!important;
  }

  /* 3. Description : compacte par défaut, complète avec le Lire plus déjà présent. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-excerpt{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card.is-description-expanded .afiwai-product-card-excerpt{
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    -webkit-line-clamp:unset!important;
  }

  /* Pastilles, prix et bouton restent tous dans le flux du bloc. */
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-swatches,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__swatches,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-footer,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__footer,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-preview-bottom{
    height:auto!important;
    max-height:none!important;
    overflow:visible!important;
  }

  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-smart-add-to-cart,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card-action,
  body.afiwai-smart-shop-managed-page .afiwai-product-card .afiwai-product-card__action{
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    box-sizing:border-box!important;
  }
}

/* ==========================================================================
   2.28.24 — CORRECTIF CIBLÉ VIGNETTES PRODUITS
   Demande :
   - desktop/tablette : bouton d'action sur 100 % de la largeur disponible ;
   - mobile : aucune zone rognée, titre visible, description extensible,
     prix et bouton séparés, hauteur de carte dictée par son contenu.
   Aucun autre composant n'est concerné.
   ========================================================================== */

/* Desktop / tablette : le pied de carte devient une pile pleine largeur.
   Le sélecteur volontairement renforcé neutralise les anciennes règles
   spécifiques au template Studio sans modifier le reste de la vignette. */
@media (min-width:783px) {
  body.afiwai-smart-shop-managed-page
  .afiwai-product-card
  .afiwai-preview-bottom.afiwai-product-card-footer {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:54px 46px!important;
    gap:8px!important;
    width:100%!important;
    height:108px!important;
    min-height:108px!important;
    max-height:none!important;
    align-items:stretch!important;
    justify-items:stretch!important;
    overflow:visible!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-product-card
  .afiwai-preview-bottom.afiwai-product-card-footer
  .afiwai-product-card-price-group {
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    min-width:0!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-product-card
  .afiwai-preview-bottom.afiwai-product-card-footer
  .afiwai-smart-add-to-cart.afiwai-product-card__action {
    grid-column:1!important;
    grid-row:2!important;
    display:flex!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    box-sizing:border-box!important;
  }
}

/* Mobile : neutralisation explicite des anciennes hauteurs fixes 220/440 px
   du template Studio. La carte et son corps suivent désormais le contenu. */
@media (max-width:782px) {
  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-product-card.afiwai-product-card {
    display:flex!important;
    flex-direction:column!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:hidden!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-product-image.afiwai-product-media {
    display:block!important;
    flex:0 0 auto!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    aspect-ratio:auto!important;
    overflow:hidden!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-product-image.afiwai-product-media img {
    display:block!important;
    width:100%!important;
    height:auto!important;
    max-width:100%!important;
    max-height:none!important;
    margin:0 auto!important;
    object-fit:contain!important;
    object-position:center!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-product-body.afiwai-smart-card-body {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    padding:14px!important;
    overflow:visible!important;
  }

  /* Les libellés et titres ne sont plus tronqués. */
  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-product-body.afiwai-smart-card-body
  > small.afiwai-product-card-kicker {
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 0 7px!important;
    overflow:visible!important;
    white-space:normal!important;
    text-overflow:clip!important;
    line-height:1.2!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-product-body.afiwai-smart-card-body
  > h3.afiwai-product-card-title {
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0 0 9px!important;
    overflow:visible!important;
    -webkit-line-clamp:unset!important;
    -webkit-box-orient:initial!important;
  }

  /* La description reste compacte, mais tout son texte est accessible via
     le bouton "Lire plus" déjà fourni par Smart Shop. */
  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-product-body.afiwai-smart-card-body
  > .afiwai-product-card-excerpt {
    display:-webkit-box!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    margin:0!important;
    overflow:hidden!important;
    -webkit-line-clamp:3!important;
    -webkit-box-orient:vertical!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-product-card.afiwai-product-card.is-description-expanded
  .afiwai-preview-product-body.afiwai-smart-card-body
  > .afiwai-product-card-excerpt {
    display:block!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    -webkit-line-clamp:unset!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-product-body.afiwai-smart-card-body
  > .afiwai-product-card-read-more {
    display:inline-flex!important;
    align-self:flex-start!important;
    flex:0 0 auto!important;
  }

  /* Prix et action sont deux blocs successifs : aucune superposition possible. */
  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-bottom.afiwai-product-card-footer {
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    grid-template-columns:none!important;
    grid-template-rows:none!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    gap:9px!important;
    margin:0!important;
    padding:0!important;
    overflow:visible!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-bottom.afiwai-product-card-footer
  .afiwai-product-card-price-group {
    position:static!important;
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    margin:0!important;
  }

  body.afiwai-smart-shop-managed-page
  .afiwai-template-studio
  .afiwai-preview-bottom.afiwai-product-card-footer
  .afiwai-smart-add-to-cart.afiwai-product-card__action {
    position:relative!important;
    display:flex!important;
    flex:0 0 auto!important;
    width:100%!important;
    max-width:none!important;
    min-width:0!important;
    height:46px!important;
    min-height:46px!important;
    max-height:46px!important;
    margin:0!important;
    box-sizing:border-box!important;
  }
}

