/* ==========================================================================
   Growa Catalogue Downloads — Elementor widget
   ========================================================================== */

.growa-cat-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 0 0 34px;
}

.growa-cat-filter {
    appearance: none;
    border: 0;
    padding: 11px 24px;
    background-color: #193caf;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.growa-cat-filter:hover,
.growa-cat-filter.is-active {
    background-color: #142f8c;
}

.growa-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.growa-cat-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 6px;
    background: #ffffff;
    text-decoration: none;
}

.growa-cat-item.is-hidden {
    display: none;
}

.growa-cat-thumb {
    display: block;
    width: 100%;
    height: 100%;
}

.growa-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Hover overlay */
.growa-cat-overlay {
    position: absolute;
    top: 14px;
    right: 14px;
    bottom: 14px;
    left: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 16px;
    box-sizing: border-box;
    background-color: rgba(0, 0, 0, 0.55);
    border-radius: 4px;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.growa-cat-item:hover .growa-cat-overlay,
.growa-cat-item:focus-visible .growa-cat-overlay {
    opacity: 1;
    transform: scale(1);
}

.growa-cat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #193caf;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.growa-cat-icon svg {
    width: 20px;
    height: 20px;
    fill: #ffffff;
}

.growa-cat-name {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0.4px;
    text-align: center;
    text-transform: uppercase;
}

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    .growa-cat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .growa-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .growa-cat-nav {
        gap: 8px;
        margin-bottom: 24px;
    }

    .growa-cat-filter {
        padding: 9px 16px;
        font-size: 14px;
    }
}
