/* RESET & BODY */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: #f5f5f5;
}

/* HEADER */
header {
  background: linear-gradient(90deg, #007BFF, #ffffff, #FFD700);
  color: #333;
  padding: 20px;
  text-align: center;
  font-size: 2rem;
  font-weight: bold;
}

/* PRODUCT GRID */
#product-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  padding: 20px;
}

/* PRODUCT CARD */
.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  overflow: visible; /* chanje soti nan hidden pou evite koupe imaj */
  text-align: center;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-5px);
}

/* IMAGE */
.product-card img {
  width: 100%;
  height: 150px;  /* Kenbe gwosè aktyèl ou renmen an */
  object-fit: contain; /* Pa koupe imaj, montre li antye */
  background-color: #f9f9f9; /* Limyè background pou transparans */
  display: block;
  margin: 0 auto;
}

/* TIT & PRIX */
.product-card h3 {
  margin: 10px 0 5px;
  font-size: 1.1rem;
}

.product-card p {
  margin: 5px 0;
  color: #555;
}

/* BOUTON ACHETER */
.product-card button {
  background: #007BFF;
  color: white;
  border: none;
  padding: 10px;
  width: 90%;
  margin: 10px 0 15px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s;
}

.product-card button:hover {
  background: #0056b3;
}

/* MODAL */
.modal {
  display: none; 
  position: fixed; 
  z-index: 999; 
  left: 0;
  top: 0;
  width: 100%;
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
}

.close {
  color: #aaa;
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.close:hover {
  color: #000;
}

/* BOUTON PAYPAL */
#paypal-btn {
  background: #003087;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
}

#paypal-btn:hover {
  background: #001f5b;
}
