header {
    background: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #ddd;
}
.container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.categories-list {
    display: flex;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
    justify-content: space-around; /* Distribue l'espace entre les éléments */
    align-items: flex-start;
    list-style: none; /* Supprime les puces si vous utilisez des <ul> */
}

.categories-item {
  display: flex;
  flex-direction: column; /* Place l'image au-dessus du texte */
  align-items: center; /* Centre le contenu horizontalement */
  text-align: center;
  margin: 10px;
  text-decoration: none; /* Supprime le soulignement des liens */
  color: #333;
  max-width: 100px;
}

.category-image {
  height: 100px;
  object-fit: cover; /* S'assure que l'image remplit le cercle sans distorsion */
  border-radius: 50%; /* C'est la propriété clé : transforme le carré en cercle */
  border: 2px solid rgba(0, 0, 0, 0.2); /* Ajoute un cadre noir léger (20% d'opacité) */
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}
.products-section {
    flex: 2;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-right: 20px;
}

.product-grid h2 {
    display: block;
    width: 100%;
    color: #e2a78c;
    border-bottom: 2px solid #e2a78c;
    padding-bottom: 5px;
}

.product-grid h3 {
    display: block;
    width: 100%;
    color: #e2a78c;
    padding-left: 10px;
}
.product-grid {
  display: flex;
  flex-wrap: wrap; /* Permet aux cartes de passer à la ligne */
  justify-content: center; /* Centre les cartes horizontalement */
  gap: 20px; /* Espace entre les cartes */
    background: #fff;
    padding: 20px;
    border-radius: 8px;
}

/* Styles pour chaque carte de produit */
.product-card {
  display: flex;
  flex-direction: column; /* Organise le contenu en colonne (image puis info) */
  width: 250px; /* Largeur de base de la carte */
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  background-color: #fff;
}

/* Effet de survol sur la carte */
.product-card:hover {
  transform: translateY(-5px); /* Remonte la carte */
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Conteneur et image */
.product-image-container {
  /* width: 100%;
  height: 150px;
  padding: 10px; */
  text-align: center;
}

.product-image {
  /* width: 100%; */
  height: 100%;
  object-fit: cover; /* Recadre l'image pour remplir le conteneur */
}

/* Informations du produit */
.product-info {
  padding: 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* Permet au contenu de s'étendre et de pousser le prix/bouton vers le bas */
}

.product-title {
  font-size: 1.1em;
  font-weight: bold;
  margin: 0 0 10px;
}

.product-description {
  font-size: 0.9em;
  color: #666;
  margin: 0 0 10px;
  flex-grow: 1; /* Permet à la description de prendre l'espace restant */
}

.product-price {
  font-size: 1.2em;
  font-weight: bold;
  color: #000;
  margin-top: auto; /* Pousse le prix et les actions vers le bas */
}

/* Actions (quantité et bouton) */
.product-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.product-quantity {
  width: 60px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 5px;
}

.add-to-cart {
    background-color: #e2a78c;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.add-to-cart:hover {
    background-color: #e2a78c;
}

.modal {
  display: none; /* Cachée par défaut */
  position: fixed; /* Reste en place même si on fait défiler la page */
  z-index: 1000; /* Assure que la modale est au-dessus de tout */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* Permet le défilement si l'image est très grande */
  background-color: rgba(0, 0, 0, 0.9); /* Fond noir semi-transparent */
  padding-top: 50px; /* Espace en haut */
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
}

#modal-image {
  /* width: 100%; */
  height: auto;
  display: block;
  margin: 0 auto;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.close-btn:hover,
.close-btn:focus {
  color: #bbb;
}

.cart-summary {
    flex: 1;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.cart-summary h2 {
    color: #007BFF;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
    text-align: center;
}

.valider-panier {
    display: inline-block;
    background-color: #df8961;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
}

.valider-panier:hover {
    background-color: #E2A78C;
}
.vider-panier {
    display: inline-block;
    background-color: #dc3545;
    color: white;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
}

.vider-panier:hover {
    background-color: #c82333;
}

.cart-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
}
.cart-messages {
    display: block;
    text-align: center;
    padding-top: 10px;
}
.cart-item {
  border-bottom: 1px solid #ddd;
  /* padding-bottom: 15px;
  margin-bottom: 15px; */
}

.item-header, .item-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* .item-details {
  margin-top: 10px;
} */

.item-name {
  color: #e2a78c;
  font-size: 1em;
  font-weight: bold;
  white-space: nowrap;
}

.quantity-input {
  width: 60px;
  text-align: center;
}

.item-price {
  font-weight: bold;
  font-size: 1.1em;
}

.cart-total {
  text-align: right;
  font-size: 1.5em;
  font-weight: bold;
  margin: 20px 0;
}

.cart-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-delete {
  background-color: #dc3545;
  color: #fff;
}

.btn-validate {
  background-color: #fd7e14;
  color: #fff;
}
