.productGrid,
.BrandsGrid {
    --gap: 1.5em;
    --num-cols: 4;
    --row-height: 100px;

    box-sizing: border-box;

    display: grid;
    grid-template-columns: repeat(var(--num-cols), 1fr);
    grid-auto-rows: var(--row-height);
    gap: var(--gap);
}

.BrandsGrid {
    --row-height: 100px;
    --gap: 1em;
    grid-auto-rows: var(--row-height);
}

.BrandsGrid>div>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.productGrid>div>img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0.75rem;
}
@media (max-width: 767.98px) {
    .productGrid,.BrandsGrid{
        height: auto;
        --row-height:auto;
        margin-bottom: 1rem;
        --gap:0.5rem;
    }
    .productGrid > div > img{
        object-fit: contain;
        padding: 0.5rem;
    }
    .BrandsGrid > div > img{
        object-fit: contain;
    }
    
}