* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

.container {
  background-color: #fff;
  padding: 1rem 2rem;
  border-radius: 10px;
max-width: 1150px;
margin: auto;
}
@media (max-width: 767px) {
  .container {
    padding: 1rem;
  }
}

/* Bred crumbs */
.breadcrumb a {
  text-decoration: none;
  color: #555555;
  font-size: 16px;
  margin: 10px;
}

.breadcrumb a:hover {
  text-decoration: underline;
}
@media (max-width: 767px) {
  .breadcrumb a {
    margin: 0;
    font-size: 14px;
    overflow-x: scroll;
  }
}

/* Title */
.title-div {
  margin-top: 2rem;
  text-align: center;
}

.title {
  font-size: 24px;
  font-weight: bolder;
}

.rating {
  color: rgb(0, 182, 122);
  font-size: 16px;
}
.rating span {
  font-size: 16px;
  color: black;
  margin-left: 15px;
}

/* Product Information */
.product-info {
  display: flex;
  gap: 20px;
  margin-top: 1rem;
}

.image-gallery {
  width: 28%;
}

.main-image-container {
  position: relative;
  overflow: hidden;
  height: 300px;
  width: 100%;
border-radius:8px;
}

#current-image,
#next-image {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;}
.thumbnail-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.thumbnail {
  width: 50px;
  height: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 5px;
  transition: border-color 0.3s;
}

.thumbnail.active {
  border-color: #007bff;
}

.product-details table {
  width: 100%;
  margin-bottom: 20px;
  border-collapse: collapse; /* Optional: To remove spacing between cells */
}

.product-details table tr:nth-child(even) {
  background-color: #f6f7fa; /* Light gray */
}

.product-details table td {
  padding: 8px; /* Optional: To add some spacing inside cells */
}

.price-box {
  display: flex;
  align-items: center;
  text-align: center;
}
.discount-price-box {
  font-size: 20px;
  display: flex;
  align-items: center;
  text-align: center;
  gap: 10px;
  background-color: white;
  padding: 15px 10px;
  width: 8rem;
  border-radius: 8px;
  position: relative;
}

.discount {
  color: #ffffff;
  font-weight: bold;
  background-color: black;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 12px;
  animation: rotate-scale 10s infinite;
}

/* Define the keyframes for the animation */
@keyframes rotate-scale {
  0%,
  100% {
    transform: scale(1) rotate(0deg);
  }
  25% {
    transform: scale(1.1) rotate(10deg);
  }
  50% {
    transform: scale(1) rotate(0deg);
  }
  75% {
    transform: scale(1.1) rotate(-10deg);
  }
}

.price {
  color: black;
  font-weight: bold;
  text-align: center;
}

.original-price {
  color: #808080; /* Gray color */
  text-decoration: line-through;
  margin-left: 25px;
  font-size: 18px;
}

.info-box {
  border-radius: 5px;
  width: 33%;
}
.certification-section {
  margin: 0px 0px 10px 0px;
}

.certification-section div {
  display: flex;
  gap: 5px;
}
.certification-section div img {
  height: 27px;
}

.certification-section div p {
  color: #000;
  font-size: 16px;
}
.certification-section p {
  color: #777777;
  font-size: 14px;
}
.delivery-info {
padding: 15px 20px;
border-radius: 8px;
border: 3px solid black;
font-size: 16px;
  border-radius: 8px;
margin-bottom:20px;
}

.payment-info {
padding: 15px 20px;
border-radius: 8px;
border: 3px solid black;
font-size: 16px;
  border-radius: 8px;
}

.info-box strong {
  font-weight: bold;
}

.add-to-cart,
#reviews button.animated-section,
.modal-content-2 form button {
  display: block;
  width: 100%;
  padding: 10px 15px;
  margin-top: 20px;
  background-color: #DD1111;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  border-radius: 10px;
  border: 2px solid #DD1111;
  font-weight: bold;
  transition: all 0.3s ease;
}

.add-to-cart:hover,
#reviews button.animated-section:hover,
.modal-content-2 form button:hover {
  background-color: #a61414;
  border: 2px solid #a61414;
  color: white;
  font-weight: bold;
}

/* Slide animations */
.slide-out-left {
  transform: translateX(-30%);
  opacity: 0.7;
}

.slide-out-right {
  transform: translateX(30%);
  opacity: 0.7;
}

.slide-in-left {
  transform: translateX(100%);
  animation: slideInFromLeft 0.5s forwards;
}

.slide-in-right {
  transform: translateX(-100%);
  animation: slideInFromRight 0.5s forwards;
}

@keyframes slideInFromLeft {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes slideInFromRight {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

@media (max-width: 768px) {
  .image-gallery {
    width: 100%;
  }
  .product-info {
    flex-direction: column;
  }
  .product-details {
    width: 100%;
    margin: 0rem;
    align-items: center;
  }
  .info-box {
    width: 100%;
  }
}

/* Basic Styles */
.quick-order {
  display: flex;
  justify-content: space-between;
  background-color: #ffffff;
  border-radius: 8px;
  margin: 2rem 0;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1),
    /* Bottom shadow */ 0px -4px 8px rgba(0, 0, 0, 0.1),
    /* Top shadow */ 4px 0px 8px rgba(0, 0, 0, 0.1),
    /* Right shadow */ -4px 0px 8px rgba(0, 0, 0, 0.1); /* Left shadow */ /* border: 1px solid red; */
}

.order-header {
  clip-path: polygon(0 0, 100% 0, 81% 100%, 0% 100%);
  background-color: black; /* Green background */
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  display: flex;
  border-radius: 8px 0px 0px 8px;
  font-size: 1.5rem;
  width: 17rem;
}

.order-form {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  padding: 20px;
  background-color: #ffffff;
  width: 100%;
}

.order-input {
  flex: 1;
  min-width: 150px;
  padding: 15px;
  border: 1px solid #ccc;
  font-size: 16px;

  border-radius: 5px;
}

.order-button {
  background-color: #DD1111;
  border: 1px solid #DD1111;
  color: white;
  font-weight: bold;
  font-size: 16px;
  padding: 15px 20px;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}
.order-button:hover {
  background-color: #a61414;
  border: 1px solid #a61414;
  color:white
}

.order-note {
  font-size: 0.9rem;
  color: #333;
  margin: 10px;
  text-align: center;
}

@media (max-width: 768px) {
  .quick-order {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0;
  }

  .order-header {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    width: 100%;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    border-bottom-left-radius: 0px;
flex-direction: initial;
background-color:white;
color:black;
gap: 7px;
  }

  .order-form {
    display: flex;
    flex-direction: column;
    padding: 10px;
  }

  .order-input {
    min-width: 100%;
  }

}

/* Basic styling */
.container-sidebar {
  display: flex;
}

/* Sidebar styling */
.sidebar {
  width: 25%;
  background-color: #fff;
  border-radius: 8px;
  margin-right: 20px;
  height: 18.2rem;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.sidebar p {
  margin: 0;
  text-align: center;
  font-size: 16px;
  cursor: pointer;
  padding: 10px;
  border-radius: 5px;
  color: #000;
}

.sidebar p.active {
  background-color: black;
  color: #ffffff;
  font-weight: bold;
}

/* Content styling */
.content {
  width: 75%;
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Section styling */
.section {
  display: none;
}

.section.active {
  display: block;
}
.section {
  margin-left: 10px;
}

.section div {
  padding-left: 20px;
  margin-top: 30px;
}
.section div h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
#details .animated-section {
  border-left: 2px solid black;
}
/* Animation Styling */
.animated-section {
  /* border-left: 2px solid black; */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.3s ease;
}

.animated-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Composition Section styling */
#composition h2,
#mode h2,
#effects h2,
#contraindications h2,
#reviews h2,
#countries h2,
#cities h2,
.product-list h2 {
  text-align: center;
  font-size: 22px;
}
#composition .animated-section,
#mode .animated-section {
  font-size: 16px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  padding: 14px 20px;
  border-radius: 6px;
  position: relative;
  margin-bottom: 15px; /* Space between each item */
  display: flex;
  align-items: center;
  margin-left: 1.2rem;
}
#composition .animated-section .leaf, #mode .animated-section .leaf{color:white!important;}
#composition .animated-section .leaf,
#mode .animated-section .leaf {
  background: black; /* Blue background as in the image */
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  color:white;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: -1.5rem; /* Adjust position to overlap */
  top: -3.2rem;
  border-top-left-radius: 13px;
  border-top-right-radius: 13px;
  border-bottom-left-radius: 13px;
}

#composition .animated-section .leaf img {
  width: 1.6rem; /* Adjust size of the icon */
  height: auto;
  display: block;
  transform: translateX(-7px);
}

#mode .animated-section .leaf p {
  font-size: 18px;
  font-weight: bolder;
}

#reviews .animated-section input {
  width: 100%;
  padding: 10px;
  border: 1px solid gray;
  border-radius: 5px;
}

#reviews .animated-section textarea {
  width: 100%;
  margin-top: 1rem;
  padding: 10px;
  border: 1px solid gray;
  border-radius: 5px;
}

#countries .animated-section,
#cities .animated-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
  transition: all 0.4s ease;
  cursor: pointer;
  width: auto;
}
#countries .animated-section:hover,
#cities .animated-section:hover {
  text-decoration: underline;
  margin-left: 4px;
}

#countries .animated-section img {
  width: 1.3rem;
}
#countries .animated-section p,
#cities .animated-section {
  color: black;
}

@media (max-width: 768px) {
  .container-sidebar {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
  }
  /* Sidebar styling */
  .sidebar {
    width: 100%;
    display: flex;
    gap: 10px;
    height: 3rem;
    overflow-x: scroll;
    margin-bottom: 1rem;
    box-shadow: none;
  }

  .sidebar p {
    margin: 0;
    padding: 7px;
    text-wrap: nowrap;
    border: 1px solid black;
  }
  /* Content styling */
  .content {
    width: 100%;
  }
}

.information-section {
  text-align: center;
  margin-top: 4rem;
}

.information-section h2 {
  font-size: 22px;
  margin-bottom: 30px;
}

.information-section p {
  font-size: 16px;
}

.information-section .price {
  font-weight: bold;
  color: #ff4500; /* Fire color for the price */
}

@media (max-width: 768px) {
  .information-section h2 {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .information-section p {
    font-size: 14px;
    text-align: start;
  }
}

.timeline-section {
  margin-top: 3rem;
}

.timeline-section h2 {
  font-size: 22px;
  text-align: center;
  margin-bottom: 2rem;
}

.timeline {
  position: relative;
  z-index: 0;
  background-color: transparent;
}

.timeline .timeline-line {
  position: absolute;
  left: 0.9rem;
  top: 0;
  width: 4px;
  height: 0; /* Initial height for animation */
  background-color: black;
  transition: height 2s ease-out; /* Smooth animation */
  z-index: -1;
}

.timeline-point {
  position: relative;
  margin-left: 2rem;
  margin-bottom: 30px;
  padding-left: 2rem;
}

.timeline-point::before {
  content: attr(data-text);
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 5px;
  display: block;
}

.timeline-point::after {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0;
  width: 8px;
  height: 8px;
  border: 4px solid black;
  border-radius: 50%;
  background-color: white; /* Ensures no background color */
  z-index: 1;
}

@media (max-width: 768px) {
  .timeline-section h2 {
    font-size: 20px;
  }

  .timeline-point {
    padding-left: 1rem;
  }
}

/* Container for the product list */
.product-list {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  margin: 60px 0;
}
.product-details-card-section {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 40px 0;
}

/* Styling for individual product cards */
.product-card {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease; /* Smooth zoom effect on hover */
}

.product-card:hover {
  transform: translateY(-5px); /* Lift card slightly on hover */
}

.product-image {
  overflow: hidden; /* Ensures the zoomed image stays within the card */
  border-radius: 8px;
}

.product-image img {
  height: 200px;
  border-radius: 8px;
  transition: transform 0.3s ease; /* Smooth zoom effect */
}

.product-card:hover .product-image img {
  transform: scale(1.1); /* Zoom in slightly on hover */
}

/* Styling for product text */
.product-card h3 {
  font-size: 18px;
  color: black;
  margin: 15px 0 10px;
}

.product-card p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.product-card .price {
  margin-top: 10px;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.product-card .price .current-price {
  color: black;
  font-weight: bold;
}

.product-card .price .original-price {
  color: #999;
  font-size: 14px;
  font-weight: lighter;
  text-decoration: line-through;
  margin-left: 0px;
}

@media (max-width: 768px) {
  .product-details-card-section {
    flex-direction: column;
  }
  .product-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .product-image {
    width: 25%;
  }
  .product-details-text {
    display: flex;
    flex-direction: column;
  }
}

.faq-section h2 {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.accordion {
  border-radius: 8px;
  overflow: hidden;
}

.accordion-item {
  margin: 1.3rem 0px;
  overflow: hidden; /* To prevent padding during collapse */
}

.accordion-header {
  padding: 15px 20px;
  border-radius: 8px;
  display: flex;
  border: 3px solid black; /* Border matches the image */
  align-items: center;
  cursor: pointer;
  gap: 20px;
  font-size: 16px;
  font-weight: bold;
  color: black;
}

.accordion-header:hover {
  /* background-color: #e9eff6; */
}

.accordion-header .icon {
  font-size: 12px;
  color: white;
  border-radius: 50%;
  text-align: center;
  padding: 5px;
  /* width: 20px; */
  /* height: 20px; */
  background-color: black;
  transition: transform 0.3s ease;
}

.accordion-item.active .icon {
  transform: rotate(180deg); /* Rotates the icon */
}

.accordion-content {
  padding: 0;
  font-size: 14px;
  color: #333;
  margin: 0px 1rem;
  background-color: #ffffff;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.accordion-item.active .accordion-content {
  max-height: 220px; /* Adjust height to fit content */
  padding: 15px 20px;
  border-left: 2px solid black;
  border-right: 2px solid black;
  border-bottom: 2px solid black;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

@media (max-width: 768px) {
  .accordion-content {
    font-size: 12px;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dim background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it's above other elements */
}

.modal-content {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  width: 60rem;
  text-align: center;
  position: relative;
  z-index: 1001; /* Keep above modal background */
}
.modal-content-1 {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* align-items: center; */
}
.payment-options span {
  font-size: 20px!important;
  margin-top: 10px;
}
@media (min-width: 768px) {
  .modal-content-1 span {
    transform: translateY(-5.4rem);
  }
}
.modal-content-1 span {
    font-size: 1.5em;
    margin-block-start: 0.83em;
    margin-block-end: 0.83em;
    margin-inline-start: 0px;
    margin-inline-end: 0px;
    font-weight: bold;
    unicode-bidi: isolate;
}
.modal-total-price {
  transform: translateY(5rem);
}
.modal-content-2 {
  display: flex;
  padding: 20px;
  width: 50%;
  flex-direction: column;
  background-color: white;
}
.modal-content-2 span {
  font-size: 22px;
  font-weight:bold;
}

.payment-methods img {
  margin-top: 10px;
  border: 1px solid black;
  border-radius: 8px;
  max-width:380px!important;
}
@media (max-width: 768px) { /* Ajuste la largeur maximale sur mobile */
  .payment-methods img {
    max-width: 280px !important;
  }
}
.modal-content-2 form {
  display: flex;
  flex-direction: column;
}
.modal-content-2 form input {
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  border: 1px solid gray;
}
.payment-options {
  display: flex;
  flex-direction: column;
  align-items: start;
}
.visible {
  opacity: 1;
  transition: opacity 0.5s ease;
  z-index: 2; /* Assure que l'image visible est au-dessus */
}
.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
  font-size: 28px;
  color: #000;
}

.modal {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
}
.modal-product-details {
  display: flex;
  padding: 0px 1rem;
  align-items: center;
  justify-content: space-between;
}
.product-details-pricing-section {
  display: flex;
  align-items: center;
gap:20px;
}
.product-details-pricing-section img {
  width: 6rem;
border-radius:8px;
}
.product-details-pricing-section div p {
  font-weight: bold;
  margin-bottom: 10px;
}
.modal-discounted-price {
  color: black;
  font-weight: bold;
}
.modal-original-price {
  color: gray;
  text-decoration: line-through;
  margin-left: 10px;
}
.modal-total-price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0rem 1rem;
  font-weight: bold;
}

@media (max-width: 768px) {

  .modal-content {
    flex-direction: column-reverse;
    align-items: center;
    justify-content: space-between;
  }
  .modal-content-1 {
    width: 100%;
    display: flex;
    padding: 20px;
  }
  .modal-content-2 {
    padding: 20px;
    width: 100%;
  }
  .modal-content-1 h2 {
    transform: translateY(0rem);
  }
  .modal-total-price {
    transform: translateY(0rem);
  }
  
}
.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}


.image-gallery, .product-details, .info-box {
    padding: 20px !important;
    border-radius: 10px !important;
    margin: 10px !important;
    flex: 1 1 300px !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

.thumbnail-slider {
    margin-top: 10px !important;
}

.thumbnail-slider img {
    width: 60px !important;
    height: 60px !important;
    margin: 5px !important;
    border: 2px solid #000000 !important; /* Bordure noire */
    border-radius: 5px !important;
    cursor: pointer !important;
}
.product-details table td:first-child {
    font-weight: bold !important;
}

.price-box {
    margin-top: 20px !important;
    text-align: center !important;
}

.discount-price-box {
    font-size: 24px !important;
    color: #28a745 !important; /* Vert pour le prix */
}

.discount-price-box .discount {
    background-color: white !important; /* Vert pour le badge de réduction */
    color: black !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    margin-right: 10px !important;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);

}

.original-price {
    text-decoration: line-through !important;
    color: #777 !important;
}

.info-box p, .info-box strong {
    color: #000000 !important; /* Texte en noir */
}

.rating {
    font-size: 18px !important;
    color: #28a745 !important; /* Vert pour les étoiles */
}

.rating span {
    color: #000000 !important; /* Note en noir */
    margin-left: 5px !important;
}

/* Formulaire de commande rapide */
.quick-order {
    padding: 20px !important;
    border-radius: 10px !important;
    margin: 20px auto !important;
    text-align: center !important;
}

.order-header p {
    font-size: 24px !important;
    margin: 0 !important;
    color: white !important; /* Texte en vert */
}

.order-form {
    margin-top: 20px !important;
}

.container-sidebar {
    display: flex !important;
    flex-wrap: wrap !important;
    margin-top: 40px !important;
}

.sidebar {
    flex: 1 1 200px !important;
    margin-right: 20px !important;
}
.sidebar p {
    padding: 20px !important; 
}
.sidebar p {
    background-color: black !important;
    color: #ffffff !important;
    margin: 5px 0 !important;
    cursor: pointer !important;
    font-weight:bold;
    text-align:center;
    border-radius: 5px !important;
}

.content {
    flex: 3 1 600px !important;
}



.section.active {
    display: block !important;
}

/* Styles pour les boutons et liens */
button, input[type="submit"] {
    font-family: inherit !important;
}

/* Design réactif */
@media (max-width: 768px) {

    .image-gallery, .product-details, .info-box {
        width: 100% !important;
        margin: 0px 0 !important;
    }

    .container-sidebar {
        flex-direction: column !important;
    }

    .sidebar {
        margin-right: 0 !important;
        margin-bottom: 20px !important;
    }
}
@media only screen and (max-width: 768px) {
    .order-header p {
        color: black!important;
    }
}@media only screen and (max-width: 768px) {
    .ordeer {
        text-align: center;
        width: 100%;
        margin: auto;
    }
}
@media only screen and (max-width: 768px) {
    .ordeer {
        text-align: center;
        width: 100%;
        margin: auto;
    }
}
@media only screen and (max-width: 768px) {
    .sidebar {
        flex: 1 1 100px !important;
        margin-right: 20px !important;
    }
}/* Classes d'animation pour le slider */
.slide-in-left {
    animation: slideInLeft 0.5s forwards;
}

.slide-in-right {
    animation: slideInRight 0.5s forwards;
}

.slide-out-left {
    animation: slideOutLeft 0.5s forwards;
}

.slide-out-right {
    animation: slideOutRight 0.5s forwards;
}

@keyframes slideInLeft {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Classe pour le thumbnail actif */
.thumbnail.active {
    opacity: 1;
    transform: scale(1.1);
    /* Ajoutez d'autres styles si nécessaire */
}

/* Assurez-vous que les images du slider sont positionnées correctement */
.image-gallery .main-image-container {
    position: relative;
    width: 100%;
    height: 400px; /* Ajustez selon vos besoins */
    overflow: hidden;
}
@media screen and (max-width: 768px) {
    .image-gallery .main-image-container {
        height: 250px;
    }
}

.current-image, .next-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.next-image.hidden {
    /* display: none; */ /* Supprimé */
    opacity: 0;
    transition: opacity 0.5s ease;
}

.product-details-card-section {
  display: block; /* Comportement par défaut pour mobile */
}

/* Styles pour les écrans PC */
@media (min-width: 768px) {
  .product-details-card-section {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Espace entre les cartes, ajustez selon vos besoins */
  }

  .product-card {
    flex: 1 1 calc(25% - 20px); /* 4 cartes par ligne avec espace de 20px */
    display: flex;
    flex-direction: column;
    border: 1px solid #ddd; /* Optionnel : ajouter une bordure pour mieux visualiser */
    padding: 16px; /* Optionnel : ajouter du padding */
    box-sizing: border-box;
  }

  .product-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .product-details-text {
    flex-grow: 1; /* Permet au texte de prendre l'espace restant */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .price {
    margin-top: auto; /* Pousse le prix en bas de la carte */
  }
}.product-card .product-image img {
  width: 100%;
  height: 200px; /* Ajustez la hauteur selon vos besoins */
  object-fit: contain;
}
/* Styles généraux */
.product-list {
  margin: 60px 0;
}

.product-list h2 {
  text-align: center;
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}

.product-details-card-section {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Carte produit */
.product-card {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  flex: 1 1 calc(25% - 20px); /* Pour 4 cartes par ligne */
  max-width: calc(25% - 20px);
  box-sizing: border-box;
  transition: transform 0.3s ease;
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-image {
  width: 100%;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 200px; /* Hauteur uniforme pour toutes les images */
  object-fit: cover; /* Les images remplissent le conteneur sans être déformées */
  display: block;
}

.product-details-text {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-details-text h3 {
  font-size: 18px;
  margin: 0 0 10px;
  flex: 0 0 auto;
}

.product-details-text p {
  margin: 0 0 10px;
  flex: 0 0 auto;
}

.product-details-text .price {
  margin-top: auto;
  flex: 0 0 auto;
}

.current-price {
  color: #e60000;
  font-weight: bold;
}

.original-price {
  text-decoration: line-through;
  color: #777;
  margin-left: 10px;
}

/* Design réactif */
@media (max-width: 780px) {
  .product-details-card-section {
    flex-direction: column;
  }

  .product-card {
    flex: 1 1 100%;
    max-width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 10px;
    margin-bottom: 15px;
  }

  .product-card-link {
    flex-direction: row;
    height: auto;
    width: 100%;
  }

  .product-image {
    flex: 0 0 30%;
    margin-right: 10px;
  }

  .product-image img {
    width: 100%;
    height: 100px; /* Hauteur uniforme pour les images sur mobile */
    object-fit: cover;
  }

  .product-details-text {
    flex: 1;
    padding: 0;
  }

  .product-details-text h3 {
    font-size: 16px;
    margin: 0 0 5px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-details-text p {
    margin: 0 0 5px 0;
    font-size: 14px;
  }

  .product-details-text .price {
    margin-top: auto;
  }
}
@media screen and (min-width: 1024px) {
  .content {
    min-height: 422px;
  }
}
.main-image-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: contain;
  transition: opacity 0.5s ease;
  max-width: 100%;
  max-height: 100%;
}

/* Galerie d'images */
.image-gallery {
  width: 28%;
}

.main-image-container {
  position: relative;
  overflow: hidden;
  height: 300px; /* Ajustez selon vos besoins */
  width: 100%;
  border-radius: 8px;
}

.main-image-container img {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  object-fit: contain;
  transition: opacity 0.5s ease;
  max-width: 100%;
  max-height: 100%;
}

#current-image {
  z-index: 1;
  opacity: 1;
}

#next-image {
  z-index: 2;
  opacity: 0;
}

.hidden {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.visible {
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Slider de miniatures */
.thumbnail-slider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: 10px;
}

.thumbnail {
  width: 50px;
  height: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  border-radius: 5px;
  transition: border-color 0.3s, transform 0.3s;
}

.thumbnail.active {
  border-color: #007bff;
  transform: scale(1.1);
}

/* Animations de glissement */
.slide-in-left {
  animation: slideInLeft 0.5s forwards;
}

.slide-in-right {
  animation: slideInRight 0.5s forwards;
}

.slide-out-left {
  animation: slideOutLeft 0.5s forwards;
}

.slide-out-right {
  animation: slideOutRight 0.5s forwards;
}

@keyframes slideInLeft {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

