/* a4w_contenthomeblock3 2.0.0 — bloc « coup de cœur » (produit mis en avant).
   Charte v2 Gumuche, section « hm-ours » de la maquette d'accueil : image carrée à gauche (5/11),
   texte à droite (6/11), 72 px d'écart, centrés verticalement ; une colonne sous 768 px.
   Tout passe par les jetons du thème avec repli ; aucune police déclarée (le titre est un h2 du
   thème, le prix prend la police des titres du thème), aucun :root, aucun !important.
   Bouton : .btn.btn-secondary du thème, non restylé ici. */

.a4w-hb3 {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--a4w-container-xxl-max-width, 1360px);
  margin: 0 auto 64px;
  padding: 0 var(--a4w-container-gutter, 16px);
}

.a4w-hb3__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 72px;
  align-items: center;
}

/* Produit sans image et sans image téléversée : le texte occupe la ligne. */
.a4w-hb3__grid--solo {
  grid-template-columns: minmax(0, 1fr);
}

.a4w-hb3__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--border-radius, 3px);
  background-color: var(--light-bg, #FAF7F4);
}

/* Sur-titre : légende en capitales, encre 3 (12 px, plancher du site). */
.a4w-hb3__cap {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--muted-color, #6C6A6B);
}

/* Titre : taille, police, graisse et couleur viennent de la règle h2 du thème. */
.a4w-hb3__title {
  margin: 8px 0 24px;
}

.a4w-hb3__text {
  margin: 0 0 16px;
}

.a4w-hb3__text,
.a4w-hb3__text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--medium-gray, #565254);
}

.a4w-hb3__text p {
  margin: 0 0 16px;
}

.a4w-hb3__text > :last-child {
  margin-bottom: 0;
}

/* Nom du produit (encre 2) puis le prix (police des titres, encre). */
.a4w-hb3__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 8px;
  margin: 8px 0 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--medium-gray, #565254);
}

.a4w-hb3__amount {
  font-family: var(--font-family-title, inherit);
  font-size: 1.375rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-color, #1D191B);
}

.a4w-hb3__note,
.a4w-hb3__stock {
  margin: 8px 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--medium-gray, #565254);
}

.a4w-hb3__actions {
  margin-top: 24px;
}

.a4w-hb3__arrow {
  flex-shrink: 0;
  width: 1em;
  height: 1em;
}

@media (max-width: 991.98px) {
  .a4w-hb3__grid {
    gap: 40px;
  }
}

@media (max-width: 767.98px) {
  /* 16 px de gouttière, comme la maquette mobile et les autres blocs de l'accueil du thème :
     --a4w-container-gutter vaut 40 px jusqu'à 576 px puis 32 px (somme des deux côtés). */
  .a4w-hb3 {
    margin-bottom: 40px;
    padding-right: 16px;
    padding-left: 16px;
  }

  .a4w-hb3__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
}
