.dbhomecategoriespro {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-top: 64px;
    margin-bottom: 64px;
    gap: 24px;
}

.first_row_dbhomecategoriespro,
.second_row_dbhomecategoriespro {
    display: grid !important;
    gap: 20px;
    width: 100%;
}

.item_dbhomecategoriespro {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background-color: #ffffff;
}

.item_dbhomecategoriespro a {
    display: flex;
    flex-direction: column;
    text-decoration: none;
}

.img_dbhomecategoriespro {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
    object-fit: cover;
    margin: 0 auto;
    margin-bottom: 16px;
    max-width: 200px;
}

.title_dbhomecategoriespro {
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    color: #344054;
}

.description_dbhomecategoriespro {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 200;
    line-height: 21px;
    text-align: center;
    color: #475467;
}

/* Mobile: 2 columns */
.first_row_dbhomecategoriespro,
.second_row_dbhomecategoriespro {
    grid-template-columns: repeat(2, 1fr);
}

/* Desktop: 4 columns */
@media (min-width: 992px) {
    .first_row_dbhomecategoriespro,
    .second_row_dbhomecategoriespro {
        grid-template-columns: repeat(4, 1fr);
    }

    .img_dbhomecategoriespro {
        max-width: 180px;
    }
}
