
.btn-return {
  --bs-btn-padding-y: .25rem; 
  --bs-btn-padding-x: .25rem; 
  --bs-btn-font-size: .50rem;
}

.height-title {
  cursor: pointer;
  vertical-align: middle;
  min-height: 55px;
}

/* Noms jusqu'à 30 caractères : police un peu plus petite que le h6 par défaut (1rem). */
.height-title .card-title {
  font-size: 0.85rem;
  line-height: 1.2;
}

#name {
  font-size: 1.5rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.height-title-middle {
  min-height: 55px;
  width: 100%;
}

.bi-eraser-fill {
  width: 22px;
  height: 22px;
  vertical-align: sub;
  margin-right: 0.5em;
}

/* .colCard margins are now handled by CSS Grid gap in index.html.twig */

.cardVertical {
  margin: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  height: 100%;
}

.cardVertical .card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.cardVertical .card-body > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.cardImgVertical {
  overflow: hidden;
}

.showImage {
    height: 100%;
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
}

.showDetail {
  display: none;
  text-decoration: none;
  font-size: 2em;
  font-weight: bold;
  color: #ffffff !important;
  text-align: center;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  cursor: pointer;
  height: 100px;
  line-height: 100px;
}

.cardImgVertical:hover .showImage {
  -ms-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
  
}

.cardImgVertical:hover .showImage:before, .cardImgVertical:hover .showDetail,
.cardImgVertical:focus .showImage:before, .cardImgVertical:focus .showDetail {
  display: block;
}

.showImage:before {
  content: "";
  display: none;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

@media screen and (max-width: 767px) {
  .cardImgVertical {
  height: 28vw;
  }
}

@media screen and (min-width: 768px) and (max-width: 991px){
  .cardImgVertical {
  height: 160px;
  }
}

@media screen and (min-width: 992px) {
  .cardImgVertical {
    height: 146px; 
  }
}

.bgBanPromoBestNew {
  font-weight: bold;
  text-align: center;
  padding: 1px 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  line-height: 1.1;
}

.bgSold {
  background-color: rgba(0, 0, 0, 0.50);
  color: white;
  text-align: center;
  margin: auto;
  padding: 0px;
  width: 100%;
  height: 100%;
}

.bgSoldText {
  background-color: rgba(0, 0, 0, 0.80);
  top: 82%;
  margin: auto;
  padding: 0px;
  width: 100%;
  font-weight: bold;
  font-size: 1.4em;
  text-align: center;
}

.lienZeroProduct {
  display: inline-block;
  text-decoration: underline;
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.lienZeroProduct:hover {
  -ms-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
}

.bi-cart-plus {
  -webkit-transition: all .3s;
  -moz-transition: all .3s;
  -o-transition: all .3s;
  transition: all .3s;
}

.buttonPanier:hover .bi-cart-plus {
  -ms-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
  
}

/* start card horizontal */
.cardHorizontal {
  margin: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Forcer la colonne image à couvrir toute la hauteur de la carte */
.cardHorizontal > .row,
.cardHorizontal .row.g-0 {
  height: 100%;
  align-items: stretch;
}

.cardHorizontal .cardImgHorizontal {
  height: 100%;
}

.cardHorizontal .showImage2 {
  height: 100%;
  min-height: 100%;
}

.cardImgHorizontal {
  overflow: hidden;
}

.showImage2 {
  height: 100%;
  width: 100%;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
}

.showImage2:before {
  content: "";
  display: none;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

.showDetail2 {
  display: none;
  text-decoration: none;
  font-size: 2em;
  font-weight: bold;
  color: #ffffff !important;
  text-align: center;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  cursor: pointer;
  height: 100px;
  line-height: 100px;
}

.cardImgHorizontal:hover .showImage2:before, .cardImgHorizontal:hover .showDetail2,
.cardImgHorizontal:focus .showImage2:before, .cardImgHorizontal:focus .showDetail2 {
  display: block;
}

.cardImgHorizontal:hover .showImage2 {
  -ms-transform: scale(1.2);
  -moz-transform: scale(1.2);
  -webkit-transform: scale(1.2);
  -o-transform: scale(1.2);
  transform: scale(1.2);
  
}

@media screen and (max-width: 576px) {
  .cardHorizontal {
      width: 100%;
  }

  .cardImgHorizontal {
  width: 140px;
  }
}

@media screen and (min-width: 577px) {
  .cardHorizontal {
      width: 100%;
  }

  .cardImgHorizontal {
  width: 180px;
  }
}

.bgSoldText2 {
  background-color: rgba(0, 0, 0, 0.80);
  top: 62%;
  margin: auto;
  padding: 0px;
  width: 100%;
  font-weight: bold;
  font-size: 1.2em;
  text-align: center;
}
/* end card horizontal */

/* Double range slider pour le filtre de prix */
.double-range-slider {
  position: relative;
  height: 20px;
  /* Rapprocher les valeurs min/max de la barre */
  margin: 8px 0 4px 0;
}

.double-range-slider .range-input {
  position: absolute;
  width: 100%;
  height: 20px;
  outline: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background: transparent;
}

.double-range-slider .range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 18px;
  width: 18px;
  border-radius: 50%;
  /* Couleur du bouton (pilotée par variables CSS du menu filtres) */
  background: var(--filter-range-thumb, var(--filter-accent, #0d6efd));
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 3;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  margin-top: -6px;
}

.double-range-slider .range-input::-moz-range-thumb {
  height: 18px;
  width: 18px;
  border-radius: 50%;
  /* Couleur du bouton (pilotée par variables CSS du menu filtres) */
  background: var(--filter-range-thumb, var(--filter-accent, #0d6efd));
  cursor: pointer;
  pointer-events: all;
  position: relative;
  z-index: 3;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  -moz-appearance: none;
}

.double-range-slider .range-input::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border-radius: 3px;
}

.double-range-slider .range-input::-moz-range-track {
  height: 6px;
  background: transparent;
  border-radius: 3px;
}

.double-range-slider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  /* Couleur du track (pilotée par variables CSS du menu filtres) */
  background: var(--filter-range-track, #dee2e6);
  border-radius: 3px;
  transform: translateY(-50%);
  z-index: 0;
}

.double-range-slider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: var(--range-left, 0%);
  width: calc(var(--range-right, 100%) - var(--range-left, 0%));
  height: 6px;
  /* Couleur de la partie active (pilotée par variables CSS du menu filtres) */
  background: var(--filter-range-active, var(--filter-accent, #0d6efd));
  border-radius: 3px;
  transform: translateY(-50%);
  z-index: 1;
  pointer-events: none;
}