/* ──────────────────────────────────────────────────────────────
   v2 categorieënoverzicht — [category_overview]
   ────────────────────────────────────────────────────────────── */

.v2-cat-overview {
    margin: 24px 0;
}

.v2-cat-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
}

.v2-cat-grid--cols-1 { grid-template-columns: repeat(1, 1fr); }
.v2-cat-grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.v2-cat-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.v2-cat-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
.v2-cat-grid--cols-5 { grid-template-columns: repeat(5, 1fr); }
.v2-cat-grid--cols-6 { grid-template-columns: repeat(6, 1fr); }

.v2-cat-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.v2-cat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.v2-cat-card__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    overflow: hidden;
    background: #fff;
}

.v2-cat-card__media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.v2-cat-card:hover .v2-cat-card__media img {
    transform: scale(1.05);
}

.v2-cat-card__icon {
    font-size: 48px;
    opacity: 0.6;
}

.v2-cat-card__body {
    padding: 20px;
}

.v2-cat-card__title {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 600;
    color: #333;
    line-height: 1.3;
}

.v2-cat-card__desc {
    margin: 0 0 10px;
    font-size: 14px;
    line-height: 1.4;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.v2-cat-card__count {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
}

/* ──────────────────────────────────────────────────────────────
   WooCommerce-standaard subcategorie-tegels.
   Op categorie-archieven (zie inc/woocommerce-category-display.php)
   toont WooCommerce subcategorieën via ul.products li.product-category.
   Forceer een witte achtergrond zodat ze bij de overzichtskaarten passen.
   ────────────────────────────────────────────────────────────── */
ul.products li.product-category,
ul.products li.product-category a {
    background: #fff;
}

@media (max-width: 768px) {
    .v2-cat-grid,
    .v2-cat-grid--cols-4,
    .v2-cat-grid--cols-5,
    .v2-cat-grid--cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .v2-cat-card__media {
        height: 150px;
    }

    .v2-cat-card__body {
        padding: 15px;
    }

    .v2-cat-card__title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .v2-cat-grid,
    .v2-cat-grid--cols-1,
    .v2-cat-grid--cols-2,
    .v2-cat-grid--cols-3,
    .v2-cat-grid--cols-4,
    .v2-cat-grid--cols-5,
    .v2-cat-grid--cols-6 {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .v2-cat-card__media {
        height: 140px;
    }

    .v2-cat-card__body {
        padding: 12px;
    }
}
