/* Sub-category tiles on product category pages (woocommerce/taxonomy-product_cat.php). Plain CSS, no build step. */

.bc-subcats { margin: 0 0 32px; font-family: 'Poppins', 'Inter', system-ui, sans-serif; }
.bc-subcats__tagline { margin: -8px 0 20px; color: #4b5757; font-size: 16px; line-height: 1.5; max-width: 60ch; }

.bc-subcats__grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0; padding: 0; list-style: none;
}
@media (min-width: 640px)  { .bc-subcats__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .bc-subcats__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; } }

.bc-subcats__card {
  display: flex; flex-direction: column; height: 100%;
  overflow: hidden; border-radius: 16px;
  background: #fbf6f0;
  box-shadow: 0 2px 10px rgba(37, 67, 67, .08);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.bc-subcats__card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(37, 67, 67, .14); }
.bc-subcats__card:focus-visible { outline: 2px solid #e5af4d; outline-offset: 2px; }

.bc-subcats__img { display: block; aspect-ratio: 4 / 3; background: #f1ece5; }
.bc-subcats__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

.bc-subcats__name {
  padding: 12px 10px 14px;
  color: #254343; font-size: 16px; font-weight: 600; line-height: 1.3; text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .bc-subcats__card { transition: none; }
  .bc-subcats__card:hover { transform: none; }
}
