/* Shared product grid and card: all catalogue contexts use this stylesheet. */
.af-catalog{padding:0;background:transparent;border-radius:0;box-shadow:none}
:is(.af-cat,.af-catalog) ul.products{display:grid !important;grid-template-columns:repeat(var(--af-grid-cols,4),minmax(0,1fr));gap:22px;margin:0 !important;padding:0;list-style:none;clear:both}
:is(.af-cat,.af-catalog) ul.products::before,:is(.af-cat,.af-catalog) ul.products::after{display:none !important;content:none !important}
:is(.af-cat,.af-catalog) ul.products li.product{display:flex;flex-direction:column;width:auto !important;float:none !important;margin:0 !important;padding:0 0 18px !important;background:var(--blanc);border-radius:var(--af-radius-lg);overflow:hidden;text-align:left;list-style:none;box-shadow:0 8px 26px rgba(23,37,28,.07);transition:transform .3s,box-shadow .3s;position:relative}
:is(.af-cat,.af-catalog) ul.products li.product:hover{transform:translateY(-5px);box-shadow:0 20px 44px rgba(23,37,28,.14)}
:is(.af-cat,.af-catalog) li.product > a.woocommerce-LoopProduct-link,:is(.af-cat,.af-catalog) li.product > a{flex:0 0 auto;text-decoration:none;color:inherit;display:block;margin-bottom:16px}
:is(.af-cat,.af-catalog) li.product img{width:100% !important;height:auto;aspect-ratio:1/1;object-fit:cover;margin:0 0 14px !important;border-radius:0;display:block;background:linear-gradient(160deg,#eef1ea,#f5f4ed)}
:is(.af-cat,.af-catalog) li.product .woocommerce-loop-product__title{font-family:'Bricolage Grotesque',sans-serif;font-size:16px;font-weight:750;line-height:1.25;color:var(--encre);padding:0 16px !important;margin:0 0 6px;min-height:2.5em}
:is(.af-cat,.af-catalog) li.product .star-rating{margin:0 16px 8px;font-size:13px;color:var(--af-color-gold)}
:is(.af-cat,.af-catalog) li.product .af-note{display:flex;align-items:center;gap:6px;margin:0 16px 8px;font-size:12.5px;font-weight:700;color:#303640}
:is(.af-cat,.af-catalog) li.product .af-note .etoiles{color:var(--af-color-gold);font-size:12px;letter-spacing:1.5px}
:is(.af-cat,.af-catalog) li.product .price{display:block;padding:0 16px;color:var(--vert);font-weight:800;font-size:16px;font-family:'Bricolage Grotesque',sans-serif;margin-top:2px}
:is(.af-cat,.af-catalog) li.product .price del{color:#9aa79d;font-weight:600;font-size:13px;margin-right:6px}
:is(.af-cat,.af-catalog) li.product .price ins{text-decoration:none}
:is(.af-cat,.af-catalog) li.product .af-3x{display:block;padding:2px 16px 0;color:#7a8a7e;font-size:12px;font-weight:600;font-family:'Hanken Grotesk',sans-serif}
:is(.af-cat,.af-catalog) li.product .af-3x b{display:inline-block;background:#ffb3c7;color:#0a0a0a;font-weight:800;font-size:9px;line-height:1;padding:3px 6px 4px;border-radius:4px;letter-spacing:.01em;margin-left:3px;vertical-align:middle}
:is(.af-cat,.af-catalog) li.product .onsale{position:absolute;top:12px;left:12px;background:var(--corail);color:var(--af-color-white);font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:11.5px;padding:5px 11px;border-radius:var(--af-radius-pill);min-height:0;min-width:0;line-height:1.2;margin:0}
:is(.af-cat,.af-catalog) li.product .button,:is(.af-cat,.af-catalog) li.product .added_to_cart{display:inline-flex !important;align-items:center;justify-content:center;margin:12px 16px 0 !important;margin-top:auto !important;background:var(--corail);color:var(--af-color-white);border:0;font-family:'Bricolage Grotesque',sans-serif;font-weight:800;font-size:14px;padding:11px 20px !important;border-radius:var(--af-radius-pill);box-shadow:0 8px 20px rgba(242,96,63,.32);transition:transform .2s,box-shadow .2s;text-decoration:none;cursor:pointer}
:is(.af-cat,.af-catalog) li.product .button:hover,:is(.af-cat,.af-catalog) li.product .added_to_cart:hover{transform:translateY(-2px);box-shadow:0 14px 28px rgba(242,96,63,.44);color:var(--af-color-white)}
:is(.af-cat,.af-catalog) li.product .added_to_cart{background:var(--vert);box-shadow:0 8px 20px rgba(47,107,69,.3)}

/* ==========================================================================
   CARTE PRODUIT COMMUNE â€” accueil, archives, recherche et produits associÃ©s
   ========================================================================== */
.af-product-card {
  --af-card-bg: var(--af-color-white, #fff);
  --af-card-ink: var(--af-color-ink, var(--af-color-ink));
  --af-card-green: var(--af-color-green, var(--af-color-green));
  --af-card-coral: var(--af-color-coral, var(--af-color-coral));
  --af-card-radius: var(--af-radius-lg, 20px);
  box-sizing: border-box;
}

a.af-product-card--custom {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  color: var(--af-card-ink, var(--af-color-ink));
  background: var(--af-card-bg);
  border-radius: var(--af-card-radius);
  box-shadow: 0 8px 26px rgba(23, 37, 28, .08);
  text-decoration: none;
}

.af-product-card__image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(160deg, #eef1ea, #f7f6f1);
}

.af-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: stretch;
  padding: 16px;
}

.af-product-card__title {
  display: block;
  min-height: 2.5em;
  margin: 0 0 8px;
  color: var(--af-card-ink, var(--af-color-ink));
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}

.af-product-card__rating,
.af-product-card .af-note {
  display: block;
  margin: 0 0 8px;
  color: var(--af-card-ink, var(--af-color-ink));
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.af-product-card__stars,
.af-product-card .etoiles {
  color: var(--af-color-gold);
  letter-spacing: 1px;
}

.af-product-card__price,
.af-product-card .price {
  display: block;
  margin-top: auto;
  color: var(--af-card-green);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.af-product-card__from {
  font-size: .92em;
}

.af-product-card__klarna,
.af-product-card .af-3x {
  display: block;
  margin-top: 3px;
  color: #68766b;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 12px;
  font-weight: 600;
}

.af-product-card__klarna b,
.af-product-card .af-3x b {
  display: inline-block;
  padding: 3px 6px 4px;
  color: #0a0a0a;
  background: #ffb3c7;
  border-radius: 4px;
  font-size: 9px;
  line-height: 1;
}

.af-product-card__button,
.af-product-card .button.af-decouvrir {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 14px;
  padding: 11px 20px;
  color: #fff;
  background: var(--af-card-coral);
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(242, 96, 63, .28);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

/* Boucles WooCommerce : mÃªme carte, tout en conservant le balisage natif. */
.woocommerce ul.products li.product.af-product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--af-card-bg);
  border-radius: var(--af-card-radius);
  box-shadow: 0 8px 26px rgba(23, 37, 28, .08);
}

.woocommerce ul.products li.product.af-product-card > a.woocommerce-loop-product__link {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.woocommerce ul.products li.product.af-product-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: linear-gradient(160deg, #eef1ea, #f7f6f1);
}

.woocommerce ul.products li.product.af-product-card .woocommerce-loop-product__title {
  min-height: 2.5em;
  color: var(--af-card-ink, var(--af-color-ink));
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.25;
}

.woocommerce ul.products li.product.af-product-card .price {
  color: var(--af-card-green);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 16px;
  font-weight: 800;
}

.woocommerce ul.products li.product.af-product-card > .button.af-decouvrir {
  margin-top: auto;
}

@media (max-width: 640px) {
  .af-product-card__body {
    padding: 14px;
  }

  .af-product-card__title,
  .woocommerce ul.products li.product.af-product-card .woocommerce-loop-product__title {
    font-size: 15px;
  }

  .af-product-card__button,
  .af-product-card .button.af-decouvrir {
    min-height: 42px;
    padding: 10px 16px;
  }
}


/* ==========================================================================
   MÃ‰TADONNÃ‰ES CARTE â€” ordre stable, avis et marque Klarna
   ========================================================================== */
.af-product-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 18px;
  margin: 0 0 8px;
}

.af-product-card__stars {
  --af-rating: 0%;
  display: inline-block;
  color: transparent;
  background: linear-gradient(
    90deg,
    var(--af-color-gold) 0,
    var(--af-color-gold) var(--af-rating),
    #cbd2cc var(--af-rating),
    #cbd2cc 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  letter-spacing: 1px;
  white-space: nowrap;
}

.af-product-card__review-count {
  color: #536159;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.af-product-card__rating--empty .af-product-card__review-count {
  color: #7c8880;
}

.af-product-card__giftcard-note {
  display: block;
  min-height: 18px;
  margin: 0 0 8px;
  color: var(--af-card-green);
  font-size: 12px;
  font-weight: 750;
}

.af-product-card__klarna {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.af-product-card__klarna .af-klarna-logo {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 3px 7px 4px;
  color: #0a0a0a;
  background: #ffb3c7;
  border-radius: 4px;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: -.2px;
  line-height: 1;
}

.woocommerce ul.products li.product.af-product-card .woocommerce-loop-product__title {
  margin-bottom: 8px;
}

.woocommerce ul.products li.product.af-product-card .price {
  margin-top: 0;
}

.woocommerce ul.products li.product.af-product-card > .button.af-decouvrir {
  margin-top: 14px;
}

@media (max-width: 640px) {
  .af-product-card__rating {
    gap: 4px;
  }

  .af-product-card__stars {
    font-size: 12px;
    letter-spacing: 0;
  }

  .af-product-card__review-count,
  .af-product-card__giftcard-note {
    font-size: 11px;
  }
}


/* ==========================================================================
   FINITION CARTE â€” couleurs stables, prix corail et logo Klarna vectoriel
   ========================================================================== */
.af-product-card__price,
.af-product-card__price *,
.woocommerce ul.products li.product.af-product-card .price,
.woocommerce ul.products li.product.af-product-card .price * {
  color: var(--af-card-coral, var(--af-color-coral));
  font-size: 14.4px;
}

a.af-product-card--custom:hover,
a.af-product-card--custom:focus,
a.af-product-card--custom:hover .af-product-card__title,
a.af-product-card--custom:focus .af-product-card__title {
  color: var(--af-card-ink, var(--af-color-ink));
  transform: none;
}

a.af-product-card--custom:hover .af-product-card__price,
a.af-product-card--custom:hover .af-product-card__price *,
a.af-product-card--custom:focus .af-product-card__price,
a.af-product-card--custom:focus .af-product-card__price *,
.woocommerce ul.products li.product.af-product-card a:hover .price,
.woocommerce ul.products li.product.af-product-card a:hover .price *,
.woocommerce ul.products li.product.af-product-card a:focus .price,
.woocommerce ul.products li.product.af-product-card a:focus .price * {
  color: var(--af-card-coral, var(--af-color-coral));
}

.woocommerce ul.products li.product.af-product-card a:hover .woocommerce-loop-product__title,
.woocommerce ul.products li.product.af-product-card a:focus .woocommerce-loop-product__title {
  color: var(--af-card-ink, var(--af-color-ink));
}

.af-product-card__klarna .af-klarna-logo {
  width: 36px;
  min-width: 36px;
  min-height: 14px;
  padding: 1px 3px;
  border-radius: 3px;
}

.af-klarna-logo__svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  fill: #0a0a0a;
}

.af-klarna-logo__svg text {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: -.35px;
}


/* ==========================================================================
   ALIGNEMENT VERTICAL â€” titre, Ã©toiles, prix puis Klarna
   ========================================================================== */
.af-product-card__body,
.woocommerce ul.products li.product.af-product-card > a.woocommerce-loop-product__link {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.af-product-card__title,
.woocommerce ul.products li.product.af-product-card .woocommerce-loop-product__title {
  min-height: 0;
  margin-bottom: 0;
}

.af-product-card__rating {
  margin: 0 0 8px;
}

.af-product-card__price,
.woocommerce ul.products li.product.af-product-card .price {
  margin: 0;
}

.af-product-card__klarna {
  margin-top: 3px;
  white-space: nowrap;
  flex-wrap: nowrap;
}


/* ==========================================================================
   AXE COMMUN â€” contenu de carte et badge Klarna
   ========================================================================== */
.af-product-card__rating,
.af-product-card__klarna {
  box-sizing: border-box;
  padding-right: 16px;
  padding-left: 16px;
}

.af-product-card__klarna .af-klarna-logo {
  box-sizing: border-box;
  width: 42px;
  min-width: 42px;
  min-height: 16px;
  padding: 2px 0;
  border-radius: 4px;
}

.af-product-card__klarna .af-klarna-logo__svg {
  width: 42px;
  max-width: 42px;
  height: 12px;
}

.af-product-card__klarna .af-klarna-logo__svg text {
  font-family: "Hanken Grotesk", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: -.2px;
}


/* ==========================================================================
   COMPACTAGE CARTES â€” badge Klarna accueil et bouton rapprochÃ©
   ========================================================================== */
.af-product-card__klarna {
  display: block;
  margin-top: 2px;
  white-space: nowrap;
}

.woocommerce ul.products li.product.af-product-card > a.woocommerce-loop-product__link {
  flex: 0 0 auto;
}

.woocommerce ul.products li.product.af-product-card > .button.af-decouvrir {
  margin-top: 8px;
}


/* Le thÃ¨me ajoute ses propres marges : une carte compacte garde 8 px utiles. */
.woocommerce ul.products li.product.af-product-card > a.woocommerce-loop-product__link {
  margin-bottom: 0 !important;
}

.woocommerce ul.products li.product.af-product-card > .button.af-decouvrir {
  margin-top: 8px !important;
}


/* Badge Klarna identique aux cartes de lâ€™accueil. */
.af-product-card__klarna .klarna {
  display: inline-block;
  height: 16px;
  padding: 3px 6px 4px;
  color: #0a0a0a;
  background: #ffb3c7;
  border-radius: 4px;
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}


/* Carte cadeau : mÃªme axe que le titre, accent corail. */
.af-product-card__giftcard-note {
  box-sizing: border-box;
  padding-right: 16px;
  padding-left: 16px;
  color: var(--af-card-coral, var(--af-color-coral));
}
	


/* One card layout for every native WooCommerce product loop. */
.woocommerce ul.products li.product.af-product-card{display:flex!important;flex-direction:column;min-width:0;height:100%;padding-bottom:18px!important}
.woocommerce ul.products li.product.af-product-card>a.woocommerce-loop-product__link{display:flex;flex:1 1 auto!important;flex-direction:column;margin:0!important}
.woocommerce ul.products li.product.af-product-card .woocommerce-loop-product__title{min-height:2.5em;margin:0 0 6px!important;line-height:1.25}
.woocommerce ul.products li.product.af-product-card .af-product-card__rating{min-height:18px;margin:0 0 4px;line-height:18px}
.woocommerce ul.products li.product.af-product-card .price{min-height:1.3em;margin:0!important;line-height:1.3}
.woocommerce ul.products li.product.af-product-card>.af-product-card__klarna{min-height:22px;margin:3px 0 8px!important;white-space:normal}
.woocommerce ul.products li.product.af-product-card>.button.af-decouvrir{margin:8px 16px 0!important;flex:none;transition:background .2s,transform .2s,box-shadow .2s}
.woocommerce ul.products li.product.af-product-card>.button.af-decouvrir:hover{background:var(--af-color-coral-dark);transform:translateY(-2px)}
@media(max-width:480px){:is(.af-cat,.af-catalog) ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px}.woocommerce ul.products li.product.af-product-card .woocommerce-loop-product__title{min-height:2.5em}.woocommerce ul.products li.product.af-product-card .price{min-height:1.3em}}

/* Shared responsive columns; page modules only select a product list. */
@media(max-width:1000px){:is(.af-cat,.af-catalog) ul.products{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){:is(.af-cat,.af-catalog) ul.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
.woocommerce ul.products>li.product.af-product-card[hidden]{display:none!important}
