/* custom-products.css - refined version
   Matches the sample screenshot look (soft beige bg, centered text, zoom hover)
*/

/* ======= GRID LAYOUT ======= */
ul.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 20px 0;
}

/* each card */
ul.products li.product,
li.custom-product-card {
  background: #f9f6f1;
  border-radius: 12px;
  padding: 28px 20px 35px;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* subtle hover elevation */
ul.products li.product:hover {
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

/* ======= IMAGE ======= */
.custom-card-image-wrap {
  width: 100%;
  max-width: 380px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #fff;
  aspect-ratio: 4 / 3; /* modern browsers maintain consistent aspect */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* image itself */
.custom-card-image {
  width: 100%;
  height: auto;
  transition: transform 0.45s ease;
  transform-origin: center center;
}

/* zoom hover effect */
.custom-card-image-wrap:hover .custom-card-image {
  transform: scale(1.08);
}

/* ======= BODY ======= */
.custom-card-body {
  text-align: center;
  margin-top: 22px;
  max-width: 95%;
}

.custom-card-title {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  text-transform: uppercase;
  margin: 10px 0 12px;
  letter-spacing: 0.8px;
  color: #1f1f1f;
}

.custom-card-title a {
  text-decoration: none;
  color: inherit;
}

/* short description */
.custom-card-excerpt {
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.6;
  color: #575757;
  margin-bottom: 14px;
}

/* CTA link */
.custom-card-cta {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.custom-card-cta:hover {
  color: #7a5c3d;
  border-color: #7a5c3d;
}

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  ul.products {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  ul.products {
    grid-template-columns: 1fr;
  }

  ul.products li.product {
    padding: 20px 16px 28px;
  }
}