/* WooCommerce Category Grid Styles */
.wccg-category-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.wccg-category-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.wccg-category-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.wccg-category-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.wccg-category-image {
    width: 100%;
    height: 200px;
    overflow: hidden;

}

.wccg-category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.wccg-category-item:hover .wccg-category-image img {
    transform: scale(1.05);
}

.wccg-category-info {
    padding: 15px;
    text-align: center;
}

.wccg-category-name {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.wccg-category-count {
    font-size: 14px;
    color: #666;
}

@media (max-width: 1200px) {
    .wccg-category-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .wccg-category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .wccg-category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    .wccg-category-image {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .wccg-category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .wccg-category-image {
        height: 200px;
    }
}

.rtl .wccg-category-grid {
    direction: rtl;
}