.wc-category-custom-text {
    display: block;
    margin: 16px 0 20px;
    padding: 16px 18px;
    border: 1px solid var(--wd-border-color, #e5e7eb);
    border-radius: 12px;
    background: var(--wd-widget-bg, #fff);
    line-height: 1.8;
    font-size: 15px;
}

.wc-category-custom-text p {
    margin: 0 0 8px;
}

.wc-category-custom-text p:last-child {
    margin-bottom: 0;
}

.wc-category-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.wc-category-card {
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wc-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.14);
}

.wc-category-card a {
    display: block;
    color: inherit;
    text-decoration: none;
}

.wc-category-card img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: #f8fafc;
}

.wc-category-card-caption {
    display: block;
    padding: 10px 12px;
    color: #1f2937;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    word-break: break-word;
}

@media (max-width: 768px) {
    .wc-category-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .wc-category-custom-text {
        padding: 14px;
        font-size: 14px;
    }

    .wc-category-cards {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}
