/* 
From Uiverse.io by mrhyddenn
Product button
*/
.product-button {
  background: #e34e1e;
  color: white;
  border: none;
  padding: 10px 20px;
  display: inline-block;
  font-size: 15px;
  font-weight: 400;
  width: 140px;
  cursor: pointer;
  transform: skew(-21deg);
}

.product-button span {
  display: inline-block;
  transform: skew(21deg);
  color: white;
}

.product-button::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  left: 0;
  background: #212529;
  opacity: 0;
  z-index: -1;
  transition: all 0.7s;
}

.product-button:hover {
  color: white;
}

.product-button:hover::before {
  left: 0;
  right: 0;
  opacity: 1;
}

.product-button.active {
  background-color: #212529;
  color: white;
}

/* Product card */
.product-card {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.product-card.hidden {
  opacity: 0;
  transform: scale(0.95);
  pointer-events: none;
}

/* Flip card */
/* From Uiverse.io by joe-watson-sbf */
.flip-card {
  background-color: transparent;
  width: 190px;
  height: 100%;
  aspect-ratio: 3 / 4;
  perspective: 1000px;
}

.title {
  font-size: 1.5em;
  font-weight: 400;
  text-align: center;
  margin: 0;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  box-shadow: 0 8px 14px 0 rgba(0, 0, 0, 0.2);
  position: absolute;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border: 1px solid #e34e1e;
  border-radius: 1rem;
}

.flip-card-front {
  background: linear-gradient(120deg, #e34e1e 40%, #f3722c 80%);
  color: white;
}

.flip-card-back {
  background: linear-gradient(120deg, #212529 40%, #343a40 80%);
  color: white;
  transform: rotateY(180deg);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  justify-items: center;
  /* centreert items horizontaal */
}