.cool-category-grid {
    display: grid;
    grid-template-columns: repeat(var(--cc-columns), minmax(0, 1fr));
    gap: 24px;
    width: 100%;
}

.cool-category-item {
    min-width: 0;
}

.cool-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.cool-category-image {
    width: var(--cc-image-width);
    height: var(--cc-image-height);
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 8px;
    background: #f2f2f2;
}

.cool-category-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.cool-category-link:hover .cool-category-img {
    transform: scale(1.05);
}

.cool-category-name {
    margin-top: 10px;
    text-align: center;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.cool-category-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #777;
    font-size: 14px;
    background: #eee;
}

@media (max-width: 1024px) {
    .cool-category-grid {
        grid-template-columns: repeat(var(--cc-tablet), minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .cool-category-grid {
        grid-template-columns: repeat(var(--cc-mobile), minmax(0, 1fr));
        gap: 16px;
    }

    .cool-category-name {
        font-size: 16px;
    }
}
