/* Carte produit — valeurs transcrites du code source de la planche WF-03. */

.carte {
  width: 100%;
  height: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--raised);
  color: var(--ink);
}

/* L'image est carrée, pas en 4:3. */
.carte-visuel {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  background: var(--ghost);
  overflow: hidden;
}

.carte-badge {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 4px 7px;
  border-radius: 4px;
  background: var(--accent);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .08em;
}

.carte-favori {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raised);
}

.carte-corps {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.carte-meta {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--muted);
}

/* Le titre est borné à deux lignes : la hauteur de carte ne bouge pas. */
.carte-titre {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.carte-prix-ligne { display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; }
.carte-prix { font-size: 16px; font-weight: 700; color: var(--coral); }
.carte-ancien { font-size: 11.5px; color: var(--muted); text-decoration: line-through; }

.carte-stock { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.carte-stock span:last-child { font-size: 11.5px; line-height: 1.4; }
.carte-point { flex: 0 0 auto; width: 6px; height: 6px; border-radius: 999px; background: var(--muted); }

.carte-actions { display: none !important; }

.carte-action {
  flex: 1 1 0;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--page);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.carte-rond {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--raised);
}
/* Le glyphe du panier est dessiné en CSS dans le wireframe. */
.carte-rond .icon-cart { width: 18px; height: 18px; display: block; color: var(--ink); }
