.thumbnail-carousel {
  display: flex;
  align-items: center;
  height: 100%;
}

.thumbnail-images {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  height: 100%;
}

.thumbnail-images img {
  margin-right: 10px;
}

.main-image {
  flex-grow: 1;
}

.availability {
  color: var(--green-color);
}

dialog#product-lightbox::backdrop {
  background: rgba(0,0,0,.7);
}

dialog#product-lightbox {
  max-width: 90vw;
  border: none;
}

.thumbnail.selected {
  outline: 2px solid #0055aa;
}

button#open-lightbox {
  border: none;
  padding: 0;
}

#product-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  overflow: hidden;
}


dialog#product-lightbox[open] {
  display: flex;
}

.product-lightbox .lightbox-image {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display:none;
}

.product-lightbox .lightbox-image.active {
  display: block; 
}

.product-lightbox .lightbox-content {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.product-lightbox .lightbox-prev,
.product-lightbox .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #007DA5;
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  z-index: 10;
}

.product-lightbox .lightbox-prev { left: 10px;border-radius: 4px; }
.product-lightbox .lightbox-next { right: 10px;border-radius: 4px; }

.lightbox-next:hover,  .lightbox-prev:hover {
  background: rgba(0,0,0,0.8);
}

.icones {
  gap: 1rem;
}

dialog#product-lightbox .close-dialog {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: #007DA5;
  color: white;
  border: none;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  padding-top: 0;
  border-radius: 4px;
  cursor: pointer;
  z-index: 10;
}

dialog#product-lightbox .close-dialog:hover {
  background: rgba(0,0,0,0.8);
}

/* style provenant du twig product */

.btn-disabled {
    cursor: default;
    pointer-events: none;
  }
  .ui-dialog .ui-dialog-titlebar {
    background: white;
  }
  .ui-dialog .ui-dialog-title {
    color: black;
  }
  .ui-dialog .ui-dialog-titlebar-close .ui-icon-closethick {
    background: black;
  }

  .img_size {
    width: 80px;
    height: 80px;
  }

  .img_rounded {
    display: flex;
    width: 50px;
    min-width: 50px;
    height: 50px;
    padding: 7px 10px 5px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background-color: #fff;
    border-radius: 50px;
    border: 1px solid #666;
  }

  .nonactive {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    text-decoration: none;
    color: #000;
    padding-right: 5px;
  }

  .active {
    font-weight: 400;
    font-size: 14px;
    line-height: 1.3;
    color: #007DA5;
    font-weight: 600;
    text-decoration: none;
  }

  .fiche_name {
    font-size: 40px;
    text-align: left;
    font-style: normal;
    font-weight: 300;
    line-height: normal;
    color: #243746;
    padding-bottom: 1rem;
  }

  .fiche_code_article {
    padding: 0;
  }

  .fiche_desc {
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .price {
    color: #000;
    font-size: 30px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }

  .en_stock {
    color: #63C132;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-left: 10px;
  }

  .number {
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
  }

  .qty_btn {
    display: flex;
    width: 33px;
    height: 39px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #F0F4F5;

  }

  .qty_btn:hover {
    display: flex;
    width: 33px;
    height: 39px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #F0F4F5;

  }

  .add_to_basket {
    display: flex;
    height: 40px;
    padding: 10px 35px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #007DA5;
    border: 1px solid #007DA5;
  }
  .add_to_basket:disabled {
    display: flex;
    height: 40px;
    padding: 10px 35px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #007DA560;
    border: 1px solid #007DA560;
  }

  .add_to_basket:hover {
    display: flex;
    height: 40px;
    padding: 10px 35px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    background: #007DA5;

  }

  .add_to_basket_text {
    color: #FFF;
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
  }

  .boutiqueCommand thead {
    border-bottom-color: #243746;
    border-bottom-width: 0.5px;
    border-bottom-style: solid;
  }

  .margin_price {
    margin-bottom: 20px;
  }

  .padding_price {
    padding: 10px;
  }

  .sold {
    color: #000;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }

  .card_title {
    color: #000;
    font-size: 29px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin-bottom: 20px;
  }

  .card_texte {
    color: #000;
    font-family: Barlow;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
  }

  #summary p.collapsing {
    min-height: 42px !important;
  }

.quantity {
  display: flex;
  align-items: center;
  height: 40px;
  margin-bottom: 20px;
}

.quantity-input {
  background-color: #F0F4F5;
  color: black;
  font-size: 16px;
  border: none;
  text-align: center;
  width: 40px;
  height: 100%;
  padding: 0;
  margin: 0;
}

.minus-btn,
.plus-btn {
  background-color: #F0F4F5;
  color: var(--blue-color);
  border: none;
  width: 24px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.cart-card {
  background-color: white;
  padding: 30px;
}

.price {
  font-weight: 500;
  font-size: 30px;
  line-height: 36px;
  margin-bottom: 20px;
}

.availability {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 19px;
  margin-bottom: 20px;
}

.stock-dot {
  width: 7px;
  height: 7px;
  background-color: var(--green-color);
  border-radius: 50%;
}


.expedition {
  font-weight: 400;
  font-size: 14px;
}

.teal-blue {
  color: var(--blue-color);
}

.fiche-container {
  display: flex;
  gap: 24px;
}

.caracteristique {
  background-color: white;
  width: 30vw;
  padding: 16px;
  font-size: 15px;
  font-weight: 400;
}

.fiche-description {
  background-color: white;
  width: 70vw;
  padding: 16px;
  font-size: 15px;
  font-weight: 400;
}

.fiche-title {
  font-weight: 500;
  font-size: 29px;
  line-height: 35px;
  margin-bottom: 16px;
}

.product-title {
  font-style: normal;
  font-weight: 300;
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 20px;
}

.product-description {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
}

.details {
  font-weight: 500;
  font-size: 16px;
  line-height: 19px;
}

.title {
  margin: 40px 0px;
}


h1 {
  font-weight: 300;
  font-size: 48px;
  line-height: 58px;
  text-align: center;
  color: #243746;
  padding: 0 0 5vh;
}

h2 {
  font-weight: 300;
  font-size: 24px;
  line-height: 29px;
  color: var(--blue-color);
}

#steps {
  padding: 15vh 0 5vh;
  text-align: center;
}

#steps ul {
  margin: auto;
  padding: 0;
  display: flex;
  max-width: 50%;
  justify-content: space-between;
  position: relative;
}

#steps ul li {
  list-style: none;
  text-align: center;
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #666;
  background-color: #eff3f4;
}

#steps ul li span {
  display: block;
  background-color: #fff;
  color: #666;
  border: 1px solid #666;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 10px;
  line-height: 0;
  font-weight: 700;
}

#steps ul li span.active {
  background-color: var(--blue-color);
  color: #fff;
  border-color: var(--blue-color);
}

#steps ul:after {
  content: "";
  position: absolute;
  width: 95%;
  height: 1px;
  background-color: #666;
  left: 4%;
  top: 30%;
  transform: translateY(-50%);
  z-index: -1;
}

.cart_products {
  margin-bottom: 15vh;
}

.cart_products .cart_product {
  display: flex;
}

.cart_products .cart_product .image {
  padding: 0 15px 0 0;
}

.cart_products .cart_product .content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart_products .cart_product .content .title {
  font-weight: 300;
  font-size: 20px;
  line-height: 24px;
  color: #000;
}

.cart_products .cart_product .content .stock {
  font-weight: 400;
  font-size: 14px;
  line-height: 160%;
}

.cart_products .cart_product .content .stock.in {
  color: var(--green-color);
}

.cart_products .cart_product .content .stock.out {
  color: #d22c33;
}

.cart_products .cart_product .content .space {
  flex-grow: 1;
}

.cart_products .cart_product .content .actions ul {
  padding: 0;
  margin: 0;
  display: flex;
}

.cart_products .cart_product .content .actions ul li {
  list-style: none;
  position: relative;
}

.cart_products .cart_product .content .actions ul li:after {
  content: "";
  width: 1px;
  height: 100%;
  background-color: #000;
  position: absolute;
  right: 0;
  top: 0;
}

.cart_products .cart_product .content .actions ul li:last-child::after {
  display: none;
}

.cart_products .cart_product .content .actions ul li:first-child a {
  padding-left: 0;
}

.cart_products .cart_product .content .actions ul li a {
  font-weight: 300;
  font-size: 14px;
  line-height: 160%;
  color: #243746;
  text-decoration: none;
  padding: 15px 25px;
}

.cart_products .cart_product .content .actions ul li a:hover {
  text-decoration: underline;
}

.cart_products .cart_product .qty {
  padding: 0 25px;
}

.cart_products .cart_product .qty select {
  width: 60px;
  border-color: #243746;
  padding: 5px;
}

.cart_products .cart_product .price {
  font-weight: 600;
  font-size: 16px;
  line-height: 160%;
  color: #000;
  padding: 0 10px 0 0;
}

#code_promo .input-group {
  display: flex;
  gap: 10px;
}

#code_promo .input-group input {
  border: 0.5px solid rgba(0, 0, 0, .5);
  padding: 10px;
  flex-grow: 1;
}

#code_promo .input-group button {
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  color: var(--blue-color);
  background-color: #fff;
  padding: 10px 20px;
  text-transform: uppercase;
  border: 1px solid var(--blue-color);
}

#cart_total .line {
  display: flex;
  padding: 10px;
}

#cart_total .line div {
  font-weight: 400;
  font-size: 16px;
  line-height: 19px;
  color: #000;
}

#cart_total .line div:first-child {
  flex-grow: 1;
}

#cart_total .line.bold div {
  font-weight: 600;
}

#cart_total .space {
  margin: 10px 0;
  border-top: 1px solid #24374680;
}

.cart_valid {
  width: 100%;
  margin: 0 0 15px 0;
  padding: 10px;
  font-weight: 500;
  font-size: 14px;
  line-height: 17px;
  text-transform: uppercase;
}

#payment_mode .title {
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  color: #243746;
}

#payment_mode ul {
  margin: 30px 40px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

#payment_mode ul li {
  list-style: none;
}

#payment_mode .security {
  font-weight: 600;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.wrapper {
  margin: 0 auto;
  width: 80%;
  text-align: center;
}

.image-gallery {
  margin-bottom: 1rem;
  align-items: center;
  gap: 1rem;
}

.product-right {
    gap: 1rem;
}

.primary,
.thumbnails {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap:0.2rem;
}

.thumbnails::-webkit-scrollbar-track {
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  background-color: #F5F5F5;
}

.thumbnails::-webkit-scrollbar {
  width: 8px;
  background-color: #F5F5F5;
}

.thumbnails::-webkit-scrollbar-thumb {
  border-radius: 10px;
  -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
  background-color: #7a7676;
}


.primary {
  width: inherit;
  background-color: #ffffff9e;
  background-size: contain;
  /* background-position: center center; */
  background-repeat: no-repeat;
  object-fit: contain;
}



.thumbnail:hover .thumbnail-image,
.selected .thumbnail-image {
  border: 1px solid white;
  background-color: #ffffff9e;
}

.image-gallery__thumbnail:hover img,
.image-gallery__thumbnail:focus-visible img {
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0,0,0,.2);
}

button.image-gallery__thumbnail {
    border: none;
}

.image-gallery__main {
  width:100%;
  max-height:500px;
}
.primary_container {
  display: flex;
  justify-content: center;
}


/* Chrome / Edge / Safari */
.thumbnails::-webkit-scrollbar {
  width: 8px;
}

.thumbnails::-webkit-scrollbar-thumb {
  background: #007DA5;
}

/* Firefox */
.thumbnails {
  scrollbar-color: #007DA5 transparent;
}

button.image-gallery__thumbnail {
    width: fit-content;
}

.image-gallery__thumbnail {
    border: 2px solid transparent;
    padding: 2px;
    border-radius: 4px;
}

.image-gallery__thumbnail[aria-selected="true"] {
  border-color: #007da5;
  background-color: rgba(0, 125, 165, 1);
  }

  .image-gallery__thumbnail:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
  }

@media only screen and (max-width: 768px) {

  .fiche_name {
    margin-bottom: 0;
    padding-bottom: 2rem;
  }
  
  .thumbnails {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    order: 1;
    align-items: flex-end;
    padding-bottom: 0.5rem;
  }

  .image-gallery {
    margin: 0 auto;
    max-height: initial;
    flex-direction: column;
    flex-wrap: wrap;
  }

  .whishlist_share {
    order: 0;             
    position: absolute;
    left: 85%;
    top: 7%;
    z-index: 99;
    width: 30px;
    height: 30px;
  }



  .cart-block {
    order: 2;
  }

  .product-right {
    order: 1;
    width : 100%;
  }
}

