/* Category Cards - Figma Design - Horizontal Layout */
.bfhd-category-card {
    background: #FFFFFF !important;
    border: 1px solid #E8E8E8 !important;
    border-radius: 60px !important;
    padding: 20px 24px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 16px !important;
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    min-height: 100px !important;
}

.bfhd-category-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08) !important;
    border-color: #00E2C1 !important;
}

/* Icon on the left */
.bfhd-category-icon {
    width: 60px !important;
    height: 60px !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.bfhd-category-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* Name on the right of icon */
.bfhd-category-name {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: #666666 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    flex: 1 !important;
    text-align: left !important;
}

/* Green badge centered on bottom edge, aligned with right edge */
.bfhd-category-count {
    position: absolute !important;
    bottom: 0 !important;
    right: 0 !important;
    transform: translateY(50%) !important;
    background: #00E2C1 !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 14px !important;
    border-radius: 20px !important;
    display: inline-block !important;
}

/* Categories Grid - More vertical spacing between rows */
.bfhd-categories-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
    gap: 30px 20px !important;
    row-gap: 30px !important;
}

@media (max-width: 768px) {
    .bfhd-categories-grid {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .bfhd-category-card {
        border-radius: 50px !important;
        min-height: 80px !important;
    }

    .bfhd-category-icon {
        width: 50px !important;
        height: 50px !important;
    }
}