.card-product {
  display: flex;
  flex-direction: column;
  width: 350px;
  min-height: 500px;
  flex-shrink: 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-product__media {
  width: 100%;
  height: 256px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 12px;
  box-sizing: border-box;
}

.card-product__media img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.card-product__body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  flex: 1;
  min-height: 0;
}

.card-product__top {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-product__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  line-height: 32px;
  color: var(--color-text-dark);
  text-align: center;
  text-transform: uppercase;
}

.card-product__desc {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: var(--color-text-body);
  text-align: center;
}

.card-product__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 16px;
}

.card-product__price {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
}

.card-product__price-value {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--color-accent-gold);
}

.card-product__price-tax {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 12px;
  line-height: 20px;
  color: var(--color-text-body);
}

/* Padding-top plus généreux au-dessus du prix + bouton panier
   (état par défaut, sans feedback actif) */
.card-product__footer {
  padding-top: 24px !important;
}

/* ============================================================
   Feedback inline "Produit ajouté au panier"
   Le footer ne change PAS (pas de background, pas d'override de padding) :
   seule la pill gold (.card-product__added-feedback) reçoit les styles
   visuels. Comme ça la pill apparaît exactement à la place du bouton
   d'origine, sans extra padding-top parasite.
   ============================================================ */
.card-product__footer.is-product-added,
.card-product-related__footer.is-product-added {
  justify-content: center;  /* centre la pill horizontalement */
  animation: dpm-added-pop 240ms ease;
}
.card-product__added-feedback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--color-accent-gold);
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  line-height: 16px;
  letter-spacing: 0.3px;
  color: #FFFFFF;
  text-align: center;
}
.card-product__added-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
}
.card-product__added-label {
  white-space: nowrap;
}

@keyframes dpm-added-pop {
  0%   { transform: scale(0.94); opacity: 0; }
  60%  { transform: scale(1.02); opacity: 1; }
  100% { transform: scale(1);    opacity: 1; }
}

/* Adaptation mobile : si le label est trop long, autorise le wrap */
@media (max-width: 480px) {
  .card-product__added-label {
    white-space: normal;
  }
  .card-product__added-feedback {
    font-size: 12px;
    gap: 8px;
  }
}
