/* ================================================================
   SiteTheme — Category children grid
   ================================================================ */

.category-children-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
    padding: 1.5rem 0 2.5rem;
}

.category-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out, transform 0.2s ease-in-out;
    background: #fff;
}

.category-card:hover {
    box-shadow: 0 0.375rem 1rem rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.category-card__image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f8f9fa;
}

.category-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-card__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #adb5bd;
    font-size: 2.5rem;
}

.category-card__name {
    padding: 0.65rem 0.75rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-align: center;
    line-height: 1.35;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive: 2 columns on xs */
@media (max-width: 575px) {
    .category-children-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* ================================================================
   SiteTheme — Section heading above grid
   ================================================================ */

.category-children-heading {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: #343a40;
}
