/* Dernière Chance - v2.8.3
 * Design des cartes uniquement : aucune modification de prix ou de promotion.
 */
.derniere-chance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin: 30px 0;
}

.derniere-chance-product {
  min-width: 0;
}

.derniere-chance-card {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.derniere-chance-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
  border-color: rgba(0, 0, 0, .13);
}

.derniere-chance-image-link {
  position: relative;
  display: block;
  overflow: hidden;
  background: #f7f7f7;
  text-decoration: none;
}

.derniere-chance-image-wrap {
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.derniere-chance-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.derniere-chance-card:hover .derniere-chance-image {
  transform: scale(1.04);
}

.derniere-chance-badge,
.derniere-chance-discount {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  color: #222;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

.derniere-chance-discount {
  top: 12px;
  right: 12px;
  left: auto;
  background: #000;
  color: #fff;
  font-size: 14px;
  letter-spacing: 0;
}

.derniere-chance-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.derniere-chance-title {
  min-height: 44px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

.derniere-chance-title a {
  color: inherit;
  text-decoration: none;
}

.derniere-chance-title a:hover {
  text-decoration: none;
}

.derniere-chance-price {
  margin: 0 0 17px;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}

.derniere-chance-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding: 11px 13px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: opacity .2s ease, transform .2s ease;
  box-sizing: border-box;
}

.derniere-chance-button:hover {
  opacity: .82;
  text-decoration: none;
}

.derniere-chance-button span[aria-hidden="true"] {
  font-size: 18px;
  line-height: 1;
}

.derniere-chance-empty {
  padding: 18px 0;
}

@media (max-width: 1199px) {
  .derniere-chance-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .derniere-chance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}

@media (max-width: 575px) {
  .derniere-chance-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .derniere-chance-card-body {
    padding: 16px;
  }
}
