.products-container {
  display: flex;
  width: 100%;
  justify-content: space-evenly;
  flex-wrap: wrap;
  padding: 30px 25px;
  gap: 20px;
}

.product-card {
  width: 30%;
  min-height: 500px;
  background-color: #ffffff;
  box-shadow: rgba(0, 0, 0, 0.15) 0px 5px 15px;
  padding: 25px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: rgba(0, 0, 0, 0.25) 0px 10px 20px;
}

.product-card .product-image {
  background-size: cover;
  background-position: center;
  width: 100%;
  height: 60%;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
}

.product-card .product-image img {
  width: 100%;
}
.product-card .product-image .product-image-mask {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 15px;
  background-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.7)
  );
  color: #fff;
  font-size: 18px;
  transition: transform 0.3s ease;
  transform: translateY(100%);
}

.product-card .product-image:hover .product-image-mask {
  transform: translateY(0);
}

.product-card p {
  margin: 15px 0;
  text-overflow: ellipsis;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  color: #333;
}

.product-card .product-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-card .product-info span {
  background-color: #f6bd60;
  color: #fff;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
}

.product-card .product-info button {
  background-color: #f6bd60;
  color: #fff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 500;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.product-card .product-info button:hover {
  background-color: #e09b3d;
  transform: translateY(-2px);
}

.modal {
  width: 80%;
  max-width: 650px;
  margin: auto;
  padding: 0;
  border: none;
  display: flex;
  flex-direction: column;
  box-shadow: rgba(0, 0, 0, 0.45) 0px 5px 15px;
  background-color: #fff;
  border-radius: 10px;
}

.modal::backdrop {
  background-color: rgba(0, 0, 0, 0.4);
}

.dialog-header {
  background-color: #f6bd60;
  color: #fff;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 10px 10px 0 0;
}

.dialog-header p {
  font-size: 24px;
  font-weight: bold;
}

.close-button {
  width: 40px;
  height: 40px;
  font-size: 20px;
  background-color: #ffffff;
  color: #333;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s ease;
}

.close-button:hover {
  background-color: #ed7e07;
  color: #fff;
}

.title {
  font-size: 26px;
  margin: 20px 10px;
  color: #333;
}

.message {
  font-size: 18px;
  line-height: 1.5;
  color: #555;
}

.modal {
  display: none;
}
.modal > button {
  padding: 12px 24px;
  background-color: #f6bd60;
  color: #fff;
  border: none;
  border-radius: 8px;
  align-self: center;
  margin: 20px 0;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.modal > button a {
  text-decoration: none;
  color: #fff;
}
.modal > button:hover {
  background-color: #e09b3d;
  transform: translateY(-2px);
}

.modal > button:active {
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .product-card {
    width: 45%;
  }
}

@media (max-width: 992px) {
  .product-card {
    padding: 20px;
  }

  .product-card .product-info span {
    padding: 6px 15px;
    font-size: 13px;
  }

  .product-card .product-info button {
    padding: 10px 20px;
    font-size: 14px;
  }

  .dialog-header p {
    font-size: 22px;
  }

  .title {
    font-size: 24px;
  }

  .message {
    font-size: 16px;
  }
}

@media (max-width: 768px) {
  .product-card {
    width: 100%;
    min-height: 450px;
  }

  .product-card .product-image .product-image-mask {
    font-size: 16px;
  }

  .products-container {
    padding: 20px 15px;
  }

  .modal {
    width: 90%;
  }
}

@media (max-width: 576px) {
  .product-card {
    min-height: 400px;
    padding: 15px;
  }

  .product-info {
    flex-direction: column;
    gap: 15px;
  }

  .product-card .product-info {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .dialog-header {
    padding: 12px 20px;
  }

  .dialog-header p {
    font-size: 20px;
  }

  .close-button {
    width: 35px;
    height: 35px;
    font-size: 18px;
  }

  .title {
    font-size: 22px;
    margin: 15px 10px;
  }

  .message {
    font-size: 15px;
  }

  .modal > button {
    padding: 10px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .product-card {
    min-height: 380px;
    padding: 12px;
  }

  .product-card p {
    font-size: 14px;
    margin: 10px 0;
  }

  .product-card .product-image .product-image-mask {
    font-size: 14px;
    padding: 10px;
  }

  .product-card .product-info span {
    padding: 5px 12px;
    font-size: 12px;
  }

  .product-card .product-info button {
    padding: 8px 16px;
    font-size: 13px;
  }
}
