/**
 * Cartes produits — même rendu que #nouveautes (hb-nouveaute-*)
 * Ombre sur <img>, coque transparente, fond blanc au survol uniquement.
 */

#produits .product-card {
  filter: unset;
  background: transparent;
}

/* = hb-nouveaute-card-inner */
#produits .product-card-shell {
  position: relative;
  border-radius: 18px;
  overflow: visible;
  background: transparent !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transform: translateY(0) scale(1);
  transition:
    box-shadow 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.52s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

#produits .product-card-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #ffffff;
  opacity: 0;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.52s cubic-bezier(0.22, 1, 0.36, 1);
}

#produits .product-card-shell > * {
  position: relative;
  z-index: 1;
}

/* = hb-nouveaute-media */
#produits .product-image {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: visible !important;
  background: transparent !important;
  border: none;
  border-radius: 0;
}

#produits .product-media-wrap {
  position: absolute;
  inset: 0;
  overflow: visible !important;
  background: transparent !important;
}

/* = hb-nouveaute-img-stage */
#produits .product-media-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(1);
  transform-origin: center center;
  filter: none !important;
  -webkit-filter: none !important;
  overflow: visible;
}

#produits .product-media-stage::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 7%;
  transform: translateX(-50%);
  width: 62%;
  height: 16px;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    rgba(26, 20, 14, 0.11) 0%,
    rgba(26, 20, 14, 0.04) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
  opacity: 0.75;
}

/* = hb-nouveaute-media img — ombre sur l'image (comme nouveautés) */
#produits .product-media-wrap .product-img {
  position: relative !important;
  inset: auto !important;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center 82%;
  padding: 2% 6% 4%;
  box-sizing: border-box;
  background: transparent !important;
  filter:
    drop-shadow(0 18px 28px rgba(26, 20, 14, 0.09))
    drop-shadow(0 6px 14px rgba(26, 20, 14, 0.05)) !important;
  -webkit-filter:
    drop-shadow(0 18px 28px rgba(26, 20, 14, 0.09))
    drop-shadow(0 6px 14px rgba(26, 20, 14, 0.05)) !important;
}

/* Chiromane : fond noir PNG */
#produits .product-card[data-product-id="2"] .product-image,
#produits .product-card[data-product-id="2"] .product-media-wrap {
  background: var(--bg-sand) !important;
  overflow: hidden;
  border-radius: 12px;
}

#produits .product-card[data-product-id="2"] .product-media-wrap .product-img {
  mix-blend-mode: lighten;
  filter: none !important;
  -webkit-filter: none !important;
}

#produits .product-card[data-product-id="2"] .product-media-stage::after {
  display: none;
}

#produits .product-info {
  background: transparent !important;
}

@media (hover: hover) and (pointer: fine) {
  #produits .product-card:hover .product-card-shell::before {
    opacity: 1;
  }

  #produits .product-card:hover .product-card-shell {
    overflow: hidden;
    border-color: rgba(255, 255, 255, 0.95) !important;
    box-shadow:
      0 28px 56px rgba(26, 20, 14, 0.11),
      0 10px 28px rgba(26, 20, 14, 0.06) !important;
    transform: translateY(-7px) scale(1.008);
  }

  #produits .product-card:hover .product-image {
    background: #ffffff !important;
    border-radius: 14px 14px 0 0;
    overflow: hidden;
  }

  #produits .product-card:hover .product-media-stage {
    transform: scale(1.045);
  }

  #produits .product-card:hover .product-media-wrap .product-img {
    filter:
      drop-shadow(0 24px 38px rgba(26, 20, 14, 0.11))
      drop-shadow(0 10px 20px rgba(26, 20, 14, 0.06)) !important;
    -webkit-filter:
      drop-shadow(0 24px 38px rgba(26, 20, 14, 0.11))
      drop-shadow(0 10px 20px rgba(26, 20, 14, 0.06)) !important;
  }

  #produits .product-card[data-product-id="2"]:hover .product-media-wrap .product-img {
    filter: none !important;
    -webkit-filter: none !important;
  }
}

@media (max-width: 768px) {
  #produits .product-media-wrap .product-img {
    filter:
      drop-shadow(0 18px 28px rgba(26, 20, 14, 0.09))
      drop-shadow(0 6px 14px rgba(26, 20, 14, 0.05)) !important;
    -webkit-filter:
      drop-shadow(0 18px 28px rgba(26, 20, 14, 0.09))
      drop-shadow(0 6px 14px rgba(26, 20, 14, 0.05)) !important;
  }
}
