/**
 * Styles for Custom Product Category Grid (Elementor widget)
 * Enqueue this file on the front end (see enqueue snippet at bottom of
 * custom-product-category-grid.php, or add via your theme/Elementor
 * custom CSS panel).
 */

.vcpg-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.vcpg-item {
    background-color: #f4f4f5;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.25s ease;
}

.vcpg-item:hover {
    box-shadow: 4px 4px 0px 4px #F5A623;
}

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

.vcpg-image-wrap {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.vcpg-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vcpg-info {
    padding: 16px 20px 22px;
    text-align: center;
}

.vcpg-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* Responsive column fallback (in case the Elementor responsive control
   isn't applied for some reason, e.g. widget used outside Elementor breakpoints) */
@media (max-width: 1024px) {
    .vcpg-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .vcpg-grid {
        grid-template-columns: 1fr;
    }
}
