.related-categories {
    padding: 40px 0;
    margin-top: 30px;
    background-color: #f9f9f9;
}

.related-categories .section-title {
    text-align: left;
    margin-bottom: 30px;
}

.related-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
}

.related-categories__card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.related-categories__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.related-categories__image-link {
    display: block;
    height: 150px;
}

.related-categories__image-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.related-categories__content {
    padding: 15px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-categories__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    flex-grow: 1;
}

.related-categories__title a {
    color: inherit;
    text-decoration: none;
}

.related-categories__button {
    display: inline-block;
    padding: 8px 12px;
    font-size: 14px;
    color: #777;
    background-color: #f0f0f0;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
    margin-top: auto;
}

.related-categories__button:hover {
    background-color: #e0e0e0;
    color: #333;
}