.titre {
    text-align: center;
    font-size: 1.7rem;
    margin-bottom: 25px;
}

#filter-toggle {
  margin: 20px auto;
  display: block;
  padding: 10px 20px;
  background-color: #5a4f43;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  /*position: fixed;
  left: 20px;
  top: 100px; 
  z-index: 1000;*/
}

.filters {
  display: none;
  margin: 10px auto 20px;
  padding: 15px;
  max-width: 500px;
  background-color: #f3f0ec;
  border: 1px solid #ccc;
  border-radius: 10px;
}

.filters label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}

.filters select,
.filters button {
  width: 100%;
  padding: 8px;
  margin-top: 5px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #aaa;
}

#reset-filters {
  background-color: #ccc;
  margin-top: 10px;
}

.featured-products {
    padding: 0px 0px;
    text-align: center;
}

.product {
    max-width: 600px;
    position: relative;
    padding-bottom: 50px;
}

.product img {
    width: 600px;
    height: 600px;
    object-fit: cover;
    border-radius: 0;
    background-color: white;
    transition: transform 0.3s ease;
    display: block;
}

.product img:hover {
    transform: scale(1);
}

.product-name, .price {
    font-family: 'didot', serif;
    text-align: left;
    margin: 5px 0;
    color: #5a4f43;
}

.product-name {
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
}

.price {
    font-size: 1rem;
    color: #7a6f63;
}

.product button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: #5a4f43;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 0;
}

.products-container {
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    display: flex;
    max-width: 1300px;
    margin: 0 auto;
}

.product-detail-overlay {
  position: fixed;
  top: 0; right: 0;
  width: 0;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  overflow-x: hidden;
  transition: 0.5s;
  z-index: 1000;
}

.product-detail-content {
  padding: 20px;
  width: 300px;
}

.product-detail-overlay.active {
  width: 300px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.detail-images img {
  width: 100%;
  margin-bottom: 10px;
}

@media (max-width: 768px) {
    .featured-products {
      padding: 0px 0px;
      text-align: center;
  }

  .product {
      max-width: 600px;
      position: relative;
      padding-bottom: 50px;
  }

  .product img {
      width: 300px;
      height: 300px;
      object-fit: cover;
      border-radius: 0;
      background-color: white;
      transition: transform 0.3s ease;
      display: block;
  }

  .product img:hover {
      transform: scale(1);
  }

  .product-name, .price {
      font-family: 'didot', serif;
      text-align: left;
      margin: 5px 0;
      color: #5a4f43;
  }

  .product-name {
      font-size: 0.9rem;
      font-weight: 400;
      text-decoration: none;
  }

  .price {
      font-size: 0.6rem;
      color: #7a6f63;
  }

  .product button {
      position: absolute;
      bottom: 5px;
      right: 5px;
      background-color: #5a4f43;
      color: white;
      padding: 10px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      margin: 0;
  }

  .products-container {
      justify-content: center;
      gap: 50px;
      flex-wrap: wrap;
      display: flex;
      max-width: 1300px;
      margin: 0 auto;
  }
}

/* ========================= */
/* Modal Fiche Produit Start */
/* ========================= */

/* Style général du modal */
#modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    overflow: auto;
}

/* Boîte blanche */
.modal-content {
    background-color: #fff;
    padding: 40px;
    border-radius: 12px;
    max-width: 1100px; /* Agrandi */
    width: 90%;
    display: flex;
    flex-wrap: wrap;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    position: relative;
}


/* Zone infos */
.modal-info {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Titre produit */
#modal-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Détails produit */
#modal-details {
    font-size: 18px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Quantité + bouton */
.modal-actions {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

#quantity {
    width: 60px;
    padding: 5px;
    margin-right: 15px;
}

#add-to-cart-modal {
    background-color: #d7c28e;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#add-to-cart-modal:hover {
    background-color: #c2ad75;
}

/* Bouton fermeture */
.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #333;
    z-index: 10;
}

.close:hover {
    color: #000;
}

/* Conteneur de l'image avec flèches */
.modal-image-wrapper {
    position: relative;
    flex: 1 1 50%; /* Un peu plus large */
    max-width: 50%;
    margin-right: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    max-height: 500px; /* Limite raisonnable pour éviter que ça déborde */
    border-radius: 8px;
    object-fit: cover;
}

/* Style des flèches */
.arrow-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem; /* Plus visible */
    color: #333;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s;
}

.arrow-button:hover {
    color: #000;
}

.arrow-button.left {
    left: 10px;
}

.arrow-button.right {
    right: 10px;
}

#prev-image {
    left: -40px;
}

#next-image {
    right: -40px;
}

/* ========================= */
/* Modal Fiche Produit End */
/* ========================= */
