/* Recommandations contextuelles, sans modifier les cartes de la collection. */
.product-recommendations {
  background: #f6f0eb;
  color: #0a0a0a;
  font-family: "Montserrat", "Avenir Next", Arial, sans-serif;
  padding: clamp(56px, 6vw, 88px) 4.8vw clamp(64px, 7vw, 96px) 1.5cm;
  scroll-margin-top: 140px;
}

.product-recommendations-inner {
  margin-inline: auto;
  max-width: 1320px;
  min-width: 0;
}

.product-recommendations .product-recommendations-title {
  color: #0a0a0a;
  font-family: inherit;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 36px;
  text-align: center;
  text-transform: uppercase;
  white-space: normal;
}

.product-recommendations-track {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 4px;
}

.product-recommendations-track > li {
  min-width: 0;
  scroll-snap-align: start;
}

.product-recommendations .product-recommendation-card {
  color: inherit;
  display: grid;
  gap: 10px;
  grid-template-rows: auto auto 1fr auto;
  height: 100%;
  min-width: 0;
  text-decoration: none;
}

.product-recommendation-photo {
  aspect-ratio: 4 / 3;
  background: #f1ece5;
  margin: 0 0 5px;
  overflow: hidden;
}

.product-recommendations .product-recommendation-photo img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.product-recommendations [data-recommendation-product="eye-lift-contour"] .product-recommendation-photo img {
  object-position: center 70%;
}

.product-recommendations .product-recommendation-name {
  color: #0a0a0a;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
  margin: 0;
  text-transform: uppercase;
}

.product-recommendations .product-recommendation-description {
  color: #766b63;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.55;
  margin: 0;
  white-space: normal;
}

.product-recommendations .product-recommendation-price {
  color: #0a0a0a;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.product-recommendation-card:hover .product-recommendation-name,
.product-recommendation-card:focus-visible .product-recommendation-name {
  text-decoration: underline;
  text-decoration-color: #c98e72;
  text-underline-offset: 5px;
}

.product-recommendation-card:focus-visible,
.product-recommendations-track:focus-visible {
  outline: 2px solid #c98e72;
  outline-offset: 3px;
}

.product-recommendations-controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 22px;
}

.product-recommendations-controls[hidden] {
  display: none;
}

.product-recommendations .product-recommendations-arrow {
  align-items: center;
  background: transparent;
  border: 1px solid #c98e72;
  border-radius: 50%;
  color: #0a0a0a;
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.product-recommendations-arrow svg {
  fill: none;
  height: 22px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  width: 22px;
}

.product-recommendations-arrow--previous svg {
  transform: rotate(180deg);
}

.product-recommendations .product-recommendations-arrow:hover:not(:disabled),
.product-recommendations .product-recommendations-arrow:focus-visible {
  background: #c98e72;
  color: #0a0a0a;
}

.product-recommendations-arrow:focus-visible {
  outline: 2px solid #c98e72;
  outline-offset: 3px;
}

.product-recommendations-arrow:disabled {
  cursor: default;
  opacity: 0.4;
}

@media (max-width: 860px) {
  .product-recommendations {
    padding: 56px 24px 64px;
  }

  .product-recommendations .product-recommendations-title {
    font-size: 22px;
    margin-bottom: 28px;
  }

  .product-recommendations-track {
    gap: 18px;
    grid-auto-columns: min(78vw, 300px);
    grid-auto-flow: column;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding-bottom: 12px;
    scrollbar-width: none;
    scroll-padding-inline: 4px;
    scroll-snap-type: x mandatory;
  }

  .product-recommendations-track::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 360px) {
  .product-recommendations {
    padding-inline: 20px;
  }
}
