body {
  font-family: Arial, sans-serif;
  margin: 20px;
  background-color: #f9f9f9;
}
h1 {
  text-align: center;
}

.title-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  position: relative;
  /* flex-direction: row-reverse; */
}

.center-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
}

a.add-button {
  margin-left: auto;
  padding: 10px 15px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.product-tile {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  width: 300px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}
.product-tile:hover {
  transform: scale(1.02);
}
.product-tile img {
  max-width: 100%;
  border-radius: 4px;
  margin-bottom: 10px;
}
.product-tile h2 {
  margin-top: 0;
}
.product-tile p {
  margin: 5px 0;
}
.edit-link {
  display: inline-block;
  margin-bottom: 10px;
  color: #007bff;
  text-decoration: none;
}
.edit-link:hover {
  text-decoration: underline;
}

.title-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px; /* ruimte onder de header */
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px; /* ruimte onder de header */
}

.product-header h2 {
  margin: 0;
}

.edit-link {
  margin-left: auto;
  text-decoration: none;
}

.product-description {
  display: -webkit-box;
  -webkit-line-clamp: 5; /* aantal regels */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-description-full {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-overlay {
  position: absolute;
  top: calc(100% + 10px); /* net onder het zoekveld */
  left: 0;
  right: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.95); /* semi-transparant */
  padding: 1rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.modal-overlay.hidden {
  display: none;
}
