/* =========================
   FEATURED PRODUCTS – PREMIUM
   ========================= */

.featured-products {
  position: relative;
  padding: 7rem 4rem;
  display: flex;
  flex-direction: column;
  gap: 4rem;

  background: linear-gradient(
    to bottom,
    #faf7f8,
    #ffffff
  );

  overflow: hidden;
}

/* =========================
   PRODUCTS GRID
========================= */

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3.2rem;
}

/* =========================
   PRODUCT CARD
========================= */

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;

  padding: 2.6rem 2.4rem;
  min-height: 440px;

  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.92),
    rgba(255,255,255,0.72)
  );

  border-radius: 18px;

  /* bord visible mais doux */
  border: 1px solid rgba(0,0,0,0.10);

  transition:
    transform .45s var(--ease-premium),
    box-shadow .45s var(--ease-premium),
    border-color .45s var(--ease-premium);
}

/* ligne intérieure luxe */
.product-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 14px;
  border: 1px solid rgba(231,161,176,0.18);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity .45s var(--ease-premium);
}

.product-card:hover {
  transform: translateY(-10px);
  border-color: rgba(231,161,176,0.45);
  box-shadow:
    0 30px 70px rgba(0,0,0,0.08),
    0 14px 38px var(--rose-glow);
}

.product-card:hover::before {
  opacity: 1;
}

/* =========================
   BADGE (NOUVEAU / BEST SELLER)
   ========================= */

.product-badge {
  position: absolute;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 3;

  padding: 0.45rem 0.9rem;

  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;

  border-radius: 999px;

  background: rgba(255,255,255,0.85);
  color: var(--rose-primary);

  border: 1px solid rgba(231,161,176,0.45);
  backdrop-filter: blur(6px);

  box-shadow:
    0 6px 18px rgba(0,0,0,0.08);
}

/* variante best seller */
.product-badge.is-best {
  color: #8a6b3f;
  border-color: rgba(138,107,63,0.45);
}

/* =========================
   CARD HEADER
   ========================= */

.product-card-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.product-price {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--rose-primary);
  white-space: nowrap;
}

/* =========================
   PRODUCT IMAGE
   ========================= */

.product-image-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-wrapper img {
  max-width: 85%;
  height: auto;
  transition: transform .6s ease;
}

.product-card:hover img {
  transform: scale(1.06);
}

/* =========================
   CARD FOOTER
   ========================= */

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* WhatsApp main action */
.product-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;

  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;

  color: var(--dark-text);
  text-decoration: none;

  transition: color .3s ease;
}

.product-whatsapp i {
  font-size: 1rem;
  color: var(--rose-primary);
}

.product-whatsapp:hover {
  color: var(--rose-primary);
}

/* Secondary action */
.product-action {
  width: 40px;
  height: 40px;

  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: rgba(0,0,0,0.55);

  transition:
    background .3s ease,
    color .3s ease,
    border-color .3s ease;
}

.product-action:hover {
  background: rgba(231,161,176,0.12);
  border-color: rgba(231,161,176,0.45);
  color: var(--rose-primary);
}

/* =========================
   SECTION CTA
========================= */

.section-cta.align-center {
  display: flex;
  justify-content: center;
}

.section-cta.align-center .btn {
  padding: 1.1rem 2.8rem;
}

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .featured-products {
    padding: 5rem 2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   FEATURED PRODUCTS – RESPONSIVE
   ========================= */

/* Tablet */
@media (max-width: 1024px) {

  .featured-products {
    padding: 6rem 3rem;
    gap: 3.5rem;
  }

  .products-grid {
    gap: 2.6rem;
  }

  .product-card {
    padding: 2.2rem 2rem;
    min-height: auto;
  }
}

/* Mobile */
@media (max-width: 640px) {

  .featured-products {
    padding: 4.5rem 1.5rem;
    gap: 3rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .product-card {
    padding: 2rem 1.6rem;
    border-radius: 16px;
  }

  /* Désactiver les gros effets hover sur mobile */
  .product-card:hover {
    transform: none;
    box-shadow: none;
  }

  .product-card::before {
    display: none;
  }

  /* Header */
  .product-name {
    font-size: 0.95rem;
    text-align: center;
  }

  .product-price {
    font-size: 0.85rem;
  }

  /* Image plus présente */
  .product-image-wrapper img {
    max-width: 95%;
  }

  /* Footer ergonomique */
  .product-card-footer {
    flex-direction: column;
    gap: 1rem;
  }

  .product-whatsapp {
    width: 100%;
    justify-content: center;
    padding: 0.9rem 1rem;
    border-radius: 999px;
    background: rgba(231,161,176,0.12);
  }

  .product-action {
    width: 44px;
    height: 44px;
  }

  /* Badge plus lisible */
  .product-badge {
    font-size: 0.55rem;
    padding: 0.4rem 0.8rem;
  }

  /* CTA section */
  .section-cta.align-center .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Très petits écrans */
@media (max-width: 400px) {

  .product-card {
    padding: 1.8rem 1.4rem;
  }

  .product-name {
    font-size: 0.9rem;
  }

  .product-price {
    font-size: 0.8rem;
  }
}


