.card-customs,
.card-custom {
  padding: 1.5rem;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1;
  color: rgb(255, 255, 255);
  backdrop-filter: blur(8px) brightness(50%);
  -webkit-backdrop-filter: blur(8px) brightness(85%);
  word-break: break-all;
}

.card-customs h4 a {
  text-decoration: none;
  color: rgba(254, 170, 46, 1);
}

.card-customs p {
  font-size: 17px;
  word-break: auto-phrase;
}

.card-img-overlay {
  background-color: rgba(0, 0, 0, 0.4);
  width: auto;
}

.card-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 24px 32px -12px rgba(128, 128, 128, 0.1);
}

.card-hover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-hover {
  position: relative;
  width: 380px;
  height: 220px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 22px;
  text-align: center;
  opacity: 1;
  cursor: pointer;
}

.card-product-custom .card-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 22px;
  text-align: center;
  opacity: 1;
  cursor: pointer;
}

.custom-hover {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease-in-out;
}

/* เมื่อ Hover */
.custom-hover:hover {
  transform: scale(1.05);
  box-shadow: 0 24px 32px -12px rgba(128, 128, 128, 0.1);
}

.card {
  max-width: 100%; /* ป้องกันการขยายเกินขนาด */
  text-align: center; /* จัดให้ข้อความอยู่ตรงกลาง */
}