body {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: auto;
  padding: 10px;
  background: #f2f2f7;
  color: #222;
}

h1 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

input, button, textarea {
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #ccc;
  transition: border-color 0.3s ease;
  outline-offset: 2px;
}

input:focus, button:focus, textarea:focus {
  border-color: #007bff;
  outline: none;
}

button {
  cursor: pointer;
  background: #007bff;
  color: white;
  border: none;
  box-shadow: 0 2px 6px rgba(0,123,255,0.4);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
  background: #0056b3;
  box-shadow: 0 4px 12px rgba(0,86,179,0.6);
}

.piece {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgb(0 0 0 / 0.1);
  padding: 15px;
  margin: 12px 0;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: box-shadow 0.3s ease;
}

.piece:hover {
  box-shadow: 0 8px 20px rgb(0 0 0 / 0.15);
}

.piece img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.piece img:hover {
  transform: scale(2);
  z-index: 10;
  box-shadow: 0 0 20px rgba(0,123,255,0.7);
}

.stock-epuise {
  color: #d9534f;
  font-weight: 700;
}

.quantite-controls button {
  margin: 0 5px;
}

#panierContainer {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 1000;
}

#panierBtn {
  border-radius: 25px;
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(0,123,255,0.4);
}

#panier table {
  width: 100%;
  border-collapse: collapse;
}

#panier th, #panier td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

#panier th {
  background-color: #007bff;
  color: white;
  font-weight: 600;
}

.hidden {
  display: none;
}

#commandeModal {
  position: fixed;
  top: 50%;
  left: 50%;
  background: white;
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transform: translate(-50%, -50%);
  max-width: 400px;
  width: 90%;
  z-index: 2000;
}

@media (max-width: 600px) {
  .piece {
    flex-direction: column;
    align-items: flex-start;
  }

  .piece img {
    width: 100%;
    max-width: 180px;
    height: auto;
  }

  #panier table, #panier th, #panier td {
    font-size: 0.9rem;
  }
}
