html.lenis,
  html.lenis body {
    height: auto;
  }
  
  .lenis.lenis-smooth {
    scroll-behavior: auto !important;
  }
  
  .lenis.lenis-smooth [data-lenis-prevent] { 
    overscroll-behavior: contain;
  } 
   
  .lenis.lenis-stopped {
    overflow: clip;
  } 
   
  .lenis.lenis-smooth iframe { 
    pointer-events: none; 
  }   
  
/* Product card — strictly equal-size cards regardless of content variation.
   Layout contract: 
     - card fills its parent (grid cell or swiper slide)
     - image-link is a square (aspect-ratio 1/1)
     - content has a reserved min-height so brand/price absence doesn't shrink it
     - title is clamped to 2 lines and reserves 2-line height even when 1 line
     - price is pushed to the bottom of the info column with margin-top:auto
   Result: every card has identical width × height across the whole catalog. */
.product-card {
  position: relative;     /* anchor for the .product-card__wishlist button */
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
}
/* No Y movement on hover — kept stable for a more professional feel. The
   image crossfade + cart badge already provide enough hover feedback. */

/* ---- Wishlist heart toggle (top-right of the card) ----
   Toggled by assets/script/wishlist.js — adds .is-active when in localStorage. */
.product-card__wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .92);
  border: 1px solid var(--bs-color-border);
  border-radius: 999px;
  color: var(--bs-color-text);
  cursor: pointer;
  padding: 0;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.product-card__wishlist:hover {
  background: #fff;
  border-color: var(--bs-color-primary);
  color: var(--bs-color-primary);
}
.product-card__wishlist.is-active {
  background: var(--bs-color-primary);
  border-color: var(--bs-color-primary);
  color: #fff;
}
.product-card__wishlist.is-active svg {
  fill: currentColor;
}

.product-card__image-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  text-decoration: none;
  flex: 0 0 auto;
}

.product-card__image {
  display: block;
  width: 100%;
  height: 100% !important;
  object-fit: contain;
}

/* Hover crossfade — front image fades out, back image (1st gallery item)
   fades in. Only enabled when .has-hover is present (i.e. a gallery image
   exists), so single-image products keep the static behaviour. */
.product-card__image-link.has-hover .product-card__image {
  position: absolute;
  inset: 0;
  transition: opacity .35s ease;
}
.product-card__image-link.has-hover .product-card__image--back {
  opacity: 0;
}
.product-card:hover .product-card__image-link.has-hover .product-card__image--front {
  opacity: 0;
}
.product-card:hover .product-card__image-link.has-hover .product-card__image--back {
  opacity: 1;
}

.product-card__content {
  flex: 1 1 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0 0;
}

.product-card__infos {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 92px;
}

/* Product card title — role: body (medium weight + snug leading overrides) */
.product-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  min-width: 0;
  min-height: calc(var(--bs-text-base) * var(--bs-leading-snug) * 2);
  font-family:    var(--bs-font-family), sans-serif;
  font-size:      var(--bs-type-body-size);
  font-weight:    var(--bs-weight-medium);             /* body weight override */
  line-height:    var(--bs-leading-snug);              /* body leading override: snug for 2-line clamp */
  letter-spacing: var(--bs-type-body-tracking);
  text-transform: var(--bs-type-body-case);
}

.product-card__title a {
  display: block;
  color: inherit;
  text-decoration: none;
}

/* Product card brand — role: body-sm (tight leading for compact stacked label) */
.product-card__brand {
  color: var(--bs-color-muted);
  min-height: 1em;
  font-family:    var(--bs-font-family), sans-serif;
  font-size:      var(--bs-type-body-sm-size);
  font-weight:    var(--bs-type-body-sm-weight);
  line-height:    1.2;                                 /* body-sm leading override: tight for label-style */
  letter-spacing: var(--bs-type-body-sm-tracking);
  text-transform: var(--bs-type-body-sm-case);
}

/* "À partir de" prefix on a variable product's price — smaller & muted so the
   amount stays the visual anchor. */
.product-card__price-from {
  flex-basis: 100%;
  color: var(--bs-color-muted);
  font-size:   var(--bs-text-xs);
  font-weight: var(--bs-type-body-sm-weight);
  line-height: 1;
}

/* UGS / reference — discreet line under the brand. */
.product-card__sku {
  margin-top: 2px;
  color: var(--bs-color-muted);
  font-family:    var(--bs-font-family), sans-serif;
  font-size:      var(--bs-text-xs);
  line-height:    1.2;
  letter-spacing: var(--bs-type-body-sm-tracking);
}

/* Price — role: h3 (md size, bold) — visual anchor of the card.
   Inline-flex so a sale price renders as: [Yellow highlighted reduced price]
   [smaller struck-through original], on a single baseline. */
.product-card__price {
  margin-top: auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  color: var(--bs-color-text);
  font-family:    var(--bs-font-family), sans-serif;
  font-size:      var(--bs-text-md);
  font-weight:    var(--bs-type-h3-weight);
  line-height:    var(--bs-leading-snug);
  letter-spacing: var(--bs-type-h3-tracking);
  text-transform: var(--bs-type-h3-case);
}
/* Sale (reduced) price — Yellow highlight + black text. */
.product-card__price ins {
  display: inline-block;
  padding: 2px 8px;
  background: var(--bs-color-accent);
  color: #000;
  text-decoration: none;
  border-radius: 4px;
  line-height: 1.1;
}
/* Original price — smaller, struck through, muted. */
.product-card__price del {
  margin: 0;
  color: var(--bs-color-muted);
  font-size: var(--bs-text-sm);
  font-weight: var(--bs-type-body-sm-weight);
  text-decoration: line-through;
}

/* Cart badge — one-click AJAX add to cart. The button holds TWO icons (cart
   + check); CSS swaps which one is visible based on the `.is-added` state
   set by assets/script/add-to-cart.js. */
.product-card__cart-badge {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bs-color-primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.product-card__cart-badge:hover {
  background: var(--bs-color-primary-dark);
  transform: scale(1.05);
}
.product-card__cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: inherit;
}
.product-card__cart-icon svg { display: block; }

/* Default: cart icon visible, check hidden. */
.product-card__cart-badge .product-card__cart-icon--ok { display: none; }

/* While the AJAX call is running, dim slightly + disable hover scale. */
.product-card__cart-badge.is-loading {
  opacity: .8;
  transform: none;
  cursor: progress;
}

/* Added state — flip to Batiself Yellow + dark check, no hover bump. */
.product-card__cart-badge.is-added {
  background: var(--bs-color-accent);
  color: var(--bs-color-primary-dark);
  transform: scale(1.08);
}
.product-card__cart-badge.is-added:hover {
  background: var(--bs-color-accent);
  transform: scale(1.08);
}
.product-card__cart-badge.is-added .product-card__cart-icon--add { display: none; }
.product-card__cart-badge.is-added .product-card__cart-icon--ok  { display: inline-flex; }


/* Site-wide container. Reads --bs-container-w and --bs-container-pad from
   tokens.css so it stays in sync with .home-container, .bs-header__inner and
   .bs-footer__inner — every wrapper on the site renders at the same width.
   Use this class on any new section that doesn't already inherit one of the
   other container classes. */
.responsive-container {
  width: 100%;
  max-width: var(--bs-container-w);
  margin: 0 auto;
  padding: 0 var(--bs-container-pad);
  box-sizing: border-box;
}
 

