/* ============================================================
   AVENUE BELMONT — CARTE PRODUIT (composant partagé)
   Utilisé sur la home (Nos Dernières Nouveautés) ET la page Montres.
   ============================================================ */

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

.ab-product-card__img-wrap {
  aspect-ratio: 1 / 1;            /* carré */
  overflow: hidden;
  margin-bottom: var(--space-5);
  position: relative;
  background: var(--color-grey-100);
}

/* Slides empilés (1 seule visible à la fois) */
.ab-product-card__slides {
  position: absolute;
  inset: 0;
}
.ab-product-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ab-product-card__img.is-active { opacity: 1; }

/* Léger zoom au survol sur l'image active (uniquement si une seule image) */
.ab-product-card:not(.ab-product-card--multi):hover .ab-product-card__img.is-active {
  transform: scale(1.04);
  filter: brightness(1.04);
  transition: opacity 0.4s ease, transform 1.2s cubic-bezier(0.25,0.46,0.45,0.94), filter 1.2s ease;
}

.ab-product-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: var(--color-grey-100);
}

/* ── Flèches de navigation (visibles au survol) ── */
.ab-product-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.85);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  border: none;
  border-radius: 50%;
  color: #290B0B;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.25s ease, background 0.2s ease;
  z-index: 3;
}
.ab-product-card__nav--prev { left: 10px; }
.ab-product-card__nav--next { right: 10px; }
.ab-product-card__nav:hover { background: #fff; }
.ab-product-card--multi:hover .ab-product-card__nav { opacity: 1; }

/* ── Points indicateurs ── */
.ab-product-card__dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ab-product-card--multi:hover .ab-product-card__dots { opacity: 1; }
.ab-product-card__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  transition: background 0.2s ease;
}
.ab-product-card__dot.is-active { background: #fff; }

/* Sur écran tactile, on montre toujours les flèches (pas de hover fiable) */
@media (hover: none) {
  .ab-product-card--multi .ab-product-card__nav,
  .ab-product-card--multi .ab-product-card__dots { opacity: 1; }
}

/* Info centrée */
.ab-product-card__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}

/* Nom — Red Rose, majuscule, demi-gras, 16px */
.ab-product-card__name {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--color-black);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 4px;
}

/* Référence — Hauora fin, 12px, juste sous le nom */
.ab-product-card__ref {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: var(--weight-light);
  color: var(--color-grey-600);
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

/* Mention "Authentifiée" — même design que le badge "Certifié par Avenue
   Belmont" de la fiche produit, répété sur chaque carte pour devenir un
   réflexe visuel. */
.ab-product-card__certified {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: var(--space-3);
}
.ab-product-card__certified-icon {
  flex-shrink: 0;
  font-size: 0.95rem;
  color: #51161F;
}
.ab-product-card__certified-label {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #51161F;
}

/* Prix — Hauora gras, 16px */
.ab-product-card__price {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--weight-bold);
  color: var(--color-black);
  margin-top: 0;
  margin-bottom: var(--space-4);
}
.ab-product-card__price .woocommerce-Price-amount { color: var(--color-black); }

/* Libellé CTA : version longue par défaut, version courte cachée */
.ab-cta-short { display: none; }
.ab-cta-full  { display: inline; }

/* ── Badge "Vendu" — discret mais visible ── */
.ab-product-card__badge-vendu {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  background: rgba(13, 13, 13, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: var(--weight-bold, 700);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  line-height: 1;
  pointer-events: none;
}

/* Image légèrement désaturée pour signaler la pièce vendue */
.ab-product-card--vendu .ab-product-card__img-wrap {
  position: relative;
}
.ab-product-card--vendu .ab-product-card__img {
  filter: grayscale(0.4) brightness(0.94);
}
