body {
  font-family: 'Arial', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f0f0f0;
}

header {
  background: #34495e;
  color: white;
  padding: 20px 0;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  margin: 20px 0;
}

nav ul {
  list-style: none;
  padding: 0;
}

nav a {
  margin: 0 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #1abc9c;
}

.search-bar {
  margin: 20px auto;
  display: flex;
  justify-content: center;
}

.search-bar input {
  padding: 10px;
  width: 300px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.search-bar button {
  padding: 10px;
  border: none;
  background: #1abc9c;
  color: white;
  border-radius: 5px;
  margin-left: 10px;
  cursor: pointer;
}

.container {
  width: 90%;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.card img {
  max-width: 100%;
  border-radius: 10px;
  margin-bottom: 10px;
}

.card h2 {
  color: #2980b9;
  font-size: 1.5em;
}

.card p {
  font-size: 14px;
  color: #555;
  margin: 10px 0;
}

.price {
  font-size: 1.2em;
  color: #e67e22;
  margin: 5px 0;
}

.stock {
  font-size: 0.9em;
  color: #2ecc71;
}

.button {
  background: #1abc9c;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.button:hover {
  background: #16a085;
}

.contact-section {
  background: #ffffff;
  padding: 30px;
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.contact-section h2 {
  text-align: center;
  color: #2980b9;
  margin-bottom: 20px;
}

.contact-section form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-section label {
  font-weight: bold;
  color: #34495e;
}

.contact-section input, .contact-section textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  width: 100%;
  transition: border 0.3s;
}

.contact-section input:focus, .contact-section textarea:focus {
  border: 1px solid #1abc9c;
  outline: none;
}

footer {
  text-align: center;
  padding: 20px 0;
  background: #34495e;
  color: white;
  position: relative;
  bottom: 0;
  width: 100%;
  margin-top: 20px;
}

.categories {
  margin: 20px 0;
  text-align: center;
}

.categories h3 {
  color: #2980b9;
}

.categories a {
  margin: 0 10px;
  color: #34495e;
  text-decoration: none;
  font-weight: bold;
}

.categories a:hover {
  color: #1abc9c;
}

.cart-icon {
  float: right;
  margin: 20px;
  font-size: 1.5em;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  padding-top: 60px;
}

.modal-content {
  background-color: #fefefe;
  margin: 5% auto;
  padding: 20px;
  border: 1px solid #888;
  width: 80%;
  border-radius: 10px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

.modal h2 {
  color: #2980b9;
}

.login-section, .signup-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.login-section h2, .signup-section h2 {
  text-align: center;
  color: #2980b9;
}

.login-section form, .signup-section form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.whatsapp-contact {
  text-align: center;
  margin-top: 20px;
}

.whatsapp-contact a {
  color: #25D366;
  font-weight: bold;
  text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .cart-icon {
      float: none;
      display: block;
      text-align: center;
  }

  .search-bar {
      flex-direction: column;
  }

  .search-bar input {
      width: 100%;
      margin-bottom: 10px;
  }

  .container {
      grid-template-columns: 1fr; /* Une seule colonne sur mobile */
  }
}


.social-media {
  display: flex;
  justify-content: center; /* Centre les logos horizontalement */
  gap: 10px; /* Espace entre les logos */
  margin-top: 10px; /* Marge au-dessus des logos */
}

.social-media img {
  width: 40px; /* Largeur des logos */
  height: 40px; /* Hauteur des logos */
  transition: transform 0.3s; /* Transition pour l'effet de survol */
}

.social-media img:hover {
  transform: scale(1.1); /* Agrandissement au survol */
}

      .social-media {
          display: flex;
          gap: 10px;
          margin-top: 10px;
      }
      .social-media img {
          width: 30px; /* Taille des logos */
          height: 30px; /* Taille des logos */
      }

