/* Melhorias para visualização de categorias - LuckyCoupon */

/* Estilos para melhorar a visualização das categorias em 3 colunas */
.wsus__single_category {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: 100%;
    text-align: center;
}

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

.wsus__single_category span {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
    margin-bottom: 15px;
    color: #f77f00;
    font-size: 24px;
    transition: all 0.3s ease;
}

.wsus__single_category:hover span {
    background: #f77f00;
    color: #fff;
}

.wsus__single_category h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 0;
    color: #333;
    transition: all 0.3s ease;
}

.wsus__single_category:hover h6 {
    color: #f77f00;
}

/* Garantir que as categorias fiquem com a mesma altura em cada linha */
.row-equal-height {
    display: flex;
    flex-wrap: wrap;
}

.row-equal-height > [class*='col-'] {
    display: flex;
    flex-direction: column;
}

.row-equal-height > [class*='col-'] > * {
    flex: 1;
}

/* Forçar layout de 3 colunas em dispositivos móveis */
@media (max-width: 767px) {
    .row-equal-height {
        margin-left: -5px;
        margin-right: -5px;
        display: flex;
        flex-wrap: wrap;
    }
    
    .row-equal-height > [class*='col-'] {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .wsus__single_category {
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 5px;
    }
    
    .wsus__single_category span {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .wsus__single_category h6 {
        font-size: 12px;
        line-height: 1.2;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
}

/* Ajustes específicos para telas muito pequenas */
@media (max-width: 480px) {
    .row-equal-height > [class*='col-'] {
        width: 33.333% !important;
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        padding-left: 3px !important;
        padding-right: 3px !important;
    }
    
    .wsus__single_category {
        padding: 8px;
        margin-bottom: 6px;
    }
    
    .wsus__single_category span {
        width: 30px;
        height: 30px;
        font-size: 14px;
        margin-bottom: 5px;
    }
    
    .wsus__single_category h6 {
        font-size: 10px;
        margin-top: 5px;
    }
}
