/* ═══════════════════════════════════════════════════════════════════
   Carte produit — vocabulaire partagé
   ═══════════════════════════════════════════════════════════════════
   Une seule définition pour la home, le catalogue, la recherche et le
   comparateur. Les classes s'appelaient .mc-product-card* : elles
   étaient scopées au bloc de la home alors que quatre autres contextes
   s'en servaient. Renommées .mc-product-card* pour dire ce qu'elles sont.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Carte produit ─────────────────────────────────────────────── */

.mc-product-card {
  display: flex;
  flex-direction: column;
}

.mc-product-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--wp--custom--radius--lg);
  overflow: hidden;
  background-color: var(--wp--preset--color--blanc);
  box-shadow: var(--wp--preset--shadow--sm);
  transition:
    box-shadow var(--wp--custom--transition--base),
    transform var(--wp--custom--transition--base);
}

.mc-product-card__link:hover {
  box-shadow: var(--wp--preset--shadow--md);
}

.mc-product-card__link:focus-visible {
  outline: 2px solid var(--wp--preset--color--corail);
  outline-offset: 2px;
}

/* ── Image ─────────────────────────────────────────────────────── */

.mc-product-card__img-wrap {
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background-color: var(--wp--preset--color--gris-clair);
}

.mc-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image de survol : première image de galerie */
.mc-product-card__img--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 350ms ease;
}

.mc-product-card__link:hover .mc-product-card__img--hover {
  opacity: 1;
}

.mc-product-card__img--placeholder {
  width: 100%;
  height: 100%;
  background-color: var(--wp--preset--color--gris-moyen);
}

/* ── Corps de la carte ─────────────────────────────────────────── */

.mc-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.25rem 1.25rem;
  flex: 1;
}

.mc-product-card__cat {
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 600;
  font-variation-settings: "wght" 600;
  text-transform: uppercase;
  color: var(--wp--preset--color--corail);
}

.mc-product-card__cat a {
  text-decoration: none;
  color: inherit;
}

.mc-product-card__title {
  font-size: var(--wp--preset--font-size--base);
  font-weight: 600;
  font-variation-settings: "wght" 600;
  line-height: var(--wp--custom--typography--leading-normal);
  color: var(--wp--preset--color--teal-sombre);
  margin: 0;
}

/* ── Bloc prix ─────────────────────────────────────────────────── */

.mc-product-card__price {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  margin-block-start: auto;
  padding-block-start: 0.75rem;
}

.mc-product-card__price-label {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--gris-texte);
}

.mc-product-card__price-value {
  font-size: var(--wp--preset--font-size--lg);
  font-weight: 700;
  font-variation-settings: "wght" 700;
  color: var(--wp--preset--color--teal-sombre);
  line-height: 1;
}

/* Cible future du toggle HT/TTC (mc-core) */
.mc-product-card__price-value .woocommerce-Price-amount {
}

.mc-product-card__price-qty {
  font-size: var(--wp--preset--font-size--xs);
  color: var(--wp--preset--color--gris-texte);
}

