/* Wrapper with flexbox */
.wc-category-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between; /* ✅ cards spread like space-between */
  gap: 10px; /* gap between rows */
}

/* Card */
.wc-cat-card {
  position: relative;
  display: block;
  flex: 0 1 244px;  /* fixed width but shrink on small screens */
  height: 345px;    /* fixed height */
  border-radius: 4.93px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  transition: transform .25s ease, box-shadow .25s ease;
}
.wc-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.18);
}

/* Background image */
.wc-cat-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 19px;
    min-height: 345px;
}

/* Info section */
.wc-cat-info {
    width: calc(100% - 40px);
    background: #fff;
    padding: 10px 12px;
    text-align: center;
    border-radius: 3px;
}
.wc-cat-name {
  display: block;
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 3px;
  color: #000;
	line-height: 1;
}
.wc-cat-count {
  font-size: 14px;
  color: #23291FBB;
}
.woocommerce-js ul.products li.product a img {
    aspect-ratio: 1;
    object-fit: contain;
}
.ast-single-post .entry-content a{
	text-decoration: none;
}

/* Responsive tweaks */
@media (max-width: 900px) {
  .wc-cat-card {
    flex: 0 1 calc(50% - 20px); /* 2 per row on tablets */
    height: auto;
   aspect-ratio: 244 / 345;
  }
}
@media (max-width: 480px) {
  .wc-cat-card {
    flex: 0 1 100%; /* full width on mobile */
  }
}