/* ! product_list.html.twig */
.product-card {
  transition: transform 0.2s, box-shadow 0.2s;
}

/*! Panel produit*/
.panel-background-content {
  background-color: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: 1050;
  display: none;
}

.panel-content {
  position: fixed;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  background-color: white;
  height: 80%;
  width: 50%;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.card {
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn-add {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 5px 15px;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.btn-add:hover {
  background-color: #0056b3;
}

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

.btn-close:hover {
  color: #333;
}

/* ! Container gauche */

.btn-ajouter {
  background-color: #015796;
  color: white;
  border-radius: 10px;
  padding: 5px 15px;
  border: none;
  cursor: pointer;
}
.btn-ajouter:hover {
  background-color: #01416e;
  color: white;
}

.card img {
  max-width: 70%;
  height: auto;
  margin: 0 auto;
  border-radius: 10px;
  padding-top: 10px;
}

/* ! Container droit */

/* Bouton 'Supprimer' */
.remove-product {
  background-color: transparent;
  border: none;
  color: red;
  cursor: pointer;
}

.remove-product .material-icons {
  font-size: 20px;
  vertical-align: middle;
}
.product-section {
  width: 50%;
  padding: 15px;
  border-radius: 15px;
}
.product-section h5 {
  color: black;
  font-size: 1.3rem;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 2px solid #d9d9d9;
  padding-bottom: 8px;
}
