/* =========================================================
   ALLO NATUREL — COMPOSEZ VOTRE CURE V3
   Carte 100 % dédiée : aucun markup miniature Hummingbird.
   ========================================================= */

body#product .an-product-accessories {
  width: min(1580px, calc(100% - 70px)) !important;
  max-width: 1580px !important;
  margin: 86px auto 0 !important;
}

.an-cure {
  width: 100%;
}

.an-cure__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.an-cure__kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 13px;
  font-family: "Geist", Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #07574f;
}

.an-cure__kicker::before {
  content: "";
  width: 14px;
  height: 1px;
  flex: 0 0 14px;
  background: #78918d;
}

.an-cure__title {
  max-width: 520px;
  margin: 0;
  font-family: "Bagrile", "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 3.6vw, 64px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.02em;
  color: #07574f;
}

.an-cure__all {
  min-height: 42px;
  margin-bottom: 3px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: 0 0 auto;
  border: 1px solid #ded8ce;
  border-radius: 999px;
  background: #fff;
  font-family: "Geist", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #07574f !important;
  text-decoration: none !important;
}

.an-cure__all:hover {
  background: #07574f;
  border-color: #07574f;
  color: #fff !important;
}

.an-cure__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.an-cure-card {
  min-width: 0;
  margin: 0;
}

.an-cure-card__media {
  position: relative;
  height: 265px;
  overflow: hidden;
  border: 0px;
  background: #fff;
}

.an-cure-card__image {
  position: absolute;
  inset: 38px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.an-cure-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 235px;
  max-height: 210px;
  object-fit: contain;
}

.an-cure-card__flags {
  position: absolute;
  z-index: 5;
  top: 9px;
  left: 9px;
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.an-cure-card__flag {
  min-height: 27px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #07574f;
  font-family: "Geist", Arial, sans-serif;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  color: #fff;
}

.an-cure-card__flag--discount,
.an-cure-card__flag--discount-percentage,
.an-cure-card__flag--on-sale {
  background: #ffe2bf;
  color: #07574f;
}

.an-cure-card__heart {
  position: absolute;
  z-index: 6;
  top: 9px;
  right: 9px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #ded8ce;
  border-radius: 50%;
  background: #fff;
  font-size: 15px;
  line-height: 1;
  color: #07574f;
}

/* Bouton hover */
.an-cure-card__cart {
  position: absolute;
  z-index: 8;
  right: 10px;
  bottom: 10px;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity .18s ease,
    visibility .18s ease,
    transform .18s ease;
}

.an-cure-card:hover .an-cure-card__cart,
.an-cure-card:focus-within .an-cure-card__cart {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.an-cure-card__add {
  min-height: 32px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: #07574f;
  box-shadow: none;
  font-family: "Geist", Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  color: #fff;
  cursor: pointer;
}

.an-cure-card__add:hover {
  background: #043f3a;
}

.an-cure-card__add-price {
  font-weight: 500;
}

/* Infos */
.an-cure-card__info {
  padding-top: 10px;
}

.an-cure-card__meta {
  min-height: 15px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.an-cure-card__category {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Geist", Arial, sans-serif;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #829793;
}

.an-cure-card__reviews {
  flex: 0 0 auto;
  font-size: 9px;
  color: #07574f;
}

.an-cure-card__name {
  min-height: 0;
  margin: 0 0 6px;
  padding: 0;
  font-family: "Bagrile", "Instrument Serif", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1.02;
}

.an-cure-card__name a {
  color: #07574f !important;
  text-decoration: none !important;
}

.an-cure-card__name a:hover {
  color: #ff9b43 !important;
}

.an-cure-card__brand {
  min-height: 15px;
  margin-bottom: 9px;
  font-family: "Geist", Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
  color: #829793;
}

.an-cure-card__price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-family: "Geist", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #07574f;
}

.an-cure-card__price del {
  font-size: 11px;
  font-weight: 400;
  color: #98aaa7;
}

/* On neutralise totalement d'anciens éléments s'ils traînent autour */
body#product .an-product-accessories .product-miniature,
body#product .an-product-accessories .thumbnail-container,
body#product .an-product-accessories .highlighted-informations {
  display: none !important;
}

@media (max-width: 1199px) {
  body#product .an-product-accessories {
    width: calc(100% - 50px) !important;
  }

  .an-cure__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 18px;
  }
}

@media (max-width: 767px) {
  body#product .an-product-accessories {
    width: calc(100% - 36px) !important;
    margin-top: 62px !important;
  }

  .an-cure__head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 26px;
  }

  .an-cure__title {
    font-size: 46px;
  }

  .an-cure__grid {
    grid-template-columns: 1fr;
  }

  .an-cure-card__media {
    height: 290px;
  }

  /* pas de hover tactile : bouton visible */
  .an-cure-card__cart {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}
