html {
  scroll-behavior: smooth;
}

/* Hero decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  pointer-events: none;
}

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: #ef7d00;
  top: -100px;
  left: -150px;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #917b6e;
  bottom: -80px;
  right: -100px;
}

.header {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}
/* Supprimer les flèches du input type number */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

.add-to-cart-animation {
  position: absolute;
  transition: all 0.5s ease-in-out;
  z-index: 100;
}

.cart-icon {
  position: relative;
}

@keyframes flyToCart {
  0% {
    transform: scale(1) translateX(0) translateY(0);
    opacity: 1;
  }
  50% {
    transform: scale(1.5) translateX(50px) translateY(-100px);
    opacity: 0.8;
  }
  100% {
    transform: scale(0.2) translateX(200px) translateY(-200px);
    opacity: 0;
  }
}

.fly-to-cart {
  animation: flyToCart 1s ease-in-out forwards;
}

/* =========================================================
   CARTES COFFRETS CADEAUX
   ========================================================= */

#produits-container > div {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(93, 79, 70, 0.1);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#produits-container > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(93, 79, 70, 0.16);
}

/* =========================================================
   IMAGE DU COFFRET
   ========================================================= */

#produits-container > div > img,
#produits-container > div .product-image {
  width: 100%;
  height: 300px;
  object-fit: contain;
  object-position: center;
  display: block;
  background: #ffffff;
  padding: 12px 18px;
}

/* =========================================================
   CONTENU DE LA CARTE
   ========================================================= */

#produits-container > div > div {
  flex: 1;
}

/* =========================================================
   TITRE
   ========================================================= */

#produits-container h2,
#produits-container h3 {
  line-height: 1.25;
}

/* =========================================================
   PRIX
   ========================================================= */

#produits-container .text-accent {
  font-weight: 700;
}

/* =========================================================
   COMPOSITION
   ========================================================= */

#produits-container .composition {
  line-height: 1.65;
  color: #6b7280;
}

/* =========================================================
   BOUTONS / BAS DE CARTE
   ========================================================= */

#produits-container button {
  transition: all 0.2s ease;
}

#produits-container button:hover {
  transform: translateY(-1px);
}

/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 1023px) {
  #produits-container > div > img,
  #produits-container > div .product-image {
    height: 280px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 640px) {
  #produits-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #produits-container > div > img,
  #produits-container > div .product-image {
    height: 250px;
    padding: 10px 15px;
  }

  #produits-container > div {
    border-radius: 1rem;
  }
}
