/* ==========================================================================
   Gadgets de Cuisine : carte produit (bascule 3, session 20), reprise de CandleTime.
   Chargée seulement quand gc_refonte( 'cartes' ) est vrai. Tout est sous body.gc-cartes.
   La carte garde les colonnes de Flatsome (classe « product-small col ») : 4, 3 et 2 selon l'écran.
   ========================================================================== */

body.gc-cartes .gc-carte-produit {
  min-width: 0;
  padding-bottom: 26px;
}

body.gc-cartes .gc-carte {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  color: var(--gc-encre);
  text-decoration: none;
}
body.gc-cartes .gc-carte:hover { color: var(--gc-encre); }

/* --- Image : carré à ratio fixe, fond blanc --- */
body.gc-cartes .gc-carte__image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: #fff;
  border: 1px solid var(--gc-trait);
  border-radius: var(--gc-radius);
}
body.gc-cartes .gc-carte__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
}
/* Photo sur fond blanc : entière, dans le carré blanc */
body.gc-cartes .gc-carte__im1 {
  object-fit: contain;
  padding: 6%;
  box-sizing: border-box;
}
/* Mise en scène : remplit le carré, visible au survol seulement (écran à souris) */
body.gc-cartes .gc-carte__im2,
body.gc-cartes .gc-carte__im2 img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
body.gc-cartes .gc-carte__im2 img {
  object-fit: cover;
  opacity: 0;
  transition: opacity var(--gc-transition);
}
@media (hover: hover) and (pointer: fine) {
  body.gc-cartes .gc-carte:hover .gc-carte__im2 img,
  body.gc-cartes .gc-carte:focus-visible .gc-carte__im2 img {
    opacity: 1;
  }
}
@media not all and (hover: hover) and (pointer: fine) {
  body.gc-cartes .gc-carte__im2 { display: none; }
}

/* --- Texte --- */
body.gc-cartes .gc-carte__texte {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.gc-cartes h3.gc-carte__titre {
  margin: 0;
  font-family: var(--gc-font-texte);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  color: inherit;
}
body.gc-cartes .gc-carte__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 10px;
}
body.gc-cartes .gc-carte__prix,
body.gc-cartes .gc-carte__prix .amount,
body.gc-cartes .gc-carte__prix bdi {
  font-size: 15px;
  font-weight: 700;
  line-height: normal;
  color: var(--gc-encre);
}
body.gc-cartes .gc-carte__des {
  font-weight: 400;
  color: var(--gc-texte);
}
body.gc-cartes .gc-carte__rupture {
  font-size: var(--gc-fs-meta);
  color: var(--gc-texte);
}

/* --- Pastilles de coloris (pas des liens) --- */
body.gc-cartes .gc-carte__pastilles {
  display: flex;
  align-items: center;
  gap: 4px;
}
body.gc-cartes .gc-pastille {
  display: block;
  width: 13px;
  height: 13px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 50%;
  background-color: var(--gc-clair);
}
body.gc-cartes .gc-pastille--metal { background: linear-gradient(135deg, #f4f4f4, #a8a8a8 55%, #e6e6e6); }
body.gc-cartes .gc-pastille--metal-or { background: linear-gradient(135deg, #f7e7a8, #c9a43c 55%, #f1dc8f); }
body.gc-cartes .gc-pastille--metal-or-rose { background: linear-gradient(135deg, #f6d6cb, #c98b78 55%, #efc7b8); }
body.gc-cartes .gc-pastille--metal-cuivre { background: linear-gradient(135deg, #f0c09a, #b06a3b 55%, #e2a77e); }
body.gc-cartes .gc-pastille--multicolore { background: conic-gradient(#e53935, #fbc02d, #43a047, #1e88e5, #8e24aa, #e53935); }
body.gc-cartes .gc-pastille--transparent { background: linear-gradient(135deg, #ffffff 45%, #dfe8ee 50%, #ffffff 55%); }
body.gc-cartes .gc-pastille--bois { background: linear-gradient(90deg, #c49a6c, #a87b4f 50%, #c49a6c); }
body.gc-cartes .gc-pastille-plus {
  font-size: 12px;
  line-height: 1;
  color: var(--gc-texte);
}

@media (max-width: 549px) {
  body.gc-cartes h3.gc-carte__titre { font-size: 14px; }
  body.gc-cartes .gc-carte-produit { padding-bottom: 20px; }
}
