.imgMax {
  position: relative;
  width: 99%;
  padding-top: 66%;
  margin: 0.5%;
}

.img{
  position: relative;
  width: 24%;
  padding-top: 16%;
  margin: 0.5%;
}

.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: 1em;
  font-weight: bold;
  color: #ffffff !important;
  text-align: center;
  margin: auto;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  cursor: pointer;
  height: 100%;
  padding-top: 25%;
}

.showDetailBis {
  font-size: 2em;
}

.imgCard {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  }

.imgCard: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);
  
}

.imgCard:hover .showImage:before, .imgCard:hover .showDetail,
.imgCard:focus .showImage:before, .imgCard: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);
}

.modal-content {
  width: 90vw;
}

.bi-x-lg {
  width: 25px;
  height: 25px;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
}

.bi-x-lg: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);
}


.modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal {  
  background-color: rgba(0, 0, 0, 0.75);
}


.carousel-item {
  width: 80vw;
}

.linkFormTerms {
  text-decoration: none;
  text-decoration: underline;
  font-weight: 500;
}

/* start comment */
.bi-arrow-clockwise {
  width: 2em;
  height: 2em;
  color : white;
}

.bi-arrow-clockwise:hover {
  color: #373D20;
  cursor: pointer; 
}

.bi-arrow-down-square-fill, .bi-arrow-up-square-fill {
  border-radius: 10px;
  cursor: pointer;
  vertical-align: sub;
  margin-left: 2px;
  margin-right: 2px;
  width: 22px;
  height: 22px;
}

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

.buttonNoPointer{
  cursor: default;
}

.textComment {
  font-size: 0.9em;
}

.modal-content {
  width: 90vw;
  background-color: transparent;
}

.bi-x-lg {
  width: 25px;
  height: 25px;
  -webkit-transition: all .5s;
  -moz-transition: all .5s;
  -o-transition: all .5s;
  transition: all .5s;
}

.bi-x-lg: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);
}

.cursor-pointer {
  cursor: pointer;
}
/* end comment */

/* =========================================================
   BANNIÈRES PRODUITS (show) - scroll horizontal
   ========================================================= */
.product-banner-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 2px 10px 2px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.product-banner-item {
  flex: 0 0 auto;
  min-width: 340px;
  max-width: 420px;
  scroll-snap-align: start;
}

/* Mode cartes verticales dans les bannières */
.product-banner-scroll[data-layout="vertical"] .product-banner-item {
  min-width: 240px;
  max-width: 280px;
}

/* Masquer la barre de défilement (tout en gardant le scroll) */
.product-banner-scroll {
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE/Edge legacy */
}
.product-banner-scroll::-webkit-scrollbar {
  display: none;              /* Chrome/Safari */
}

.product-banner-wrapper {
  position: relative;
}

.product-banner-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 0;
}

.product-banner-nav-left { left: -10px; }
.product-banner-nav-right { right: -10px; }

.product-banner-nav:hover {
  background: rgba(255,255,255,1);
}

.product-banner-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.product-banner-nav-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
}

.product-banner-nav-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Badges & rupture (repris de products.css pour show) */
.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%;
}

.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;
}

/* Reprise du style "carte horizontale" (products.css) mais uniquement sur show */
.cardHorizontal {
  margin: auto;
  display: flex;
  flex-direction: column;
  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);
}

.product-banner-card .card-body {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

/* Image de la carte bannière: couvrir toute la hauteur de la carte */
.product-banner-card {
  height: 100%;
}

.product-banner-card > .row,
.product-banner-card .row.g-0 {
  height: 100%;
}

.product-banner-card .cardImgHorizontal {
  height: 100%;
}

.product-banner-card .showImage2 {
  height: 100%;
  min-height: 100%;
}

/* Carte verticale (show) */
.product-banner-card-vertical {
  position: relative;
  height: 100%;
}

.banner-card-image {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}

.banner-card-image-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: all .5s;
}

.banner-card-see {
  display: none;
  position: absolute;
  inset: 0;
  margin: auto;
  height: 100px;
  line-height: 100px;
  text-decoration: none;
  font-size: 2em;
  font-weight: bold;
  color: #ffffff !important;
  text-align: center;
  z-index: 2;
}

.banner-card-image-bg::before {
  content: "";
  display: none;
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.75);
}

/* Même comportement que sur la page products (zoom + overlay + VOIR) */
.banner-card-image:hover .banner-card-image-bg {
  transform: scale(1.2);
}

.banner-card-image:hover .banner-card-image-bg::before,
.banner-card-image:hover .banner-card-see {
  display: block;
}

/* start variant cards */
#variantsContainer .row {
  display: flex;
  align-items: stretch;
}

#variantsContainer .col-4,
#variantsContainer .col-md-3,
#variantsContainer .col-lg-2 {
  display: flex;
  align-items: stretch;
}

.variant-card {
  transition: all 0.3s ease;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.variant-card:hover {
  transform: scale(1.02);
}

.variant-card .card-body {
  min-height: 60px;
  padding: 0.25rem !important;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.variant-card img {
  max-width: 100%;
  height: auto;
}
/* end variant cards */

/* --- Galerie type Amazon --- */
.amazon-gallery{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.amazon-thumb{
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.amazon-thumb.is-active{
  border-color: rgba(13,110,253,0.9);
  box-shadow: 0 0 0 2px rgba(13,110,253,0.15);
}

.amazon-thumb-img{
  display: block;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.amazon-thumb-video{
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
}

.amazon-thumb-video-icon{
  font-size: 18px;
  line-height: 1;
  opacity: 0.95;
}

.amazon-main{
  flex: 1 1 auto;
  min-width: 0;
}

.amazon-main-media{
  position: relative;
  width: 100%;
}

.amazon-main-image{
  width: 100%;
  /* Format demandé: 1080 x 720 => ratio 3/2 */
  aspect-ratio: 3 / 2;
  /* pas de cadre blanc */
  border: none;
  border-radius: 0;
  background-color: transparent;
  position: relative;
}

.amazon-main-image > img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.amazon-main-video iframe,
#galleryMainVideo{
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 10px;
  background: #000;
}

.amazon-thumbs{
  display: flex;
  flex-direction: row;
  gap: 8px;
  flex-wrap: wrap;
}

.amazon-zoom-window{
  position: absolute;
  top: 0;
  right: calc(100% + 12px); /* à gauche de l'image principale */
  /* loupe carrée 1/1 */
  width: 320px;
  height: 320px;
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 200% 200%;
  border: 1px solid rgba(0,0,0,0.15);
  background-color: #fff;
  z-index: 10;
}

.amazon-zoom-lens{
  position: absolute;
  width: 120px;
  height: 120px;
  border: 2px solid rgba(255, 153, 0, 0.9);
  background: rgba(255, 153, 0, 0.15);
  pointer-events: none;
  z-index: 11;
}

@media (min-width: 577px) and (max-width: 767.98px){
  /* Quand la galerie est en colonne (mobile/tablette), afficher la loupe SOUS l'image */
  .amazon-zoom-window{
    position: relative;
    top: auto;
    right: auto;
    left: 0;
    margin: 10px auto 0 auto;
    /* garder les dimensions carrées (1/1) et la taille cible (320px) */
    width: min(100%, 320px);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 10px;
  }
}

@media (max-width: 576px){
  /* sur mobile: on désactive la loupe (trop encombrant) */
  .amazon-zoom-window{ display: none !important; }
  .amazon-zoom-lens{ display: none !important; }
}

.delivery-card{
  margin-top: 1rem;
  padding: 1rem 1.15rem 1.1rem;
  background: var(--delivery-bg, #ffffff);
  color: var(--delivery-text, #1c1917);
  border: var(--delivery-border-size, 1px) solid var(--delivery-border, #e7e5e4);
  border-radius: var(--delivery-radius, 16px);
  box-shadow: var(--delivery-shadow, none);
}

.delivery-card-title{
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.delivery-card-block + .delivery-card-block{
  margin-top: 0.9rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--delivery-border, #e7e5e4);
}

.delivery-card-place{
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  opacity: 0.62;
}

.delivery-card-price{
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
}

.delivery-card-fee{
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  line-height: 1.4;
  opacity: 0.78;
}

.delivery-card-form{
  display: flex;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.delivery-card-postal{
  width: 7.5rem;
  height: 2.25rem;
  padding: 0 0.7rem;
  border: var(--delivery-input-border-size, 1px) solid var(--delivery-input-border, #e7e5e4);
  border-radius: var(--delivery-input-radius, 10px);
  background: var(--delivery-input-bg, #ffffff);
  color: var(--delivery-input-text, #1c1917);
  box-shadow: var(--delivery-input-shadow, none);
  font-size: 0.95rem;
}

.delivery-card-postal:focus{
  outline: 2px solid var(--delivery-input-focus, #9f1239);
  outline-offset: 1px;
}

.delivery-card-submit{
  height: 2.25rem;
  padding: 0 0.95rem;
  border: var(--delivery-btn-border-size, 0) solid var(--delivery-btn-border, transparent);
  border-radius: var(--delivery-btn-radius, 10px);
  background: var(--delivery-btn-bg, #9f1239);
  color: var(--delivery-btn-text, #ffffff);
  box-shadow: var(--delivery-btn-shadow, none);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.delivery-card-submit:hover{
  background: var(--delivery-btn-bg-hover, #881337);
  color: var(--delivery-btn-text-hover, #ffffff);
}