/* Makvin Custom Related Categories Styles */

.makvin-related-categories-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eaeaea;
    clear: both;
    width: 100%;
}

.makvin-related-categories-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Desktop: 4 Cards in one row, full width */
.makvin-related-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    width: 100%;
}

.makvin-category-card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
}

.makvin-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.makvin-category-card a {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Category Image Display - Consistent Area */
.makvin-cat-image {
    width: 100%;
    height: 200px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #fcfcfc;
    border-bottom: 1px solid #f0f0f0;
}

.makvin-cat-title {
    font-size: 16px;
    font-weight: 500;
    margin: 15px 10px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

/* Tablet Layout */
@media (max-width: 991px) {
    .makvin-related-categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Layout */
@media (max-width: 575px) {
    .makvin-related-categories-grid {
        grid-template-columns: repeat(1, 1fr);
    }
    .makvin-cat-image {
        height: 220px;
    }
}
